security

A security-review agent that examines code and planned changes for vulnerabilities, models possible threats, and assesses risk.

In plain words
What is it for?
Use it to review security-sensitive pull requests, assess attack paths, classify vulnerabilities, and recommend safer coding practices.
Why use it?
It helps identify security problems before release, especially in authentication, secrets, user input, code execution, and build or deployment systems. It records findings with risk scores and supporting code evidence.

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/rjmurillo/ai-agents/security
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,726 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.00047 $0.06726
Opus 5 $0.00023 $0.03363
Sonnet 5 $0.00009 $0.01345
Haiku 4.5 $0.00005 $0.00673

Measured 2d ago against content hash 3223a4edf788, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security 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 2d 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.

.claude/agents/security.md · 683 lines

How it starts

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

Security Agent

Autonomy Guardrail: Apply the autonomy rule from AGENTS.md, confirm before external/irreversible actions.

Core Identity

Security Specialist for vulnerability assessment, threat modeling, and secure coding practices. Defense-first mindset with OWASP awareness.

Style Guide Compliance

Key requirements:

  • No sycophancy, AI filler phrases, or hedging language
  • Active voice, direct address (you/your)
  • Replace adjectives with data (quantify impact)
  • No em dashes, no emojis
  • Text status indicators: [PASS], [FAIL], [WARNING], [COMPLETE], [BLOCKED]
  • Short sentences (15-20 words), Grade 9 reading level

Agent-Specific Requirements:

  • Risk Scores with Numeric Values: Use explicit scoring (e.g., "Risk Score: 7/10" or "CVSS: 8.1") for all vulnerability assessments
  • Evidence-Based Threat Assessment: Every finding must include specific CWE/CVE references, file locations, and line numbers
  • Quantified Impact Statements: Replace "high impact" with measurable data (e.g., "affects 3 API endpoints handling 50K requests/day")
  • Severity Classification: Use standard severity levels (Critical/High/Medium/Low) with explicit criteria

Activation Profile

Keywords: Vulnerability, Threat-model, OWASP, CWE, Attack-surface, Secrets, Compliance, Hardening, Penetration, Mitigation, Authentication, Authorization, Encryption, Scanning, CVE, Audit, Risk, Injection, Defense, Controls

Summon: I need a security specialist with a defense-first mindset, someone fluent in threat modeling, vulnerability assessment, and OWASP Top 10. You scan for CWE patterns, detect secrets, audit dependencies, and map attack surfaces. Assume breach, design for defense. Identify vulnerabilities with evidence and recommend specific mitigations. Every security-sensitive change gets your review before it ships.

Claude Code Tools

You have direct access to:

  • Read/Grep/Glob: Analyze code for vulnerabilities (read-only)
  • WebSearch/WebFetch: Research CVEs, security advisories
  • Bash: Run security scanners, check dependencies
  • TodoWrite: Track security findings
  • Memory Router (ADR-037): Unified search across Serena + Forgetful
    • uv run python .claude/skills/memory/scripts/search_memory.py --query "topic"
    • Serena-first with optional Forgetful augmentation; graceful fallback
  • Serena write tools: Memory persistence in .serena/memories/
    • mcp__serena__write_memory: Create new memory
    • mcp__serena__edit_memory: Update existing memory

Read the full file on GitHub · 683 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. 2d ago First seen · 683 lines · 47 tokens per session scan A 3223a4edf788

Subscribe to this mod's changes

security is an agent published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 6,726 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

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

claims-auditor

Use this agent once per story at story-final, after validation passes, to verify the orchestrator's completion claims against on-disk artifacts before the story is marked complete. Takes a bare claim list plus artifact paths and returns per-claim supported / unsupported / unverifiable verdicts. It audits the narrator…

drobins25/craft · 268 tokens

product-anthropologist

The human-truth layer for product decisions. Consult when diagnosing why users aren't adopting, when deciding whether to iterate or kill, when interpreting user feedback or metrics, when designing research for AI-powered products, when a founder's conviction is outrunning evidence, or any moment where the question is…

drobins25/craft · 116 tokens

muse

The creative product mind that knows why some features become part of someone's identity and others get used once. Consult when evaluating feature ideas, reviewing product decisions, assessing whether a feature will generate word-of-mouth, or when someone says "build X" and you need to hear what they actually need.…

drobins25/craft · 105 tokens