Usage
This is the authoritative v2.1.0 CLI reference for VulnParse-Pin (vpp / vulnparse-pin, or python -m vulnparse_pin).
For a 5-minute walkthrough, see Getting Started In 5 Minutes. For complete runnable pipelines, see Workflow Examples and Deployment Options.
Command Overview
vpp [--version | -v] [--help | -h] COMMAND ...
| Subcommand | Purpose |
|---|---|
vpp scan |
Stream, normalize, enrich, score, triage, optimize remediation, persist to .vpp.db, and export reports |
vpp demo |
Run the 100% offline bundled multi-scanner demo pack and optional TUI or browser GUI |
vpp diff |
Compare two runs in .vpp.db (or two scan files) and evaluate CI fail gates |
vpp ui |
Launch the interactive Textual TUI workbench over .vpp.db (requires [ui] extra) |
vpp gui |
Launch the zero-dependency 7-tab local browser GUI workbench over .vpp.db (included in core install) |
vpp export |
Export Decision Defense Dossiers, Executive Roadmaps, Remediation Plans, Simulator HTML, CSV, or JSON from .vpp.db |
vpp verify |
Read-only verification of RunManifest schema, digest, ledger chain, and listed outputs |
vpp defer |
Upsert a deferral, acceptance, or mitigation entry in decisions.yaml (and optionally refresh .vpp.db) |
vpp intel |
Inspect local threat-intel cache integrity/freshness (status) or sync feeds (sync) |
vpp ml |
Inspect, evaluate, calibrate, or train offline ACI@3.0 and Pre-KEV models |
vpp mcp |
Run the VulnParse-Pin MCP server (read-only by default) over stdio or streamable-http |
vpp assets |
Compile CMDB/cloud/Nmap exports to assets.yaml, audit drift against .vpp.db, or bootstrap Shadow-IT stubs |
vpp simulate |
Run read-only counterfactual Remediation@1.0 what-if simulations and QBR exports |
Exit Codes
| Exit Code | Meaning |
|---|---|
0 |
Success (including vpp diff and vpp assets audit when the --fail-on gate passes) |
1 |
Runtime error, input/parser failure, path/symlink policy error (FilePathError / FilePermissionError), missing .vpp.db or [ui] extra, invalid model integrity, or vpp verify integrity failure |
2 |
CLI argument/usage error, --no-csv-sanitize without --confirm-unsafe-csv, invalid --offline URL override, vpp diff --fail-on policy/drift gate breach (p1, p2, kev, pre-kev, stale-assumption), or vpp assets audit --fail-on drift breach (shadow, stale-rules, any) |
Shared Runtime, Security & Portability Flags
Every subcommand (scan, demo, diff, ui, gui, export, verify, defer, intel, ml, mcp, assets, simulate) accepts these shared options:
General Options
--log-file <PATH>,-Lf <PATH>: Log file destination inside the resolved log directory (default:vulnparse_pin.log).--log-level <LEVEL>,-Ll <LEVEL>: Logging level:DEBUG,INFO,WARNING,ERROR,CRITICAL(default:INFO).--version,-v: Show program version and exit.
Filesystem Security Options (PermFileHandler)
--forbid-symlinks-read,--forbid-symlinks_read,-Sr: Reject symlinks when resolving read paths (default:True).--allow-symlinks-read: Explicitly allow following symlinks during read operations.--forbid-symlinks-write,--forbid-symlinks_write,-Sw: Reject symlinks when resolving write paths (default:True).--enforce-root-read,-err: Restrict read operations toPermFileHandleracceptable roots (default:False). Without--portable,root_diris the OS user data directory (for example~/.local/share/VulnParse-Pin/), so scanning files under$PWDfails closed withFilePathError. Pair--enforce-root-readwith--portable(-P) when scanning or verifying files under$PWD.--enforce-root-write,-erw: Restrict write operations toPermFileHandleracceptable roots (default:True; explicit CLI output paths are authorized viaauthorize_output_pathwithout escaping symlink checks).--file-mode <OCTAL>,-fm <OCTAL>: POSIX-only chmod mode for written files (default:0o600).--dir-mode <OCTAL>,-dm <OCTAL>: POSIX-only chmod mode for created directories (default:0o700).--debug-path-policy: Print the activePermFileHandlerpath policy and exit.
Portability
--portable,-P: Store config, cache, logs, and default outputs in./datarelative to the current working directory (or frozen executable directory) instead of OS user data directories, and set$PWDasPermFileHandler.root_dir(allowing--enforce-root-readto permit inputs under$PWD). Also enabled by settingVULNPARSE_PIN_PORTABLE=1(ortrue/yes/y/on).
Subcommands
1. vpp scan
Ingest one or more scanner reports into .vpp.db, hydrate matched threat intel, run the DuckDB pass DAG (NmapAdapter@1.0 → ACI@2.0 → Scoring@3.0 → Triage@2.0 → Remediation@1.0 → TopN@2.0 → Summary@2.0), optionally diff against a baseline run, and export artifacts.
vpp scan [OPTIONS] [files ...]
Scan Inputs & Context
| Flag | Default | Description |
|---|---|---|
files (positional) |
None |
One or more paths to scanner reports (.nessus, .xml, .csv, .sarif, .jsonl, .json). |
--file PATH, -f PATH |
None |
Single input scan file (legacy compatibility; combined with files if both given). |
--db PATH |
.vpp.db |
DuckDB workspace database path (0o600 POSIX permissions, symlink-checked). |
--assets PATH |
None |
Asset context inventory YAML (assets.yaml) validated against assets.schema.json. |
--decisions PATH |
None |
Triage decisions/deferrals YAML (decisions.yaml) validated against decisions.schema.json. |
--profile {default,bod-26-04} |
default |
Triage decision profile (default or CISA BOD 26-04 SSVC). |
--ml-mode {off,shadow,active} |
None (uses config.yaml ml.mode, default shadow) |
Override v2.1 explainable offline ML mode (off, shadow, active). |
--run-id ID |
Auto-generated | Explicit run identifier (overwrites if run_id already exists in .vpp.db). |
--baseline-run-id ID |
None |
Baseline run_id in .vpp.db for automatic scan-over-scan DiffEngine comparison. |
--strict-schema |
False |
Enforce strict schema validation across inputs and configs (also enables strict ingestion). |
--allow-large, -al |
False |
Raise input size limit from default 500 MiB up to 50 GiB. |
--allow-degraded-input / --no-allow-degraded-input |
True |
Allow or reject degraded/partial parser findings during normalization. |
--strict-ingestion |
False |
Fail normalization if degraded findings are present (overrides --allow-degraded-input). |
--min-ingestion-confidence FLOAT |
0.0 |
Reject findings whose ingestion confidence falls below [0.0–1.0]. |
--show-ingestion-summary |
False |
Print ingestion quality summary metrics after normalization. |
Enrichment Flags
| Flag | Default | Description |
|---|---|---|
--offline |
False |
Run 100% offline using local SQLite/feed caches and supplied local paths (rejects HTTP/HTTPS feed URLs and online --ghsa with exit 2). |
--no-kev |
False |
Disable CISA KEV enrichment. |
--no-epss |
False |
Disable FIRST EPSS v5 enrichment. |
--no-exploit |
False |
Disable Exploit-DB enrichment. |
--no-nvd |
False |
Disable NVD enrichment. |
--kev-source {online,offline} |
online |
Select CISA KEV source mode. |
--epss-source {online,offline} |
online |
Select FIRST EPSS source mode. |
--exploit-source {online,offline}, -es |
online |
Select Exploit-DB source mode (offline without --offline requires --exploit-db). |
--kev-feed KEV_FEED, --kev |
None |
Override KEV feed with a local path or HTTPS URL. |
--epss-feed EPSS_FEED, --epss |
None |
Override EPSS feed with a local path or HTTPS URL. |
--nvd NVD_SOURCE, --nvd-source |
None |
Local NVD 2.0 .json, .json.gz, or directory of NVD feeds. |
--exploit-db PATH, -edb PATH |
None |
Local Exploit-DB CSV file. |
--ghsa [PATH|online] |
None (disabled) |
Opt-in GHSA enrichment: bare --ghsa or --ghsa online queries GitHub API; --ghsa PATH loads a local advisory directory/cache. |
--ghsa-budget COUNT |
None (25 in config.yaml) |
Positive integer cap on online GHSA CVE lookups (only valid with online --ghsa). |
--osv PATH |
None |
Optional offline OSV JSON file, directory, or ZIP archive. |
--nmap PATH, --nmap-ctx PATH, -nmap PATH |
None |
Optional Nmap nmaprun .xml file for open-port attack-surface context (NmapAdapter@1.0). |
--refresh-cache |
False |
Force refresh of feed caches. |
--allow_regen, --allow-regen |
False |
Allow local cache checksum/meta regeneration if missing. |
Output Flags
| Flag | Default | Description |
|---|---|---|
--template-dir DIR |
None |
Custom Jinja2 reporting templates directory (symlink-checked). |
--output-dossier PATH |
None |
Write Decision Defense Dossier .md and .html (file stem or directory). Note: single-pass vpp scan dossiers show Pending post-export RunManifest seal (see runmanifest.json); run vpp export --format dossier-html post-scan to embed the sealed sha256:... digest. |
--output-html PATH |
None |
Write standalone HTML Decision Defense Dossier. |
--output FILE, -o FILE, --output-json FILE |
None |
Write normalized + derived JSON output. |
--output-csv PATH, -oC PATH |
None |
Write CSV output. |
--csv-profile {full,analyst,audit} |
full |
Select CSV schema (non-default profiles require --output-csv). |
--output-md PATH, -oM PATH |
None |
Write Executive Roadmap Markdown report. |
--output-md-technical PATH, -oMT PATH |
None |
Write technical Decision Defense Dossier Markdown report. |
--output-runmanifest PATH, -oRM PATH |
None |
Write RunManifest v2 JSON artifact (hashes written outputs and updates runs.manifest_digest in .vpp.db). |
--output-all BASENAME, --output_all, -oA |
None |
Derive all standard outputs from BASENAME: .json, .csv, _summary.md, _technical.md, _dossier.md/.html (unless --output-html is set), and _runmanifest.json. |
--runmanifest-mode {compact,expanded} |
compact |
Decision detail level in the RunManifest ledger. |
--pretty-print, -pp |
False |
Pretty-print JSON output (4-space indentation). |
--presentation |
False |
Export presentation-friendly JSON view. |
--overlay-mode {flatten,namespace} |
flatten |
Presentation overlay mode (requires --presentation). |
--no-csv-sanitize, -noC |
False |
Disable CSV cell formula-injection sanitization (requires --output-csv and --confirm-unsafe-csv, otherwise fails with exit 2). |
--confirm-unsafe-csv |
False |
Explicit confirmation required to disable CSV sanitization. |
--webhook-endpoint URL |
None |
Override configured webhook target with an HTTPS URL (credentials in URL rejected; requires VP_WEBHOOK_HMAC_KEY, excludes validly deferred/accepted/mitigated findings, and logs a WEBHOOK_DELIVERY ledger event). |
--webhook-oal-filter {all,P1,P1b,P2} |
None |
Filter webhook top_findings payload by Operational Action Lane. |
Example:
vpp scan nessus.nessus trivy.sarif nuclei.jsonl \
--nmap nmap.xml \
--assets assets.yaml \
--decisions decisions.yaml \
--profile bod-26-04 \
--output-dossier out/dossier \
--output-md out/roadmap.md \
--output-runmanifest out/runmanifest.json
2. vpp demo
Run the 100% offline end-to-end demo using bundled multi-scanner fixtures (Nessus, Trivy SARIF, Nuclei JSONL, Semgrep SARIF, Nmap XML, assets.yaml, decisions.yaml, and miniature intel snapshot) without modifying user caches or making network requests.
vpp demo [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp-demo.db |
Demo DuckDB workspace path. |
--profile {default,bod-26-04} |
default |
Triage decision profile. |
--ml-mode {off,shadow,active} |
None |
Override v2.1 ML mode (off, shadow, active). |
--no-ui |
False |
Skip launching the interactive Textual TUI after exporting demo artifacts (also skipped automatically if stdout is not a TTY or [ui] is absent). Cannot be combined with --gui. |
--gui |
False |
Launch the built-in local browser GUI (vpp gui on 127.0.0.1:8787, read-only) after exporting demo artifacts. Works on the core install; cannot be combined with --no-ui. |
--output-dir DIR |
vpp_demo_output |
Output directory for dossier.md, dossier.html, executive_roadmap.html, remediation_simulator.html, and runmanifest.json. |
--template-dir DIR |
None |
Custom Jinja2 reporting templates directory. |
3. vpp diff
Compare two runs in .vpp.db or two scan files on the fly (:memory: DuckDB), report new high-risk findings, threat-intel escalations, verified remediations, shadow-asset deltas, and invalidated deferral assumptions, and evaluate CI fail gates.
vpp diff [OPTIONS] [base] [target]
- Positional
baseandtarget: Either tworun_idstrings in--db(if omitted, compares the previous run to the latest run in--db), or two scan file paths for on-the-fly diffing.
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp.db |
DuckDB workspace path when diffing stored runs. |
--decisions PATH |
None |
Decisions registry YAML for stale-assumption checks. |
--assets PATH |
None |
Optional assets.yaml when diffing two scan files on the fly. |
--profile {default,bod-26-04} |
None |
Triage profile override (inherits the stored run’s profile, or default when diffing scan files directly). |
--offline |
False |
Offline enrichment mode when ingesting two scan files on the fly. |
--re-enrich |
False |
Re-evaluate target run CVEs against current local KEV/EPSS/NVD caches before diffing without mutating frozen historical runs rows (works in both 1-run and multi-run .vpp.db workspaces for scheduled drift checks when no new scan files are supplied). |
--fail-on {p1,p2,kev,pre-kev,stale-assumption,none} |
none |
Exit with code 2 when the specified delta condition triggers (pre-kev fires on newly flagged Pre-KEV breakout CVEs). |
--output-md PATH |
None |
Write Markdown diff report. |
--output-pr-comment PATH |
None |
Write concise PR comment Markdown. |
--output-json PATH |
None |
Write structured JSON diff report. |
--template-dir DIR |
None |
Custom Jinja2 templates directory. |
Example CI / scheduled drift gates:
vpp diff --db .vpp.db --decisions decisions.yaml --fail-on stale-assumption --output-pr-comment out/pr_comment.md
vpp diff --db .vpp.db --decisions decisions.yaml --re-enrich --fail-on stale-assumption --output-json out/drift.json
4. vpp ui
Launch the interactive Textual TUI workbench (VppApp) over .vpp.db (requires pip install "vulnparse-pin[ui]").
vpp ui [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp.db |
DuckDB workspace path. |
--run-id ID |
Latest run | Target run_id to display. |
--decisions PATH |
None |
Optional decisions.yaml enabling interactive deferrals (f modal). |
--output-dir DIR |
. |
Directory for dossier exports triggered via e / E. |
--template-dir DIR |
None |
Custom Jinja2 templates directory. |
Keyboard shortcuts inside vpp ui:
1/2/3/4: Filter by priority tierP1/P2/P3/P4(automatically switches back to the Findings tab and focuses the table if pressed from Diff & Stale Assumptions)0: Clear all filters (automatically switches back to Findings if on Diff)t: Cycle scoring track (cve_threat/exposure_weakness/ all; auto-switches back to Findings)k: Toggle CISA KEV filter (auto-switches back to Findings)u: Toggle unmatched shadow assets filter (auto-switches back to Findings)b: Toggle Pre-KEV breakout watchlist filter (auto-switches back to Findings)a: ToggleRemediation@1.0Action Plan view & counterfactual selection/: Focus search input (Escreturns to table)i: Toggle keyboard focus between the findings table and the detail inspector scroll pane (switches to Findings if on Diff; useUp/Down/PageDownto scroll andEscto return focus to the table)[/]: Previous / next pager: Cycle across available scan runs recorded in.vpp.dbd: Switch to Diff & Stale Assumptions tabe/E: Export selected finding dossier / full run dossierf: Open deferral / acceptance / mitigation modal (Enterin Rationale moves focus to Owner when empty, andEntersubmits once required fields are populated)?: Open the compact keybinding help modal (Esc,?, orEntercloses; main-screen hotkeys are blocked while open)q: Quit
5. vpp gui
Launch the built-in, zero-dependency local browser GUI workbench over .vpp.db (included in the core install — zero optional [ui] or [mcp] extras required). Uses Python’s stdlib HTTP server (ThreadingHTTPServer) and serves the unified zero-CDN 7-tab HTML/JS workbench (Overview, What-If Simulator, Findings & Trace, Assets & Shadow IT, Deferrals & Waivers, Diff & Drift, Exports & Proof), read-only by default.
vpp gui [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp.db |
DuckDB workspace database path. |
--run-id ID |
Latest populated run | Target run_id to load on startup. |
--host HOST |
127.0.0.1 |
HTTP bind host (non-loopback refuses startup without --auth-token-env holding at least 16 characters). |
--port PORT |
8787 |
HTTP listen port (0..65535; 0 selects an ephemeral OS-assigned port). |
--no-open |
False |
Do not automatically open a web browser on startup. |
--allow-write |
False |
Enable write-gated GUI actions: falsifiable deferrals (GUI_DEFERRAL_RECORDED ledger event) and Shadow-IT rule promotion (GUI_ASSET_RULE_PROMOTED ledger event). |
--auth-token-env ENV_VAR |
None |
Environment variable holding a Bearer token (required and >= 16 chars for non-loopback binds; checked via hmac.compare_digest). |
--assets PATH |
None |
Optional assets.yaml for inventory audit (Assets & Shadow IT tab) and Shadow-IT promotion. |
--decisions PATH |
None |
Optional decisions.yaml for write-gated deferral recording. |
--workspace-root DIR |
None |
Explicit workspace root directory for PermFileHandler path confinement. |
--template-dir DIR |
None |
Custom Jinja2 reporting templates directory for GUI exports. |
Examples:
# Read-only local browser workbench on core install
vpp gui --db .vpp.db --assets assets.yaml
# Write-enabled local session for deferrals & shadow-asset promotion without auto-opening a tab
vpp gui --db .vpp.db --assets assets.yaml --decisions decisions.yaml --allow-write --no-open
6. vpp export
Export reports or data views directly from an existing .vpp.db run without re-parsing scanner inputs.
vpp export --format FORMAT [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--format {dossier-md,dossier-html,roadmap-md,roadmap-html,remediation-json,remediation-md,simulator-html,csv,json} |
Required | Artifact format to export (remediation-* emits Remediation@1.0 action plans; simulator-html emits the offline interactive What-If Remediation Simulator). |
--db PATH |
.vpp.db |
DuckDB workspace path. |
--run-id ID |
Latest run | Target run_id. |
--finding-id ID |
None |
Optional single finding_id for dossier-md / dossier-html. |
--output PATH, -o PATH |
stdout (dossier-*/roadmap-*/remediation-*/simulator-html) or vpp_<run_id>.<ext> |
Output file path. |
--template-dir DIR |
None |
Custom Jinja2 templates directory. |
--csv-profile {full,analyst,audit} |
full |
CSV export column profile (--format csv). |
--overlay-mode {flatten,namespace} |
namespace |
JSON presentation mode (--format json). |
--pretty-print, -pp |
False |
Pretty-print JSON output. |
--no-csv-sanitize, -noC |
False |
Disable CSV cell sanitization (requires --confirm-unsafe-csv, else exit 2). |
--confirm-unsafe-csv |
False |
Explicitly confirm disabling CSV sanitization. |
NOTE
simulator-htmlis supported on CLIvpp exportand GUIgui_render_export(7formats). The MCP write toolvpp_export_dossierkeeps8file-export formats (dossier-md,dossier-html,roadmap-md,roadmap-html,remediation-json,remediation-md,csv,json) withoutsimulator-html.
7. vpp verify
Verify a RunManifest JSON file’s schema, verification.manifest_digest, SHA-256 hash-chained decision ledger, and all non-null listed output artifacts (outputs + output_hashes / outputs_sha256).
vpp verify [OPTIONS] runmanifest
- Positional
runmanifest: Path to therunmanifest.jsonfile. - Strictly Read-Only Default Behavior: By default,
vpp verifydoes not create$HOME/XDG_DATA_HOME/./datadirectories or write log files. Directories and a log file are only created if you explicitly pass a custom--log-file(other than the defaultvulnparse_pin.log). - Honors
--forbid-symlinks-read(defaultTrue),--allow-symlinks-read,--enforce-root-read, and--portable. - Returns
0on success,1if the manifest, ledger chain, or any listed output artifact fails verification or is missing/symlinked.
8. vpp defer
Create or update a deferral, acceptance, or mitigation rule in decisions.yaml (preserving YAML comments via ruamel.yaml) and optionally re-evaluate triage decisions in .vpp.db.
vpp defer --asset PATTERN --id CVE_OR_RULE --status STATUS --rationale TEXT --owner NAME [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--asset PATTERN |
Required | Asset ID, hostname, IP, CIDR, or glob pattern. |
--id CVE_OR_RULE |
Required | CVE ID or scanner rule/template ID. |
--status {deferred,accepted,mitigated} |
Required | Decision status. |
--rationale TEXT |
Required | Audit-defensible rationale. |
--owner NAME |
Required | Responsible owner. |
--expires YYYY-MM-DD |
None |
Expiration date (YYYY-MM-DD or ISO-8601). |
--in-kev true|false |
None |
Assumption predicate: whether CVE is in CISA KEV. |
--max-epss FLOAT |
None |
Assumption predicate: max EPSS score [0.0–1.0]. |
--max-epss-percentile FLOAT |
None |
Assumption predicate: max EPSS percentile [0.0–1.0]. |
--internet-facing true|false |
None |
Assumption predicate: asset internet exposure state. |
--max-cvss FLOAT |
None |
Assumption predicate: max CVSS base score [0.0–10.0]. |
--decision-id ID |
Auto-generated | Explicit decision identifier. |
--decisions PATH |
decisions.yaml |
Target decisions YAML path. |
--db PATH |
None |
Optional .vpp.db to immediately refresh triage_decisions and remediation_actions. |
--run-id ID |
Latest run | Optional target run_id when refreshing --db. |
9. vpp intel
Inspect local threat-intelligence cache freshness, row counts, and HMAC/SHA-256 integrity (status), or sync feeds (sync) for connected staging or offline prep.
vpp intel [status|sync] [OPTIONS]
| Flag | Default | Description |
|---|---|---|
action (positional) |
status |
status (read-only cache inspection) or sync (fetch/hydrate feeds). |
--feed {all,nvd,epss,kev,exploit_db,ghsa,osv} |
all |
Specific feed to inspect or sync. |
--refresh |
False |
Force feed refresh during sync. |
--allow-regen, --allow_regen |
False |
Allow local checksum regeneration if missing during sync. |
--kev-feed PATH_OR_URL |
None |
Custom KEV source for sync. |
--epss-feed PATH_OR_URL |
None |
Custom EPSS source for sync. |
--exploit-db PATH, -edb PATH |
None |
Local Exploit-DB CSV source for sync. |
--nvd PATH |
None |
Local NVD JSON / .json.gz / directory for sync. |
--years YEARS |
config.yaml NVD policy range (start_year..end_year) |
Optional NVD year, range, or comma-separated list for vpp intel sync --feed nvd (for example 2024, 2021-2026, or 2021,2023-2025). When omitted, syncs the configured config.yaml NVD policy year range (start_year..end_year). |
--ghsa PATH |
None |
Local GHSA advisory JSON/directory for sync. |
--osv PATH |
None |
Local OSV JSON/directory/zip for sync. |
--json |
False |
Print vpp intel status output as structured JSON. |
Example NVD range sync:
vpp intel sync --feed nvd --years 2021-2026
10. vpp ml
Inspect bundled or custom signed ML artifacts (status), evaluate calibration and ranking metrics against a labeled JSON/JSONL corpus (eval), run offline Platt scaling recalibration (calibrate), or train a signed model offline (train).
vpp ml [status|eval|calibrate|train] [OPTIONS]
| Flag | Default | Description |
|---|---|---|
action (positional) |
status |
Action: status, eval, calibrate, or train. |
--db PATH |
.vpp.db |
DuckDB workspace path. |
--run-id ID |
None |
Target run_id. |
--corpus PATH |
None |
Evaluation, calibration, or training corpus JSON/JSONL path (required for eval, calibrate, train). |
--model MODEL |
aci |
Target model identifier or artifact path (aci, pre_kev, or custom path). |
--task {aci_capabilities,pre_kev_breakout} |
pre_kev_breakout |
Training task name for vpp ml train. |
--model-dir DIR |
None |
Directory for model artifacts and calibration outputs. |
--output PATH, -o PATH |
None |
Optional output path for calibrated/trained signed artifact. |
--provider {auto,core,onnx} |
auto |
Inference backend provider. |
--json |
False |
Emit structured JSON output. |
Examples:
vpp ml status --json
vpp ml eval --model aci --corpus holdout_aci.jsonl --json
11. vpp mcp
Run the VulnParse-Pin Model Context Protocol (MCP) server over stdio (default) or hardened streamable-http, exposing .vpp.db read-only (read_only=True) with 7 inspection/simulation tools by default and 3 opt-in write tools behind --allow-write, plus the zero-CDN SEP-1865 UI (ui://vpp/workbench.html).
vpp mcp [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp.db |
DuckDB workspace database path. |
--transport {stdio,streamable-http} |
stdio |
MCP transport mode (stdio isolates all diagnostics to stderr). |
--host HOST |
127.0.0.1 |
HTTP bind host (non-loopback refuses startup without --auth-token-env). |
--port PORT |
8765 |
HTTP listen port for streamable-http (1..65535). |
--auth-token-env ENV_VAR |
None |
Environment variable holding the Bearer token (required and >= 16 chars for non-loopback HTTP binds; verified via hmac.compare_digest). |
--allow-write |
False |
Enable opt-in write tools (vpp_scan_and_diff, vpp_propose_deferral, vpp_export_dossier). |
--assets PATH |
None |
Optional assets.yaml for MCP scan operations. |
--decisions PATH |
None |
Optional decisions.yaml for MCP deferral/scan operations. |
--workspace-root DIR |
None |
Explicit workspace root directory for PermFileHandler confinement. |
Upgraded vpp_simulate_remediation MCP Tool Parameters (read-only):
action_ids: optional list of specificRemediation@1.0action_idstrings (maxItems: 500)run_id: optional targetrun_id(defaults to latest populated run)top_n: optional integer (1..500) selecting the top-ranked candidate actionsaction_types: optional list fromupgrade_package,rebuild_image,remediate_service,fix_code_locationtarget_filter: optional case-insensitive substring or glob ontarget_key/title(maxLength: 256)goal: optional optimization goal (clear-kev,clear-p1,clear-3day,clear-pre-kev,risk-pct)target_risk_pct: optional target risk reduction percentage (0.1..100.0) used whengoalisrisk-pct
Examples:
# Read-only stdio server (default)
vpp mcp --db .vpp.db
# Authenticated HTTP server bound to an interface
vpp mcp --db .vpp.db --transport streamable-http --host 127.0.0.1 --port 8765 --auth-token-env VPP_MCP_TOKEN
12. vpp assets
Compile offline CMDB, cloud, or Nmap inventory exports into schema-validated assets.yaml rules (compile), audit inventory coverage and stale rules against .vpp.db (audit), or generate reviewable Shadow-IT rule stubs from .vpp.db (bootstrap).
vpp assets {compile|audit|bootstrap} [inputs ...] [OPTIONS]
compilerequires one or more positionalinputsfiles (64 MiBmax per file, symlink-rejected).auditandbootstrapreject positionalinputs(use--dband optional--assets).
| Flag | Default | Description |
|---|---|---|
action (positional) |
Required | Inventory action: compile, audit, or bootstrap. |
inputs (positional) |
[] |
Offline inventory export file(s) for compile only. |
--source {auto,netbox-json,netbox-csv,aws-ec2,gcp-compute,azure-vm,csv,nmap-xml} |
auto |
Input inventory format for compile (auto-detects by default). |
--assets PATH |
None |
Existing assets.yaml path for audit. |
--merge PATH |
None |
Idempotently merge compile or bootstrap rules into an existing assets.yaml while preserving defaults, inline decisions, hand-authored rules, and pinned fields. |
--output PATH, -o PATH |
stdout | Output assets.yaml path (prints YAML to stdout if omitted). |
--db PATH |
.vpp.db |
DuckDB workspace path for audit and bootstrap. |
--run-id ID |
Latest run | Target run_id in .vpp.db. |
--column-map FIELD=HEADER |
[] |
Override CSV column header mapping during compile (repeatable, e.g., --column-map owner=TeamOwner). |
--overwrite-pinned |
False |
Allow --merge to overwrite manually pinned criticality, internet_facing, or owner fields. |
--include-inactive |
False |
Include stopped, offline, or decommissioned assets during compile. |
--all-assets |
False |
Include matched assets in addition to unmatched_shadow assets during bootstrap. |
--default-private-exposure true|false |
None (internet_facing: null) |
Optional fallback internet_facing value for private-only cloud/CMDB assets when exposure is not explicitly tagged. |
--fail-on {none,shadow,stale-rules,any} |
none |
Exit with code 2 during audit when shadow assets or stale assets.yaml rules are detected. |
--output-md PATH |
None |
Write Markdown coverage audit report during audit. |
--json |
False |
Emit structured JSON output. |
Examples:
# Compile AWS EC2 + NetBox exports and merge safely into existing assets.yaml
vpp assets compile ec2_instances.json netbox_devices.csv --merge assets.yaml --output assets.yaml
# Audit workspace coverage and fail CI (exit 2) on unmatched shadow assets or stale rules
vpp assets audit --db .vpp.db --assets assets.yaml --fail-on any --output-md out/assets_audit.md
# Bootstrap reviewable YAML stubs for unmatched shadow assets
vpp assets bootstrap --db .vpp.db --merge assets.yaml --output assets.yaml
13. vpp simulate
Run read-only counterfactual Remediation@1.0 what-if simulations against .vpp.db and export QBR/outbrief Markdown, structured JSON, or an offline interactive HTML simulator without mutating the database.
vpp simulate [OPTIONS]
| Flag | Default | Description |
|---|---|---|
--db PATH |
.vpp.db |
DuckDB workspace path. |
--run-id ID |
Latest populated run | Target run_id. |
--action-id ACTION_ID |
[] |
Specific Remediation@1.0 action_id to simulate (repeatable). |
--top N |
None (defaults to 3 at runtime if no selector is given) |
Simulate applying the top N ranked remediation actions (1..500). |
--action-type {upgrade_package,rebuild_image,remediate_service,fix_code_location} |
[] |
Filter candidate actions by remediation type (repeatable). |
--target GLOB |
None |
Filter candidate actions by case-insensitive substring or glob on target_key/title. |
--goal {clear-kev,clear-p1,clear-3day,clear-pre-kev,risk-pct} |
None |
Select minimal ranked actions needed to achieve a remediation goal. |
--target-risk-pct PCT |
None (defaults to 80.0 at runtime when --goal risk-pct is set) |
Target operational risk reduction percent in (0.0, 100.0]; requires --goal risk-pct. |
--output-md PATH |
None |
Write QBR / pentest outbrief Markdown scenario report. |
--output-json PATH |
None |
Write structured simulation JSON report. |
--output-html PATH |
None |
Write standalone client-shareable interactive simulator HTML. |
--json |
False |
Print simulation payload as JSON to stdout. |
Examples:
# Simulate clearing all CISA KEV findings and generate QBR Markdown + HTML simulator
vpp simulate --db .vpp.db --goal clear-kev --output-md out/qbr_kev.md --output-html out/remediation_simulator.html
# Simulate reaching 80% operational risk reduction using only package upgrades
vpp simulate --db .vpp.db --goal risk-pct --target-risk-pct 80 --action-type upgrade_package --json
Legacy Compatibility Shim (v1.x Flags)
WARNING
Top-level legacy flags are deprecated inv2.0.xand emit a[DEPRECATED]notice tostderr. Migrate scripts to v2.0 subcommands before removal in a future release (see Deprecation and Versioning Policy).
Legacy v1.x Invocation |
Rewritten v2.0 Command |
|---|---|
vpp -f scan.nessus -o out.json / vpp --file scan.nessus ... |
vpp scan -f scan.nessus -o out.json |
vpp --demo |
vpp demo --no-ui (delegates to vpp demo using the bundled v2 multi-scanner demo pack) |
vpp --verify-runmanifest runmanifest.json |
vpp verify runmanifest.json |
vpp --debug-path-policy |
vpp scan --debug-path-policy |
Note: Inside vpp scan, --file / -f and --nmap-ctx / -nmap continue to work alongside positional files... and --nmap.