Home / Market / attack surface analysis

attack surface analysis

Attack surface analysis: a long audit in three stages (default attack surface reduction, early reachability audit, configuration interaction audit) that ends in reports and patch files, with every finding challenged by an independent agent. Use only when the user asks for such an analysis or audit: an attack surface analysis or reduction, an audit of what is reachable before login (pre-authentication) or 0-click, a protocol state machine audit, or a configuration interaction audit. Use it too wh

skill★ 49048221 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: attack-surface-analysis description: "Attack surface analysis: a long audit in three stages (default attack surface reduction, early reachability audit, configuration interaction audit) that ends in reports and patch files, with every finding challenged by an independent agent. Use only when the user asks for such an analysis or audit: an attack surface analysis or reduction, an audit of what is reachable before login (pre-authentication) or 0-click, a protocol state machine audit, or a configuration interaction audit. Use it too when the user asks to apply a patch that such an analysis wrote. Do not use it to answer a question about the code, such as what an attacker can reach. It is not a vulnerability scan: to scan code or find vulnerabilities, use the claude-security:claude-security skill." allowed-tools:

disallowed-tools:

---

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.

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:

Rules that bind every stage

These rules apply to the session up to and including its closing message, and to every stage agent and every clean agent.

Report and output layout

All output for one analysis lives in one directory at the root of the target's checkout. The results script makes it, with its .gitignore, and names it for the UTC time.

CLAUDE-SECURITY-<timestamp>/
  .gitignore
  (the results files and attack-surface-patches/, which the results script writes, and the session's coverage.md)
  stage1-default-attack-surface-reduction/
    report.md      the stage's independent report, saved by the session
    inventory.md   the stage's full lists and tables, which the report's counts point to
    findings/      two files per candidate or finding, named for its id: the evidence record (F101.md: the claim, the trace, its status, validation record) and the results record (F101.json)
    gates/         one patch file per gate; `waiting-`, `unresolved-` or `refuted-` starts the name of one that is counted nowhere
    regression.patch   adds the regression suite, with how to ru