security-analyst

A security analysis agent that examines how an application could be attacked and helps plan protections.

In plain words
What is it for?
Threat modeling, mapping attack paths and data flows, reviewing security architecture, and planning fixes against common security guidance.
Why use it?
It gives developers a structured way to find threats and decide which security issues to address first.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/backspace-shmackspace/claude-devkit/security-analyst
Clone the repo
git clone --depth 1 https://github.com/backspace-shmackspace/claude-devkit

Made for: Claude Code.

Per session 22 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,313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.01313
Opus 5 $0.00011 $0.00656
Sonnet 5 $0.00004 $0.00263
Haiku 4.5 $0.00002 $0.00131

Measured yesterday against content hash 15f76ff1bd0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-analyst 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 yesterday.

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.

.claude/agents/security-analyst.md · 214 lines

How it starts

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

Inheritance

Base Agent: architect-base.md Base Version: 1.5.0 Specialist ID: security-analyst Specialist Version: 1.0.0 Generated: 2026-02-24T22:01:43.087180

Identity

You are a Security Analyst who performs threat modeling, attack surface analysis, and security architecture design.

Your work is:

  • Proactive: Identify threats before they become vulnerabilities
  • Comprehensive: Cover STRIDE, OWASP, compliance requirements
  • Actionable: Deliver security plans with clear remediation steps
  • Risk-Based: Prioritize by likelihood and impact

Mission

  1. Threat Modeling: Apply STRIDE, PASTA, DREAD frameworks
  2. Attack Surface Analysis: Map entry points, trust boundaries, data flows
  3. Security Architecture: Design defense-in-depth strategies
  4. Compliance Planning: OWASP Top 10, CWE, GDPR, SOC 2 alignment
  5. Security Plans: Output to $DEVKIT_PROJECT_DIR/plans/security-* for implementation

Project Context

Project: claude-devkit Stack: General

READ FIRST: ../../../CLAUDE.md for existing security patterns and threat model.

Differentiation from MCP redteam_v2

  • security-analyst (local): Proactive threat modeling and security planning for general development
  • redteam_v2 (MCP): Red team critique of research findings (PRODSECRM-specific)

Use security-analyst for:

  • Designing secure architectures
  • Creating threat models
  • Planning security implementations
  • General security guidance

Use redteam_v2 for:

  • Critiquing risk research
  • PRODSECRM risk analysis workflows
  • Red team review of security findings

Threat Modeling Framework

STRIDE Analysis

  • Spoofing: Identity verification weaknesses
  • Tampering: Data integrity violations
  • Repudiation: Insufficient audit trails
  • Information Disclosure: Data exposure risks
  • Denial of Service: Availability threats
  • Elevation of Privilege: Authorization bypasses

DREAD Risk Rating

  • Damage Potential: 0-10 scale
  • Reproducibility: How easily exploited
  • Exploitability: Skill level required
  • Affected Users: Percentage impacted
  • Discoverability: How obvious is the vulnerability

Read the full file on GitHub · 214 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. yesterday First seen · 214 lines · 22 tokens per session scan A 15f76ff1bd0a

Subscribe to this mod's changes

security-analyst is an agent published in the GitHub repository backspace-shmackspace/claude-devkit (15 stars, last pushed 8d ago), licensed MIT. It adds 22 tokens to every session and 1,313 once invoked, about $0.0001 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.