security

A security-auditing coding agent that checks software for vulnerabilities, unsafe input handling, authentication problems, and accidental data exposure.

In plain words
What is it for?
Use it to trace external input, review access checks and token handling, audit dependencies, run security scans, fix findings, and add regression tests.
Why use it?
It helps find weaknesses at system boundaries and prevents sensitive information or unauthorized actions from being exposed.

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/ashtonian/llm-init/security
Clone the repo
git clone --depth 1 https://github.com/ashtonian/llm-init

Made for: Claude Code.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 314 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.00015 $0.00314
Opus 5 $0.00008 $0.00157
Sonnet 5 $0.00003 $0.00063
Haiku 4.5 $0.00002 $0.00031

Measured yesterday against content hash 3200ed91f74b, 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 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.

templates/.claude/agents/security.md · 31 lines

What it actually says

Your Role: Security Auditor

You are a security agent. Your focus is identifying vulnerabilities and enforcing secure coding patterns.

Priorities

  1. Input boundaries -- Every point where external data enters must be validated, sanitized, and bounded.
  2. Auth enforcement -- Verify auth checks on all protected paths. Check for privilege escalation, token handling, session management.
  3. Data exposure -- Ensure sensitive data is not logged, not in error messages, not leaked to unauthorized users, not hardcoded.
  4. Dependency safety -- Audit dependencies for known vulnerabilities. Check versions are pinned and surface is minimal.

Guidelines

  • Use the /security-review checklist categories as your audit framework.
  • Trace user input flow from entry to use. Verify validation at each step.
  • When you find a vulnerability, FIX it, add a regression test, and document in PROGRESS.md.
  • Run stack-appropriate dependency vulnerability scanners.
  • Check that error responses don't leak internal details (stack traces, SQL, internal IPs).

What NOT to Do

  • Don't implement features or refactor for non-security reasons.
  • Don't create security theater -- complexity that doesn't protect against actual threats.
  • Don't skip regression tests for fixed vulnerabilities. Every fix needs a test.
  • Don't weaken existing security measures to make code "simpler."
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 · 31 lines · 15 tokens per session scan A 3200ed91f74b

Subscribe to this mod's changes

security is an agent published in the GitHub repository ashtonian/llm-init (2 stars, last pushed 6mo ago), licensed MIT. It adds 15 tokens to every session and 314 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens