attack-surface-analysis

attack-surface-analysis is a skill for Claude Code from anthropics/claude-plugins-official. It costs 159 tokens per session (5,180 once invoked), scanned A, original, Apache-2.0.

A security-audit workflow that runs three stages of attack-surface analysis on one fixed code target. It examines unused default reachability, sensitive paths available early, and risky combinations of settings.

In plain words
What is it for?
It is for finding unnecessary default access, pre-authentication or zero-click exposure, and configuration combinations that bypass security controls.
Why use it?
It turns a broad security review into a defined pipeline and has each finding independently challenged before the report is completed.

Skill for Claude Code ✓ vendor

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 It is for finding unnecessary default access, pre-authentication or zero-click exposure, and configuration combinations that bypass security controls.

Compare 6 skills from other repositories ↓
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 48,794 stars · on GitHub · code.claude.com

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 anthropics/claude-plugins-official
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/anthropics/claude-plugins-official/attack-surface-analysis/github.svg)](https://agentmods.dev/skills/anthropics/claude-plugins-official/attack-surface-analysis)
Your own site
<a href="https://agentmods.dev/skills/anthropics/claude-plugins-official/attack-surface-analysis"><img src="https://agentmods.dev/badge/skills/anthropics/claude-plugins-official/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/anthropics/claude-plugins-official/attack-surface-analysis"><img src="https://agentmods.dev/badge/skills/anthropics/claude-plugins-official/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 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.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

Copies of this mod

1 near-identical copy found in the catalogue:

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 anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-25.

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-analysisanthropics/claude-plugins-officialSkill49ktodayApache-2.0A159Claude Code
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
viteantfu/skillsSkill6.1k4d agoMITA49Claude Code, Codex