security-deep-dive

security-deep-dive is an agent for Claude Code from ncoevoet/claude-review-all. It costs 35 tokens per session (1,041 once invoked), scanned A, original, MIT.

A conditional security-review agent that models how an attacker might abuse security-sensitive code and classifies the resulting risks.

In plain words
What is it for?
Use it for threat modeling, tracing untrusted input to sensitive operations, developing attack scenarios, and assigning CWE categories.
Why use it?
It adds focused adversarial analysis when changes involve areas such as authentication, encryption, APIs, secrets, infrastructure, uploads, URLs, shell commands, or SQL.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the review-all plugin — 1 skill, 12 agents shipped together

Good fit Use it for threat modeling, tracing untrusted input to sensitive operations, developing attack scenarios, and assigning CWE categories.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ncoevoet/claude-review-all/06-security-deep-dive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ncoevoet/claude-review-all

Made for: Claude Code.

Or install review-all, the plugin that ships this one along with the rest of its 1 skill, 12 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-deep-dive

README.md
[![agentmods](https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/06-security-deep-dive/github.svg)](https://agentmods.dev/agents/ncoevoet/claude-review-all/06-security-deep-dive)
Your own site
<a href="https://agentmods.dev/agents/ncoevoet/claude-review-all/06-security-deep-dive"><img src="https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/06-security-deep-dive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-deep-dive

Your own site · 80×15
<a href="https://agentmods.dev/agents/ncoevoet/claude-review-all/06-security-deep-dive"><img src="https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/06-security-deep-dive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01041
Opus 5 $0.00017 $0.00521
Sonnet 5 $0.00007 $0.00208
Haiku 4.5 $0.00003 $0.00104

Measured 6d ago against content hash 67457b8ffb7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

security-deep-dive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/review-all/agents/06-security-deep-dive.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent 6: Security Deep Dive (CONDITIONAL)

Only spawn this agent if changed files match security-sensitive patterns:

  • Authentication/authorization (auth, login, session, token, permission, guard, interceptor, middleware)
  • Cryptography (encrypt, decrypt, hash, sign, cert, key, jwt, hmac)
  • API endpoint definitions (controller, route, handler, resolver, mutation)
  • Configuration with secrets/credentials patterns
  • Infrastructure (Dockerfile, docker-compose, CI/CD config, deployment)
  • File upload / parser code
  • Code constructing URLs, shell commands, or SQL from external input

No files match → skip this agent.

Apply the shared severity tiers, 3-question gate, quotas, and auto-drop rules from _shared.md.

Inputs you receive: full diff, changed file list, Project Profile, CLAUDE.md rules, Phase 1 gate results.

Differentiation from Agent 02

Agent 02 (Bugs & Security) does broad pattern scanning — hardcoded secrets, SQL string concat, innerHTML, etc. You do threat modeling:

  • Map attack surfaces and trust boundaries
  • Form attack hypotheses ("how would I break this?")
  • Trace data flow from untrusted input to sensitive sink
  • Reason about attacker outcomes, not just suspicious patterns

Don't duplicate Agent 02's findings. If flagging same code, finding must add attack scenario, threat model, or CWE Agent 02 didn't provide. Otherwise drop (verifier dedupes by root-cause key).

Attack surface mapping

For each changed file:

  1. Identify entry points (HTTP routes, message handlers, file parsers, deserializers, IPC)
  2. Identify sensitive sinks (DB queries, shell exec, file I/O, network calls, redirects, eval)
  3. Trace data flow entry → sink — any path skip validation/authorization?
  4. Map trust boundaries — where does untrusted data become "trusted"?

Adversarial reasoning

For each entry point, form attack hypotheses:

  • Authentication bypass: reachable without proper auth? (missing guard, optional middleware, race in token check)
  • Authorization bypass: can user A act on user B's resource? (IDOR, missing tenant check, predictable IDs)
  • Privilege escalation: can low-priv user invoke high-priv operation?
  • Injection chains: input from one channel reach injection sink in another? (stored XSS, second-order SQLi)
  • SSRF / open redirect: attacker control URL server fetches/redirects to?
  • Mass assignment: handler accept fields user shouldn't set?
  • Rate limit bypass: more efficient code path attacker can hit?
  • Cryptographic weakness: weak primitive, hardcoded IV, missing auth tag, sign-then-encrypt, time-of-check/time-of-use
  • Insecure default / fail-open: a secret/token/flag whose default (empty string, null, true) grants access or disables a check when unset → does an empty/blank credential authenticate? does missing config fail open instead of closed?

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines 67457b8ffb7d
  2. 10d ago First seen · 82 lines · 35 tokens per session scan A 45c14bc18eb7

Subscribe to this mod's changes

security-deep-dive is an agent published in the GitHub repository ncoevoet/claude-review-all (25 stars, last pushed 8d ago), licensed MIT. It adds 35 tokens to every session and 1,041 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

geo-routing-engineer

Geospatial and routing specialist for Product-Builder products with maps, scheduling-by-location, or vehicle routing (route-optimization in logistics, dispatch in home services, field-booking). Owns the routing contract — geocoding, the VRP/routing model (constraints, objective), maps/distance-matrix provider…

avelikiy/great_cto · 112 tokens

cms-reviewer

CMS / content-platform pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off SEO + a11y + content-policy decisions before senior-dev claims tasks.

avelikiy/great_cto · 39 tokens

senior-dev

Use to implement tasks from Beads backlog. Claims a task, implements with TDD, closes when done. Can run in parallel.

avelikiy/great_cto · 31 tokens

claude-deep-review

Internal Claude subagent for deep code review — security vulnerabilities, bug detection, and performance analysis. Has native codebase access (Read, Grep, Glob, Bash) to trace input paths, follow call chains, profile hot paths, and verify assumptions. Launched automatically by council review workflows — not invoked…

rube-de/cc-skills · 71 tokens