[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DGCB93HETKMR9N2SH0C49D":3,"skill-same:01M7DGCB93HETKMR9N2SH0C49D":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7DGCB93HETKMR9N2SH0C49D","fuzzing",null,"Coverage-guided fuzzing methodology for compiled binaries and libraries: target scoping, fuzzer selection (AFL++\u002FlibFuzzer\u002FHonggfuzz), harness skeleton, ASan+UBSan flags, corpus curation, crash triage and minimization (afl-tmin\u002Fminimize_corpus), exploitability rubric. Outputs corpora and crashes to \u002Fworkspace\u002F. Triggers on: 'fuzz', 'fuzzing', 'AFL', 'libFuzzer', 'harness', 'crash triage', 'coverage-guided', 'afl-tmin', 'sanitizer', 'corpus'.","Akapi895\u002Fraptix","Akapi895","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83953516?v=4","01M7DEGNDGERR4F4YETDFVA512","Phạm Anh Tuấn","01M7DEGNEHYZNA920AYM5EH7H8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Freverser\u002Ffuzzing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fuzzing\ndescription: \"Coverage-guided fuzzing methodology for compiled binaries and libraries: target scoping, fuzzer selection (AFL++\u002FlibFuzzer\u002FHonggfuzz), harness skeleton, ASan+UBSan flags, corpus curation, crash triage and minimization (afl-tmin\u002Fminimize_corpus), exploitability rubric. Outputs corpora and crashes to \u002Fworkspace\u002F. Triggers on: 'fuzz', 'fuzzing', 'AFL', 'libFuzzer', 'harness', 'crash triage', 'coverage-guided', 'afl-tmin', 'sanitizer', 'corpus'.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: reverse-engineering\n  when_to_use: \"fuzz fuzzing afl afl++ libfuzzer honggfuzz harness crash triage coverage guided afl-tmin sanitizer asan ubsan corpus\"\n  tags: fuzzing, afl++, libfuzzer, honggfuzz, asan, harness, crash-triage\n  mitre_attack: T1587.004, T1203\n---\n\n# Coverage-Guided Fuzzing Playbook\n\nFind memory-corruption and logic bugs by systematically mutating inputs\nwhile tracking code coverage. Works on parsers, network protocol\nhandlers, file format readers, crypto implementations.\n\n## 1. Target Scoping\n\nBefore writing a harness, answer:\n- What is the attack surface? (file parser \u002F network socket \u002F library API)\n- What input format does the target consume? (binary struct \u002F text \u002F TLV)\n- Is source available? (instrumented build) or binary-only? (QEMU\u002FFrida mode)\n\n```bash\n# Quick API surface for a library\nnm -D \u002Fworkspace\u002Ftarget.so | grep ' T ' | awk '{print $3}' | sort > \u002Fworkspace\u002Fexports.txt\n# or via radare2\nr2 -q -e bin.demangle=true -c \"aaa; afl~pub\" \u002Fworkspace\u002Ftarget.so 2>\u002Fdev\u002Fnull | head -40\n```\n\n## 2. Fuzzer Selection\n\n| Scenario | Fuzzer | Rationale |\n|----------|--------|-----------|\n| Source available, C\u002FC++ | AFL++ | Best coverage feedback, mutator ecosystem |\n| Source available, any lang | libFuzzer | In-process, lower overhead, LLVM native |\n| Binary-only | AFL++ QEMU mode | `AFL_USE_QEMU=1` |\n| Binary-only (faster) | AFL++ Frida mode | Lighter than QEMU on some targets |\n| Multi-CPU farm | AFL++ + honggfuzz | honggfuzz for socket fuzzing |\n| Go \u002F Rust | native `go-fuzz` \u002F `cargo fuzz` | Language-native instrumentation |\n| Network protocol daemon | AFL++ persistent + preeny | Desock the accept() loop |\n\n## 3. Instrumented Build (source-available)\n\n```bash\n# AFL++\nCC=afl-clang-fast CXX=afl-clang-fast++ \\\n  cmake -DCMAKE_BUILD_TYPE=Debug \\\n        -DCMAKE_C_FLAGS=\"-fsanitize=address,undefined -g -O1\" \\\n        -DCMAKE_CXX_FLAGS=\"-fsanitize=address,undefined -g -O1\" \\\n        -S \u002Fworkspace\u002Fsrc -B \u002Fworkspace\u002Fbuild-afl\ncmake --build \u002Fworkspace\u002Fbuild-afl -j$(nproc)\n\n# libFuzzer (alternative)\nCC=clang CXX=clang++ \\\n  cmake -DCMAKE_BUILD_TYPE=Debug \\\n        -DCMAKE_C_FLAGS=\"-fsanitize=fuzzer,address,undefined -g\" \\\n        -DCMAKE_CXX_FLAGS=\"-fsanitize=fuzzer,address,undefined -g\" \\\n        -S \u002Fworkspace\u002Fsrc -B \u002Fworkspace\u002Fbuild-lf\ncmake --build \u002Fworkspace\u002Fbuild-lf -j$(nproc)\n```\n\nMinimum sanitizer flags: `-fsanitize=address,undefined`. Add\n`-fsanitize=memory` (MSan) on a separate build for uninit reads.\nDo NOT combine MSan with ASan — they conflict.\n\n## 4. Harness Skeleton\n\n### AFL++ persistent-mode harness (C)\n```c\n\u002F* harness.c — compile with afl-clang-fast *\u002F\n#include \u003Cstdint.h>\n#include \u003Cstring.h>\n\n\u002F* Include target headers *\u002F\n#include \"target_api.h\"\n\n\u002F* AFL++ persistent mode — loops inside the same process (~20x faster) *\u002F\n__AFL_FUZZ_INIT();\n\nint main(void) {\n    __AFL_INIT();\n    const uint8_t *buf = __AFL_FUZZ_TESTCASE_BUF;\n    while (__AFL_LOOP(10000)) {\n        size_t len = __AFL_FUZZ_TESTCASE_LEN;\n        \u002F* Call the target function directly *\u002F\n        target_parse(buf, len);   \u002F* replace with actual API *\u002F\n    }\n    return 0;\n}\n```\n\n### libFuzzer target (C)\n```c\n\u002F* fuzz_target.cc *\u002F\n#include \u003Cstdint.h>\n#include \u003Cstddef.h>\n#include \"target_api.h\"\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F* Wrap any setup in thread_local or static init if needed *\u002F\n    target_parse(data, size);\n    return 0;  \u002F* non-zero aborts fuzzer *\u002F\n}\n```\n\nKey harness rules:\n- Allocate nothing that leaks between iterations (use arena or reset)\n- Do not call `exit()` or `abort()` inside the harness — let ASan terminate\n- Minimize initialization overhead outside the fuzz loop\n- If target needs a null-terminated string: `strndup((char*)data, size)`\n\n## 5. Seed Corpus Curation\n\n```bash\n# Create corpus dir\nmkdir -p \u002Fworkspace\u002Fcorpus\u002Finitial\n\n# If target is a file parser, seed with real samples\nfind \u002Fusr\u002Fshare -name \"*.png\" 2>\u002Fdev\u002Fnull | head -10 | \\\n  xargs -I{} cp {} \u002Fworkspace\u002Fcorpus\u002Finitial\u002F\n\n# For binary protocols, create minimal valid inputs by hand\n# For text protocols, minimal valid requests:\nprintf 'GET \u002F HTTP\u002F1.0\\r\\n\\r\\n' > \u002Fworkspace\u002Fcorpus\u002Finitial\u002Fhttp_get.bin\n\n# AFL++ minimize corpus to remove redundant seeds\nafl-cmin -i \u002Fworkspace\u002Fcorpus\u002Finitial \\\n         -o \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n         -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\nGood seed = valid, minimal, diverse. 5–50 seeds beats 5000 random bytes.\n\n## 6. Run AFL++\n\n```bash\nmkdir -p \u002Fworkspace\u002Ffindings\u002Fafl\n\n# Single-core\nAFL_SKIP_CPUFREQ=1 \\\nAFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 \\\nafl-fuzz \\\n  -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl \\\n  -t 1000 \\           # timeout per testcase (ms)\n  -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n\n# Multi-core (1 main + N-1 secondary)\n# Main:\nafl-fuzz -M main-fuzzer -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n# Secondary (run in parallel):\nafl-fuzz -S sec-01 -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\n### Key AFL++ environment flags\n\n| Flag | Effect |\n|------|--------|\n| `AFL_USE_ASAN=1` | Enable ASan in afl-fuzz without recompile |\n| `AFL_DISABLE_TRIM=1` | Skip trim step (faster iteration) |\n| `AFL_FAST_CAL=1` | Reduce calibration cycles |\n| `AFL_CUSTOM_MUTATOR_LIBRARY` | Load grammar\u002Fstructure-aware mutator |\n| `AFL_LLVM_CMPLOG=1` + `-c cmplog_binary` | Token extraction from cmp instructions |\n\n## 7. Run libFuzzer\n\n```bash\nmkdir -p \u002Fworkspace\u002Ffindings\u002Flf \u002Fworkspace\u002Fcorpus\u002Flf-work\n\n# Merge initial corpus into working corpus first\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \\\n  -merge=1 \\\n  \u002Fworkspace\u002Fcorpus\u002Flf-work \\\n  \u002Fworkspace\u002Fcorpus\u002Fminimized\n\n# Fuzz with ASAN_OPTIONS for cleaner reports\nASAN_OPTIONS=halt_on_error=1:print_stats=1 \\\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \\\n  -max_total_time=3600 \\\n  -artifact_prefix=\u002Fworkspace\u002Ffindings\u002Flf\u002F \\\n  -jobs=$(nproc) \\\n  -workers=$(nproc) \\\n  \u002Fworkspace\u002Fcorpus\u002Flf-work\n```\n\n## 8. Crash Triage\n\n### Reproduce a crash\n```bash\n# AFL++ crash\nASAN_OPTIONS=halt_on_error=1:print_stacktrace=1 \\\n\u002Fworkspace\u002Fbuild-afl\u002Fharness \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:000000*\n\n# libFuzzer crash\nASAN_OPTIONS=halt_on_error=1:print_stacktrace=1 \\\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \u002Fworkspace\u002Ffindings\u002Flf\u002Fcrash-*\n```\n\n### Minimize crash (AFL++)\n```bash\nafl-tmin \\\n  -i \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:000000 \\\n  -o \u002Fworkspace\u002Ffindings\u002Fcrash-min.bin \\\n  -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\n### Parse crash output\n\n| ASan report prefix | Bug class | Exploitability |\n|-------------------|-----------|---------------|\n| `heap-buffer-overflow` | OOB read\u002Fwrite on heap | Write → HIGH, Read → MEDIUM |\n| `stack-buffer-overflow` | OOB on stack | Often HIGH (canary missing → RCE) |\n| `heap-use-after-free` | UAF | HIGH — check if write capability |\n| `global-buffer-overflow` | OOB on global | Context-dependent |\n| `null-dereference` | NULL deref | LOW-MEDIUM (usually DoS) |\n| `double-free` | Double free | HIGH in glibc \u003C 2.35 |\n| UBSan `signed-integer-overflow` | Integer overflow | Context-dependent |\n| UBSan `shift-exponent` | Undefined shift | Usually LOW |\n\n## 9. Exploitability Rubric\n\nAssess each unique crash:\n\n1. **Is it write or read?** Write-anywhere = HIGH. Read = may still be HIGH\n   (information leak) or MEDIUM (crash only).\n2. **Is address attacker-controlled?** Check if `addr` in the ASan report\n   correlates with bytes from the fuzz input.\n3. **Is there a canary?** `checksec --file=\u002Fworkspace\u002Fbuild-afl\u002Fharness`.\n   No canary on a stack overflow = trivially exploitable.\n4. **Unique crash count:** Run `afl-whatsup -s \u002Fworkspace\u002Ffindings\u002Fafl\u002F`.\n   Deduplicate by first 3 frames of the stack trace.\n\n```bash\n# Deduplicate crashes by backtrace hash (quick)\nfor f in \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:*; do\n  ASAN_OPTIONS=halt_on_error=1 \\\n  \u002Fworkspace\u002Fbuild-afl\u002Fharness \"$f\" 2>&1 | \\\n  grep \"^    #[0-2] \" | md5sum | cut -d' ' -f1\ndone | sort | uniq -c | sort -rn | head -20\n```\n\n## 10. Persist and validate crash evidence\n\nFor each unique crash, preserve:\n\n- the minimized input and its SHA-256;\n- complete sanitizer output and the first stable stack frames;\n- pinned compiler, sanitizer, and target-binary build identity;\n- the exact reproduction command;\n- a benign corpus input run through the same harness.\n\nUse ``validate_workspace_finding`` with the crash signature as the positive\nsignal and the benign execution as the negative control. Save its JSON output\nunder ``findings\u002Fevidence\u002F`` before creating a finding. A sanitizer line alone\nis a triage lead; a reportable issue needs a reproducible minimized input and a\nbaseline that does not emit the same signature.\n\n## Tools Quick Reference\n\n| Tool | Install | Use |\n|------|---------|-----|\n| `afl-fuzz` | `apt install afl++` | Coverage-guided mutation fuzzer |\n| `afl-clang-fast` | bundled with afl++ | Instrumented compilation |\n| `afl-tmin` | bundled | Test case minimization |\n| `afl-cmin` | bundled | Corpus minimization |\n| `afl-whatsup` | bundled | Multi-instance status summary |\n| libFuzzer | clang built-in | In-process fuzzer (LLVM) |\n| `cargo fuzz` | `cargo install cargo-fuzz` | Rust fuzzing (libFuzzer backend) |\n","# Coverage-Guided Fuzzing Playbook\n\nFind memory-corruption and logic bugs by systematically mutating inputs\nwhile tracking code coverage. Works on parsers, network protocol\nhandlers, file format readers, crypto implementations.\n\n## 1. Target Scoping\n\nBefore writing a harness, answer:\n- What is the attack surface? (file parser \u002F network socket \u002F library API)\n- What input format does the target consume? (binary struct \u002F text \u002F TLV)\n- Is source available? (instrumented build) or binary-only? (QEMU\u002FFrida mode)\n\n```bash\n# Quick API surface for a library\nnm -D \u002Fworkspace\u002Ftarget.so | grep ' T ' | awk '{print $3}' | sort > \u002Fworkspace\u002Fexports.txt\n# or via radare2\nr2 -q -e bin.demangle=true -c \"aaa; afl~pub\" \u002Fworkspace\u002Ftarget.so 2>\u002Fdev\u002Fnull | head -40\n```\n\n## 2. Fuzzer Selection\n\n| Scenario | Fuzzer | Rationale |\n|----------|--------|-----------|\n| Source available, C\u002FC++ | AFL++ | Best coverage feedback, mutator ecosystem |\n| Source available, any lang | libFuzzer | In-process, lower overhead, LLVM native |\n| Binary-only | AFL++ QEMU mode | `AFL_USE_QEMU=1` |\n| Binary-only (faster) | AFL++ Frida mode | Lighter than QEMU on some targets |\n| Multi-CPU farm | AFL++ + honggfuzz | honggfuzz for socket fuzzing |\n| Go \u002F Rust | native `go-fuzz` \u002F `cargo fuzz` | Language-native instrumentation |\n| Network protocol daemon | AFL++ persistent + preeny | Desock the accept() loop |\n\n## 3. Instrumented Build (source-available)\n\n```bash\n# AFL++\nCC=afl-clang-fast CXX=afl-clang-fast++ \\\n  cmake -DCMAKE_BUILD_TYPE=Debug \\\n        -DCMAKE_C_FLAGS=\"-fsanitize=address,undefined -g -O1\" \\\n        -DCMAKE_CXX_FLAGS=\"-fsanitize=address,undefined -g -O1\" \\\n        -S \u002Fworkspace\u002Fsrc -B \u002Fworkspace\u002Fbuild-afl\ncmake --build \u002Fworkspace\u002Fbuild-afl -j$(nproc)\n\n# libFuzzer (alternative)\nCC=clang CXX=clang++ \\\n  cmake -DCMAKE_BUILD_TYPE=Debug \\\n        -DCMAKE_C_FLAGS=\"-fsanitize=fuzzer,address,undefined -g\" \\\n        -DCMAKE_CXX_FLAGS=\"-fsanitize=fuzzer,address,undefined -g\" \\\n        -S \u002Fworkspace\u002Fsrc -B \u002Fworkspace\u002Fbuild-lf\ncmake --build \u002Fworkspace\u002Fbuild-lf -j$(nproc)\n```\n\nMinimum sanitizer flags: `-fsanitize=address,undefined`. Add\n`-fsanitize=memory` (MSan) on a separate build for uninit reads.\nDo NOT combine MSan with ASan — they conflict.\n\n## 4. Harness Skeleton\n\n### AFL++ persistent-mode harness (C)\n```c\n\u002F* harness.c — compile with afl-clang-fast *\u002F\n#include \u003Cstdint.h>\n#include \u003Cstring.h>\n\n\u002F* Include target headers *\u002F\n#include \"target_api.h\"\n\n\u002F* AFL++ persistent mode — loops inside the same process (~20x faster) *\u002F\n__AFL_FUZZ_INIT();\n\nint main(void) {\n    __AFL_INIT();\n    const uint8_t *buf = __AFL_FUZZ_TESTCASE_BUF;\n    while (__AFL_LOOP(10000)) {\n        size_t len = __AFL_FUZZ_TESTCASE_LEN;\n        \u002F* Call the target function directly *\u002F\n        target_parse(buf, len);   \u002F* replace with actual API *\u002F\n    }\n    return 0;\n}\n```\n\n### libFuzzer target (C)\n```c\n\u002F* fuzz_target.cc *\u002F\n#include \u003Cstdint.h>\n#include \u003Cstddef.h>\n#include \"target_api.h\"\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F* Wrap any setup in thread_local or static init if needed *\u002F\n    target_parse(data, size);\n    return 0;  \u002F* non-zero aborts fuzzer *\u002F\n}\n```\n\nKey harness rules:\n- Allocate nothing that leaks between iterations (use arena or reset)\n- Do not call `exit()` or `abort()` inside the harness — let ASan terminate\n- Minimize initialization overhead outside the fuzz loop\n- If target needs a null-terminated string: `strndup((char*)data, size)`\n\n## 5. Seed Corpus Curation\n\n```bash\n# Create corpus dir\nmkdir -p \u002Fworkspace\u002Fcorpus\u002Finitial\n\n# If target is a file parser, seed with real samples\nfind \u002Fusr\u002Fshare -name \"*.png\" 2>\u002Fdev\u002Fnull | head -10 | \\\n  xargs -I{} cp {} \u002Fworkspace\u002Fcorpus\u002Finitial\u002F\n\n# For binary protocols, create minimal valid inputs by hand\n# For text protocols, minimal valid requests:\nprintf 'GET \u002F HTTP\u002F1.0\\r\\n\\r\\n' > \u002Fworkspace\u002Fcorpus\u002Finitial\u002Fhttp_get.bin\n\n# AFL++ minimize corpus to remove redundant seeds\nafl-cmin -i \u002Fworkspace\u002Fcorpus\u002Finitial \\\n         -o \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n         -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\nGood seed = valid, minimal, diverse. 5–50 seeds beats 5000 random bytes.\n\n## 6. Run AFL++\n\n```bash\nmkdir -p \u002Fworkspace\u002Ffindings\u002Fafl\n\n# Single-core\nAFL_SKIP_CPUFREQ=1 \\\nAFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 \\\nafl-fuzz \\\n  -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl \\\n  -t 1000 \\           # timeout per testcase (ms)\n  -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n\n# Multi-core (1 main + N-1 secondary)\n# Main:\nafl-fuzz -M main-fuzzer -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n# Secondary (run in parallel):\nafl-fuzz -S sec-01 -i \u002Fworkspace\u002Fcorpus\u002Fminimized \\\n  -o \u002Fworkspace\u002Ffindings\u002Fafl -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\n### Key AFL++ environment flags\n\n| Flag | Effect |\n|------|--------|\n| `AFL_USE_ASAN=1` | Enable ASan in afl-fuzz without recompile |\n| `AFL_DISABLE_TRIM=1` | Skip trim step (faster iteration) |\n| `AFL_FAST_CAL=1` | Reduce calibration cycles |\n| `AFL_CUSTOM_MUTATOR_LIBRARY` | Load grammar\u002Fstructure-aware mutator |\n| `AFL_LLVM_CMPLOG=1` + `-c cmplog_binary` | Token extraction from cmp instructions |\n\n## 7. Run libFuzzer\n\n```bash\nmkdir -p \u002Fworkspace\u002Ffindings\u002Flf \u002Fworkspace\u002Fcorpus\u002Flf-work\n\n# Merge initial corpus into working corpus first\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \\\n  -merge=1 \\\n  \u002Fworkspace\u002Fcorpus\u002Flf-work \\\n  \u002Fworkspace\u002Fcorpus\u002Fminimized\n\n# Fuzz with ASAN_OPTIONS for cleaner reports\nASAN_OPTIONS=halt_on_error=1:print_stats=1 \\\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \\\n  -max_total_time=3600 \\\n  -artifact_prefix=\u002Fworkspace\u002Ffindings\u002Flf\u002F \\\n  -jobs=$(nproc) \\\n  -workers=$(nproc) \\\n  \u002Fworkspace\u002Fcorpus\u002Flf-work\n```\n\n## 8. Crash Triage\n\n### Reproduce a crash\n```bash\n# AFL++ crash\nASAN_OPTIONS=halt_on_error=1:print_stacktrace=1 \\\n\u002Fworkspace\u002Fbuild-afl\u002Fharness \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:000000*\n\n# libFuzzer crash\nASAN_OPTIONS=halt_on_error=1:print_stacktrace=1 \\\n\u002Fworkspace\u002Fbuild-lf\u002Ffuzz_target \u002Fworkspace\u002Ffindings\u002Flf\u002Fcrash-*\n```\n\n### Minimize crash (AFL++)\n```bash\nafl-tmin \\\n  -i \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:000000 \\\n  -o \u002Fworkspace\u002Ffindings\u002Fcrash-min.bin \\\n  -- \u002Fworkspace\u002Fbuild-afl\u002Fharness @@\n```\n\n### Parse crash output\n\n| ASan report prefix | Bug class | Exploitability |\n|-------------------|-----------|---------------|\n| `heap-buffer-overflow` | OOB read\u002Fwrite on heap | Write → HIGH, Read → MEDIUM |\n| `stack-buffer-overflow` | OOB on stack | Often HIGH (canary missing → RCE) |\n| `heap-use-after-free` | UAF | HIGH — check if write capability |\n| `global-buffer-overflow` | OOB on global | Context-dependent |\n| `null-dereference` | NULL deref | LOW-MEDIUM (usually DoS) |\n| `double-free` | Double free | HIGH in glibc \u003C 2.35 |\n| UBSan `signed-integer-overflow` | Integer overflow | Context-dependent |\n| UBSan `shift-exponent` | Undefined shift | Usually LOW |\n\n## 9. Exploitability Rubric\n\nAssess each unique crash:\n\n1. **Is it write or read?** Write-anywhere = HIGH. Read = may still be HIGH\n   (information leak) or MEDIUM (crash only).\n2. **Is address attacker-controlled?** Check if `addr` in the ASan report\n   correlates with bytes from the fuzz input.\n3. **Is there a canary?** `checksec --file=\u002Fworkspace\u002Fbuild-afl\u002Fharness`.\n   No canary on a stack overflow = trivially exploitable.\n4. **Unique crash count:** Run `afl-whatsup -s \u002Fworkspace\u002Ffindings\u002Fafl\u002F`.\n   Deduplicate by first 3 frames of the stack trace.\n\n```bash\n# Deduplicate crashes by backtrace hash (quick)\nfor f in \u002Fworkspace\u002Ffindings\u002Fafl\u002Fdefault\u002Fcrashes\u002Fid:*; do\n  ASAN_OPTIONS=halt_on_error=1 \\\n  \u002Fworkspace\u002Fbuild-afl\u002Fharness \"$f\" 2>&1 | \\\n  grep \"^    #[0-2] \" | md5sum | cut -d' ' -f1\ndone | sort | uniq -c | sort -rn | head -20\n```\n\n## 10. Persist and validate crash evidence\n\nFor each unique crash, preserve:\n\n- the minimized input and its SHA-256;\n- complete sanitizer output and the first stable stack frames;\n- pinned compiler, sanitizer, and target-binary build identity;\n- the exact reproduction command;\n- a benign corpus input run through the same harness.\n\nUse ``validate_workspace_finding`` with the crash signature as the positive\nsignal and the benign execution as the negative control. Save its JSON output\nunder ``findings\u002Fevidence\u002F`` before creating a finding. A sanitizer line alone\nis a triage lead; a reportable issue needs a reproducible minimized input and a\nbaseline that does not emit the same signature.\n\n## Tools Quick Reference\n\n| Tool | Install | Use |\n|------|---------|-----|\n| `afl-fuzz` | `apt install afl++` | Coverage-guided mutation fuzzer |\n| `afl-clang-fast` | bundled with afl++ | Instrumented compilation |\n| `afl-tmin` | bundled | Test case minimization |\n| `afl-cmin` | bundled | Corpus minimization |\n| `afl-whatsup` | bundled | Multi-instance status summary |\n| libFuzzer | clang built-in | In-process fuzzer (LLVM) |\n| `cargo fuzz` | `cargo install cargo-fuzz` | Rust fuzzing (libFuzzer backend) |\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"fuzzing, afl++, libfuzzer, honggfuzz, asan, harness, crash-triage","reverse-engineering","fuzz fuzzing afl afl++ libfuzzer honggfuzz harness crash triage coverage guided afl-tmin sanitizer asan ubsan corpus","T1587.004, T1203","Bash Read Write","master","8e5d356b795eae2edd4a26509a4b8968e2c4c251","packages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Freverser\u002Ffuzzing","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix","https:\u002F\u002Fgithub.com\u002FAkapi895","2026-11-06 17:46:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Akapi895\u002Fraptix --skill fuzzing",{"tool":42,"command":43},"bunx","bunx skills add Akapi895\u002Fraptix --skill fuzzing",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Akapi895\u002Fraptix --skill fuzzing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Freverser\u002Ffuzzing\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7DGM32SRP4FZSPYWY621BKQ","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DGKXXVDTY0KBZZR83VFPZX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DGKSV77ENX3D6TG2HQX9MK","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DGKJ9R6YTFRFBSEAJRGGKF","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DGKCFZGKK2EQMWZM1A18S8","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DGK76MKZQWBXTZN82W7214","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]