attack-surface-analysis
Attack Surface Analysis
This skill runs three analyses as one pipeline over a single pinned target:
- 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. - 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. - 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-stagesubagent that the session starts. A clean agent is aclaude-security:attack-surface-verifiersubagent 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.
If Claude Code refuses CronCreate, RemoteTrigger or ScheduleWakeup in the turn that loads this skill, that is the plugin's own rule: do not ask the user to allow it. If the user asked for something that needs that tool, say that it works again in the user's next message, unless that message loads a command of this plugin. A schedule may take two messages: if its tool still looks missing in the next one, tell them to ask once more.
Paths, substituted when the skill is invoked; the session copies them verbatim into starting instructions and commands: