Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95747

code-fuzz-campaign

AI-driven fuzz campaign orchestration — target selection, harness construction, sanitizer compilation, and crash triage for memory-safety vulnerabilities in…

БесплатноБез исполняемых скриптов
VigilOSSот VigilOSS★ 35 звёзд на GitHub

Установить code-fuzz-campaign в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Code Fuzz Campaign

Together with agent/shared-constraints-code.md §5, this skill owns fuzz hunting depth: target selection accounts for every required target, campaign execution is generation-bound and audited, an empty, crashed, or failed run is interpreted from evidence, every crash is triaged, and sibling root causes are checked before findings close. The web hunting rules are not required.

When to Activate

Phase 4, after Verify + Variant, for C/C++ code that has or can take coverage-guided fuzzing (libFuzzer, AFL++, OSS-Fuzz), and whenever current findings include a native memory-safety family fuzzing can extend (buffer overflow, format string, integer overflow, null dereference, type confusion, uninitialized memory, use-after-free). It can start during Phase 3 when the architect flagged existing fuzzer infrastructure.

AI does not replace the fuzzer: you choose targets, write harnesses, repair builds, and triage crashes, and the mutation engine does the byte-level exploration.

Tools and execution boundary

Host-side work is reading sealed source and authoring harnesses, build glue, corpora, campaign JSON, and the runtime driver beneath $ENGAGEMENT_DIR/tools/fuzz-state/. Everything that executes (compilers, build systems, libFuzzer and AFL++, afl-tmin, sanitizer reproducers, nm/objdump, coverage tools, repository-built binaries) runs in Kali through vigil assess kali ... (agent/shared-constraints-code.md §3).

Apply this path-mapping and containment contract before every build, launch, resume, minimization, or repro:

  • Each runtime input is an engagement-root-relative POSIX path mapped to /engagements/$ENGAGEMENT_KEY/<relative-path>; reject absolute paths, empty or . components, and any .. before mapping.
  • Inside Kali, resolve the engagement root and every build root, config, binary, corpus, seed, crash, and source path with symlinks followed; prove containment with pathlib.Path.relative_to()/is_relative_to() (or a file-descriptor walk), and require the executable beneath the validated generation build root. A string prefix, glob, or startsWith test is not a containment check.
  • If snapshot_path or a required build input is host-only, outside the engagement mount, or escapes the validated boundary, return blocked so the operator can establish a runtime-visible sealed generation; never fall back to running it on the host.

Methodology

Stage 1: Target Selection

Read vigil assess fetch findings --paginate (native memory-safety families, with verification_status) and vigil assess fetch "code/files?repo_id=<id>" --paginate (a hand-written limit returns one page, so ranking would see only the files on it), the per-file structural indexes, tools/analysis-state/call-graph.json, code/threat-model/<repo-id> when current, and the existing fuzzer inventory: search for fuzz_*.c, *_fuzzer.c, LLVMFuzzerTestOneInput, and oss-fuzz/. Favor critical/high C/C++ files with NETWORK-INPUT, FILE-CONTENT, PROTOCOL-FIELD, or SERIALIZED-DATA slots.

Score each candidate 0-3 on product-reachable untrusted input (network bytes or a public parser of an untrusted format 3; shipped CLI/env/file or host callback 2; public API with unresolved consumer control 1; internal 0), size arithmetic from untrusted fields, narrowing casts, missing fuzz coverage (none 3 down to over 70% branch coverage 0), nearby Phase 2 signal, and parser complexity. Campaign 12+ first, 8-11 as budget allows, below 8 only when a Phase 2 finding implicates it. Write tools/fuzz-state/targets.json.

Stage 2: Pre-Fuzz Audit

A focused scan for what shapes the harness and seeds: unchecked length arithmetic (counts near SIZE_MAX / sizeof(entry)), parsed offset/length pairs, decompression sized from a header, size_t-to-int narrowing (sizes above INT_MAX), raw memcpy where the project has a growth API, table indexes from input, magic bytes and checksums (CmpLog/laf-intel or valid magic in seeds), and input-driven recursion depth. Record a bug that is reportable without fuzzing now, with vigil assess finding record; the harness then extends it.

Generation-Bound Build Workspace

The sealed snapshot_path is evidence, not a writable checkout: never change its permissions, generate files beneath it, or build from the mutable origin. Build out of tree when the project supports it — read source from the runtime-visible snapshot and generate into tools/fuzz-state/builds/<repo_key>/<repo_generation>-<source_manifest_digest-prefix>/<target_id>/ (for example CMake -S <runtime-snapshot-path> -B <runtime-build-root> inside Kali), with harness and glue under tools/fuzz-state/harnesses/<target_id>/.

Only a build system that must write beside source gets a disposable copy under tools/fuzz-state/build-workspaces/<same path>/source/, filled only from the validated snapshot. Compare every pre-existing product file in it with the sealed manifest (`<snapshot_path>/.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл code-fuzz-campaign?

AI-driven fuzz campaign orchestration — target selection, harness construction, sanitizer compilation, and crash triage for memory-safety vulnerabilities in C/C++ codebases

Как установить скилл code-fuzz-campaign?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-fuzz-campaign запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить code-fuzz-campaign с