Agent Wealth HubFree public resources
中文 EN العربية

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

  1. Record code-owner authorization, target directory, and read-only sandbox; pass an ENGAGEMENT_CONTEXT with scope and responsible-disclosure rules. [security]
  2. Interview to build a threat model on the canary target, then use Agent SDK query() with allowed_tools=["Read","Grep","Glob"] and disallowed_tools=["Bash"] to find issues. [security]
  3. 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

Permissions

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

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/claude_agent_sdk/06_The_vulnerability_detection_agent.ipynb

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

Related resources