[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DSSR5YRXR8BPS0RXDMSBWQ":3,"skill-same:01M6DSSR5YRXR8BPS0RXDMSBWQ":292},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":60,"install":61,"resources":74},"01M6DSSR5YRXR8BPS0RXDMSBWQ","zeroize-audit",null,"Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","AntifragileTech\u002Fantifragile-claude-code","AntifragileTech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F174357194?v=4","01M6DQCYMK4CDSQQAN0ZC72NTV","01M6DQCYS9YPW1WKMQ5TJMPQ43",9,"MIT","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"zeroize audit","audit","read","missing","get","project","c++","activate","assembly","overview","write","MCP","Bash","secrets","analysis","data","flow","verification","code","rust","2026-11-10 10:12:30",false,"---\nname: zeroize-audit\ndescription: \"Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.\"\nallowed-tools:\n  - Read\n  - Grep\n  - Glob\n  - Bash\n  - Write\n  - Task\n  - AskUserQuestion\n  - mcp__serena__activate_project\n  - mcp__serena__find_symbol\n  - mcp__serena__find_referencing_symbols\n  - mcp__serena__get_symbols_overview\n---\n\n# zeroize-audit — Claude Skill\n\n## When to Use\n- Auditing cryptographic implementations (keys, seeds, nonces, secrets)\n- Reviewing authentication systems (passwords, tokens, session data)\n- Analyzing code that handles PII or sensitive credentials\n- Verifying secure cleanup in security-critical codebases\n- Investigating memory safety of sensitive data handling\n\n## When NOT to Use\n- General code review without security focus\n- Performance optimization (unless related to secure wiping)\n- Refactoring tasks not related to sensitive data\n- Code without identifiable secrets or sensitive values\n\n---\n\n## Purpose\nDetect missing zeroization of sensitive data in source code and identify zeroization that is removed or weakened by compiler optimizations (e.g., dead-store elimination), with mandatory LLVM IR\u002Fasm evidence. Capabilities include:\n- Assembly-level analysis for register spills and stack retention\n- Data-flow tracking for secret copies\n- Heap allocator security warnings\n- Semantic IR analysis for loop unrolling and SSA form\n- Control-flow graph analysis for path coverage verification\n- Runtime validation test generation\n\n## Scope\n- Read-only against the target codebase (does not modify audited code; writes analysis artifacts to a temporary working directory).\n- Produces a structured report (JSON).\n- Requires valid build context (`compile_commands.json`) and compilable translation units.\n- \"Optimized away\" findings only allowed with compiler evidence (IR\u002Fasm diff).\n\n---\n\n## Inputs\n\nSee `{baseDir}\u002Fschemas\u002Finput.json` for the full schema. Key fields:\n\n| Field | Required | Default | Description |\n|---|---|---|---|\n| `path` | yes | — | Repo root |\n| `compile_db` | no | `null` | Path to `compile_commands.json` for C\u002FC++ analysis. Required if `cargo_manifest` is not set. |\n| `cargo_manifest` | no | `null` | Path to `Cargo.toml` for Rust crate analysis. Required if `compile_db` is not set. |\n| `config` | no | — | YAML defining heuristics and approved wipes |\n| `opt_levels` | no | `[\"O0\",\"O1\",\"O2\"]` | Optimization levels for IR comparison. O1 is the diagnostic level: if a wipe disappears at O1 it is simple DSE; O2 catches more aggressive eliminations. |\n| `languages` | no | `[\"c\",\"cpp\",\"rust\"]` | Languages to analyze |\n| `max_tus` | no | — | Limit on translation units processed from compile DB |\n| `mcp_mode` | no | `prefer` | `off`, `prefer`, or `require` — controls Serena MCP usage |\n| `mcp_required_for_advanced` | no | `true` | Downgrade `SECRET_COPY`, `MISSING_ON_ERROR_PATH`, and `NOT_DOMINATING_EXITS` to `needs_review` when MCP is unavailable |\n| `mcp_timeout_ms` | no | — | Timeout budget for MCP semantic queries |\n| `poc_categories` | no | all 11 exploitable | Finding categories for which to generate PoCs. C\u002FC++ findings: all 11 categories supported. Rust findings: only `MISSING_SOURCE_ZEROIZE`, `SECRET_COPY`, and `PARTIAL_WIPE` are supported; other Rust categories are marked `poc_supported=false`. |\n| `poc_output_dir` | no | `generated_pocs\u002F` | Output directory for generated PoCs |\n| `enable_asm` | no | `true` | Enable assembly emission and analysis (Step 8); produces `STACK_RETENTION`, `REGISTER_SPILL`. Auto-disabled if `emit_asm.sh` is missing. |\n| `enable_semantic_ir` | no | `false` | Enable semantic LLVM IR analysis (Step 9); produces `LOOP_UNROLLED_INCOMPLETE` |\n| `enable_cfg` | no | `false` | Enable control-flow graph analysis (Step 10); produces `MISSING_ON_ERROR_PATH`, `NOT_DOMINATING_EXITS` |\n| `enable_runtime_tests` | no | `false` | Enable runtime test harness generation (Step 11) |\n\n---\n\n## Prerequisites\n\nBefore running, verify the following. Each has a defined failure mode.\n\n**C\u002FC++ prerequisites:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `compile_commands.json` at `compile_db` path | Fail fast — do not proceed |\n| `clang` on PATH | Fail fast — IR\u002FASM analysis impossible |\n| `uvx` on PATH (for Serena) | If `mcp_mode=require`: fail. If `mcp_mode=prefer`: continue without MCP; downgrade affected findings per Confidence Gating rules. |\n| `{baseDir}\u002Ftools\u002Fextract_compile_flags.py` | Fail fast — cannot extract per-TU flags |\n| `{baseDir}\u002Ftools\u002Femit_ir.sh` | Fail fast — IR analysis impossible |\n| `{baseDir}\u002Ftools\u002Femit_asm.sh` | Warn and skip assembly findings (STACK_RETENTION, REGISTER_SPILL) |\n| `{baseDir}\u002Ftools\u002Fmcp\u002Fcheck_mcp.sh` | Warn and treat as MCP unavailable |\n| `{baseDir}\u002Ftools\u002Fmcp\u002Fnormalize_mcp_evidence.py` | Warn and use raw MCP output |\n\n**Rust prerequisites:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `Cargo.toml` at `cargo_manifest` path | Fail fast — do not proceed |\n| `cargo check` passes | Fail fast — crate must be buildable |\n| `cargo +nightly` on PATH | Fail fast — nightly required for MIR and LLVM IR emission |\n| `uv` on PATH | Fail fast — required to run Python analysis scripts |\n| `{baseDir}\u002Ftools\u002Fvalidate_rust_toolchain.sh` | Warn — run preflight manually. Checks all tools, scripts, nightly, and optionally `cargo check`. Use `--json` for machine-readable output, `--manifest` to also validate the crate builds. |\n| `{baseDir}\u002Ftools\u002Femit_rust_mir.sh` | Fail fast — MIR analysis impossible (`--opt`, `--crate`, `--bin\u002F--lib` supported; `--out` can be file or directory) |\n| `{baseDir}\u002Ftools\u002Femit_rust_ir.sh` | Fail fast — LLVM IR analysis impossible (`--opt` required; `--crate`, `--bin\u002F--lib` supported; `--out` must be `.ll`) |\n| `{baseDir}\u002Ftools\u002Femit_rust_asm.sh` | Warn and skip assembly findings (`STACK_RETENTION`, `REGISTER_SPILL`). Supports `--opt`, `--crate`, `--bin\u002F--lib`, `--target`, `--intel-syntax`; `--out` can be `.s` file or directory. |\n| `{baseDir}\u002Ftools\u002Fdiff_rust_mir.sh` | Warn and skip MIR-level optimization comparison. Accepts 2+ MIR files, normalizes, diffs pairwise, and reports first opt level where zeroize\u002Fdrop-glue patterns disappear. |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fsemantic_audit.py` | Warn and skip semantic source analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Ffind_dangerous_apis.py` | Warn and skip dangerous API scan |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_mir_patterns.py` | Warn and skip MIR analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_llvm_patterns.py` | Warn and skip LLVM IR analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm.py` | Warn and skip Rust assembly analysis (`STACK_RETENTION`, `REGISTER_SPILL`, drop-glue checks). Dispatches to `check_rust_asm_x86.py` (production) or `check_rust_asm_aarch64.py` (**EXPERIMENTAL** — AArch64 findings require manual verification). |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_x86.py` | Required by `check_rust_asm.py` for x86-64 analysis; warn and skip if missing |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_aarch64.py` | Required by `check_rust_asm.py` for AArch64 analysis (**EXPERIMENTAL**); warn and skip if missing |\n\n**Common prerequisite:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `{baseDir}\u002Ftools\u002Fgenerate_poc.py` | Fail fast — PoC generation is mandatory |\n\n---\n\n## Approved Wipe APIs\n\nThe following are recognized as valid zeroization. Configure additional entries in `{baseDir}\u002Fconfigs\u002F`.\n\n**C\u002FC++**\n- `explicit_bzero`\n- `memset_s`\n- `SecureZeroMemory`\n- `OPENSSL_cleanse`\n- `sodium_memzero`\n- Volatile wipe loops (pattern-based; see `volatile_wipe_patterns` in `{baseDir}\u002Fconfigs\u002Fdefault.yaml`)\n- In IR: `llvm.memset` with volatile flag, volatile stores, or non-elidable wipe call\n\n**Rust**\n- `zeroize::Zeroize` trait (`zeroize()` method)\n- `Zeroizing\u003CT>` wrapper (drop-based)\n- `ZeroizeOnDrop` derive macro\n\n---\n\n## Finding Capabilities\n\nFindings are grouped by required evidence. Only attempt findings for which the required tooling is available.\n\n| Finding ID | Description | Requires | PoC Support |\n|---|---|---|---|\n| `MISSING_SOURCE_ZEROIZE` | No zeroization found in source | Source only | Yes (C\u002FC++ + Rust) |\n| `PARTIAL_WIPE` | Incorrect size or incomplete wipe | Source only | Yes (C\u002FC++ + Rust) |\n| `NOT_ON_ALL_PATHS` | Zeroization missing on some control-flow paths (heuristic) | Source only | Yes (C\u002FC++ only) |\n| `SECRET_COPY` | Sensitive data copied without zeroization tracking | Source + MCP preferred | Yes (C\u002FC++ + Rust) |\n| `INSECURE_HEAP_ALLOC` | Secret uses insecure allocator (malloc vs. secure_malloc) | Source only | Yes (C\u002FC++ only) |\n| `OPTIMIZED_AWAY_ZEROIZE` | Compiler removed zeroization | IR diff required (never source-only) | Yes |\n| `STACK_RETENTION` | Stack frame may retain secrets after return | Assembly required (C\u002FC++); LLVM IR `alloca`+`lifetime.end` evidence (Rust); assembly corroboration upgrades to `confirmed` | Yes (C\u002FC++ only) |\n| `REGISTER_SPILL` | Secrets spilled from registers to stack | Assembly required (C\u002FC++); LLVM IR `load`+call-site evidence (Rust); assembly corroboration upgrades to `confirmed` | Yes (C\u002FC++ only) |\n| `MISSING_ON_ERROR_PATH` | Error-handling paths lack cleanup | CFG or MCP required | Yes |\n| `NOT_DOMINATING_EXITS` | Wipe doesn't dominate all exits | CFG or MCP required | Yes |\n| `LOOP_UNROLLED_INCOMPLETE` | Unrolled loop wipe is incomplete | Semantic IR required | Yes |\n\n---\n\n## Agent Architecture\n\nThe analysis pipeline uses 11 agents across 8 phases, invoked by the orchestrator (`{baseDir}\u002Fprompts\u002Ftask.md`) via `Task`. Agents write persistent finding files to a shared working directory (`\u002Ftmp\u002Fzeroize-audit-{run_id}\u002F`), enabling parallel execution and protecting against context pressure.\n\n| Agent | Phase | Purpose | Output Directory |\n|---|---|---|---|\n| `0-preflight` | Phase 0 | Preflight checks (tools, toolchain, compile DB, crate build), config merge, workdir creation, TU enumeration | `{workdir}\u002F` |\n| `1-mcp-resolver` | Phase 1, Wave 1 (C\u002FC++ only) | Resolve symbols, types, and cross-file references via Serena MCP | `mcp-evidence\u002F` |\n| `2-source-analyzer` | Phase 1, Wave 2a (C\u002FC++ only) | Identify sensitive objects, detect wipes, validate correctness, data-flow\u002Fheap | `source-analysis\u002F` |\n| `2b-rust-source-analyzer` | Phase 1, Wave 2b (Rust only, parallel with 2a) | Rustdoc JSON trait-aware analysis + dangerous API grep | `source-analysis\u002F` |\n| `3-tu-compiler-analyzer` | Phase 2, Wave 3 (C\u002FC++ only, N parallel) | Per-TU IR diff, assembly, semantic IR, CFG analysis | `compiler-analysis\u002F{tu_hash}\u002F` |\n| `3b-rust-compiler-analyzer` | Phase 2, Wave 3R (Rust only, single agent) | Crate-level MIR, LLVM IR, and assembly analysis | `rust-compiler-analysis\u002F` |\n| `4-report-assembler` | Phase 3 (interim) + Phase 6 (final) | Collect findings from all agents, apply confidence gates; merge PoC results and produce final report | `report\u002F` |\n| `5-poc-generator` | Phase 4 | Craft bespoke proof-of-concept programs (C\u002FC++: all categories; Rust: MISSING_SOURCE_ZEROIZE, SECRET_COPY, PARTIAL_WIPE) | `poc\u002F` |\n| `5b-poc-validator` | Phase 5 | Compile and run all PoCs | `poc\u002F` |\n| `5c-poc-verifier` | Phase 5 | Verify each PoC proves its claimed finding | `poc\u002F` |\n| `6-test-generator` | Phase 7 (optional) | Generate runtime validation test harnesses | `tests\u002F` |\n\nThe orchestrator reads one per-phase workflow file from `{baseDir}\u002Fworkflows\u002F` at a time, and maintains `orchestrator-state.json` for recovery after context compression. Agents receive configuration by file path (`config_path`), not by value.\n\n### Execution flow\n\n```\nPhase 0: 0-preflight agent — Preflight + config + create workdir + enumerate TUs\n           → writes orchestrator-state.json, merged-config.yaml, preflight.json\nPhase 1: Wave 1:  1-mcp-resolver              (skip if mcp_mode=off OR language_mode=rust)\n         Wave 2a: 2-source-analyzer           (C\u002FC++ only; skip if no compile_db)  ─┐ parallel\n         Wave 2b: 2b-rust-source-analyzer     (Rust only; skip if no cargo_manifest) ─┘\nPhase 2: Wave 3:  3-tu-compiler-analyzer x N  (C\u002FC++ only; parallel per TU)\n         Wave 3R: 3b-rust-compiler-analyzer   (Rust only; single crate-level agent)\nPhase 3: Wave 4:  4-report-assembler          (mode=interim → findings.json; reads all agent outputs)\nPhase 4: Wave 5:  5-poc-generator             (C\u002FC++: all categories; Rust: MISSING_SOURCE_ZEROIZE, SECRET_COPY, PARTIAL_WIPE; other Rust findings: poc_supported=false)\nPhase 5: PoC Validation & Verification\n           Step 1: 5b-poc-validator agent      (compile and run all PoCs)\n           Step 2: 5c-poc-verifier agent       (verify each PoC proves its claimed finding)\n           Step 3: Orchestrator presents verification failures to user via AskUserQuestion\n           Step 4: Orchestrator merges all results into poc_final_results.json\nPhase 6: Wave 6: 4-report-assembler           (mode=final → merge PoC results, final-report.md)\nPhase 7: Wave 7: 6-test-generator             (optional)\nPhase 8: Orchestrator — Return final-report.md\n```\n\n## Cross-Reference Convention\n\nIDs are namespaced per agent to prevent collisions during parallel execution:\n\n| Entity | Pattern | Assigned By |\n|---|---|---|\n| Sensitive object (C\u002FC++) | `SO-0001`–`SO-4999` | `2-source-analyzer` |\n| Sensitive object (Rust) | `SO-5000`–`SO-9999` (Rust namespace) | `2b-rust-source-analyzer` |\n| Source finding (C\u002FC++) | `F-SRC-NNNN` | `2-source-analyzer` |\n| Source finding (Rust) | `F-RUST-SRC-NNNN` | `2b-rust-source-analyzer` |\n| IR finding (C\u002FC++) | `F-IR-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| ASM finding (C\u002FC++) | `F-ASM-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| CFG finding | `F-CFG-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| Semantic IR finding | `F-SIR-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| Rust MIR finding | `F-RUST-MIR-NNNN` | `3b-rust-compiler-analyzer` |\n| Rust LLVM IR finding | `F-RUST-IR-NNNN` | `3b-rust-compiler-analyzer` |\n| Rust assembly finding | `F-RUST-ASM-NNNN` | `3b-rust-compiler-analyzer` |\n| Translation unit | `TU-{hash}` | Orchestrator |\n| Final finding | `ZA-NNNN` | `4-report-assembler` |\n\nEvery finding JSON object includes `related_objects`, `related_findings`, and `evidence_files` fields for cross-referencing between agents.\n\n---\n\n## Detection Strategy\n\nAnalysis runs in two phases. For complete step-by-step guidance, see `{baseDir}\u002Freferences\u002Fdetection-strategy.md`.\n\n| Phase | Steps | Findings produced | Required tooling |\n|---|---|---|---|\n| Phase 1 (Source) | 1–6 | `MISSING_SOURCE_ZEROIZE`, `PARTIAL_WIPE`, `NOT_ON_ALL_PATHS`, `SECRET_COPY`, `INSECURE_HEAP_ALLOC` | Source + compile DB |\n| Phase 2 (Compiler) | 7–12 | `OPTIMIZED_AWAY_ZEROIZE`, `STACK_RETENTION`*, `REGISTER_SPILL`*, `LOOP_UNROLLED_INCOMPLETE`†, `MISSING_ON_ERROR_PATH`‡, `NOT_DOMINATING_EXITS`‡ | `clang`, IR\u002FASM tools |\n\n\\* requires `enable_asm=true` (default)\n† requires `enable_semantic_ir=true`\n‡ requires `enable_cfg=true`\n\n---\n\n\n## Output Format\n\nEach run produces two outputs:\n\n1. **`final-report.md`** — Comprehensive markdown report (primary human-readable output)\n2. **`findings.json`** — Structured JSON matching `{baseDir}\u002Fschemas\u002Foutput.json` (for machine consumption and downstream tools)\n\n### Markdown Report Structure\n\nThe markdown report (`final-report.md`) contains these sections:\n\n- **Header**: Run metadata (run_id, timestamp, repo, compile_db, config summary)\n- **Executive Summary**: Finding counts by severity, confidence, and category\n- **Sensitive Objects Inventory**: Table of all identified objects with IDs, types, locations\n- **Findings**: Grouped by severity then confidence. Each finding includes location, object, all evidence (source\u002FIR\u002FASM\u002FCFG), compiler evidence details, and recommended fix\n- **Superseded Findings**: Source findings replaced by CFG-backed findings\n- **Confidence Gate Summary**: Downgrades applied and overrides rejected\n- **Analysis Coverage**: TUs analyzed, agent success\u002Ffailure, features enabled\n- **Appendix: Evidence Files**: Mapping of finding IDs to evidence file paths\n\n### Structured JSON\n\nThe `findings.json` file follows the schema in `{baseDir}\u002Fschemas\u002Foutput.json`. Each `Finding` object:\n\n```json\n{\n  \"id\": \"ZA-0001\",\n  \"category\": \"OPTIMIZED_AWAY_ZEROIZE\",\n  \"severity\": \"high\",\n  \"confidence\": \"confirmed\",\n  \"language\": \"c\",\n  \"file\": \"src\u002Fcrypto.c\",\n  \"line\": 42,\n  \"symbol\": \"key_buf\",\n  \"evidence\": \"store volatile i8 0 count: O0=32, O2=0 — wipe eliminated by DSE\",\n  \"compiler_evidence\": {\n    \"opt_levels\": [\"O0\", \"O2\"],\n    \"o0\": \"32 volatile stores targeting key_buf\",\n    \"o2\": \"0 volatile stores (all eliminated)\",\n    \"diff_summary\": \"All volatile wipe stores removed at O2 — classic DSE pattern\"\n  },\n  \"suggested_fix\": \"Replace memset with explicit_bzero or add compiler_fence(SeqCst) after the wipe\",\n  \"poc\": {\n    \"file\": \"generated_pocs\u002FZA-0001.c\",\n    \"makefile_target\": \"ZA-0001\",\n    \"compile_opt\": \"-O2\",\n    \"requires_manual_adjustment\": false,\n    \"validated\": true,\n    \"validation_result\": \"exploitable\"\n  }\n}\n```\n\nSee `{baseDir}\u002Fschemas\u002Foutput.json` for the full schema and enum values.\n\n---\n\n## Confidence Gating\n\n### Evidence thresholds\n\nA finding requires at least **2 independent signals** to be marked `confirmed`. With 1 signal, mark `likely`. With 0 strong signals (name-pattern match only), mark `needs_review`.\n\nSignals include: name pattern match, type hint match, explicit annotation, IR evidence, ASM evidence, MCP cross-reference, CFG evidence, PoC validation.\n\n### PoC validation as evidence signal\n\nEvery finding is validated against a bespoke PoC. After compilation and execution, each PoC is also verified to ensure it actually tests the claimed vulnerability. The combined result is an evidence signal:\n\n| PoC Result | Verified | Impact |\n|---|---|---|\n| Exit 0 (exploitable) | Yes | Strong signal — can upgrade `likely` to `confirmed` |\n| Exit 1 (not exploitable) | Yes | Downgrade severity to `low` (informational); retain in report |\n| Exit 0 or 1 | No (user accepted) | Weaker signal — note verification failure in evidence |\n| Exit 0 or 1 | No (user rejected) | No confidence change; annotate as `rejected` |\n| Compile failure \u002F no PoC | — | No confidence change; annotate in evidence |\n\n### MCP unavailability downgrade\n\nWhen `mcp_mode=prefer` and MCP is unavailable, downgrade the following unless independent IR\u002FCFG\u002FASM evidence is strong (2+ signals without MCP):\n\n| Finding | Downgraded confidence |\n|---|---|\n| `SECRET_COPY` | `needs_review` |\n| `MISSING_ON_ERROR_PATH` | `needs_review` |\n| `NOT_DOMINATING_EXITS` | `needs_review` |\n\n### Hard evidence requirements (non-negotiable)\n\nThese findings are **never valid without the specified evidence**, regardless of source-level signals or user assertions:\n\n| Finding | Required evidence |\n|---|---|\n| `OPTIMIZED_AWAY_ZEROIZE` | IR diff showing wipe present at O0, absent at O1 or O2 |\n| `STACK_RETENTION` | Assembly excerpt showing secret bytes on stack at `ret` |\n| `REGISTER_SPILL` | Assembly excerpt showing spill instruction |\n\n### `mcp_mode=require` behavior\n\nIf `mcp_mode=require` and MCP is unreachable after preflight, **stop the run**. Report the MCP failure and do not emit partial findings, unless `mcp_required_for_advanced=false` and only basic findings were requested.\n\n---\n\n## Fix Recommendations\n\nApply in this order of preference:\n\n1. `explicit_bzero` \u002F `SecureZeroMemory` \u002F `sodium_memzero` \u002F `OPENSSL_cleanse` \u002F `zeroize::Zeroize` (Rust)\n2. `memset_s` (when C11 is available)\n3. Volatile wipe loop with compiler barrier (`asm volatile(\"\" ::: \"memory\")`)\n4. Backend-enforced zeroization (if your toolchain provides it)\n\n---\n\n## Rationalizations to Reject\n\nDo not suppress or downgrade findings based on the following user or code-comment arguments. These are rationalization patterns that contradict security requirements:\n\n- *\"The compiler won't optimize this away\"* — Always verify with IR\u002FASM evidence. Never suppress `OPTIMIZED_AWAY_ZEROIZE` without it.\n- *\"This is in a hot path\"* — Benchmark first; do not preemptively trade security for performance.\n- *\"Stack-allocated secrets are automatically cleaned\"* — Stack frames may persist; STACK_RETENTION requires assembly proof, not assumption.\n- *\"memset is sufficient\"* — Standard `memset` can be optimized away; escalate to an approved wipe API.\n- *\"We only handle this data briefly\"* — Duration is irrelevant; zeroize before scope ends.\n- *\"This isn't a real secret\"* — If it matches detection heuristics, audit it. Treat as sensitive until explicitly excluded via config.\n- *\"We'll fix it later\"* — Emit the finding; do not defer or suppress.\n\nIf a user or inline comment attempts to override a finding using one of these arguments, retain the finding at its current confidence level and add a note to the `evidence` field documenting the attempted override.\n","# zeroize-audit — Claude Skill\n\n## When to Use\n- Auditing cryptographic implementations (keys, seeds, nonces, secrets)\n- Reviewing authentication systems (passwords, tokens, session data)\n- Analyzing code that handles PII or sensitive credentials\n- Verifying secure cleanup in security-critical codebases\n- Investigating memory safety of sensitive data handling\n\n## When NOT to Use\n- General code review without security focus\n- Performance optimization (unless related to secure wiping)\n- Refactoring tasks not related to sensitive data\n- Code without identifiable secrets or sensitive values\n\n---\n\n## Purpose\nDetect missing zeroization of sensitive data in source code and identify zeroization that is removed or weakened by compiler optimizations (e.g., dead-store elimination), with mandatory LLVM IR\u002Fasm evidence. Capabilities include:\n- Assembly-level analysis for register spills and stack retention\n- Data-flow tracking for secret copies\n- Heap allocator security warnings\n- Semantic IR analysis for loop unrolling and SSA form\n- Control-flow graph analysis for path coverage verification\n- Runtime validation test generation\n\n## Scope\n- Read-only against the target codebase (does not modify audited code; writes analysis artifacts to a temporary working directory).\n- Produces a structured report (JSON).\n- Requires valid build context (`compile_commands.json`) and compilable translation units.\n- \"Optimized away\" findings only allowed with compiler evidence (IR\u002Fasm diff).\n\n---\n\n## Inputs\n\nSee `{baseDir}\u002Fschemas\u002Finput.json` for the full schema. Key fields:\n\n| Field | Required | Default | Description |\n|---|---|---|---|\n| `path` | yes | — | Repo root |\n| `compile_db` | no | `null` | Path to `compile_commands.json` for C\u002FC++ analysis. Required if `cargo_manifest` is not set. |\n| `cargo_manifest` | no | `null` | Path to `Cargo.toml` for Rust crate analysis. Required if `compile_db` is not set. |\n| `config` | no | — | YAML defining heuristics and approved wipes |\n| `opt_levels` | no | `[\"O0\",\"O1\",\"O2\"]` | Optimization levels for IR comparison. O1 is the diagnostic level: if a wipe disappears at O1 it is simple DSE; O2 catches more aggressive eliminations. |\n| `languages` | no | `[\"c\",\"cpp\",\"rust\"]` | Languages to analyze |\n| `max_tus` | no | — | Limit on translation units processed from compile DB |\n| `mcp_mode` | no | `prefer` | `off`, `prefer`, or `require` — controls Serena MCP usage |\n| `mcp_required_for_advanced` | no | `true` | Downgrade `SECRET_COPY`, `MISSING_ON_ERROR_PATH`, and `NOT_DOMINATING_EXITS` to `needs_review` when MCP is unavailable |\n| `mcp_timeout_ms` | no | — | Timeout budget for MCP semantic queries |\n| `poc_categories` | no | all 11 exploitable | Finding categories for which to generate PoCs. C\u002FC++ findings: all 11 categories supported. Rust findings: only `MISSING_SOURCE_ZEROIZE`, `SECRET_COPY`, and `PARTIAL_WIPE` are supported; other Rust categories are marked `poc_supported=false`. |\n| `poc_output_dir` | no | `generated_pocs\u002F` | Output directory for generated PoCs |\n| `enable_asm` | no | `true` | Enable assembly emission and analysis (Step 8); produces `STACK_RETENTION`, `REGISTER_SPILL`. Auto-disabled if `emit_asm.sh` is missing. |\n| `enable_semantic_ir` | no | `false` | Enable semantic LLVM IR analysis (Step 9); produces `LOOP_UNROLLED_INCOMPLETE` |\n| `enable_cfg` | no | `false` | Enable control-flow graph analysis (Step 10); produces `MISSING_ON_ERROR_PATH`, `NOT_DOMINATING_EXITS` |\n| `enable_runtime_tests` | no | `false` | Enable runtime test harness generation (Step 11) |\n\n---\n\n## Prerequisites\n\nBefore running, verify the following. Each has a defined failure mode.\n\n**C\u002FC++ prerequisites:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `compile_commands.json` at `compile_db` path | Fail fast — do not proceed |\n| `clang` on PATH | Fail fast — IR\u002FASM analysis impossible |\n| `uvx` on PATH (for Serena) | If `mcp_mode=require`: fail. If `mcp_mode=prefer`: continue without MCP; downgrade affected findings per Confidence Gating rules. |\n| `{baseDir}\u002Ftools\u002Fextract_compile_flags.py` | Fail fast — cannot extract per-TU flags |\n| `{baseDir}\u002Ftools\u002Femit_ir.sh` | Fail fast — IR analysis impossible |\n| `{baseDir}\u002Ftools\u002Femit_asm.sh` | Warn and skip assembly findings (STACK_RETENTION, REGISTER_SPILL) |\n| `{baseDir}\u002Ftools\u002Fmcp\u002Fcheck_mcp.sh` | Warn and treat as MCP unavailable |\n| `{baseDir}\u002Ftools\u002Fmcp\u002Fnormalize_mcp_evidence.py` | Warn and use raw MCP output |\n\n**Rust prerequisites:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `Cargo.toml` at `cargo_manifest` path | Fail fast — do not proceed |\n| `cargo check` passes | Fail fast — crate must be buildable |\n| `cargo +nightly` on PATH | Fail fast — nightly required for MIR and LLVM IR emission |\n| `uv` on PATH | Fail fast — required to run Python analysis scripts |\n| `{baseDir}\u002Ftools\u002Fvalidate_rust_toolchain.sh` | Warn — run preflight manually. Checks all tools, scripts, nightly, and optionally `cargo check`. Use `--json` for machine-readable output, `--manifest` to also validate the crate builds. |\n| `{baseDir}\u002Ftools\u002Femit_rust_mir.sh` | Fail fast — MIR analysis impossible (`--opt`, `--crate`, `--bin\u002F--lib` supported; `--out` can be file or directory) |\n| `{baseDir}\u002Ftools\u002Femit_rust_ir.sh` | Fail fast — LLVM IR analysis impossible (`--opt` required; `--crate`, `--bin\u002F--lib` supported; `--out` must be `.ll`) |\n| `{baseDir}\u002Ftools\u002Femit_rust_asm.sh` | Warn and skip assembly findings (`STACK_RETENTION`, `REGISTER_SPILL`). Supports `--opt`, `--crate`, `--bin\u002F--lib`, `--target`, `--intel-syntax`; `--out` can be `.s` file or directory. |\n| `{baseDir}\u002Ftools\u002Fdiff_rust_mir.sh` | Warn and skip MIR-level optimization comparison. Accepts 2+ MIR files, normalizes, diffs pairwise, and reports first opt level where zeroize\u002Fdrop-glue patterns disappear. |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fsemantic_audit.py` | Warn and skip semantic source analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Ffind_dangerous_apis.py` | Warn and skip dangerous API scan |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_mir_patterns.py` | Warn and skip MIR analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_llvm_patterns.py` | Warn and skip LLVM IR analysis |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm.py` | Warn and skip Rust assembly analysis (`STACK_RETENTION`, `REGISTER_SPILL`, drop-glue checks). Dispatches to `check_rust_asm_x86.py` (production) or `check_rust_asm_aarch64.py` (**EXPERIMENTAL** — AArch64 findings require manual verification). |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_x86.py` | Required by `check_rust_asm.py` for x86-64 analysis; warn and skip if missing |\n| `{baseDir}\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_aarch64.py` | Required by `check_rust_asm.py` for AArch64 analysis (**EXPERIMENTAL**); warn and skip if missing |\n\n**Common prerequisite:**\n\n| Prerequisite | Failure mode if missing |\n|---|---|\n| `{baseDir}\u002Ftools\u002Fgenerate_poc.py` | Fail fast — PoC generation is mandatory |\n\n---\n\n## Approved Wipe APIs\n\nThe following are recognized as valid zeroization. Configure additional entries in `{baseDir}\u002Fconfigs\u002F`.\n\n**C\u002FC++**\n- `explicit_bzero`\n- `memset_s`\n- `SecureZeroMemory`\n- `OPENSSL_cleanse`\n- `sodium_memzero`\n- Volatile wipe loops (pattern-based; see `volatile_wipe_patterns` in `{baseDir}\u002Fconfigs\u002Fdefault.yaml`)\n- In IR: `llvm.memset` with volatile flag, volatile stores, or non-elidable wipe call\n\n**Rust**\n- `zeroize::Zeroize` trait (`zeroize()` method)\n- `Zeroizing\u003CT>` wrapper (drop-based)\n- `ZeroizeOnDrop` derive macro\n\n---\n\n## Finding Capabilities\n\nFindings are grouped by required evidence. Only attempt findings for which the required tooling is available.\n\n| Finding ID | Description | Requires | PoC Support |\n|---|---|---|---|\n| `MISSING_SOURCE_ZEROIZE` | No zeroization found in source | Source only | Yes (C\u002FC++ + Rust) |\n| `PARTIAL_WIPE` | Incorrect size or incomplete wipe | Source only | Yes (C\u002FC++ + Rust) |\n| `NOT_ON_ALL_PATHS` | Zeroization missing on some control-flow paths (heuristic) | Source only | Yes (C\u002FC++ only) |\n| `SECRET_COPY` | Sensitive data copied without zeroization tracking | Source + MCP preferred | Yes (C\u002FC++ + Rust) |\n| `INSECURE_HEAP_ALLOC` | Secret uses insecure allocator (malloc vs. secure_malloc) | Source only | Yes (C\u002FC++ only) |\n| `OPTIMIZED_AWAY_ZEROIZE` | Compiler removed zeroization | IR diff required (never source-only) | Yes |\n| `STACK_RETENTION` | Stack frame may retain secrets after return | Assembly required (C\u002FC++); LLVM IR `alloca`+`lifetime.end` evidence (Rust); assembly corroboration upgrades to `confirmed` | Yes (C\u002FC++ only) |\n| `REGISTER_SPILL` | Secrets spilled from registers to stack | Assembly required (C\u002FC++); LLVM IR `load`+call-site evidence (Rust); assembly corroboration upgrades to `confirmed` | Yes (C\u002FC++ only) |\n| `MISSING_ON_ERROR_PATH` | Error-handling paths lack cleanup | CFG or MCP required | Yes |\n| `NOT_DOMINATING_EXITS` | Wipe doesn't dominate all exits | CFG or MCP required | Yes |\n| `LOOP_UNROLLED_INCOMPLETE` | Unrolled loop wipe is incomplete | Semantic IR required | Yes |\n\n---\n\n## Agent Architecture\n\nThe analysis pipeline uses 11 agents across 8 phases, invoked by the orchestrator (`{baseDir}\u002Fprompts\u002Ftask.md`) via `Task`. Agents write persistent finding files to a shared working directory (`\u002Ftmp\u002Fzeroize-audit-{run_id}\u002F`), enabling parallel execution and protecting against context pressure.\n\n| Agent | Phase | Purpose | Output Directory |\n|---|---|---|---|\n| `0-preflight` | Phase 0 | Preflight checks (tools, toolchain, compile DB, crate build), config merge, workdir creation, TU enumeration | `{workdir}\u002F` |\n| `1-mcp-resolver` | Phase 1, Wave 1 (C\u002FC++ only) | Resolve symbols, types, and cross-file references via Serena MCP | `mcp-evidence\u002F` |\n| `2-source-analyzer` | Phase 1, Wave 2a (C\u002FC++ only) | Identify sensitive objects, detect wipes, validate correctness, data-flow\u002Fheap | `source-analysis\u002F` |\n| `2b-rust-source-analyzer` | Phase 1, Wave 2b (Rust only, parallel with 2a) | Rustdoc JSON trait-aware analysis + dangerous API grep | `source-analysis\u002F` |\n| `3-tu-compiler-analyzer` | Phase 2, Wave 3 (C\u002FC++ only, N parallel) | Per-TU IR diff, assembly, semantic IR, CFG analysis | `compiler-analysis\u002F{tu_hash}\u002F` |\n| `3b-rust-compiler-analyzer` | Phase 2, Wave 3R (Rust only, single agent) | Crate-level MIR, LLVM IR, and assembly analysis | `rust-compiler-analysis\u002F` |\n| `4-report-assembler` | Phase 3 (interim) + Phase 6 (final) | Collect findings from all agents, apply confidence gates; merge PoC results and produce final report | `report\u002F` |\n| `5-poc-generator` | Phase 4 | Craft bespoke proof-of-concept programs (C\u002FC++: all categories; Rust: MISSING_SOURCE_ZEROIZE, SECRET_COPY, PARTIAL_WIPE) | `poc\u002F` |\n| `5b-poc-validator` | Phase 5 | Compile and run all PoCs | `poc\u002F` |\n| `5c-poc-verifier` | Phase 5 | Verify each PoC proves its claimed finding | `poc\u002F` |\n| `6-test-generator` | Phase 7 (optional) | Generate runtime validation test harnesses | `tests\u002F` |\n\nThe orchestrator reads one per-phase workflow file from `{baseDir}\u002Fworkflows\u002F` at a time, and maintains `orchestrator-state.json` for recovery after context compression. Agents receive configuration by file path (`config_path`), not by value.\n\n### Execution flow\n\n```\nPhase 0: 0-preflight agent — Preflight + config + create workdir + enumerate TUs\n           → writes orchestrator-state.json, merged-config.yaml, preflight.json\nPhase 1: Wave 1:  1-mcp-resolver              (skip if mcp_mode=off OR language_mode=rust)\n         Wave 2a: 2-source-analyzer           (C\u002FC++ only; skip if no compile_db)  ─┐ parallel\n         Wave 2b: 2b-rust-source-analyzer     (Rust only; skip if no cargo_manifest) ─┘\nPhase 2: Wave 3:  3-tu-compiler-analyzer x N  (C\u002FC++ only; parallel per TU)\n         Wave 3R: 3b-rust-compiler-analyzer   (Rust only; single crate-level agent)\nPhase 3: Wave 4:  4-report-assembler          (mode=interim → findings.json; reads all agent outputs)\nPhase 4: Wave 5:  5-poc-generator             (C\u002FC++: all categories; Rust: MISSING_SOURCE_ZEROIZE, SECRET_COPY, PARTIAL_WIPE; other Rust findings: poc_supported=false)\nPhase 5: PoC Validation & Verification\n           Step 1: 5b-poc-validator agent      (compile and run all PoCs)\n           Step 2: 5c-poc-verifier agent       (verify each PoC proves its claimed finding)\n           Step 3: Orchestrator presents verification failures to user via AskUserQuestion\n           Step 4: Orchestrator merges all results into poc_final_results.json\nPhase 6: Wave 6: 4-report-assembler           (mode=final → merge PoC results, final-report.md)\nPhase 7: Wave 7: 6-test-generator             (optional)\nPhase 8: Orchestrator — Return final-report.md\n```\n\n## Cross-Reference Convention\n\nIDs are namespaced per agent to prevent collisions during parallel execution:\n\n| Entity | Pattern | Assigned By |\n|---|---|---|\n| Sensitive object (C\u002FC++) | `SO-0001`–`SO-4999` | `2-source-analyzer` |\n| Sensitive object (Rust) | `SO-5000`–`SO-9999` (Rust namespace) | `2b-rust-source-analyzer` |\n| Source finding (C\u002FC++) | `F-SRC-NNNN` | `2-source-analyzer` |\n| Source finding (Rust) | `F-RUST-SRC-NNNN` | `2b-rust-source-analyzer` |\n| IR finding (C\u002FC++) | `F-IR-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| ASM finding (C\u002FC++) | `F-ASM-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| CFG finding | `F-CFG-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| Semantic IR finding | `F-SIR-{tu_hash}-NNNN` | `3-tu-compiler-analyzer` |\n| Rust MIR finding | `F-RUST-MIR-NNNN` | `3b-rust-compiler-analyzer` |\n| Rust LLVM IR finding | `F-RUST-IR-NNNN` | `3b-rust-compiler-analyzer` |\n| Rust assembly finding | `F-RUST-ASM-NNNN` | `3b-rust-compiler-analyzer` |\n| Translation unit | `TU-{hash}` | Orchestrator |\n| Final finding | `ZA-NNNN` | `4-report-assembler` |\n\nEvery finding JSON object includes `related_objects`, `related_findings`, and `evidence_files` fields for cross-referencing between agents.\n\n---\n\n## Detection Strategy\n\nAnalysis runs in two phases. For complete step-by-step guidance, see `{baseDir}\u002Freferences\u002Fdetection-strategy.md`.\n\n| Phase | Steps | Findings produced | Required tooling |\n|---|---|---|---|\n| Phase 1 (Source) | 1–6 | `MISSING_SOURCE_ZEROIZE`, `PARTIAL_WIPE`, `NOT_ON_ALL_PATHS`, `SECRET_COPY`, `INSECURE_HEAP_ALLOC` | Source + compile DB |\n| Phase 2 (Compiler) | 7–12 | `OPTIMIZED_AWAY_ZEROIZE`, `STACK_RETENTION`*, `REGISTER_SPILL`*, `LOOP_UNROLLED_INCOMPLETE`†, `MISSING_ON_ERROR_PATH`‡, `NOT_DOMINATING_EXITS`‡ | `clang`, IR\u002FASM tools |\n\n\\* requires `enable_asm=true` (default)\n† requires `enable_semantic_ir=true`\n‡ requires `enable_cfg=true`\n\n---\n\n\n## Output Format\n\nEach run produces two outputs:\n\n1. **`final-report.md`** — Comprehensive markdown report (primary human-readable output)\n2. **`findings.json`** — Structured JSON matching `{baseDir}\u002Fschemas\u002Foutput.json` (for machine consumption and downstream tools)\n\n### Markdown Report Structure\n\nThe markdown report (`final-report.md`) contains these sections:\n\n- **Header**: Run metadata (run_id, timestamp, repo, compile_db, config summary)\n- **Executive Summary**: Finding counts by severity, confidence, and category\n- **Sensitive Objects Inventory**: Table of all identified objects with IDs, types, locations\n- **Findings**: Grouped by severity then confidence. Each finding includes location, object, all evidence (source\u002FIR\u002FASM\u002FCFG), compiler evidence details, and recommended fix\n- **Superseded Findings**: Source findings replaced by CFG-backed findings\n- **Confidence Gate Summary**: Downgrades applied and overrides rejected\n- **Analysis Coverage**: TUs analyzed, agent success\u002Ffailure, features enabled\n- **Appendix: Evidence Files**: Mapping of finding IDs to evidence file paths\n\n### Structured JSON\n\nThe `findings.json` file follows the schema in `{baseDir}\u002Fschemas\u002Foutput.json`. Each `Finding` object:\n\n```json\n{\n  \"id\": \"ZA-0001\",\n  \"category\": \"OPTIMIZED_AWAY_ZEROIZE\",\n  \"severity\": \"high\",\n  \"confidence\": \"confirmed\",\n  \"language\": \"c\",\n  \"file\": \"src\u002Fcrypto.c\",\n  \"line\": 42,\n  \"symbol\": \"key_buf\",\n  \"evidence\": \"store volatile i8 0 count: O0=32, O2=0 — wipe eliminated by DSE\",\n  \"compiler_evidence\": {\n    \"opt_levels\": [\"O0\", \"O2\"],\n    \"o0\": \"32 volatile stores targeting key_buf\",\n    \"o2\": \"0 volatile stores (all eliminated)\",\n    \"diff_summary\": \"All volatile wipe stores removed at O2 — classic DSE pattern\"\n  },\n  \"suggested_fix\": \"Replace memset with explicit_bzero or add compiler_fence(SeqCst) after the wipe\",\n  \"poc\": {\n    \"file\": \"generated_pocs\u002FZA-0001.c\",\n    \"makefile_target\": \"ZA-0001\",\n    \"compile_opt\": \"-O2\",\n    \"requires_manual_adjustment\": false,\n    \"validated\": true,\n    \"validation_result\": \"exploitable\"\n  }\n}\n```\n\nSee `{baseDir}\u002Fschemas\u002Foutput.json` for the full schema and enum values.\n\n---\n\n## Confidence Gating\n\n### Evidence thresholds\n\nA finding requires at least **2 independent signals** to be marked `confirmed`. With 1 signal, mark `likely`. With 0 strong signals (name-pattern match only), mark `needs_review`.\n\nSignals include: name pattern match, type hint match, explicit annotation, IR evidence, ASM evidence, MCP cross-reference, CFG evidence, PoC validation.\n\n### PoC validation as evidence signal\n\nEvery finding is validated against a bespoke PoC. After compilation and execution, each PoC is also verified to ensure it actually tests the claimed vulnerability. The combined result is an evidence signal:\n\n| PoC Result | Verified | Impact |\n|---|---|---|\n| Exit 0 (exploitable) | Yes | Strong signal — can upgrade `likely` to `confirmed` |\n| Exit 1 (not exploitable) | Yes | Downgrade severity to `low` (informational); retain in report |\n| Exit 0 or 1 | No (user accepted) | Weaker signal — note verification failure in evidence |\n| Exit 0 or 1 | No (user rejected) | No confidence change; annotate as `rejected` |\n| Compile failure \u002F no PoC | — | No confidence change; annotate in evidence |\n\n### MCP unavailability downgrade\n\nWhen `mcp_mode=prefer` and MCP is unavailable, downgrade the following unless independent IR\u002FCFG\u002FASM evidence is strong (2+ signals without MCP):\n\n| Finding | Downgraded confidence |\n|---|---|\n| `SECRET_COPY` | `needs_review` |\n| `MISSING_ON_ERROR_PATH` | `needs_review` |\n| `NOT_DOMINATING_EXITS` | `needs_review` |\n\n### Hard evidence requirements (non-negotiable)\n\nThese findings are **never valid without the specified evidence**, regardless of source-level signals or user assertions:\n\n| Finding | Required evidence |\n|---|---|\n| `OPTIMIZED_AWAY_ZEROIZE` | IR diff showing wipe present at O0, absent at O1 or O2 |\n| `STACK_RETENTION` | Assembly excerpt showing secret bytes on stack at `ret` |\n| `REGISTER_SPILL` | Assembly excerpt showing spill instruction |\n\n### `mcp_mode=require` behavior\n\nIf `mcp_mode=require` and MCP is unreachable after preflight, **stop the run**. Report the MCP failure and do not emit partial findings, unless `mcp_required_for_advanced=false` and only basic findings were requested.\n\n---\n\n## Fix Recommendations\n\nApply in this order of preference:\n\n1. `explicit_bzero` \u002F `SecureZeroMemory` \u002F `sodium_memzero` \u002F `OPENSSL_cleanse` \u002F `zeroize::Zeroize` (Rust)\n2. `memset_s` (when C11 is available)\n3. Volatile wipe loop with compiler barrier (`asm volatile(\"\" ::: \"memory\")`)\n4. Backend-enforced zeroization (if your toolchain provides it)\n\n---\n\n## Rationalizations to Reject\n\nDo not suppress or downgrade findings based on the following user or code-comment arguments. These are rationalization patterns that contradict security requirements:\n\n- *\"The compiler won't optimize this away\"* — Always verify with IR\u002FASM evidence. Never suppress `OPTIMIZED_AWAY_ZEROIZE` without it.\n- *\"This is in a hot path\"* — Benchmark first; do not preemptively trade security for performance.\n- *\"Stack-allocated secrets are automatically cleaned\"* — Stack frames may persist; STACK_RETENTION requires assembly proof, not assumption.\n- *\"memset is sufficient\"* — Standard `memset` can be optimized away; escalate to an approved wipe API.\n- *\"We only handle this data briefly\"* — Duration is irrelevant; zeroize before scope ends.\n- *\"This isn't a real secret\"* — If it matches detection heuristics, audit it. Treat as sensitive until explicitly excluded via config.\n- *\"We'll fix it later\"* — Emit the finding; do not defer or suppress.\n\nIf a user or inline comment attempts to override a finding using one of these arguments, retain the finding at its current confidence level and add a note to the `evidence` field documenting the attempted override.\n",{"name":5,"description":7,"allowed-tools":43},[44,45,46,30,47,48,49,50,51,52,53],"Read","Grep","Glob","Write","Task","AskUserQuestion","mcp__serena__activate_project","mcp__serena__find_symbol","mcp__serena__find_referencing_symbols","mcp__serena__get_symbols_overview","master","c73386b305dec167db7654e0e6feacb462d4f9dc","assets\u002Fskills\u002Fsecurity\u002Fzeroize-audit",1,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code","https:\u002F\u002Fgithub.com\u002FAntifragileTech","2026-10-02 14:22:14",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add AntifragileTech\u002Fantifragile-claude-code --skill zeroize-audit",{"tool":67,"command":68},"bunx","bunx skills add AntifragileTech\u002Fantifragile-claude-code --skill zeroize-audit",{"tool":70,"command":71},"pnpm","pnpm dlx skills add AntifragileTech\u002Fantifragile-claude-code --skill zeroize-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002FSKILL.md",true,[75,81,85,89,93,96,99,102,105,108,112,116,120,123,127,131,135,139,143,147,151,155,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,260,264,268,272,276,280,284,288],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"algorithms.md","REFERENCE","参考文档",0,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Falgorithms.md",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"configs\u002Fc.yaml",456,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fconfigs\u002Fc.yaml",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"configs\u002Fdefault.yaml",3955,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fconfigs\u002Fdefault.yaml",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"configs\u002Frust.yaml",3263,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fconfigs\u002Frust.yaml",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":95},"failure_modes.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Ffailure_modes.md",{"path":97,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":98},"formulas.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Fformulas.md",{"path":100,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":101},"implementation_notes.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Fimplementation_notes.md",{"path":103,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":104},"integration_arbitragex.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Fintegration_arbitragex.md",{"path":106,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":107},"manifest.json","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Fmanifest.json",{"path":109,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":110,"sourceHtmlUrl":111},"prompts\u002Freport_template.md",6681,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fprompts\u002Freport_template.md",{"path":113,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":114,"sourceHtmlUrl":115},"prompts\u002Fsystem.md",8128,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fprompts\u002Fsystem.md",{"path":117,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":118,"sourceHtmlUrl":119},"prompts\u002Ftask.md",4428,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fprompts\u002Ftask.md",{"path":121,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":122},"references.json","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Freferences.json",{"path":124,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fcompile-commands.md",10160,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Fcompile-commands.md",{"path":128,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdetection-strategy.md",10187,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Fdetection-strategy.md",{"path":132,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fir-analysis.md",11195,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Fir-analysis.md",{"path":136,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fmcp-analysis.md",9257,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Fmcp-analysis.md",{"path":140,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fpoc-generation.md",21651,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Fpoc-generation.md",{"path":144,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":145,"sourceHtmlUrl":146},"references\u002Frust-zeroization-patterns.md",35542,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Freferences\u002Frust-zeroization-patterns.md",{"path":148,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":149,"sourceHtmlUrl":150},"schemas\u002Finput.json",3174,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fschemas\u002Finput.json",{"path":152,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":153,"sourceHtmlUrl":154},"schemas\u002Foutput.json",6040,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fschemas\u002Foutput.json",{"path":156,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":159,"sourceHtmlUrl":160},"tools\u002Fanalyze_asm.sh","SCRIPT","脚本",5286,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fanalyze_asm.sh",{"path":162,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":163,"sourceHtmlUrl":164},"tools\u002Fanalyze_cfg.py",13056,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fanalyze_cfg.py",{"path":166,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":167,"sourceHtmlUrl":168},"tools\u002Fanalyze_heap.sh",5580,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fanalyze_heap.sh",{"path":170,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":171,"sourceHtmlUrl":172},"tools\u002Fanalyze_ir_semantic.py",15149,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fanalyze_ir_semantic.py",{"path":174,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":175,"sourceHtmlUrl":176},"tools\u002Fdiff_ir.sh",4111,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fdiff_ir.sh",{"path":178,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":179,"sourceHtmlUrl":180},"tools\u002Fdiff_rust_mir.sh",6397,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fdiff_rust_mir.sh",{"path":182,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":183,"sourceHtmlUrl":184},"tools\u002Femit_asm.sh",1026,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Femit_asm.sh",{"path":186,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":187,"sourceHtmlUrl":188},"tools\u002Femit_ir.sh",1340,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Femit_ir.sh",{"path":190,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":191,"sourceHtmlUrl":192},"tools\u002Femit_rust_asm.sh",4337,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Femit_rust_asm.sh",{"path":194,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":195,"sourceHtmlUrl":196},"tools\u002Femit_rust_ir.sh",3411,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Femit_rust_ir.sh",{"path":198,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":199,"sourceHtmlUrl":200},"tools\u002Femit_rust_mir.sh",3536,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Femit_rust_mir.sh",{"path":202,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":203,"sourceHtmlUrl":204},"tools\u002Fextract_compile_flags.py",8782,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fextract_compile_flags.py",{"path":206,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":207,"sourceHtmlUrl":208},"tools\u002Fgenerate_poc.py",48412,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fgenerate_poc.py",{"path":210,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":211,"sourceHtmlUrl":212},"tools\u002Fmcp\u002Fapply_confidence_gates.py",3374,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fmcp\u002Fapply_confidence_gates.py",{"path":214,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":215,"sourceHtmlUrl":216},"tools\u002Fmcp\u002Fcheck_mcp.sh",1251,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fmcp\u002Fcheck_mcp.sh",{"path":218,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":219,"sourceHtmlUrl":220},"tools\u002Fmcp\u002Fnormalize_mcp_evidence.py",3906,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fmcp\u002Fnormalize_mcp_evidence.py",{"path":222,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":223,"sourceHtmlUrl":224},"tools\u002Fscripts\u002Fcheck_llvm_patterns.py",17576,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fcheck_llvm_patterns.py",{"path":226,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":227,"sourceHtmlUrl":228},"tools\u002Fscripts\u002Fcheck_mir_patterns.py",19399,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fcheck_mir_patterns.py",{"path":230,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":231,"sourceHtmlUrl":232},"tools\u002Fscripts\u002Fcheck_rust_asm_aarch64.py",10246,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_aarch64.py",{"path":234,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":235,"sourceHtmlUrl":236},"tools\u002Fscripts\u002Fcheck_rust_asm_x86.py",9587,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fcheck_rust_asm_x86.py",{"path":238,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":239,"sourceHtmlUrl":240},"tools\u002Fscripts\u002Fcheck_rust_asm.py",16243,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fcheck_rust_asm.py",{"path":242,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":243,"sourceHtmlUrl":244},"tools\u002Fscripts\u002Ffind_dangerous_apis.py",14132,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Ffind_dangerous_apis.py",{"path":246,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":247,"sourceHtmlUrl":248},"tools\u002Fscripts\u002Fsemantic_audit.py",33243,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fscripts\u002Fsemantic_audit.py",{"path":250,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":251,"sourceHtmlUrl":252},"tools\u002Ftrack_dataflow.sh",5209,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Ftrack_dataflow.sh",{"path":254,"resourceType":157,"resourceTypeDesc":158,"sizeBytes":255,"sourceHtmlUrl":256},"tools\u002Fvalidate_rust_toolchain.sh",8434,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Ftools\u002Fvalidate_rust_toolchain.sh",{"path":258,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":259},"validation_tests.md","https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002F.claude\u002Fagents\u002Fskills\u002Fautonomous-skill-learning-pipeline\u002Fvalidation_tests.md",{"path":261,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":262,"sourceHtmlUrl":263},"workflows\u002Fphase-0-preflight.md",7476,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-0-preflight.md",{"path":265,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":266,"sourceHtmlUrl":267},"workflows\u002Fphase-1-source-analysis.md",4814,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-1-source-analysis.md",{"path":269,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":270,"sourceHtmlUrl":271},"workflows\u002Fphase-2-compiler-analysis.md",5441,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-2-compiler-analysis.md",{"path":273,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":274,"sourceHtmlUrl":275},"workflows\u002Fphase-3-interim-report.md",1054,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-3-interim-report.md",{"path":277,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":278,"sourceHtmlUrl":279},"workflows\u002Fphase-4-poc-generation.md",1209,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-4-poc-generation.md",{"path":281,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":282,"sourceHtmlUrl":283},"workflows\u002Fphase-5-poc-validation.md",4088,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-5-poc-validation.md",{"path":285,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":286,"sourceHtmlUrl":287},"workflows\u002Fphase-6-final-report.md",1071,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-6-final-report.md",{"path":289,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":290,"sourceHtmlUrl":291},"workflows\u002Fphase-7-test-generation.md",769,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fsecurity\u002Fzeroize-audit\u002Fworkflows\u002Fphase-7-test-generation.md",[293,306,318,329,341,353],{"skillNo":294,"name":295,"nameZh":6,"description":296,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":297,"categories":298,"keywords":299,"publishedAt":38},"01M6DT9Q6VYA615SCXR757TZZ7","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-skills\u002FSKILL.md",[],[300,301,302,303,304,305],"writing skills","writing","use","editing","work","deployment",{"skillNo":307,"name":308,"nameZh":6,"description":309,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":310,"categories":311,"keywords":312,"publishedAt":38},"01M6DT9GFHDNY90P41WGAE1TV0","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-plans\u002FSKILL.md",[],[313,314,301,315,316,302,36,317],"plans","writing plans","requirements","task","spec",{"skillNo":319,"name":320,"nameZh":6,"description":321,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":322,"categories":323,"keywords":324,"publishedAt":38},"01M6DT9C6PFGD86WS3HY7YE3XG","docs:write-concisely","Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwrite-concisely\u002FSKILL.md",[],[325,28,326,20,327,328,301],"docs:write concisely","docs","Rules","documentation",{"skillNo":330,"name":331,"nameZh":6,"description":332,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":333,"categories":334,"keywords":335,"publishedAt":38},"01M6DT98AWQ27P0N1CG97WAG66","kaizen:why","Iterative Five Whys root cause analysis drilling from symptoms to fundamentals","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwhy\u002FSKILL.md",[],[331,336,337,338,339,32,340],"why","kaizen","issue","five whys","root cause analysis",{"skillNo":342,"name":343,"nameZh":6,"description":344,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":345,"categories":346,"keywords":347,"publishedAt":38},"01M6DT93EH25NAX19R3WGE1P53","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-loop\u002FSKILL.md",[],[348,35,349,350,36,351,352],"verification loop","loop","sessions","claude code sessions","system",{"skillNo":354,"name":355,"nameZh":6,"description":356,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":357,"categories":358,"keywords":359,"publishedAt":38},"01M6DT90GW7Z7VCN98P9DVYSNC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-before-completion\u002FSKILL.md",[],[360,35,361,304,302,362,363,364],"verification before completion","commands","evidence","claim","complete"]