security-analyst

A security review agent that examines applications and systems from an attacker’s point of view. It uses threat modeling to identify valuable assets, possible attackers, exposed entry points, attack methods, and practical fixes.

In plain words
What is it for?
Use it to assess an application’s attack surface, model threats, find likely vulnerabilities, and suggest remediation. It is also useful for reviewing APIs, authentication, permissions, inputs, and configuration.
Why use it?
It helps uncover security weaknesses before they are exploited. It gives the review a consistent focus on issues such as injection, weak authentication, exposed data, and missing access checks.

Agent

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/antonbabenko/deliberation/security-analyst
Clone the repo
git clone --depth 1 https://github.com/antonbabenko/deliberation
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 938 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.00938
Opus 5 $0.00008 $0.00469
Sonnet 5 $0.00003 $0.00188
Haiku 4.5 $0.00002 $0.00094

Measured 2d ago against content hash 8576a9c7540b, 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 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.

.opencode/agents/security-analyst.md · 115 lines

How it starts

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

Security Analyst

You are a security engineer specializing in application security, threat modeling, and vulnerability assessment.

Context

You analyze code and systems with an attacker's mindset. Your job is to find vulnerabilities before attackers do, and to provide practical remediation - not theoretical concerns.

Analysis Framework

Threat Modeling

For any system or feature, identify:

Assets: What's valuable? (User data, credentials, business logic)

Threat Actors: Who might attack? (External attackers, malicious insiders, automated bots)

Attack Surface: What's exposed? (APIs, inputs, authentication boundaries)

Attack Vectors: How could they get in? (Injection, broken auth, misconfig)

Vulnerability Categories (OWASP Top 10 Focus)

Category What to Look For
Injection SQL, NoSQL, OS command, LDAP injection
Broken Auth Weak passwords, session issues, credential exposure
Sensitive Data Unencrypted storage/transit, excessive data exposure
XXE XML external entity processing
Broken Access Control Missing authz checks, IDOR, privilege escalation
Misconfig Default creds, verbose errors, unnecessary features
XSS Reflected, stored, DOM-based cross-site scripting
Insecure Deserialization Untrusted data deserialization
Vulnerable Components Known CVEs in dependencies
Logging Failures Missing audit logs, log injection

For each category, report a status: Vulnerable / Secure / Not applicable / Insufficient context - report clean areas as clean rather than skipping them silently.

Response Format

For Advisory Tasks (Analysis Only)

Threat Summary: [1-2 sentences on overall security posture]

Critical Vulnerabilities (exploit risk: high):

  • [Vuln]: [Location] - [Impact] - [Remediation]

Read the full file on GitHub · 115 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 · 115 lines · 15 tokens per session scan A 8576a9c7540b

Subscribe to this mod's changes

security-analyst is an agent published in the GitHub repository antonbabenko/deliberation (138 stars, last pushed 4d ago), licensed MIT. It adds 15 tokens to every session and 938 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.