attack-surface-analysis

attack-surface-analysis is a skill for Claude Code from thevibeworks/claude-code-docs. It costs 159 tokens per session (5,180 once invoked), scanned A, a copy of attack-surface-analysis, MIT.

A security audit workflow that examines one fixed version of a codebase in three ways: unused default access, code reachable unusually early, and risky combinations of configuration options. It produces reports and proposed patch files, with each finding checked by another agent.

In plain words
What is it for?
Use it when you specifically need an attack-surface audit of a repository and want findings, regression checks, and possible fixes.
Why use it?
It helps identify code paths or settings that may expose functionality before it should be available, without relying on a single reviewer's judgment.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it when you specifically need an attack-surface audit of a repository and want findings, regression checks, and possible fixes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add thevibeworks/claude-code-docs
Claude Code
/plugin install claude-security

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-analysis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thevibeworks/claude-code-docs/attack-surface-analysis"><img src="https://agentmods.dev/badge/skills/thevibeworks/claude-code-docs/attack-surface-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,180 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.00159 $0.05180
Opus 5.5 $0.00064 $0.02072
Sonnet 5.5 $0.00032 $0.01036
Haiku 4.5 $0.00016 $0.00518

Measured 6d ago against content hash bda08bdfedd6, 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-analysis 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-analysis — 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/skills/attack-surface-analysis/SKILL.md · 154 lines

How it starts

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

Attack Surface Analysis

This skill runs three analyses as one pipeline over a single pinned target:

  1. Default attack surface reduction (default-attack-surface-reduction.md): what the default configuration reaches but default functionality does not use — proven with traces, gated with zero change to default behavior, with a regression suite that tests the gates.
  2. Early reachability audit (early-reachability-audit.md): the sensitive and complex code paths reachable pre-authentication, 0-click, or before the protocol state transition that should gate them, regardless of the configuration required — a ranked audit inventory separating intended early reachability from unintended.
  3. Configuration interaction audit (config-interaction-audit.md): combinations of two or more runtime options that together implicitly disable or bypass a security-relevant feature, or that the program accepts although the code requires them excluded.

Who does what

The session that loaded this skill runs the pipeline: it asks one question, runs the results script, starts each stage, and is the only one that talks to the user. It does none of a stage's analysis itself. The session reads PIPELINE now, whole, with the Read tool, and follows it from its first line. It starts nothing and applies no patch before that: PIPELINE says how. No agent reads it.

  • A stage agent is a claude-security:attack-surface-stage subagent that the session starts. A clean agent is a claude-security:attack-surface-verifier subagent that a stage agent starts. No other agent type stands in for either.
  • A subagent cannot reach the user. Where a file says to pause and ask the user, a stage agent records the question as an open item and carries on with the branch that claims less. A gate or fix that hangs on the answer is counted as no gate or fix ("A patch's name" gives its prefix). An item that hangs on it is classified unknown. A candidate that hangs on it is kept out of the findings: its outcome is unproven. Where the stage agent would ask what to cover first, it covers the most exposed first, and names in its report what it left uncovered. Where a file says to tell or hand the user something, it goes in the stage's report.
  • Claude Code's Write tool refuses a subagent a Markdown file whose name starts with report, summary, findings or analysis, and tells it to return the text instead. So a stage agent never writes report.md, with any tool: it gives the report, whole, as its final message. The session saves that message, if it is a report, with the Write tool, as report.md in the stage's directory, before it does anything else: word for word, nothing shortened, nothing added. If that save is refused or fails, it shows the user the whole report, unchanged, and says that it is not on disk. It passes nothing of a report on to the next stage.

Read the full file on GitHub · 154 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 154 lines · 159 tokens per session scan A bda08bdfedd6

Subscribe to this mod's changes

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

Related

attack-surface-analysis compared with skills from other repositories

attack-surface-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
attack-surface-analysisthevibeworks/claude-code-docsSkill183todayMITA159Claude Code
vibing-orchestrateshabaraba/vibing.nvimSkill134d agoMITA76Claude Code
vibing-chat-searchshabaraba/vibing.nvimSkill134d agoMITA116Claude Code
token-budget-checkEveryone-Needs-A-Copilot/claude-copilotSkill1422d agoMITA55Claude Code
claude-docs-validatecostiash/claude-code-docsSkill59todaynoneA85Claude Code
db-migration-safetyluqiang-code/claude-code-skillsSkill76mo agoMITA39Claude Code
react-component-scaffoldluqiang-code/claude-code-skillsSkill76mo agoMITA41Claude Code