/depscan:depscan-container-imagefrom depscan
Scans container images, rootfs directories, or image tarballs with OWASP dep-scan to report CVEs in packages. Use for Docker/OCI vulnerability audits, base image checks, or troubleshooting empty scan results.
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 for images, rootfs directories and image tarballs. For source
repositories use depscan-scan; to read a finished container scan back use
depscan-triage.
The rules in reference/safety.md apply to every command this skill produces. In particular: absolute paths, and a clean result must be earned from the manifest, because an empty container scan is usually a tooling problem rather than a clean image.
Claude Code replaces the ${user_config.*} values in this table with the
options the user set for the plugin. Other clients show the text as written.
A value counts as set only when it is not empty and does not start with ${;
otherwise ignore it and follow the "When not set" column.
| Setting | Value | When not set |
|---|---|---|
| Vulnerability database directory | ${user_config.vdb_home} | dep-scan's own default |
| cdxgen command | ${user_config.cdxgen_cmd} | the cdxgen on PATH (dep-scan needs 13.8.0 or newer) |
| Preferred runtime | ${user_config.runtime} | the depscan on PATH |
Two things decide whether a container scan delivers:
inventory stage failed;
stderr names the required version and the CDXGEN_CMD fix. Check
depscan doctor --format json (the tools entry named cdxgen, its
version and minVersion), and suggest that the user run
/depscan:depscan-coverage-loop to repair it.app-only flavor does not carry.
depscan vdb info --format json reports the local flavor. A scan whose
flavor differs from the local one downloads full by itself (gigabytes),
so tell the user first; they can also run /depscan:depscan-vdb.# An image reference, from a local daemon or a registry
depscan scan --target-kind container alpine:3.19 --deep --format json -o /absolute/path/to/reports
# An exported rootfs directory (docker export)
depscan scan --target-kind container /absolute/path/to/rootfs --format json -o /absolute/path/to/reports
--deep asks cdxgen for the deeper image and OS package inventory the help
recommends for images. Both exit 0 when the inventory stage completed and
write sbom-docker.cdx.json, depscan.findings.json,
depscan.manifest.json and the VDR sbom-docker.vdr.json into the reports
directory. The findings list
carries one entry per vulnerable package with its purl
(pkg:apk/alpine/..., pkg:deb/debian/..., pkg:rpm/...), severity and
coverage state.
To export a rootfs from an image:
docker create --name depscan-rootfs alpine:3.19 true
docker export depscan-rootfs | tar -C /absolute/path/to/rootfs -xf -
docker rm depscan-rootfs
Run these container commands against a target the user named. Never export or scan an image the user did not ask about.
| Situation | Command |
|---|---|
| An image reference the user named | depscan scan --target-kind container <image> --format json -o <reports> |
| A rootfs directory | depscan scan --target-kind container <dir> --format json -o <reports> |
| An image tarball on disk | depscan scan --target-kind container <file.tar> --format json -o <reports> |
| The scan exits 0 with no findings | Read depscan.manifest.json stages; any stage not completed means not assessed, usually the cdxgen version |
| Distro CVEs are missing with a complete inventory | The database flavor is not full; suggest /depscan:depscan-vdb |
| Which libraries are actually loaded, and by what | blint's link closure, below |
| What the image trusts, and which files came from packages | trustinspector and trivy-cdxgen, below |
Three deeper container questions are answered by the sibling tools
directly, because dep-scan does not report them yet. The link closure needs
blint 4.0.0 or newer, which dep-scan's tool extra installs; an older blint
3.2.x ignores these variables and writes no closure, so check the version
first
(python -c "import importlib.metadata as m; print(m.version('blint'))").
trustinspector and trivy-cdxgen sit in the cdxgen plugins package under
plugins/trustinspector/ and plugins/trivy/.
# Which shared libraries each executable declares and resolves
# (blint 4.0.0 or newer; never set BLINT_LINK_ROOT to the scan host)
BLINT_RESOLVE_LINK_CLOSURE=1 BLINT_LINK_ROOT=/absolute/path/to/rootfs \
blint -i /absolute/path/to/rootfs/usr/bin -o /absolute/path/to/blint-reports --no-banner
# The certificates and trust material the image carries
trustinspector-cdxgen-<platform> rootfs /absolute/path/to/rootfs
# The OS-package inventory of the unpacked rootfs, with installed files
trivy-cdxgen-<platform> rootfs --output /tmp/trivy-rootfs.cdx /absolute/path/to/rootfs
The link closure lands in each binary's -metadata.json under
link_closure, next to dynamic_entries (the NEEDED libraries) and
import_dependencies (the resolved imports). That answers "is this vulnerable library actually
loaded by some executable, or installed but unused"; unused is not
not_affected, it is a weaker presence claim with this evidence. The
trust report carries the certificate material with its hashes and trust
domains; the hash list feeds a distrust review, and certificate contents
are never quoted. trivy-cdxgen's inventory includes the installed files
and trust state behind each OS package, which separates a real package
from a lookalike directory. The cdxgen audit packs container-risk and
rootfs-hardening apply to these BOMs through the cdx-audit step in
depscan-supply-chain.
A completed container scan proves the packages the image ships carry the recorded CVEs as of the database date. It does not prove the image is safe to run, that a vulnerable package is reachable from the entrypoint, or that unpackaged binaries are free of vulnerabilities: dep-scan matches packages, and binaries without a package identity are inventoried without CVE matching in this version. Say so when summarising.
depscan-triagefull flavor for distro matching: suggest /depscan:depscan-vdb/depscan:depscan-coverage-loopWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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