Skip to main content

vulkro scan

Scans a project for security findings: endpoints and auth, attack paths, secrets, dependency CVEs, IaC and more.

vulkro scan . # same as `vulkro scan ci .`
vulkro scan . --format sarif > vulkro.sarif # for code scanning
vulkro scan . --fail-on critical,high # CI gate

Presets​

vulkro scan quick . # or: vulkro scan --preset quick .
PresetUseSets
quickPre-commit--min-confidence high, --scope src, --since HEAD~1
ci (default)CI--gate and a fail-on Critical + High exit policy
deepBefore a release--all-confidence, --include-unreachable, --min-evidence 0.0

A flag you pass always wins over the preset. Bare vulkro scan . prints a one-time hint naming the preset; VULKRO_QUIET_PRESET_HINT=1 silences it.

Main flags​

FlagDescription
-f, --format <FORMAT>Output format (see below). Default table.
--fail-on <SEVERITIES>Severities that cause exit 1, for example critical,high.
--gateUse the [quality_gate] thresholds in vulkro.toml (overrides --fail-on).
--gate-vs <REF>Exit code counts only findings on lines changed since REF.
--diff-only <REF>Scan only files changed since REF.
--baseline <FILE>Report only findings not in a saved baseline.
--ratchetFail only on findings new since .vulkro-baseline.json. --ratchet-strict requires the file.
--min-confidence <LEVEL>high, medium (default) or low.
--all-confidenceShow every finding (same as --min-confidence low).
--scope <SCOPE>all (default) or src (drop Dockerfile, lockfile, IaC and docs findings; keeps .env* and k8s manifests).
--saveSave the run to ~/.vulkro/scans.db for history, trends and the console.
--webScan, save, then open the local console.
--profile <PROFILE>Add a compliance evaluation: owasp-asvs, pci, soc2.
--pq-auditFlag RSA, ECDSA, ECDH and classical Diffie-Hellman for post-quantum migration.
--validate-secretsCheck found secrets against the provider (network call; off by default).
--post-to <DEST>Send a summary to slack, teams, jira or pagerduty after the scan.

Run vulkro scan --help for the rest (--min-severity, --rule-pack, --since, --triage, --strict-confidence, --include-unreachable, --top, --jobs, --no-cache and more).

Output formats​

UseFormats
Terminal and toolingtable, json, ndjson, csv, junit
Code scanning and pull requestssarif, gh-pr, gh-pr-inline, github-annotations, gitlab-mr, bitbucket-pr, azure-pr
SBOM and VEXcyclonedx, cyclonedx-1.7, spdx, spdx3, openvex, cyclonedx-vex, cbom, cbom-1.7, aibom
Reports and evidencepdf (needs wkhtmltopdf), ropa-md, ropa-html, evidence-graph

See Output formats.

Gating in CI​

vulkro scan ci . --fail-on critical,high # fail on any Critical or High
vulkro scan . --gate-vs origin/main # fail only on new lines in this PR
vulkro scan . --ratchet # fail only on findings new since the baseline

Findings Vulkro flags but cannot decide offline (disposition not-examined, such as object-level authorization) never fail the run. They stay in the report.

Inline suppression​

# vulkro:disable-next-line API2
@router.get("/health")
def health(): ...

// vulkro:disable-file at the top of a file silences the whole file. The rule id can be a detector id or an OWASP code such as API1. See Suppressions.

Exit codes​

CodeMeaning
0No findings at or above --fail-on (or the gate passed).
1Findings reported, a gate or ratchet block, or no licence (vulkro: license_required).
2Bad arguments, IO failure or internal error.

A tree where no source file could be examined is never 0: it is 2, or 1 if dependency, container, IaC or secret checks still reported findings.

See also: vulkro gate, Confidence model, Baselines.

Command reference​

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

Scan a project for security findings.

vulkro scan [OPTIONS] [FIRST_POS] [SECOND_POS]

Arguments​

ArgumentDescription
[FIRST_POS]First positional. Either a preset name (quick, ci, deep) or the path to scan. If it matches a preset name, the next positional is the path; otherwise this IS the path with the default ci preset.
[SECOND_POS]Second positional. Only consulted when the first positional is a recognised preset name. Defaults to . (current directory)

Options​

