tottenjordan/me-skittles/libafl
Claude Code and agent skill by tottenjordan/me-skittles
- community
Checking that the SKILL.md file is still in the repository.
LibAFL is a modular fuzzing library for building custom fuzzers. Use for advanced fuzzing needs, custom mutators, or non-standard fuzzing targets.
Install
npx vskill@latest install tottenjordan/me-skittles/libaflSKILL.md
The same SKILL.md was published earlier as tottenjordan/me-skittles/libafl.
LibAFL
LibAFL is a modular fuzzing library that implements features from AFL-based fuzzers like AFL++. Unlike traditional fuzzers, LibAFL provides all functionality in a modular and customizable way as a Rust library. It can be used as a drop-in replacement for libFuzzer or as a library to build custom fuzzers from scratch.
When to Use
| Fuzzer | Best For | Complexity | |
|---|---|---|---|
| libFuzzer | Quick setup, single-threaded | Low | |
| AFL++ | Multi-core, general purpose | Medium | |
| LibAFL | Custom fuzzers, advanced features, research | High |
Choose LibAFL when:
- You need custom mutation strategies or feedback mechanisms
- Standard fuzzers don't support your target architecture
- You want to implement novel fuzzing techniques
- You need fine-grained control over fuzzing components
- You're conducting fuzzing research
Quick Start
LibAFL can be used as a drop-in replacement for libFuzzer with minimal setup:
Build LibAFL's libFuzzer compatibility layer:
Compile and run:
Installation
Prerequisites
- Clang/LLVM 15-18
- Rust (via rustup)
- Additional system dependencies
Linux/macOS
Install Clang:
Or install a specific version via apt.llvm.org:
Configure environment for Rust:
Install Rust:
Install additional dependencies:
For libFuzzer compatibility mode, install nightly Rust:
Verification
Build LibAFL to verify installation:
Writing a Harness
LibAFL harnesses follow the same pattern as libFuzzer when using drop-in replacement mode:
When building custom fuzzers with LibAFL as a Rust library, harness logic is integrated directly into the fuzzer. See the "Writing a Custom Fuzzer" section below for the full pattern.
See Also: For detailed harness writing techniques, see the harness-writing technique skill.
Troubleshooting
| Problem | Cause | Solution | |
|---|---|---|---|
| No coverage increases | Instrumentation failed | Verify compiler wrapper used, check for -fsanitize-coverage | |
| Fuzzer won't start | Empty corpus with no interesting inputs | Provide seed inputs that trigger code paths | |
Linker errors with libafl_main | Runtime not linked | Use -Wl,--whole-archive or -u libafl_main | |
| LLVM version mismatch | LibAFL requires LLVM 15-18 | Install compatible LLVM version, set environment variables | |
| Rust compilation fails | Outdated Rust or Cargo | Update Rust with rustup update | |
| Slow fuzzing | Sanitizers enabled | Expected 2-5x slowdown, necessary for finding bugs | |
| Environment variable interference | CC, CXX, RUSTFLAGS set | Unset after building LibAFL project | |
| Cannot attach debugger | Multi-process fuzzing | Run in single-process mode (see Debugging section) |
Reference material
[references/custom-fuzzers.md](references/custom-fuzzers.md) — usage modes and building a custom fuzzer
[references/examples.md](references/examples.md) — compilation, running campaigns, advanced usage, and worked examples
Related Skills
Technique Skills
| Skill | Use Case | |
|---|---|---|
| fuzz-harness-writing | Detailed guidance on writing effective harnesses | |
| address-sanitizer | Memory error detection during fuzzing | |
| undefined-behavior-sanitizer | Undefined behavior detection | |
| coverage-analysis | Measuring and improving code coverage | |
| fuzzing-corpus | Building and managing seed corpora | |
| fuzzing-dictionaries | Creating dictionaries for format-aware fuzzing |
Related Fuzzers
| Skill | When to Consider | |
|---|---|---|
| libfuzzer | Simpler setup, don't need LibAFL's advanced features | |
| aflpp | Multi-core fuzzing without custom fuzzer development | |
| cargo-fuzz | Fuzzing Rust projects with less setup |
Resources
Official Documentation
- LibAFL Book - Official handbook with comprehensive documentation
- LibAFL GitHub - Source code and examples
- LibAFL API Documentation - Rust API reference
Examples and Tutorials
- LibAFL Examples - Collection of example fuzzers
- cargo-fuzz with LibAFL - Using LibAFL as cargo-fuzz backend
- Testing Handbook LibAFL Examples - Complete working examples from this handbook
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/testing-handbook-skills/skills/libafl/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tottenjordan/me-skittles/libafl)