/depscan:depscan-reachability-prooffrom depscan
Proves or disproves reachability of vulnerable packages/functions using language-specific analyzers (golem, kosi, rusi, dosai, atom). Use to determine if a CVE is exploitable from entry points.
Ships in depscan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the question is "is this finding reachable here", after
a scan exists. dep-scan's own reachability enrichment runs through
depscan scan --profile ci or --checks reachability, and its outputs
come first: the *-reachables.slices.json files next to the BOM, the raw
reports under analysis/<tool>/, and each finding's
exploitability.axes.reach. The analyzers below are run directly only for
what a scan does not record, and each step says what that is.
The rules in reference/safety.md apply, in
particular: a reach claim names its analyzer and root set; "not reachable"
is never stated unless the evidence covers the vulnerable function and the
deployed entry points; and the summary uses the finding schema's
exploitability axes (presence, reach, exposure, barrier, pressure), marking
every axis you did not measure as not_assessed.
golem, kosi and rusi ship in @cdxgen/cdxgen-plugins-bin-<platform>, not
with dep-scan; dosai is its own release; atom is the @appthreat/atom npm
package. depscan doctor --format json lists the ones dep-scan found, and
reference/tools.md gives the lookup order and
the minimum versions. When a tool is missing, the analysis it would provide
stays not_assessed; say so, and never install a tool without the user's
consent.
Write every output under a directory you created for this run (the
examples use /tmp/reach), with absolute paths.
When dep-scan runs golem itself it leaves golem's own default root set in
place (recorded in the report's callGraph.roots) and copies each
call-graph node's reachableFromRoots, minDepth and rootIds into
go-reachables.slices.json (the raw report is
analysis/golem/golem.json). It does not ask for witness paths to a
vulnerable symbol, because golem runs before the advisories are matched,
so this step runs golem directly with the symbol named and, when the
claim needs it, an explicit -roots set.
mkdir -p /tmp/reach
printf 'golang.org/x/crypto/ssh.Dial\n' > /tmp/reach/symbols.txt
CGO_ENABLED=0 GOFLAGS=-mod=readonly golem analyze -dir /absolute/path/to/project \
-callgraph rta -roots main -reachable-symbols /tmp/reach/symbols.txt \
-dependency-detail full -include-stdlib -out /tmp/reach/golem.json
golem reads the project from -dir and ignores positional arguments; a
command without -dir analyses the current directory and can return an
empty, valid-looking report. Write the report with -out (golem has no
-o). The environment prefix keeps cgo off and the module graph read-only,
which is what dep-scan itself does; add GOPROXY=off GOTOOLCHAIN=local
when the machine must stay offline. Turning cgo on (CGO_ENABLED=1) runs
the host C compiler with flags the project chooses: it needs the user's
consent, stated at the step.
The symbols file holds one pattern per line, matched case-insensitively as
a substring of node ids and labels. -include-stdlib keeps standard
library functions in the graph and -dependency-detail full keeps the
interior of dependencies; without them, a vulnerable function in the
standard library or deep inside a module has no node to reach, and an empty
answer under the defaults is not_assessed, not "not reachable".
The root set is the claim's scope: -roots main means reachable from
main; -roots handlers means reachable from HTTP handlers; -roots exported is the right set for a library module; -roots all widens the
claim. The report names the run in options.callGraphMode and
callGraph.roots; read them before quoting anything. Then:
callGraph.reachability.paths[] is the witness: symbol, the nodeIds
from a root to the symbol, the edgeIds with file and line, and
depth. -max-paths-per-symbol (default 3) caps the paths per symbol.callGraph.reachability.nodes[] is liveness: nodeId,
reachableFromRoots, minDepth and rootIds for every node in the
graph.securitySignals entries carry a category, severity and confidence;
dataFlow slices carry sanitizerNodeIds, which is barrier evidence, not
proof of absence. If the diagnostics say RTA requires at least one reachable root function, the chosen root set found no roots: report that,
and do not present an empty graph as "nothing is reachable".
For Kotlin and Android scans dep-scan runs kosi's syntax
backend itself (it reads source only and starts no build) and writes
kosi-reachables.slices.json, with the raw report in
analysis/kosi/kosi.json. The syntax tier has library usages joined to
explicit imports (a wildcard import or an import that matches more than
one artifact attributes nothing), and no call graph or data flow, so this
step runs the resolved backend directly for root sets and witness paths.
Per-node rootScopes there are kosi's scope names (main, handlers),
not node ids.
kosi analyze --dir /absolute/path/to/project --backend resolved \
--roots main --dataflow security \
--reachable-symbols /tmp/reach/kosi-witness.json --out /tmp/reach/kosi.json
For kosi, --reachable-symbols names the file it writes: the shortest
witness paths for every reached symbol (symbols[].canonicalName,
nodeId, paths[].root and paths[].edges). It needs the resolved
backend; the syntax backend has no call graph. callGraph.reachability[]
carries nodeId, reached, distance and roots per node. Use --roots handlers for services and --roots android for apps. The resolved
backend builds its classpath from explicit jars, a classpath.txt, libs/
directories or an offline scan of ~/.gradle and ~/.m2
(stats.classpath names the one used); it does not run Gradle. Calls into
a library missing from that classpath stay unresolved, and the summary
says so.
This runs rusi directly because dep-scan does not report its unsafe-code signals or crypto findings yet.
rusi analyze --dir /absolute/path/to/project --backend stable \
--out /tmp/reach/rusi.json
security_signals carry category (unsafe-code, native-interop,
ffi-wrapper, trusted-proxy-config and others), severity, confidence, purl
and file position. rusi has no root-based liveness, so its call graph is
reach evidence only through a data flow's witness. --deps (with
--dataflow security-deps) resolves calls into dependency crates instead
of stopping at the boundary. The compiler backend runs the Rust compiler
and the crate's build scripts, which executes project code: it needs the
user's consent in the conversation, stated at the step.
dep-scan keeps dosai's exploit chains, attack-surface tiers, sanitized
flows and service trust zones: analysis/dosai/dotnet-reachability.facts.json
carries exploit_chains, attack_surface, sanitized_flows,
sanitizers_nearby and services, and each slice in
dotnet-reachables.slices.json carries a dosai entry with its
exposure, exploitChains and sanitizersNearby. dosai emits no slice
for a trace it sanitized, so a nearby sanitizer is context, not a reason
to discount the slice; quote its category (an HTML encoder does not
sanitize a SQL or command sink). Read those first; run dosai directly
only when no scan exists or for agent-context.
dosai dataflows --path /absolute/path/to/project \
--o /tmp/reach/dosai-dataflows.json
dosai agent-context --path /absolute/path/to/project \
--o /tmp/reach/dosai-agent.json
ExploitChains are the strongest evidence: a chain from a route to a sink
through the vulnerable package. AttackSurface groups entry points by
exposure tier; SanitizedFlows is barrier evidence (a sanitizer on the
path), never proof the finding cannot fire; PackageReachability joins
packages to flows. agent-context is the compact version for a long
investigation: EntryPoints, HighRiskSlices, ReachablePackages,
AttackSurface and SuggestedNextCommands. dosai's --restore or
--build options run MSBuild on the project: never pass them to an
untrusted project, and on a trusted one say at the step that they build
project code. On a machine whose .NET runtime is newer than the one the
release targets, dosai needs DOTNET_ROLL_FORWARD=LatestMajor; record that
you set it.
atom covers Java, JavaScript and TypeScript, Python, PHP, Ruby and C/C++.
atom reachables -l <language> --no-build-tools --profile appsec \
--bom-file /absolute/path/to/bom.json \
-o /tmp/reach/app.atom --slice-outfile /tmp/reach/reachables.json \
/absolute/path/to/project
atom callsites -l <language> --no-build-tools \
--bom-file /absolute/path/to/bom.json \
-o /tmp/reach/app.atom --reuse-atom \
--slice-outfile /tmp/reach/callsites.json /absolute/path/to/project
--bom-file takes the BOM dep-scan's scan wrote, so reachables and
callsites carry package purls. --profile appsec drops flows a sanitizer
already covers. --no-build-tools keeps atom from running Maven, Gradle,
delombok or sbt; --fetch-deps and the build tools run project tooling
and need consent. An empty reachables list with no tagged sources is
not_assessed, not "unreachable": the projects that produce empty lists
usually lack recognised entry points. callsites lists every place the
application calls into each package, which is presence of use, not reach
from an entry point.
A witness path from a named root set proves reach from that root set under
that analyzer's call-graph approximation (rta and cha are approximations,
not concrete traces). Sanitizers, authentication and binary hardening are
barriers, not refutations. A summary states, per finding: presence (the
package is in the BOM), reach (the witness, or not assessed), exposure
(the entry point and its tier), barrier (sanitizers seen), and pressure
(what the database knows). Every axis you did not measure is
not_assessed, and an unmeasured axis caps the claim.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub owasp-dep-scan/dep-scan --plugin depscan14 skills in this plugin
/depscan-attack-surfaceMaps what an application exposes: it groups the entry points, authentication state and trust zones that dosai, golem, rusi and kosi report into exposure tiers with atom-tools, and answers which anonymous endpoints reach which vulnerable packages. Use when asked what is exposed, what the attack surface is, which endpoints are anonymous, or what a finding can reach from outside./depscan-binaryReviews executables, installers and drivers with blint: the security review with hardening and behaviour rules, per-architecture metadata, component identification, and Windows driver and Authenticode analysis. Use when asked to analyse a binary, check a driver, review an installer, inspect an ELF or Mach-O, or answer whether a binary is safe to ship. Component identification at scale needs blintdb, which is a tens-of-gigabytes download and only runs with the user's consent./depscan-change-riskReports what changed between two dep-scan scans, builds or source revisions and whether it made things worse: the MCP diff_scans tool or a fresh scan pair for findings, dosai diff for .NET data-flow deltas, atom-tools drift for flow-level risk deltas with a pass or fail gate, and blint diff for binary hardening regressions. Use for pull-request and release questions such as "did this change add exposure", "what new findings did this introduce", or "did the new build lose hardening"./depscan-container-imageScans a container image reference, an exported rootfs directory or an image tarball with OWASP dep-scan and reports the CVEs in the image's packages. Use when asked to scan a docker or OCI image for vulnerabilities, audit an alpine, debian or redhat base image, check a rootfs, or when a container scan came back empty and the cdxgen version needs checking. Load it before writing any container depscan command./depscan-coverage-loopRuns the dep-scan coverage loop, which scans, reads depscan doctor and the scan manifest's stages that did not complete, fixes the missing tool, database flavor or option each one names, and re-scans until coverage stops improving. Use when a scan came back empty or partly not assessed, when depscan doctor reports a missing tool or an unavailable capability, or when the user asks to make dep-scan coverage complete on this machine. Runs only when the user asks for it, because it installs dep-scan's own tools and data./depscan-cryptoBuilds the cryptographic inventory and its reachability across the toolchain: golem crypto findings (insecure TLS verification, literal key material), rusi cryptos, dosai crypto with its record-level reach and CBOM, atom-tools crypto-reach joining crypto assets to entry points, and trustinspector certificate and SPKI hashes for container trust. Use when asked what cryptography a project uses, whether weak algorithms are reachable, whether TLS verification is disabled anywhere, or how ready the code is for post-quantum migration.Other plugins' skills for the same job