Menu Attack surface

Guides

Attack surface

What an attacker can reach: entry points, components, findings and CVEs as a graph, and which vulnerabilities actually impact, from the internet or after login.

A review run's page in the console (Results > a run) has an Attack surface card when the run has a codebase map. It answers one question: of everything the review found, what can an attacker actually reach?

What it shows

How reachability is decided

VulnerabilityReachable from the internet whenAfter login when
A findingIts data flow starts at, or its entry_point names, an entry point without a loginThe entry point needs a login
A CVEIt is reachable (its vulnerable code is called) in a component that an entry point without a login leads intoThe same, behind a login

Explicit verdicts win over the graph:

A CVE in code that nothing calls is not reachable: it can wait, and the card says so.

Fill it in for an older run

Runs made before these fields existed can be completed by asking:

map the attack surface of this repo and tell me which vulnerabilities actually matter

The sh-attack-surface skill then:

  1. checks which entry points really need a login;
  2. decides whether each CVE's vulnerable code is called;
  3. records who can reach each finding;
  4. writes attack-surface.md next to the run.

Reload the run's page to see the result.

API

GET /api/run/surface?key=<run> returns the graph (nodes, edges), the vulnerabilities with their reach and path, and the summary.