vulkro triage
Runs a normal scan, then asks a model for an advisory second opinion on the findings a deterministic scan cannot settle on its own.
vulkro ai setup # one time: install the local runtime and model
vulkro triage .
vulkro triage . --format json > triage-advisory.json
It looks at intent-class findings (paid-feature bypass, over-exposed personal data, whether a one-off script is reachable, source trust) and findings whose reachability the scan could not confirm.
Every verdict is labelled advisory and non-deterministic. It never changes a finding, a severity, the scan JSON or the exit code of vulkro scan. For CI gates, use vulkro scan.
Model
By default it uses a local model served by Ollama at http://127.0.0.1:11434/v1 (qwen2.5-coder:7b), so nothing leaves the machine and no key is needed. It still works under VULKRO_OFFLINE=1.
Precedence, highest first: the flags below, then VULKRO_AI_MODEL / VULKRO_AI_URL, then the saved vulkro ai use choice, then the local default.
To use a cloud endpoint with your own key, pass --ai-url and set VULKRO_AI_KEY (an Anthropic URL also accepts VULKRO_TRIAGE_API_KEY or ANTHROPIC_API_KEY). Cloud endpoints are refused under VULKRO_OFFLINE=1. Keys are never written to disk.
Flags
| Flag | Description |
|---|---|
--ai-model <MODEL> | Model tag for this run. --model is an older alias. |
--ai-url <URL> | OpenAI-compatible runtime URL. |
--no-ai | Turn the AI layer off (the command then exits 2). |
-f, --format <FORMAT> | table (default) or json. |
The JSON is an envelope with "advisory": true, the model and provider, ai_endpoint_class (local or cloud), and the verdicts array.
Exit codes
0 nothing needed triage. 1 advisory verdicts reported. 2 AI layer off, local runtime or model missing, cloud endpoint while offline, missing key, bad path or API failure.
See also: Evidence and AI, Offline mode.
Command reference
Generated from vulkro triage --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
[Advisory] Ask a model for a second opinion on findings that need judgement (local model by default).
vulkro triage [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Path to the project root to scan. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
--model <MODEL> | Model id for the advisory judgement. When set, this is the exact legacy --model override (kept for back-compat and equivalent to --ai-model) |
--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. |
--ai-model <MODEL> | AI model tag override (highest precedence). Overrides VULKRO_AI_MODEL, the saved vulkro ai use selection, and the smart default. Example: --ai-model qwen2.5-coder:7b |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--ai-url <URL> | AI runtime base url override (OpenAI-compatible). Example: --ai-url http://127.0.0.1:11434/v1. A loopback url is allowed under VULKRO_OFFLINE; a cloud url is refused offline. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
--no-ai | Disable the AI layer for this run (deterministic scan only, no advisory verdicts) |
-f, --format <FORMAT> | Output format: table (default, human summary) or json (the advisory verdicts as a JSON array) Default: table. |
-h, --help | Print help (see a summary with '-h') |
Full vulkro triage --help
[Advisory] Ask a model for a second opinion on findings that need judgement (local model by default).
[Advisory] Opt-in LLM triage lens. Runs a normal deterministic scan, then asks a model for an ADVISORY second opinion on the INTENT-class findings determinism cannot judge on its own: entitlement / paid-tier bypass, PII / object-property over-exposure, operational reachability of one-off scripts, and source trust.
This is one of the opt-in advisory commands that call a model (the others are `ai`, `analyze --ai`, `hunt`, `fix --ai` and `slopcheck --ai`). The scan engine itself never calls a model and stays 100% deterministic. Every verdict this command prints is labelled ADVISORY / non-deterministic / excluded-from-benchmark, and NONE of it mutates the deterministic finding severity or the JSON scan output the benchmark consumes.
The lens is OFF unless you run this subcommand. The model is resolved like every other AI feature: `--ai-model` / `--ai-url`, then VULKRO_AI_MODEL / VULKRO_AI_URL, then the saved `vulkro ai use` selection, then the default: a LOCAL model on Ollama (http://127.0.0.1:11434), so nothing leaves the machine and no API key is needed. Run `vulkro ai setup` once to install the local model. A cloud url is opt-in and brings your own key.
Environment variables: VULKRO_AI_MODEL Model tag override (e.g. qwen2.5-coder:7b). VULKRO_AI_URL OpenAI-compatible base url override. A cloud url (for example the Anthropic API) is opt-in. VULKRO_AI_KEY API key for a cloud url only. For an Anthropic url, VULKRO_TRIAGE_API_KEY and then ANTHROPIC_API_KEY are accepted as fallbacks. Never needed for the local default. VULKRO_OFFLINE When set, a local (loopback) model still runs; a cloud url is refused with exit 2. The deterministic scan stays fully offline either way.
Exit codes: 0 scan completed and no intent-class candidates needed triage. 1 scan completed, advisory verdicts were reported. 2 error: AI layer off (`--no-ai` / `vulkro ai off`), local model unreachable, cloud url under `VULKRO_OFFLINE`, missing cloud key, bad path, or a model API failure.
Usage: vulkro triage [OPTIONS] [PATH]
Arguments:
[PATH]
Path to the project root to scan. Defaults to the current directory
[default: .]
Options:
--model <MODEL>
Model id for the advisory judgement. When set, this is the exact legacy `--model` override (kept for back-compat and equivalent to `--ai-model`)
--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
--ai-model <MODEL>
AI model tag override (highest precedence). Overrides VULKRO_AI_MODEL, the saved `vulkro ai use` selection, and the smart default. Example: `--ai-model qwen2.5-coder:7b`
-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged
--ai-url <URL>
AI runtime base url override (OpenAI-compatible). Example: `--ai-url http://127.0.0.1:11434/v1`. A loopback url is allowed under VULKRO_OFFLINE; a cloud url is refused offline
--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb
--no-ai
Disable the AI layer for this run (deterministic scan only, no advisory verdicts)
-f, --format <FORMAT>
Output format: `table` (default, human summary) or `json` (the advisory verdicts as a JSON array)
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]
-h, --help
Print help (see a summary with '-h')