[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78J4RY45EZSBHBDWQRN398X":3,"skill-same:01M78J4RY45EZSBHBDWQRN398X":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78J4RY45EZSBHBDWQRN398X","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'.","dnzengou\u002Fevo-decepticon","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M78GP0FED2V1CDPB1N6G0CTH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\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. Promote to KG\n\nFor each confirmed unique crash:\n\n```\nkg_add_node(\"vulnerability\",\n  label=\"heap-buffer-overflow in target_parse()\",\n  props={\n    \"crash_input\": \"\u002Fworkspace\u002Ffindings\u002Fcrash-min.bin\",\n    \"class\": \"heap-buffer-overflow\",\n    \"asan_report_summary\": \"WRITE of size 1 at 0x... heap base+0x28\",\n    \"exploitability\": \"HIGH\",\n    \"repro\": \"ASAN_OPTIONS=halt_on_error=1 .\u002Fharness crash-min.bin\",\n    \"key\": \"fuzzing:heap-bof-target-parse\"\n  })\n```\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| honggfuzz | `apt install honggfuzz` | Good for network\u002Fsocket targets |\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. Promote to KG\n\nFor each confirmed unique crash:\n\n```\nkg_add_node(\"vulnerability\",\n  label=\"heap-buffer-overflow in target_parse()\",\n  props={\n    \"crash_input\": \"\u002Fworkspace\u002Ffindings\u002Fcrash-min.bin\",\n    \"class\": \"heap-buffer-overflow\",\n    \"asan_report_summary\": \"WRITE of size 1 at 0x... heap base+0x28\",\n    \"exploitability\": \"HIGH\",\n    \"repro\": \"ASAN_OPTIONS=halt_on_error=1 .\u002Fharness crash-min.bin\",\n    \"key\": \"fuzzing:heap-bof-target-parse\"\n  })\n```\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| honggfuzz | `apt install honggfuzz` | Good for network\u002Fsocket targets |\n| `cargo fuzz` | `cargo install cargo-fuzz` | Rust fuzzing (libFuzzer backend) |\n",{"name":5,"metadata":23,"description":7,"allowed-tools":28},{"tags":24,"subdomain":25,"when_to_use":26,"mitre_attack":27},"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","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Freverser\u002Ffuzzing","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill fuzzing",{"tool":41,"command":42},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill fuzzing",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill fuzzing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Freverser\u002Ffuzzing\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M78JAX15GZR5Q5S7RMPWFX43","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M78JARXE0ZER8P81SFD024YP","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M78JANJNH8VMR0CK1Y6AM74G","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M78JAFCYR2BAJF7KH0ZCXREA","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78JAAQ5T08FR9MY5SFNRWBM","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78JA6799JQZE0M9B21HRMGY","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]