coverage-guided-fuzzing
БесплатноБез исполняемых скриптовНе проверенUse for any question or task about fuzz testing, including adding fuzzing to a Go, Rust, C/C++, Python or Java project, writing a fuzz target for a parser…
от testland★ 18 звёзд на GitHubОб этом скилле
coverage-guided-fuzzing
Overview
Coverage-guided fuzzers mutate inputs, watch which code paths each input reaches, and keep mutating the inputs that find new coverage. Every mainstream engine implements the same loop; they differ in language, process model, and toolchain integration. This umbrella covers choosing the engine, the engine-generic workflow (target → corpus → sanitizers → CI), and links the per-engine references that carry exact flags and harness syntax.
| Engine | Language / niche | Reference |
|---|---|---|
| libFuzzer | C/C++ callable APIs, in-process (also Swift) | references/libfuzzer.md |
| AFL++ | File/stdin-driven binaries, closed-source via QEMU | references/afl-plus-plus.md |
| cargo-fuzz | Rust crates (libFuzzer + cargo, nightly) | references/cargo-fuzz.md |
| Go native | Go packages (go test -fuzz, Go 1.18+) |
references/go-native-fuzzing.md |
| Atheris | Python libraries + CPython extensions | references/atheris.md |
| Jazzer | Java / Kotlin / Scala / Groovy (@FuzzTest) |
references/jazzer.md |
Shared catalogs: references/corpus-management.md (seed / evolved corpus, dictionaries, minimisation) and references/sanitizer-integration.md (ASan / UBSan / MSan / TSan / LSan flags + compatibility).
When to use
- A project needs coverage-guided fuzzing and no fuzzer has been chosen for its language or toolchain yet (routing below).
- Authoring a fuzz target, bootstrapping its corpus, or picking sanitizers for it.
- Running or maintaining a fuzz campaign - local, CI smoke, or long-running.
- Reviewing an existing fuzz target - verify the right engine was selected.
Choosing your fuzzer
Step 1: Identify target language(s).
↓
+-------+----------+--------+--------+-------+--------+--------+
| C/C++ | Rust | Go | Python | JVM | Other | Binary |
| | | | | | | (no |
| | | | | | | source)|
+-------+----------+--------+--------+-------+--------+--------+
↓ ↓ ↓ ↓ ↓ ↓ ↓
Step 2: AFL++
Library cargo- go test Atheris Jazzer Choose -Q mode
function? fuzz -fuzz per LLVM
YES -fsanitize
↓ support
libFuzzer
(in-process)
OR
AFL++ (file-driven)
| Target characteristic | Route to |
|---|---|
| C / C++ library with callable function API | libFuzzer |
| C / C++ binary processing files | AFL++ |
| C / C++ source unavailable | AFL++ (-Q QEMU) |
| Rust crate | cargo-fuzz |
| Rust binary processing files | AFL++ |
| Go package | Go native fuzzing |
| Pure Python or CPython native extension | Atheris |
| Java / Kotlin / Scala / Groovy library | Jazzer |
| Swift library | libFuzzer (Swift wraps libFuzzer natively) |
Routing rationale:
- C/C++: prefer libFuzzer for callable APIs (parsers, validators, decoders) - in-process iteration is 10-100x faster. Switch to AFL++ when the target reads stdin/file input, when you need QEMU mode for closed-source binaries, or as a second mutation engine (AFL++ and libFuzzer find different bugs); mature projects run both.
- Rust: cargo-fuzz integrates with cargo and supports
Arbitraryfor structured input; requires nightly. Rust binaries (not callable APIs) → AFL++. - Go: native fuzzing is built into
testing(Go 1.18+); failing inputs auto-save as regression fixtures. CGo dependencies → AFL++-Q. - Python: Atheris (Google's libFuzzer-backed fuzzer) covers pure
Python and CPython extensions. For property-based testing without
coverage guidance, Hypothesis (
hypothesis-testing, qa-property-based plugin) is complementary, not competing. - JVM: Jazzer integrates with JUnit 5 via
@FuzzTestand ships JVM-level sanitizers (deserialization, SSRF, ReDoS, command injection). - Other languages: with libFuzzer-compatible sanitizer-coverage support (Swift, Objective-C) use libFuzzer via FFI; without it (Erlang, OCaml), fuzz the compiled binary with AFL++.
- OSS overlay: mature, security-relevant open-source projects can additionally onboard to OSS-Fuzz (google.github.io/oss-fuzz) - it runs existing libFuzzer / AFL++ / Jazzer harnesses 24x7.
The engine-generic workflow
Step 1 - Write a small, deterministic fuzz target
Every engine calls your target repeatedly with mutated bytes (or typed values). The rules are engine-independent:
- Keep the target small - one function / one format per target; faster iteration, clearer coverage attribution.
- No global state
Установить coverage-guided-fuzzing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coverage-guided-fuzzing?
Use for any question or task about fuzz testing, including adding fuzzing to a Go, Rust, C/C++, Python or Java project, writing a fuzz target for a parser, and finding crashes on malformed input that unit tests miss. Picks libFuzzer, AFL++, cargo-fuzz, Go fuzzing, Atheris or Jazzer by language, then covers fuzz targets, seed corpora, dictionaries, sanitizers, crash triage and CI smoke fuzzing.
Как установить скилл coverage-guided-fuzzing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coverage-guided-fuzzing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic