Back to catalog / Agent workflows
Triage memory-safety findings in source code
Establish authorized scope and a threat model, then use read-only agents to discover and independently verify memory-safety issues in C code.
Goal
Produce a deduplicated, reviewed vulnerability report with source locations.
Steps
- Record code-owner authorization, target directory, and read-only sandbox; pass an
ENGAGEMENT_CONTEXTwith scope and responsible-disclosure rules. [security] - Interview to build a threat model on the canary target, then use Agent SDK
query()withallowed_tools=["Read","Grep","Glob"]anddisallowed_tools=["Bash"]to find issues. [security] - Have a separate triage run re-read source to verify lines, merge same-root-cause findings, and recalibrate severity; emit explicit-schema JSON and validate with
jsonschema. [security]
How to verify
Each reported issue maps to real source lines and survives independent verification; known canary bugs are found and no unauthorized directory is accessed.
Troubleshooting
Do not run against unauthorized targets; if the SDK/CLI is unavailable or output schema validation fails, stop automated grading and route to a human security reviewer.
Permissions
Prerequisites
- Python 3.11+, Claude Agent SDK/compatible Claude Code CLI, Anthropic API key, and written code-owner authorization.
Permissions
- Use an authorized isolated copy for read-only review; disable Bash and do not let the agent commit patches or contact third parties.
Limitations
The model can miss or hallucinate issues; a security reviewer must confirm severity, and canary results do not constitute a real-project audit.
Pinned upstream source
- Repository
- anthropics/anthropic-cookbook
- File path
- claude_agent_sdk/06_The_vulnerability_detection_agent.ipynb
- Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: MIT
Main topic
Make Agent behavior safer and easier to verify