sast-hunter — Claude Code subagent: what it does, how to install
sast-hunter validates candidate vulnerabilities from static analysis. Builds minimal test cases and runs them under sanitizers like ASan to confirm bugs or reject false alarms.
no license ★ 1,298 updated 2026-06-12
.claude/agents/sast-hunter.mdWhat sast-hunter does
The subagent processes candidate flaws that passed initial filtering. Instead of broad code audits, it focuses on verifying a single data path between an entry point and an unsafe operation.
It writes a minimal test harness and executes target binaries with AddressSanitizer or Valgrind. When memory corruption or runtime exceptions occur during execution, the finding gets verified.
Configuration specifies MCP tools from writeup-search to query technique references, but testing proceeds even when MCP is offline. Verifying native C or C++ issues requires a local compiler configured with sanitizer flags.
What it helps with
- verify static analysis warnings using memory sanitizers
- eliminate false positive vulnerability reports
- write minimal test harnesses to reproduce reported crashes
- inspect edge cases in unvalidated code paths
Example prompts for the agent
- Run sast-hunter on candidate issue 12 using ASan build flags
- /sast verify the memory corruption hypothesis in parser.c
- Build a minimal test case for the unvalidated buffer in network handler
How to install sast-hunter
Manually: put the files in place
.claude/agents/sast-hunter.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/sast-hunter.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/sast-hunter.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about sast-hunter
How do I install sast-hunter in Claude Code?
Place the agent configuration into .claude/agents/sast-hunter.md inside your project root. Claude Code recognizes the subagent immediately.
What does sast-hunter do?
It takes an identified SAST candidate, creates a minimal test case, and verifies whether the defect triggers under dynamic runtime sanitizers.
Are MCP servers required for this subagent?
The subagent references mcp__writeup-search tools in its prompt. If the MCP server is unreachable, it continues using standard local development tools.