snailsploit/claude-red/offensive-fuzzing
Claude Code and agent skill by snailsploit/claude-red
- community
Checking that the SKILL.md file is still in the repository.
Practical offensive fuzzing methodology covering target identification, fuzzer selection (AFL++, libFuzzer, Honggfuzz, Boofuzz, syzkaller), harness writing, corpus curation, mutation strategies, coverage measurement, and crash triage. Use when setting up or running fuzz campaigns against any target: file parsers, network protocols, kernel drivers, EDR engines, embedded firmware, or language runtimes.
Install
npx vskill@latest install snailsploit/claude-red/offensive-fuzzingSKILL.md
The same SKILL.md was published earlier as snailsploit/claude-red/offensive-fuzzing.
Offensive Fuzzing
Fuzzer Types
| Type | Coverage | Speed | Tools | |
|---|---|---|---|---|
| BlackBox | Poor | Fast | Peach, Boofuzz | |
| GreyBox | Good | Fast | AFL++, Honggfuzz, libFuzzer, WinAFL | |
| Snapshot | Good | Fastest | Nyx, wtf, Snapchange | |
| WhiteBox | Best | Slow | KLEE, QSYM, SymSan | |
| Ensemble | Best | Fast | AFL++ + Honggfuzz + libFuzzer |
GreyBox sub-variants: Directed (AFLGo, UAFuzz), Grammar (AFLSmart, Tlspuffin), Concolic (QSYM, Driller), Kernel (syzkaller, kAFL, wtf).
Core Workflow
1. Research Target
- Map all input surfaces (files, network, IPC, syscalls, IOCTL)
- Identify high-value areas: previously patched code, complex parsers, newly added code, input ingestion points
- For kernel modules: look beyond
copy_from_user— DMA-BUF ops, page fault handlers, VM operation structs, allocation callbacks
2. Instrument and Build
Windows (MSVC): Project Properties → C/C++ → Address Sanitizer: Yes (/fsanitize=address)
3. Write Harness
libFuzzer (C++):
Honggfuzz HF_ITER (persistent mode — preferred for large targets):
AFL++ persistent mode (`__AFL_LOOP`):
macOS IPC (Mach message fuzzing):
4. Build Seed Corpus
- Pull from target's test suite, bug reports, and real-world samples
- Web-crawl (Common Crawl) for file formats; filter by MIME type
- Minimize:
afl-cmin -i raw_corpus -o seeds -- ./target @@ - Trim inputs:
afl-tmin -i crash -o crash.min -- ./target @@
5. Launch Fuzzing
AFL++ parallel (primary + secondary with cmplog):
libFuzzer:
Binary-only (QEMU):
Snapshot (AFL++ Nyx):
Ensemble (AFL++ + Honggfuzz sharing corpus):
6. Monitor and Unstick
If progress stalls:
- Enable CmpLog:
-c 0on AFL++ secondaries - Add dictionary:
-x dict.txtorAFL_TOKEN_FILE - Switch to directed fuzzing (AFLGo) targeting specific BBs/functions
- Use concolic assistance (QSYM, Driller) on hard branches
- Snapshot the target to increase exec/s
AFL_MAP_SIZE=1048576,-L 0for MOpt scheduler
7. Triage Crashes
Sanitizer env quick reference:
Oracle Selection
| Bug Class | Oracle | |
|---|---|---|
| Memory safety | ASan, HWASan (AArch64, lower overhead) | |
| Uninitialized reads | MSan | |
| Concurrency | TSan | |
| Undefined behavior | UBSan | |
| Type safety | TypeSan | |
| Heap hardening | Scudo Hardened Allocator | |
| Logic bugs | Differential / idempotency oracles | |
| Kernel memory | KASAN, KMSAN, KCSAN | |
| Kernel UB | KUBSan (CONFIG_UBSAN_TRAP=y) | |
| CFI | KCFI (-fsanitize=kcfi, Clang 18) | |
| Binary-only | QASAN (QEMU+ASan), DynamoRIO |
Property oracle patterns:
- Idempotency:
f(x) == f(f(x)) - Differential: compare two impls, bucket on output mismatch
- Invariants: monotonic lengths, checksum equality, schema validation post-parse
Specialized Targets
Kernel (Linux) — syzkaller
- Limit
enable_syscallsto deepen coverage on specific subsystems - Use
syz-extractto pull constants for custom modules - Enable
CONFIG_KASAN=y,CONFIG_KCFI=y,CONFIG_DEBUG_INFO_BTF=y - Use
kcovfilters andsyz_cover_filterto direct coverage - Network fuzzing: inject via
TUN/TAP+ pseudo-syscalls (syz_emit_ethernet) - Crash decode:
./scripts/decode_stacktrace.sh vmlinux ... < dmesg.log
syzkaller repro:
EDR / Windows Scanning Engines
WTF snapshot harness skeleton (mpengine.dll / mini-filter):
FilterConnectionPort fuzzing:
IOCTL fuzzing pattern:
- Take snapshots after initialization, right before parse/dispatch loop
- Use IDA Lighthouse for coverage visualization
- Monitor:
DRIVER_VERIFIER_DETECTED_VIOLATION (0xc4),IRQL_NOT_LESS_OR_EQUAL (0xa) - WinDbg:
.symfix; !analyze -v; k; !heap -p -a @rax
Cross-platform mpengine.dll on Linux (loadlibrary + HF_ITER + Intel PT):
Rust
Focus unsafe blocks on: Vec::from_raw_parts, unchecked indexing, transmute size mismatches, pointer arithmetic, FFI integer truncation.
Embedded / Binary-Only
- LibAFL: Modular Rust framework; Unicorn engine, snapshot module, LBRFeedback (zero-instrumentation on Intel), SAND decoupled sanitization
- Retrowrite / QASAN: Binary rewriting for coverage + ASan without source
- Nautilus: Grammar-based fuzzing for structured formats
Language Ecosystems
- Go 1.18+:
go test -fuzz=Fuzz -run=^$ ./... - Python: Atheris (CPython native extension fuzzing)
- Rust:
cargo-fuzzorhonggfuzz-rs - JS engines: Fuzzilli with extended instrumentation (
__builtin_return_address(0)for PC tracking) - Wasm runtimes:
wasmtime-fuzz,waflfor differential fuzzing across V8/Wasmer/Wasmtime - Smart contracts: Echidna, Foundry-fuzz (Solidity); Move-Fuzz (Aptos/Sui)
CI/CD Integration
Use ClusterFuzzLite for persistent continuous fuzzing; cache corpora between runs.
Crash Analysis Quick Reference
Linux:
Windows:
Kernel KASAN/KMSAN:
Reproducibility: pin CPU governor, disable ASLR only where safe, fix RNG seeds, save input sequences in persistent mode, record binary hashes and sanitizer options with every crash.
Tool Index
| Tool | Use Case | |
|---|---|---|
| AFL++ | General GreyBox, CmpLog, MOpt, Nyx | |
| Honggfuzz | Intel PT, crash detection, HF_ITER | |
| libFuzzer | In-process, source available | |
| syzkaller | Linux/Windows kernel syscall fuzzing | |
| wtf | Snapshot fuzzing, Windows targets | |
| Nyx | AFL++ snapshot mode (Intel PT) | |
| Snapchange | AWS snapshot fuzzing | |
| LibAFL | Custom Rust fuzzing framework | |
| AFLGo | Directed fuzzing to target BB/function | |
| kAFL | Kernel + OS fuzzing | |
| Jackalope | Binary coverage-guided (Windows/macOS) | |
| cargo-fuzz | Rust libFuzzer integration | |
| Atheris | Python fuzzing | |
| Nautilus | Grammar-based fuzzing | |
| AFLTriage | Automated crash triage | |
| afl-cov | Coverage analysis for AFL++ | |
| ClusterFuzz | Distributed fuzzing infrastructure |
Security
- Security scanPassed, 95 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 repositoryCheckingSkills/fuzzing/offensive-fuzzing/SKILL.md
Popularity
- Repository stars
- 1,305
- Repository forks
- 221
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 6 months ago.
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/snailsploit/claude-red/offensive-fuzzing)