Skip to main content

vulkro container

Check the packages inside a built container image against the local vulnerability data.

vulkro container alpine:3.19
docker save myapp:latest -o myapp.tar && vulkro container ./myapp.tar

<IMAGE> is a Docker reference or a .tar from docker save. A reference needs the local docker command; without it, save the tar on another machine and scan the file. Vulkro never pulls from a registry, and the image contents and findings stay on your machine.

What it reads​

  • OS packages: apk, dpkg, and the SQLite rpm database (RHEL 9+, Fedora, Rocky, Alma). Older Berkeley DB and ndb rpm databases are skipped with a warning.
  • Application packages: Java jars, npm node_modules and Python dist-info / egg-info, matched against the Maven, npm and PyPI data. Nested jars are not opened.
  • Packages deleted in a later layer are not reported.

Flags​

FlagDescription
-f, --format <FMT>Any vulkro scan format. Default table.
--saveSave the result to scan history. Off by default.

Exit codes​

0 no findings, 1 findings reported, 2 error.

See also: Dependencies and CVEs.

Command reference​

Generated from vulkro container --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Check the packages inside a built container image against vulnerability data.

vulkro container [OPTIONS] <IMAGE>

Arguments​

ArgumentDescription
<IMAGE>Image reference (e.g. alpine:3.19) or path to a .tar saved image.

Options​

FlagDescription
-f, --format <FORMAT>Output format. Same set as vulkro scan Default: table.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--savePersist the scan to history (mirrors vulkro scan --save). Off by default - container scans are usually one-shot CI checks.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro container --help
Check the packages inside a built container image against vulnerability data.

Scan a built container image's installed packages against the local vulnerability data: OS package databases plus an application-layer SBOM.

`<image>` is either a docker reference (e.g. `alpine:3.19`) or a path to a `.tar` produced by `docker save`. When a reference is given, Vulkro invokes the local `docker` command; if `docker` is missing it exits with a hint to pre-save the tar elsewhere.

Coverage: - OS packages: apk + dpkg databases, and the modern SQLite rpmdb (`/var/lib/rpm/rpmdb.sqlite`; RHEL 9+, Fedora, Rocky, Alma). The legacy Berkeley DB (`Packages`) and ndb (`Packages.db`) rpm backends are not read: such an image logs a one-line warning. - App layer: Java jars (`META-INF/MANIFEST.MF` / `pom.properties`), npm `node_modules` packages, and Python `*.dist-info` / `*.egg-info` metadata, matched against the Maven / npm / PyPI CVE caches. - OCI whiteout (`.wh.<name>`) and opaque-dir (`.wh..wh..opq`) markers are honoured, so a package deleted in a later layer is not reported. Nested / fat jars are not recursed into in this version.

Offline: the scan reads only the image tar and `~/.vulkro/data/cves/*.json`, and never pulls from a registry. The image contents, the package inventory, and the findings never leave the machine. Like every scanning subcommand this one passes the license gate, which can fire the anonymous usage heartbeat (at most once every 6 hours, on a background thread); `VULKRO_OFFLINE=1` silences it.

Exit codes: 0 = no findings, 1 = findings reported, 2 = error.

Usage: vulkro container [OPTIONS] <IMAGE>

Arguments:
<IMAGE>
Image reference (e.g. `alpine:3.19`) or path to a `.tar` saved image

Options:
-f, --format <FORMAT>
Output format. Same set as `vulkro scan`

Possible values:
- table
- json
- sarif
- gh-pr
- gh-pr-inline-comments: GitHub PR per-finding **inline review comments**. NDJSON, one `{path, line, side, severity, rule_id, fingerprint, body}` object per line. Designed to be piped straight to a `gh api` loop so `vulkro gate` can drop comments next to the offending line on the Files Changed tab without going through a GitHub App. See the GitHub CLI integration guide at docs.vulkro.com. `gh-pr-inline` is accepted as an alias: it is the name the docs and `vulkro-sf` use
- github-annotations: GitHub Actions / GitLab CI **PR annotations**. One workflow-command line per finding (`::error file=...,line=...,endLine=...,title=<rule id>::<message> (<helpUri>)`). Printed straight to a CI job's stdout, GitHub turns each line into an inline annotation pinned to `file:line` on the Files Changed tab; GitLab CI's annotation parser reads the same grammar. When run against a baseline (`--gate-vs` / a `gate` flow) only NEW findings are annotated so a first run does not paper the PR
- gitlab-mr: GitLab Merge-Request comment: GitLab-flavored Markdown with collapsible blocks
- bitbucket-pr: Bitbucket Pull-Request comment: flat Markdown (Bitbucket does not render `<details>`)
- azure-pr: Azure DevOps Pull-Request comment: flat Markdown (shared with Bitbucket)
- junit
- csv
- cyclonedx: CycloneDX 1.6 JSON SBOM (uses `ScanResult.packages`)
- cyclonedx-1.7: CycloneDX 1.7 JSON SBOM. Same component shape as `cyclonedx`; emits the newer `specVersion`. Offered alongside 1.6 (which stays default)
- spdx: SPDX 2.3 JSON SBOM
- spdx3: SPDX 3.0.1 JSON-LD SBOM (`@context` + `@graph` of typed elements). Offered alongside SPDX 2.3, which stays the default for `--format spdx`
- cbom: CycloneDX 1.6 CBOM (Cryptographic Bill of Materials): one `cryptographic-asset` component per detected weak algorithm (MD5, SHA-1, ECB, RC4, DES, static IV, insecure RNG), with file:line occurrences inlined under `evidence.occurrences`. Compliance buyers (FedRAMP, post-quantum readiness reviews) ask for this as a distinct artefact from the library SBOM
- openvex: OpenVEX 0.2.0 exploitability statements for each dependency CVE (`affected` / `not_affected` / `under_investigation`), with `not_affected` backed by reachability analysis. Pairs with an SBOM
- cyclonedx-vex: CycloneDX 1.6 VEX: the same exploitability verdicts as `openvex`, in a CycloneDX `vulnerabilities[].analysis` document
- cbom-1.7: CycloneDX 1.7 CBOM. Same crypto-asset grouping as `cbom` plus a richer post-quantum descriptor. Offered alongside 1.6 (default)
- aibom: CycloneDX 1.6 ML-BOM (AIBOM): the AI SDKs and frameworks the project declares or imports, the model identifiers its code names, model files in the repository (hashed, pickle formats flagged) and the MCP servers and tools it declares, each with file:line evidence
- pdf: PDF render of the executive HTML report (requires `wkhtmltopdf` on PATH)
- ropa-md: GDPR Article 30 Records-of-Processing template - Markdown
- ropa-html: GDPR Article 30 Records-of-Processing template - HTML
- ndjson: Newline-delimited JSON: one finding per line plus a trailing summary line. Designed for SIEM ingestion and `jq` filter pipelines
- evidence-graph: Evidence-graph JSON (`evidence-graph/1.0`): a stable, versioned, AI-consumable document that composes endpoints, taint source -> sink flows, reachability verdicts, findings, and the dependency SBOM into one graph. Meant to be handed to an external AI agent as deterministic ground truth (Vulkro embeds no model; the agent brings its own). Pairs with `vulkro aggregate` for cross-repo linking. See `docs/ai-tool/`

[default: table]

--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--save
Persist the scan to history (mirrors `vulkro scan --save`). Off by default - container scans are usually one-shot CI checks

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')