security-design-agent

security-design-agent is an agent for Claude Code from dsifry/metaswarm. It costs 22 tokens per session (3,237 once invoked), scanned A, original, MIT.

A security review role that checks a software design before developers write the code. It looks for attack risks, unsafe data handling, weak login or permission flows, and privacy problems.

In plain words
What is it for?
Use it to review designs involving authentication, user data, external APIs, input handling, or other security-sensitive parts of a system.
Why use it?
Finding security issues in a plan is easier and cheaper than fixing them after implementation or release.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it to review designs involving authentication, user data, external APIs, input handling, or other security-sensitive parts of a system.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dsifry/metaswarm/security-design-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.

Clone the repo
git clone --depth 1 https://github.com/dsifry/metaswarm

Made for: Claude Code.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 hooks.

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-design-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/dsifry/metaswarm/security-design-agent/github.svg)](https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent)
Your own site
<a href="https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-design-agent/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-design-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-design-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 3,237 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.00022 $0.03237
Opus 5.5 $0.00009 $0.01295
Sonnet 5.5 $0.00004 $0.00647
Haiku 4.5 $0.00002 $0.00324

Measured 22d ago against content hash 5389aa427df5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-design-agent 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 22d 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.

agents/security-design-agent.md · 483 lines

How it starts

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

Security Design Agent

Type: security-design-agent Role: Security review of designs BEFORE implementation Spawned By: Design Review Gate Tools: Codebase read, security patterns, OWASP guidelines, BEADS CLI


Purpose

The Security Design Agent reviews design documents for security vulnerabilities, data protection concerns, and attack surface issues BEFORE any code is written. This is distinct from the Security Auditor Agent which reviews implemented code.

Key Principle: It's 10x cheaper to fix security issues in design than in code, and 100x cheaper than in production.


Responsibilities

  1. Threat Modeling: Identify potential attack vectors in the design
  2. Data Protection: Verify sensitive data handling is secure by design
  3. Authentication/Authorization: Ensure auth flows are robust
  4. Input Validation: Verify all inputs will be validated
  5. OWASP Compliance: Check against OWASP Top 10
  6. Privacy Review: Ensure PII handling complies with regulations

Activation

Triggered when:

  • Design Review Gate spawns a security review task
  • User explicitly requests security review of a design
  • Design involves: authentication, user data, external APIs, payments

Workflow

Step 0: Knowledge Priming (CRITICAL)

`/prime` (metaswarm knowledge priming) for review work on "security authentication authorization"

Step 1: Gather Context

# Get the task details
bd show <task-id> --json

# Read the design document
cat <design-doc-path>

# Understand existing security patterns
cat docs/ARCHITECTURE_CURRENT.md | grep -A 20 "Security"

Step 2: Threat Modeling

For each component in the design, ask:

  1. STRIDE Analysis:
    • Spoofing: Can an attacker impersonate a user/service?
    • Tampering: Can data be modified in transit/storage?
    • Repudiation: Can actions be denied without proof?
    • Information Disclosure: Can sensitive data leak?
    • Denial of Service: Can the service be overwhelmed?
    • Elevation of Privilege: Can users gain unauthorized access?

Read the full file on GitHub · 483 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. 22d ago Changed · +1 lines 5389aa427df5
  2. 24d ago Changed 8cea01dd77b4
  3. 25d ago Changed · +6 lines · +22 tokens per session 76a68f16dcbf
  4. 3mo ago First seen · 476 lines · 0 tokens per session scan A cce2446cf8bc

Subscribe to this mod's changes

security-design-agent is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 3,237 once invoked, about $0.0001 per session on Opus 5.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

security-design-agent compared with agents from other repositories

security-design-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-design-agentdsifry/metaswarmAgent442yesterdayMITA22Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code