FlagDescription
--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.
--preset <PRESET>Explicit preset selector. Takes precedence over a preset-named first positional; --preset ci . ignores the positional preset slot and treats the next positional as a path. Valid: quick, ci, deep. Unknown values exit 2 with an error.
-f, --format <FORMAT>Output format. Default: table.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-v, --verboseShow file paths and line numbers for each endpoint (implies --endpoints)
--endpointsList the endpoint inventory in the table output, after the findings. vulkro discover prints it on its own.
--saveSave results to local database (~/.vulkro/scans.db) and persist a trend snapshot.
--webScan, save the result to the console database, then open the web console.
--baseline <FILE>Compare findings against a saved JSON baseline; emit only new findings in the gh-pr formatter and exit non-zero only on regressions.
--rules <PATH>Extra rule pack file or directory of *.toml files.
--rule-pack <NAME>Enable a built-in opt-in rule pack by name. Pass multiple times to enable several. Detector packs (each runs a real detector module): business_logic and money_handling (BL-* / FIN-* business-logic and money-flow checks), state_machine (SM-* checks), concurrency (CONC-* checks).
--profile <PROFILE>Attach a compliance evaluation (owasp-asvs | pci | soc2)
--min-confidence <LEVEL>Minimum confidence to surface. Defaults to medium (Low-confidence findings - often noise: regex-matched-in-comments, ast-disconfirmed shapes, weak single-signal hits - are hidden by default so the scorecard reflects realistic precision). Pass --all-confidence (or --min-confidence low) to show them for debug / forensic runs; --min-confidence high for the strictest report. The active preset can override this default (quick raises it to high); an explicit --min-confidence always wins over the preset. Possible values: high, medium, low.
--min-evidence <THRESHOLD>Filter findings to those with cumulative evidence weight >= THRESHOLD. Only applies to findings that carry evidence - findings emitted by rules that haven't been retrofitted to emit evidence yet (empty bag) bypass the filter, so a non-zero threshold won't silently hide every legacy finding. Range: 0.0..=1.0. Default behaviour (flag omitted) is the same as --min-evidence 0: nothing filtered.
--all-confidenceShow every finding regardless of confidence - equivalent to --min-confidence low. Restores the earlier unfiltered behaviour (every finding shown) for debug or forensic runs.
--strict-confidenceFilter High-confidence findings whose evidence bag is empty. Off by default - behaviour-preserving for callers who don't opt in. Intended for CI gates that want maximal precision: every surviving High has evidence proof per the confidence rubric (see docs/confidence-rubric.md). Equivalent to VULKRO_STRICT_CONFIDENCE=1. The --strict-confidence flag wins if both are set (env var is overridden to false only when its value parses as not-truthy via env_flag_set)
--ai-prCalibrate the scan for AI-generated PR diffs. Off by default. When set, vulkro inspects the latest commit against HEAD~1..HEAD to compute four shape signals (large diff > 200 added+removed lines, new non-test files added without a paired test file, repetitive doc-comment blocks across consecutive functions, and AI marker phrases in the commit subject + body). When at least two of the four signals fire, vulkro:
--ai-code-segregationEmit an AI-code segregation report alongside the normal scan output. The report breaks down findings by AI tool fingerprint (Claude / Copilot / Cursor / Aider / ChatGPT / generic AI-generated markers) and shows the fraction of findings that landed on AI-touched files. Useful for regulated-industry audits (HIPAA / PCI-DSS / FedRAMP) that need to demonstrate AI-code review hygiene. Rendered as markdown to stderr after the scan completes; the main output stream is unchanged.
--attest-reviewedAttest that the AI-touched code in this scan has been human-reviewed. Appends a human-reviewed-ai-code evidence row to every finding on an AI-touched file, stamped with the reviewer name (defaults to $USER). Lets a downstream compliance emit show "every AI-touched finding has a human-review sign-off" without per-finding manual tagging.
--reviewer <NAME>Reviewer name to embed in the --attest-reviewed evidence rows. Defaults to $USER from the environment when set, otherwise "unknown". Ignored when --attest-reviewed is not set.
--bruteforce-sinksRun the bruteforce-sinks pass: statically drive every discovered critical-surface call site against an adversarial payload corpus and emit a finding per payload that reaches the sink without a recognized guard.
--diff-only <REF>Restrict the scan to files that differ vs the given git ref. The PR-speed mode: a 1000-file project where the PR changes 6 files scans 6 files instead of 1000. Composes with --gate-vs to also filter the resulting findings to the changed line range. Unset = scan everything.
--bruteforce-categories <CSV>CSV allowlist of sink categories to scan when --bruteforce-sinks is set. Example: --bruteforce-categories sql,payment,llm. Unset means "all 8 categories". Tags accepted: sql, shell, http, payment, llm, file-write, deserialization, email (plus short aliases - see docs)
--bruteforce-confidence <LEVEL>Confidence floor for emit. Defaults to high; pass medium to surface Hi + Med findings. low is for benchmarking only. Ignored when --bruteforce-sinks is not set. Default: high.
--bruteforce-payload-classes <CSV>CSV allowlist of payload super-classes to drive. Example: --bruteforce-payload-classes injection,path-traversal. Tags: type-confusion, numeric-extreme, size-extreme, unicode, injection, path-traversal, prompt-injection, payment-extreme.
--gateApply the [quality_gate] section of vulkro.toml. Exit non-zero when any threshold is breached. Replaces the default "fail on any critical/high" exit policy.
--validate-secretsValidate hardcoded credentials against the live provider API. OFF by default - Vulkro stays offline-first. When enabled, each detected secret is tagged [live], [dormant], or [unknown] based on a no-op authenticated HTTP call.
--gate-vs <REF>Restrict findings to lines that changed vs the given git ref (e.g. main, origin/main, a SHA). Findings outside the changed-line set are still printed in JSON for completeness but the exit code and the table summary reflect only diff-scoped findings - this is the "block PRs that introduce new issues without flagging the rest of the repo" lane.
--scope <SCOPE>Filter the displayed findings by file kind. all (default) shows every finding (Dockerfiles, lockfiles, IaC manifests, docs, templates). src drops findings from non-source-code files so app developers see only in-app issues. The active preset can override this default (quick raises it to src); an explicit --scope always wins.
--disposition <TIER>Narrow the findings table to one disposition tier: admitted (proven, we stand behind it), demoted (real but heuristic-only, the noise floor), or not-examined (a structural / authz-semantic class we cannot decide offline). This is a DISPLAY filter for the table only: it changes nothing about which findings exist, the exit code, or the JSON / SARIF output (each finding there already carries its disposition, so machine consumers filter on that field). The summary line still reports the full N found -> M admitted (K demoted, J not-examined) breakdown above the narrowed table. Omit the flag to show every tier (the default)
--hide-hardeningHide findings in the hardening bucket from the table and from the JSON, NDJSON, CSV, JUnit and pull-request outputs. Hardening means a defense-in-depth gap: a missing or weak security header, a cookie flag, a missing rate limit, the project-wide no-CSRF-middleware notice, dead code, an unresolved dependency licence, missing pagination, or a debug or error-detail notice reported at Low or Info. Off by default. Every finding carries its bucket (bucket in JSON and NDJSON, vulkro.bucket in SARIF) whether or not this flag is set, and no severity changes.
--no-cacheBypass the per-file extraction cache (~/.vulkro/scans.db). Forces every source file to be re-read and re-extracted, and suppresses cache writes. Equivalent to VULKRO_DISABLE_CACHE=1
--reachable-onlyDrop dependency / CVE findings whose vulnerable symbol isn't reachable from any first-party source file. Off by default - symbol matching is regex-based and can miss dynamic dispatch / reflection / import aliases, so we'd rather keep the finding (tagged [unreachable]) than silently drop it. Turn this on when you've validated the signal is right for your codebase and want a quieter report.
--include-unreachableInclude findings in files unreachable from any entry point. By default these are hidden - most are noise in dead code or vendored deps. Use this to include them for triage.
--fail-on <SEVERITIES>Comma-separated severities that should make the scan exit non-zero when present (e.g. --fail-on critical,high). Valid names: critical, high, medium, low, info. Independent of --gate: when --gate is set, the vulkro.toml [quality_gate] thresholds win and --fail-on is ignored.
--fail-on-reachable-onlyExclude dependency-CVE findings whose call-graph reachability verdict is unreachable from the --fail-on exit policy. Off by default. This affects the EXIT CODE only: the finding is still shown in scan / sbom / SARIF output at its advisory grade, with its disposition unchanged, so nothing is hidden or demoted - it just no longer fails the build. Only findings the call-graph gate positively resolved to unreachable are excluded; reachable and unknown verdicts always still count. Honest caveat: the vulnerable-symbol match is a name/text join and misses dynamic dispatch, reflection, and import aliases, so an unreachable verdict can be wrong; use this only when you accept trading recall for a quieter gate.
--min-severity <SEV>Drop findings BELOW this severity from the output (a display floor, not a gate). One of: critical, high, medium, low, info. This is the CLI equivalent of the editor's severityThreshold setting: run CI with the same value to see exactly the set your editor shows. Composes with --fail-on, which then evaluates the filtered set.
--ratchetAuto-discover .vulkro-baseline.json in the repo root and exit non-zero only when NEW findings appear vs the baseline. If no baseline file exists, this flag is a no-op (a warning is printed and the scan falls back to the default critical/high exit policy); use --ratchet-strict to require the file. An explicit --baseline PATH overrides the auto-discovered location.
--ratchet-strictStrict variant of --ratchet for CI gates: requires the baseline file to exist (auto-discovered or via --baseline PATH). Exits with code 2 and a clear error when missing. Otherwise behaves identically to --ratchet
--force-appBypass the framework self-scan heuristic. By default, a repo whose manifest names it as a known framework (name: "express", name = "Flask", etc.) is treated as framework source - endpoint extraction is skipped because every "finding" would be the framework's own internals, not the user's code. Pass --force-app to run the full pipeline regardless.
--force-all-rulesBypass the posture-based rule-applicability gate. Every rule runs regardless of the project's detected ProjectPosture. Default false: CSRF on JWT APIs, session-fixation on static sites, and similar inapplicable rules are silenced.
--no-reachability-filterSkip the default-on SCA reachability filter. Vulkro normally downgrades dep findings whose vulnerable symbol is not reachable from any first-party code by one severity tier (Critical → High → Medium → Low → Info, never disappearing the finding). Set this flag to restore the raw severity (useful for compliance audits that want every dep CVE at its nominal severity regardless of exploitability)
--triageRun the offline false-positive triage pass: demote findings in test / fixture / generated / vendored / migration paths one confidence tier. Default off, fully local (no network, no model), deterministic. Pair with --min-confidence high to push that noise out of the default view.
--pq-auditRun the post-quantum crypto audit pack. Flags classical RSA / ECDSA / ECDH / classical Diffie-Hellman usage that NIST PQC migration guidance targets for replacement (FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA). Symmetric primitives (AES, ChaCha20, SHA-2 / 3) are deliberately NOT flagged: Grover only halves effective key length, so AES-256 stays 128-bit-strong against a CRQC. Default false: PQ findings are a planning surface, not an exploit-today defect, so they're opt-in to keep the default scorecard focused on actionable risk.
--include-largeScan files that three per-file size caps otherwise drop before any check runs: over 1 MiB, over 5000 lines, or holding a single line longer than 5000 characters. Off by default - what the caps drop is almost always a minified bundle or a generated artefact whose regex/AST passes burn CPU without producing useful findings. A scan that does drop a file always says so, names it, and does not report a perfect health score over the tree. Pattern-based filters (vendored, generated, build output) are unaffected by this flag.
--since <REF>Incremental scan: only re-run extraction + security passes on files that changed vs <ref> (e.g. main, origin/main, a SHA). Findings for the unchanged files are merged in from the baseline JSON (auto-discovered as .vulkro-baseline.json, or the path passed via --baseline). Designed for CI: a PR-time scan of a 5-file diff runs in seconds instead of minutes.
--jobs <N>Number of worker threads for the parallel passes (per-file extraction, per-rule dispatch). Defaults to one thread per logical CPU. Pass 1 for serial execution - useful for debugging non-determinism or memory-bounded environments. Larger values past CPU count don't add throughput.
--post-to <DEST[=CONFIG][,...]>Post a privacy-safe scan summary to chat, incident or ticketing destinations after the scan (capability notify). Repeat the flag, or list several destinations in one value separated by commas (--post-to slack,jira=SEC):
--top <N>Count for the "Fix these first" ranked list printed after the normal output. Shown by default (top 10) on the human table format at an interactive terminal; pass --top N to change the count or --top 0 to suppress it. The rank is a deterministic synthesis of signals the scan already computed (severity, exploitability, reachability verdict, confidence, and for dependency findings the CISA-KEV / EPSS priority tags): no network, no AI. Every machine format instead carries risk_score and risk_rank on each finding (JSON). See vulkro explain --risk-model for the formula. Aliases: --top-risks.
--max-bundle-age <HOURS>Advisory freshness check for the local CVE bundle. When the newest ~/.vulkro/data/cves/*.json snapshot is older than HOURS, print a WARN telling you to run vulkro update. This is ADVISORY ONLY: it never changes the exit code on its own (pair it with --max-bundle-age-fail for a hard failure). With no local bundle present, the check warns that freshness could not be verified.
--max-bundle-age-failTurn a stale CVE bundle into a hard error (exit 2) instead of an advisory WARN. For CI that must not run against a stale bundle. Requires --max-bundle-age <HOURS> to define "stale"; a missing local bundle also fails under this flag.
--timingsRecord per-pass wall-clock timings and include them in the scan output as stats.pass_timings (JSON), slowest pass first. Purely a measurement aid for finding where scan time goes: it changes no finding and no exit code, and without it the output is byte-identical to before. Equivalent to VULKRO_TIMINGS=1. Most useful with --format json
--no-timestampPin the two clock fields of the output (scanned_at, and the SARIF / NDJSON fields derived from it) to the Unix epoch, so two scans of the same tree are byte-identical: for cache keys and baseline diffs. Same as VULKRO_DETERMINISTIC=1 for this run.
-h, --helpPrint help (see a summary with '-h')
Full vulkro scan --help
Scan a project for security findings.

Run a full security scan (endpoint extraction + OWASP API Top 10 checks)

Two equivalent forms: * `vulkro scan <preset> <path>` - positional preset (e.g. `vulkro scan ci .`) * `vulkro scan --preset <p> [path]` - named preset flag

Bare `vulkro scan [path]` defaults to the `ci` preset and emits a one-time stderr hint suggesting an explicit form.

The first successful scan on a machine additionally prints a one-time next-steps note to stderr (triage commands, changed-file rescan, dashboard). It is suppressed when stderr is not a TTY, when `--format` is any machine-readable format, or when the `CI` environment variable is set; a marker file under `~/.vulkro` guarantees it never prints twice. Presets:

* `quick` - `--min-confidence high`, `--scope src`, `--since HEAD~1`. Fast pre-commit hook scan. * `ci` - current default behaviour plus `--gate` and a default fail-on critical+high exit policy. What CI should do. * `deep` - `--all-confidence`, `--include-unreachable`, `--min-evidence 0.0`. Pre-release thoroughness.

Precedence: a user-passed flag always wins over the preset's value (so `vulkro scan quick . --min-confidence low` actually scans at `low`, even though `quick` would otherwise raise the floor to `high`). For boolean flags (`--gate`, `--all`, `--include-unreachable`) the preset can only turn them on; a flag cannot turn off what the preset turned on.

Environment variables: `scan` honours `VULKRO_ABSENCE_AUTHZ`, `VULKRO_AUTH_MIDDLEWARE_NAMES`, `VULKRO_AUTOFIX_WIDE`, `VULKRO_CODEGRAPH_LADDER`, `VULKRO_CVE_LIVE`, `VULKRO_DB`, `VULKRO_DEDUP_LOG`, `VULKRO_DETERMINISTIC`, `VULKRO_DISABLE_CACHE`, `VULKRO_DISABLE_PARALLEL_DISPATCH`, `VULKRO_GATE_SEVERITY_ONLY`, `VULKRO_GIT_BLAME`, `VULKRO_GIT_BRANCH`, `VULKRO_GIT_COMMIT`, `VULKRO_GO_FIELD_TAINT`, `VULKRO_GO_SAMEPKG_EDGES`, `VULKRO_HEARTBEAT_URL`, `VULKRO_INSPECT_DEPS`, `VULKRO_JS_RECEIVER_RESOLVE`, `VULKRO_LEGACY_TIER`, `VULKRO_LEGACY_UNCONFIRMED_TAINT`, `VULKRO_NEXTJS_FULL_MODULES`, `VULKRO_NO_FOLD`, `VULKRO_NO_HEARTBEAT`, `VULKRO_OFFLINE`, `VULKRO_PARSE_CACHE_MAX_BYTES`, `VULKRO_QUIET_PRESET_HINT`, `VULKRO_REACHABILITY_CLOSURE`, `VULKRO_SCAN_BUDGET_SECS`, `VULKRO_SCA_DEV_DEP_DEMOTE`, `VULKRO_SCA_NO_TRANSITIVE`, `VULKRO_SCA_REACHABLE`, `VULKRO_STRICT_ADMISSION`, `VULKRO_STRICT_CONFIDENCE`, `VULKRO_STRICT_PROOF`, `VULKRO_TAINT_CALLBACK_PARAM`, `VULKRO_TAINT_FLOW_ORDER`, `VULKRO_TAINT_GO_ERR_WASH`, `VULKRO_TAINT_GO_REDIRECT_CONFIG`, `VULKRO_TAINT_GO_SCALAR_PARAM`, `VULKRO_TAINT_VALUE_DEFUSE`, `VULKRO_TAINT_P7_*` (the SQL sink switches), `VULKRO_TIMINGS`, `VULKRO_VERIFIED_REQUIRES_PROOF`, `VULKRO_XPKG_JVM`. `vulkro env scan` and `vulkro env engine` describe each one; `vulkro env` lists every variable.

Exit codes: `0` no findings at or above --fail-on, `1` findings reported (or gate / ratchet hard-block), `2` arg error or internal failure.

A tree where no source file could be examined at all (nothing in it is in a language this build has an extractor for, so "no findings" would mean "nothing was looked at") is never `0`: it is `2` when nothing was reported, and `1` when the passes that need no extractor (dependency manifests, containers, IaC, secrets) still reported findings, because that run did complete and did report them. Either way the scan says which extensions it found and sets `stats.unexamined_tree` in `--format json`.

Usage: vulkro scan [OPTIONS] [FIRST_POS] [SECOND_POS]

Arguments:
[FIRST_POS]
First positional. Either a preset name (`quick`, `ci`, `deep`) or the path to scan. If it matches a preset name, the next positional is the path; otherwise this IS the path with the default `ci` preset

[SECOND_POS]
Second positional. Only consulted when the first positional is a recognised preset name. Defaults to `.` (current directory)

Options:
--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

--preset <PRESET>
Explicit preset selector. Takes precedence over a preset-named first positional; `--preset ci .` ignores the positional preset slot and treats the next positional as a path. Valid: `quick`, `ci`, `deep`. Unknown values exit 2 with an error

-f, --format <FORMAT>
Output format

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]

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

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

-v, --verbose
Show file paths and line numbers for each endpoint (implies --endpoints)

--endpoints
List the endpoint inventory in the table output, after the findings. `vulkro discover` prints it on its own

--save
Save results to local database (~/.vulkro/scans.db) and persist a trend snapshot

--web
Scan, save the result to the console database, then open the web console

--baseline <FILE>
Compare findings against a saved JSON baseline; emit only new findings in the gh-pr formatter and exit non-zero only on regressions

--rules <PATH>
Extra rule pack file or directory of *.toml files

--rule-pack <NAME>
Enable a built-in opt-in rule pack by name. Pass multiple times to enable several. Detector packs (each runs a real detector module): `business_logic` and `money_handling` (BL-* / FIN-* business-logic and money-flow checks), `state_machine` (SM-* checks), `concurrency` (CONC-* checks).

Why opt-in: these rules trade precision for coverage of domain-specific concerns (jurisdiction-dependent tax/discount ordering, idempotency-key conventions, state-transition gaps, race windows, etc.). The default scan stays high-precision; project leads explicitly enable the packs that apply to their stack. An unrecognised pack name prints a warning listing the valid names; it does not abort the scan.

--profile <PROFILE>
Attach a compliance evaluation (owasp-asvs | pci | soc2)

--min-confidence <LEVEL>
Minimum confidence to surface. Defaults to `medium` (Low-confidence findings - often noise: regex-matched-in-comments, ast-disconfirmed shapes, weak single-signal hits - are hidden by default so the scorecard reflects realistic precision). Pass `--all-confidence` (or `--min-confidence low`) to show them for debug / forensic runs; `--min-confidence high` for the strictest report. The active preset can override this default (`quick` raises it to `high`); an explicit `--min-confidence` always wins over the preset.

Philosophy: vulkro defaults trade some recall for precision so "run `vulkro scan`" yields a triage-friendly list. Tune the trade-off via this flag and `--min-evidence`. See `docs/defaults.md`.

What `high` / `medium` / `low` mean PER DETECTOR CATEGORY is documented at https://docs.vulkro.com/detection/confidence-model (per-category table). When a finding's tier surprises you, look up the category there before tuning the filter.

[possible values: high, medium, low]

--min-evidence <THRESHOLD>
Filter findings to those with cumulative evidence weight >= THRESHOLD. Only applies to findings that carry evidence - findings emitted by rules that haven't been retrofitted to emit evidence yet (empty bag) bypass the filter, so a non-zero threshold won't silently hide every legacy finding. Range: `0.0..=1.0`. Default behaviour (flag omitted) is the same as `--min-evidence 0`: nothing filtered

--all-confidence
Show every finding regardless of confidence - equivalent to `--min-confidence low`. Restores the earlier unfiltered behaviour (every finding shown) for debug or forensic runs

--strict-confidence
Filter High-confidence findings whose `evidence` bag is empty. Off by default - behaviour-preserving for callers who don't opt in. Intended for CI gates that want maximal precision: every surviving High has evidence proof per the confidence rubric (see `docs/confidence-rubric.md`). Equivalent to `VULKRO_STRICT_CONFIDENCE=1`. The `--strict-confidence` flag wins if both are set (env var is overridden to false only when its value parses as not-truthy via `env_flag_set`)

--ai-pr
Calibrate the scan for AI-generated PR diffs. Off by default. When set, vulkro inspects the latest commit against `HEAD~1..HEAD` to compute four shape signals (large diff > 200 added+removed lines, new non-test files added without a paired test file, repetitive doc-comment blocks across consecutive functions, and AI marker phrases in the commit subject + body). When at least two of the four signals fire, vulkro:

* bumps access-control findings (BOLA / mass-assignment / BFLA / broken authentication / CSRF) up one severity tier (Low -> Medium, Medium -> High, High -> Critical), * attaches an `ai-pr` evidence tag to each bumped finding so downstream tools and reports can distinguish them, * drops Low-confidence findings from the displayed report (the AI-PR mode runs a tighter confidence floor than the default scan).

Soft-fails silently if git is unavailable or the repo has fewer than two commits: the calibration sits out, the scan continues as if the flag was not set. Use this flag in CI lanes that scan diffs generated by Claude Code, Cursor agent, Copilot agent, or any coding-tool workflow where the human reviewer wants the access-control surface scrutinised more aggressively than the default.

--ai-code-segregation
Emit an AI-code segregation report alongside the normal scan output. The report breaks down findings by AI tool fingerprint (Claude / Copilot / Cursor / Aider / ChatGPT / generic AI-generated markers) and shows the fraction of findings that landed on AI-touched files. Useful for regulated-industry audits (HIPAA / PCI-DSS / FedRAMP) that need to demonstrate AI-code review hygiene. Rendered as markdown to stderr after the scan completes; the main output stream is unchanged

--attest-reviewed
Attest that the AI-touched code in this scan has been human-reviewed. Appends a `human-reviewed-ai-code` evidence row to every finding on an AI-touched file, stamped with the reviewer name (defaults to `$USER`). Lets a downstream compliance emit show "every AI-touched finding has a human-review sign-off" without per-finding manual tagging

--reviewer <NAME>
Reviewer name to embed in the `--attest-reviewed` evidence rows. Defaults to `$USER` from the environment when set, otherwise `"unknown"`. Ignored when `--attest-reviewed` is not set

--bruteforce-sinks
Run the bruteforce-sinks pass: statically drive every discovered critical-surface call site against an adversarial payload corpus and emit a finding per payload that reaches the sink without a recognized guard.

Wave 1 covers 8 sink categories (SQL, shell, HTTP, payment, LLM, file-write, deserialization, email) across Python and JavaScript / TypeScript. Fully offline; no network calls. Default confidence floor is `High`. Off by default.

--diff-only <REF>
Restrict the scan to files that differ vs the given git ref. The PR-speed mode: a 1000-file project where the PR changes 6 files scans 6 files instead of 1000. Composes with `--gate-vs` to also filter the resulting findings to the changed line range. Unset = scan everything

--bruteforce-categories <CSV>
CSV allowlist of sink categories to scan when `--bruteforce-sinks` is set. Example: `--bruteforce-categories sql,payment,llm`. Unset means "all 8 categories". Tags accepted: sql, shell, http, payment, llm, file-write, deserialization, email (plus short aliases - see docs)

--bruteforce-confidence <LEVEL>
Confidence floor for emit. Defaults to `high`; pass `medium` to surface Hi + Med findings. `low` is for benchmarking only. Ignored when `--bruteforce-sinks` is not set

[default: high]

--bruteforce-payload-classes <CSV>
CSV allowlist of payload super-classes to drive. Example: `--bruteforce-payload-classes injection,path-traversal`. Tags: type-confusion, numeric-extreme, size-extreme, unicode, injection, path-traversal, prompt-injection, payment-extreme

--gate
Apply the [quality_gate] section of vulkro.toml. Exit non-zero when any threshold is breached. Replaces the default "fail on any critical/high" exit policy

--validate-secrets
Validate hardcoded credentials against the live provider API. OFF by default - Vulkro stays offline-first. When enabled, each detected secret is tagged `[live]`, `[dormant]`, or `[unknown]` based on a no-op authenticated HTTP call

--gate-vs <REF>
Restrict findings to lines that changed vs the given git ref (e.g. `main`, `origin/main`, a SHA). Findings outside the changed-line set are still printed in JSON for completeness but the exit code and the table summary reflect only diff-scoped findings - this is the "block PRs that introduce new issues without flagging the rest of the repo" lane

--scope <SCOPE>
Filter the displayed findings by file kind. `all` (default) shows every finding (Dockerfiles, lockfiles, IaC manifests, docs, templates). `src` drops findings from non-source-code files so app developers see only in-app issues. The active preset can override this default (`quick` raises it to `src`); an explicit `--scope` always wins.

Trade-offs in `src` mode: * `.env*` files are kept (secrets in env files are real source-code-class bugs). * `*.yaml` / `*.yml` under `/k8s/` or `/kubernetes/` (and `kustomization.yaml`) are kept (k8s manifests are technically IaC but most users want them when narrowing to their app). * Other YAML, Terraform, Dockerfiles, lockfiles, docs (`.md`, `.rst`), `.sql`, and `.html` under `views/` or `templates/` are dropped.

Possible values:
- all: Show every finding (the default)
- src: Drop findings from non-source files: Dockerfiles, lockfiles, IaC manifests, package manifests, docs, vendored templates and SQL. Keeps `.env*` (secrets matter) and `*/k8s/*.yaml` (cluster manifests users typically want when narrowing to "their code")

--disposition <TIER>
Narrow the findings table to one disposition tier: `admitted` (proven, we stand behind it), `demoted` (real but heuristic-only, the noise floor), or `not-examined` (a structural / authz-semantic class we cannot decide offline). This is a DISPLAY filter for the table only: it changes nothing about which findings exist, the exit code, or the JSON / SARIF output (each finding there already carries its `disposition`, so machine consumers filter on that field). The summary line still reports the full `N found -> M admitted (K demoted, J not-examined)` breakdown above the narrowed table. Omit the flag to show every tier (the default)

Possible values:
- admitted: Proven tier: machine-checkable proof (a rendered taint trace, a value-verified secret, an advisory-proven SCA hit). "We stand behind it."
- demoted: Noise floor: a real finding carrying only a heuristic / shape match, no renderable proof
- not-examined: A structural / authz-semantic / absence class Vulkro flags but cannot decide offline (IDOR / BOLA, function-level authz, absence rules)

--hide-hardening
Hide findings in the `hardening` bucket from the table and from the JSON, NDJSON, CSV, JUnit and pull-request outputs. Hardening means a defense-in-depth gap: a missing or weak security header, a cookie flag, a missing rate limit, the project-wide no-CSRF-middleware notice, dead code, an unresolved dependency licence, missing pagination, or a debug or error-detail notice reported at Low or Info. Off by default. Every finding carries its bucket (`bucket` in JSON and NDJSON, `vulkro.bucket` in SARIF) whether or not this flag is set, and no severity changes.

Like `--scope src`, the hidden rows do not count toward the exit code (`--fail-on`, the default critical and high policy, or the `[quality_gate]` thresholds). SARIF keeps every result and marks the hidden ones as suppressed.

--no-cache
Bypass the per-file extraction cache (`~/.vulkro/scans.db`). Forces every source file to be re-read and re-extracted, and suppresses cache writes. Equivalent to `VULKRO_DISABLE_CACHE=1`

--reachable-only
Drop dependency / CVE findings whose vulnerable symbol isn't reachable from any first-party source file. Off by default - symbol matching is regex-based and can miss dynamic dispatch / reflection / import aliases, so we'd rather keep the finding (tagged `[unreachable]`) than silently drop it. Turn this on when you've validated the signal is right for your codebase and want a quieter report

--include-unreachable
Include findings in files unreachable from any entry point. By default these are hidden - most are noise in dead code or vendored deps. Use this to include them for triage

--fail-on <SEVERITIES>
Comma-separated severities that should make the scan exit non-zero when present (e.g. `--fail-on critical,high`). Valid names: critical, high, medium, low, info. Independent of `--gate`: when `--gate` is set, the vulkro.toml [quality_gate] thresholds win and `--fail-on` is ignored.

Findings whose `disposition` is `not-examined` NEVER fail the run, at any severity. That is the class vulkro flags structurally but cannot decide offline (object-level and function-level authorization, and the absence-asserting rules); they stay in the report, and a warning on stderr names how many were withheld. Set VULKRO_GATE_SEVERITY_ONLY=1 to restore the previous behaviour where severity alone decided and those rows failed the build.

--fail-on-reachable-only
Exclude dependency-CVE findings whose call-graph reachability verdict is `unreachable` from the `--fail-on` exit policy. Off by default. This affects the EXIT CODE only: the finding is still shown in `scan` / `sbom` / SARIF output at its advisory grade, with its disposition unchanged, so nothing is hidden or demoted - it just no longer fails the build. Only findings the call-graph gate positively resolved to `unreachable` are excluded; `reachable` and unknown verdicts always still count. Honest caveat: the vulnerable-symbol match is a name/text join and misses dynamic dispatch, reflection, and import aliases, so an unreachable verdict can be wrong; use this only when you accept trading recall for a quieter gate

--min-severity <SEV>
Drop findings BELOW this severity from the output (a display floor, not a gate). One of: critical, high, medium, low, info. This is the CLI equivalent of the editor's `severityThreshold` setting: run CI with the same value to see exactly the set your editor shows. Composes with `--fail-on`, which then evaluates the filtered set

--ratchet
Auto-discover `.vulkro-baseline.json` in the repo root and exit non-zero only when NEW findings appear vs the baseline. If no baseline file exists, this flag is a no-op (a warning is printed and the scan falls back to the default critical/high exit policy); use `--ratchet-strict` to require the file. An explicit `--baseline PATH` overrides the auto-discovered location

--ratchet-strict
Strict variant of `--ratchet` for CI gates: requires the baseline file to exist (auto-discovered or via `--baseline PATH`). Exits with code 2 and a clear error when missing. Otherwise behaves identically to `--ratchet`

--force-app
Bypass the framework self-scan heuristic. By default, a repo whose manifest names it as a known framework (`name: "express"`, `name = "Flask"`, etc.) is treated as framework source - endpoint extraction is skipped because every "finding" would be the framework's own internals, not the user's code. Pass `--force-app` to run the full pipeline regardless

--force-all-rules
Bypass the posture-based rule-applicability gate. Every rule runs regardless of the project's detected `ProjectPosture`. Default `false`: CSRF on JWT APIs, session-fixation on static sites, and similar inapplicable rules are silenced

--no-reachability-filter
Skip the default-on SCA reachability filter. Vulkro normally downgrades dep findings whose vulnerable symbol is not reachable from any first-party code by one severity tier (Critical → High → Medium → Low → Info, never disappearing the finding). Set this flag to restore the raw severity (useful for compliance audits that want every dep CVE at its nominal severity regardless of exploitability)

--triage
Run the offline false-positive triage pass: demote findings in test / fixture / generated / vendored / migration paths one confidence tier. Default off, fully local (no network, no model), deterministic. Pair with `--min-confidence high` to push that noise out of the default view

--pq-audit
Run the post-quantum crypto audit pack. Flags classical RSA / ECDSA / ECDH / classical Diffie-Hellman usage that NIST PQC migration guidance targets for replacement (FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA). Symmetric primitives (AES, ChaCha20, SHA-2 / 3) are deliberately NOT flagged: Grover only halves effective key length, so AES-256 stays 128-bit-strong against a CRQC. Default `false`: PQ findings are a planning surface, not an exploit-today defect, so they're opt-in to keep the default scorecard focused on actionable risk

--include-large
Scan files that three per-file size caps otherwise drop before any check runs: over 1 MiB, over 5000 lines, or holding a single line longer than 5000 characters. Off by default - what the caps drop is almost always a minified bundle or a generated artefact whose regex/AST passes burn CPU without producing useful findings. A scan that does drop a file always says so, names it, and does not report a perfect health score over the tree. Pattern-based filters (vendored, generated, build output) are unaffected by this flag

--since <REF>
Incremental scan: only re-run extraction + security passes on files that changed vs `<ref>` (e.g. `main`, `origin/main`, a SHA). Findings for the unchanged files are merged in from the baseline JSON (auto-discovered as `.vulkro-baseline.json`, or the path passed via `--baseline`). Designed for CI: a PR-time scan of a 5-file diff runs in seconds instead of minutes.

Falls back to a full scan with a warning when no baseline is available - incremental output is only honest when there's a cached set of findings for the un-rescanned files.

--jobs <N>
Number of worker threads for the parallel passes (per-file extraction, per-rule dispatch). Defaults to one thread per logical CPU. Pass `1` for serial execution - useful for debugging non-determinism or memory-bounded environments. Larger values past CPU count don't add throughput.

If the thread pool was already initialised earlier in the run, Vulkro logs a warning and uses the auto-detected size.

--post-to <DEST[=CONFIG][,...]>
Post a privacy-safe scan summary to chat, incident or ticketing destinations after the scan (capability `notify`). Repeat the flag, or list several destinations in one value separated by commas (`--post-to slack,jira=SEC`):

slack=<webhook-url> Slack incoming webhook (or `VULKRO_SLACK_WEBHOOK`). teams=<webhook-url> MS Teams Adaptive Card webhook (or `VULKRO_TEAMS_WEBHOOK`). jira=<PROJECT_KEY> Jira Cloud issue create (`VULKRO_JIRA_BASE_URL`, `VULKRO_JIRA_EMAIL`, `VULKRO_JIRA_TOKEN`). One issue per Critical finding, labelled with its stable finding id and every id folded into it: a re-run updates the open issue instead of filing a duplicate. pagerduty PagerDuty Events API v2 (`VULKRO_PD_ROUTING_KEY`). Triggers ONE incident when at least one Critical is present. saved Every destination saved in `~/.vulkro/notify.json`.

A destination with no inline config falls back to its environment variable, then to `~/.vulkro/notify.json`.

Privacy contract: payloads contain only severity counts, kebab-case signal IDs, the stable finding id, the risk category, the proof tier, the entry point (method, route, auth classification), workspace-relative file paths, line numbers, and short messages truncated at 200 chars. No absolute paths, no source code, no vulkro.com URLs.

Failure: a transport-level failure is logged to stderr but NEVER changes the scan exit code. Skipped under VULKRO_OFFLINE.

Retries: each integration retries on transient failures with exponential backoff. `VULKRO_NOTIFY_RETRIES=N` (default 3, clamped to [1, 5]) tunes the budget. `VULKRO_DEBUG=1` keeps full webhook URLs in error messages instead of redacting.

--top <N>
Count for the "Fix these first" ranked list printed after the normal output. Shown by default (top 10) on the human `table` format at an interactive terminal; pass `--top N` to change the count or `--top 0` to suppress it. The rank is a deterministic synthesis of signals the scan already computed (severity, exploitability, reachability verdict, confidence, and for dependency findings the CISA-KEV / EPSS priority tags): no network, no AI. Every machine format instead carries `risk_score` and `risk_rank` on each finding (JSON). See `vulkro explain --risk-model` for the formula

[aliases: --top-risks]

--max-bundle-age <HOURS>
Advisory freshness check for the local CVE bundle. When the newest `~/.vulkro/data/cves/*.json` snapshot is older than HOURS, print a WARN telling you to run `vulkro update`. This is ADVISORY ONLY: it never changes the exit code on its own (pair it with `--max-bundle-age-fail` for a hard failure). With no local bundle present, the check warns that freshness could not be verified

--max-bundle-age-fail
Turn a stale CVE bundle into a hard error (exit 2) instead of an advisory WARN. For CI that must not run against a stale bundle. Requires `--max-bundle-age <HOURS>` to define "stale"; a missing local bundle also fails under this flag

--timings
Record per-pass wall-clock timings and include them in the scan output as `stats.pass_timings` (JSON), slowest pass first. Purely a measurement aid for finding where scan time goes: it changes no finding and no exit code, and without it the output is byte-identical to before. Equivalent to `VULKRO_TIMINGS=1`. Most useful with `--format json`

--no-timestamp
Pin the two clock fields of the output (`scanned_at`, and the SARIF / NDJSON fields derived from it) to the Unix epoch, so two scans of the same tree are byte-identical: for cache keys and baseline diffs. Same as `VULKRO_DETERMINISTIC=1` for this run

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