Zeroize Audit
Description
Audits C/C++/Rust code for missing zeroization and compiler-removed wipes. Pipeline: source scan → MCP/LSP semantic context → IR diff → assembly/MIR checks.
Installation
Installs to ~/.claude/skills/zeroize-audit/
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills \
&& mkdir -p ~/.claude/skills \
&& cp -r /tmp/skills/plugins/zeroize-audit ~/.claude/skills/zeroize-audit Clones the whole repository, because a skill folder can carry scripts and resources beside its SKILL.md.
Repository README
This is the README for trailofbits/skills, shared by 13 entries
in this directory. It describes the repository, not this entry specifically.
zeroize-audit (Claude Skill)
Audits C/C++/Rust code for missing zeroization and compiler-removed wipes. Pipeline: source scan → MCP/LSP semantic context → IR diff → assembly/MIR checks.
Findings
MISSING_SOURCE_ZEROIZE,PARTIAL_WIPE,NOT_ON_ALL_PATHSOPTIMIZED_AWAY_ZEROIZE(IR evidence required)REGISTER_SPILL,STACK_RETENTION(assembly evidence required for C/C++; LLVM IR evidence for Rust + optional assembly corroboration)SECRET_COPY,INSECURE_HEAP_ALLOCMISSING_ON_ERROR_PATH,NOT_DOMINATING_EXITS,LOOP_UNROLLED_INCOMPLETE
Prerequisites
C/C++
compile_commands.jsonis required (compile_dbinput field).- Codebase must be buildable with commands from the compile DB.
- Required tools:
clang,uvx(for Serena MCP server),python3.
which clang uvx python3
Rust
Cargo.tomlpath is required (cargo_manifestinput field).- Crate must be buildable (
cargo checkpasses). - Required tools:
cargo +nightlytoolchain,uv.
# Quick check
cargo +nightly --version
uv --version
# Full preflight validation (checks all tools, scripts, and optionally crate build)
tools/validate_rust_toolchain.sh --manifest path/to/Cargo.toml
tools/validate_rust_toolchain.sh --manifest path/to/Cargo.toml --json # machine-readable
Generate compile_commands.json (C/C++)
**CMake**
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
**Make/Bear**
bear -- make -j$(nproc)
Usage
**C/C++ only:**
{ "path": ".", "compile_db": "compile_commands.json" }
**Rust only:**
{ "path": ".", "cargo_manifest": "Cargo.toml" }
**Mixed C/C++ + Rust:**
{
"path": ".",
"compile_db": "compile_commands.json",
"cargo_manifest": "Cargo.toml",
"opt_levels": ["O0", "O1", "O2"],
"mcp_mode": "prefer"
}
**Full C/C++ input:**
{
"path": ".",
"compile_db": "compile_commands.json",
"opt_levels": ["O0", "O1", "O2"],
"languages": ["c", "cpp"],
...
Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Security Defense in Depth
Implement multi-layered testing and security best practices.
Security SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head re
Security Google Workspace Model Armor
Filter user-generated content for safety
Security Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,