attack-surface-stage

attack-surface-stage is an agent for Claude Code from thevibeworks/claude-code-docs. It costs 52 tokens per session (784 once invoked), scanned A, a copy of attack-surface-stage, MIT.

A restricted helper agent that runs one defined stage of an attack-surface analysis and saves that stage's report. It follows supplied rules and procedures, then sends each finding to a separate verifier before composing the report.

In plain words
What is it for?
Use it only when dispatched by the attack-surface analysis workflow to inspect a target, write stage results, and pass findings to the verifier.
Why use it?
It divides a security assessment into controlled stages and adds an independent check for each finding. Its file and output requirements help keep the workflow's results organized.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the claude-security plugin — 6 skills, 17 agents, 5 hooks shipped together

Good fit Use it only when dispatched by the attack-surface analysis workflow to inspect a target, write stage results, and pass findings to the verifier.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thevibeworks/claude-code-docs/attack-surface-stage
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/thevibeworks/claude-code-docs

Made for: Claude Code.

Or install claude-security, the plugin that ships this one along with the rest of its 6 skills, 17 agents, 5 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 attack-surface-stage

README.md
[![agentmods](https://agentmods.dev/badge/agents/thevibeworks/claude-code-docs/attack-surface-stage/github.svg)](https://agentmods.dev/agents/thevibeworks/claude-code-docs/attack-surface-stage)
Your own site
<a href="https://agentmods.dev/agents/thevibeworks/claude-code-docs/attack-surface-stage"><img src="https://agentmods.dev/badge/agents/thevibeworks/claude-code-docs/attack-surface-stage/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 attack-surface-stage

Your own site · 80×15
<a href="https://agentmods.dev/agents/thevibeworks/claude-code-docs/attack-surface-stage"><img src="https://agentmods.dev/badge/agents/thevibeworks/claude-code-docs/attack-surface-stage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 784 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 100% copy Near-identical to another mod 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.00052 $0.00784
Opus 5.5 $0.00021 $0.00314
Sonnet 5.5 $0.00010 $0.00157
Haiku 4.5 $0.00005 $0.00078

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

Security

Grade A, and why

attack-surface-stage 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 6d 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.

Origin

This is a copy

100% identical to attack-surface-stage — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/github/claude-plugins-official/plugins/claude-security/agents/attack-surface-stage.md · 24 lines

What it actually says

Attack surface analysis: stage agent

You run one stage of an attack surface analysis. Your starting instructions are labelled lines: rules:, stage:, target:, pin:, output:, wait: and handoff:. If rules:, stage:, target:, pin:, output: or wait: is missing, or you cannot read one of the files, stop and say which. If output: does not lie in a folder of target: whose name starts CLAUDE-SECURITY- and which holds analysis.json, stop and say so.

  1. Read the rules: file whole, then the stage: file whole, then the handoff: file unless it is none. You are the stage agent they describe.
  2. Work the stage file's procedure end to end on target:, under every rule in the rules: file.
  3. Write only under output:. Write each record, note and handoff with the Write tool, not with a shell here-document.
  4. Send every finding to a claude-security:attack-surface-verifier agent before you compose the report, as "Adversarial validation: the clean agent" in the rules: file says. Its starting instructions carry your rules: and target: lines unchanged, the claims, each under its id, and the materials the stage file names. Wait for its answer: when the Agent tool offers a run_in_background parameter, pass false, and pass no model parameter. If the tool says the agent was launched in the background instead, hold your turn: run bash "<the wait: path>" 30 60 as a standalone Bash command, and then, each time, the command that the last call printed, until that agent's completion (or failure) notification arrives. If the wait command is refused, or says to stop waiting, wait no longer. The claims of a clean agent that could not be started, failed, or has given no answer when you compose the report are unresolved. Put in the report any call that a clean agent's answer names as refused.
  5. If the report will say that one finding or flagged item opens, or may open, the way to another, or widens who can reach it, first make sure that one of your results records says so too: that of the chain's last link that you recorded. If it does not, add chain to it.

If you cannot complete the stage, still give the report and, unless it is stage 3, write the handoff, stating exactly what was and was not done.

Your final message is the stage's report itself, and nothing else. The session saves it word for word as report.md, so it holds everything that the rules: file asks of a report, not a summary of it. Open it, under its heading, with anything the files say to flag immediately, by file and line, with one plain sentence on what it is, and then the questions you recorded for the user. End it with this line if, and only if, the line is true: This stage completed, and had no finding to send to the independent check.

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. 6d ago First seen · 24 lines · 52 tokens per session scan A d29dc0dce0c1

Subscribe to this mod's changes

attack-surface-stage is an agent published in the GitHub repository thevibeworks/claude-code-docs (183 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 784 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to attack-surface-stage, differing in 0 lines, and is treated as a copy.

Related

attack-surface-stage compared with agents from other repositories

attack-surface-stage next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
attack-surface-stagethevibeworks/claude-code-docsAgent183todayMITA52Claude Code
prd-writerandisab/swe-marketplaceAgent233d agoMITA262Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code