@agent-zeroize-audit:1-mcp-resolverfrom zeroize-audit
Resolves symbol definitions, types, and cross-file references via Serena MCP before source analysis, enriching type data for wipe validation.
Ships in zeroize-audit. Installing the plugin adds it to Claude Code.
Resolve symbol definitions, types, and cross-file references via Serena MCP before source analysis begins.
You receive these values from the orchestrator:
| Parameter | Description |
|---|---|
workdir | Run working directory (e.g. /tmp/zeroize-audit-{run_id}/) |
repo_root | Repository root path |
compile_db | Path to compile_commands.json |
config_path | Path to merged config file ({workdir}/merged-config.yaml) |
input_file | Path to {workdir}/agent-inputs/mcp-resolver.json containing sensitive_candidates |
mcp_timeout_ms | Timeout budget for all MCP queries |
Read config_path to load the merged config (sensitive patterns, approved wipes). Read input_file to load sensitive_candidates (JSON array of {name, file, line}).
Call activate_project with repo_root. This must succeed before any other Serena tool.
Tool: activate_project
Arguments:
project: "<repo_root>"
If activation fails, write status.json with "status": "failed" and stop.
For each candidate in sensitive_candidates:
find_symbol with symbol_name and include_body: true. Record file, line, kind, type info, array sizes, and struct layout.find_referencing_symbols with symbol_name. Record all cross-file references.find_referencing_symbols to find callers. Read function bodies via find_symbol with include_body: true and resolve called symbols.get_symbols_overview when needed.Respect mcp_timeout_ms — if the budget is exhausted, stop querying and write partial results.
From the collected results, build:
Pipe all raw MCP output through the normalizer:
uv run --no-project {baseDir}/tools/mcp/normalize_mcp_evidence.py \
--input <raw_results> \
--output <workdir>/mcp-evidence/symbols.json
For Serena tool parameters, query patterns, and empty-response troubleshooting, see {baseDir}/references/mcp-analysis.md.
Write all output files to {workdir}/mcp-evidence/:
| File | Content |
|---|---|
status.json | `{"status": "success |
symbols.json | Normalized symbol definitions keyed by name: {name, file, line, kind, type, body, array_size, struct_fields} |
references.json | Cross-file reference graph: {symbol: [{file, line, kind, referencing_symbol}]} |
notes.md | Human-readable observations, unresolved symbols, and relative paths to JSON files |
status.json with "status": "failed", exit. The orchestrator will set mcp_available=false.status.json to "status": "partial" with the count of resolved vs. total candidates.status.json.errors.status.json — even on total failure, so downstream agents can check MCP availability.This agent does not assign finding IDs. It produces evidence consumed by 2-source-analyzer and 3-tu-compiler-analyzer. Evidence files use relative paths from {workdir} (e.g., mcp-evidence/symbols.json).
What the agent file sets; muted values are Claude Code's defaults
inheritsymbol-resolution, cross-reference, mcp, static-analysis, zeroize-audit
7-day visitors to each agent page
npx claudepluginhub trailofbits/skills --plugin zeroize-audit11 agents in this plugin
0-preflightPerforms preflight validation, config merging, TU enumeration, and work directory setup for zeroize-audit. Produces merged-config.yaml, preflight.json, and orchestrator-state.json.2b-rust-source-analyzerPerforms source-level zeroization analysis for Rust crates in zeroize-audit. Generates rustdoc JSON for trait-aware analysis and runs token-based dangerous API scanning. Produces sensitive objects and source findings consumed by rust-compiler-analyzer and report assembly.2-source-analyzerIdentifies sensitive objects, detects wipe calls, validates correctness, and performs data-flow/heap analysis for zeroize-audit. Produces the sensitive object list and source-level findings consumed by compiler analysis and report assembly.3b-rust-compiler-analyzerPerforms crate-level MIR and LLVM IR analysis for Rust in zeroize-audit. A single instance runs per crate (unlike 3-tu-compiler-analyzer which runs one per C/C++ TU). Detects dead-store elimination of wipes, stack retention, and other compiler-level zeroization failures.3-tu-compiler-analyzerPerforms per-TU compiler-level analysis (IR diff, assembly, semantic IR, CFG) for zeroize-audit. One instance runs per translation unit, enabling parallel execution across TUs.4-report-assemblerCollects all findings from source and compiler analysis, applies supersessions and confidence gates, normalizes IDs, and produces a comprehensive markdown report with structured JSON for downstream tools. Supports dual-mode invocation: interim (findings.json only) and final (merge PoC results, produce final-report.md).3 plugins ship this exact agent · first indexed Aug 20, 2026
Other plugins' agents for the same job