/depscan:depscan-attack-surfacefrom depscan
Maps application attack surface by grouping entry points, authentication state, and trust zones from dosai, golem, rusi, and kosi reports into exposure tiers using atom-tools. Answers which anonymous endpoints reach vulnerable packages.
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 to answer "what is exposed". It needs a source project and,
for the vulnerable-package join, a dep-scan scan of the same project. The
tools are run directly because dep-scan reports exposure tiers and trust
zones only for .NET (in analysis/dosai/dotnet-reachability.facts.json
and the dosai entries of dotnet-reachables.slices.json); for other
languages each step says what it adds.
The rules in reference/safety.md apply. Steps
that run project code (dosai's --restore/--build, golem with cgo on,
the rusi compiler backend, atom's --fetch-deps) are not needed here,
and each needs the user's consent when it is.
Per language, one report each; skip a language the project does not have and say so. Write everything under a directory you created for this run.
mkdir -p /tmp/surface
# Go
CGO_ENABLED=0 GOFLAGS=-mod=readonly golem analyze -dir /absolute/path/to/project \
-callgraph cha -roots handlers -dataflow security -out /tmp/surface/golem.json
# Rust
rusi analyze --dir /absolute/path/to/project --out /tmp/surface/rusi.json
# Kotlin and JVM
kosi analyze --dir /absolute/path/to/project --backend resolved \
--roots handlers --dataflow security --out /tmp/surface/kosi.json
# .NET (needs the .NET runtime the release targets)
dosai dataflows --path /absolute/path/to/project \
--o /tmp/surface/dosai-dataflows.json
dosai methods --path /absolute/path/to/project \
--o /tmp/surface/dosai-methods.json
golem reads the project from -dir, never from a positional path, and
writes with -out. reference/tools.md says
where each tool is found.
This runs atom-tools directly because dep-scan does not report exposure
tiers yet. Pass the engine reports themselves: the tiers come from dosai's
AttackSurface array and from each engine's call graph, which the unified
document of atom-tools ingest does not carry.
atom-tools attack-surface \
-i /tmp/surface/golem.json,/tmp/surface/rusi.json,/tmp/surface/kosi.json,/tmp/surface/dosai-dataflows.json \
-o /tmp/surface/attack-surface.json -f json
Read the document in this order:
summary.headline and summary.anonymousReach give the answer in one
line ("0 of 2 anonymous entry points reach at least one high-risk
sink"), with byTier and byEngine counts.tiers[], in tierOrder from anonymous-http down to unknown-auth,
each with its Exposure, EntryPointCount and EntryPoints (Route,
HttpMethod, File, LineNumber, Engine and a Reach object).coverage per engine: how many endpoints were anchored in the call
graph and how many flows were attached.diagnostics: an endpoint that could not be anchored reports
seed-not-found, and an engine with no call graph reports reach as not
computed. Both are gaps, not "reaches nothing".Only dosai classifies authentication. golem, rusi and kosi entry points
land in unknown-auth, which is a gap in the data, not a verdict that
they are protected. For .NET trust zones, read dosai-methods.json's
Services (with the request and response data classifications dosai adds
by default) and EntryPoints.
Read the dep-scan scan directory of the same project
(depscan report <scan-dir> --format json), then answer the question that
matters: which anonymous entry points reach which vulnerable purls. An
entry point's Reach.purls lists the packages its reach touches; where it
is empty because reach was not computed, the join is not_assessed for
that entry point. To see the flows themselves across engines, atom-tools ingest -i <the same reports> -o /tmp/surface/unified-flows.json writes one
document with flows, endpoints and packages.
To find the one function whose fix cuts the most flows, run the chokepoint metric over a call-graph report:
atom-tools graph -i /tmp/surface/golem.json --metric chokepoints \
-f json -o /tmp/surface/chokepoints.json
Proxy-derived sources: golem, rusi and kosi report a
trusted-proxy-config signal when they see spoofable client-IP handling;
treat it as an exposure finding of its own.
The surface map proves what the analysed languages and the run's root sets exposed. It does not prove completeness: a language the engines do not cover, a route registered dynamically, or a call graph built with a smaller root set all shrink the picture. State which engines ran, which did not, and the tier of every entry point you name; "no anonymous endpoints" is only ever the conclusion for the languages and roots you actually analysed.
depscan-reachability-proofdepscan-change-riskWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub owasp-dep-scan/dep-scan --plugin depscan14 skills in this plugin
/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./depscan-memory-safetyFinds memory-safety defects in C and C++ with atom and chen under the 37-rule family set, with confidence levels, compile-command support, SARIF output, and reachability ranking; and inventories the unsafe boundaries other languages carry (golem cgo and native interop, rusi unsafe-code and FFI, blint JNI joins). Use when asked to find memory-safety defects, review native code, audit unsafe boundaries, or check whether a memory-safety defect is reachable.Other plugins' skills for the same job