Workflow Examples
This guide provides ten end-to-end recipes for VulnParse-Pin v2.1.0 (vpp), pairing the 13-subcommand CLI (scan, demo, diff, ui, gui, export, verify, defer, intel, ml, mcp, assets, simulate) with the runnable configs, CI pipelines, and shell workflows in examples/.
Honest Reachability Boundary:
vppperforms Network & Operational Reachability (Nmap open-port reconciliation,assets.yamlexposure rules,ACI@2.0/ACI@3.0capability inference, anddetection_modeSignal Reliability weighting). It does not perform AST source-code call-graph reachability or eBPF kernel execution tracing.
Recipe 1: 60-Second Offline vpp demo & Interactive vpp gui / vpp ui
Use vpp demo to evaluate VulnParse-Pin 100% offline with bundled Nessus XML, Trivy SARIF, Nuclei JSONL, Semgrep SARIF, Nmap XML, pattern assets.yaml, decisions.yaml, and miniature EPSS v5 / KEV / NVD / GHSA snapshots—without touching your production cache.
# Core install already includes vpp gui (browser workbench); add [ui] for the Textual TUI
pipx install "vulnparse-pin[ui]"
# Run the offline walkthrough and open the built-in browser GUI (127.0.0.1:8787, read-only)
vpp demo --gui --profile bod-26-04 --output-dir vpp_demo_output --db .vpp-demo.db
# Or open the Textual terminal TUI instead
vpp demo --profile bod-26-04 --output-dir vpp_demo_output --db .vpp-demo.db
For headless terminals or CI validation without launching any interactive UI (--gui cannot be combined with --no-ui):
vpp demo --no-ui --profile bod-26-04 --output-dir vpp_demo_output --db .vpp-demo.db
vpp verify vpp_demo_output/runmanifest.json
vpp demo writes dossier.md, dossier.html, executive_roadmap.html, remediation_simulator.html (offline What-If Remediation Simulator), and runmanifest.json inside vpp_demo_output/.
Exploring .vpp-demo.db in vpp gui or vpp ui
Re-open any workspace database directly in the browser (vpp gui, core install) or terminal (vpp ui, [ui] extra):
vpp gui --db .vpp-demo.db
vpp ui --db .vpp-demo.db --output-dir vpp_demo_output
Key bindings available inside vpp ui:
| Key | Action |
|---|---|
1 / 2 / 3 / 4 / 0 |
Filter by priority tier (P1, P2, P3, P4) or 0 to clear filters (auto-switches back to Findings if on Diff) |
t |
Cycle scoring track (cve_threat vs. exposure_weakness; auto-switches to Findings) |
k |
Toggle CISA KEV filter (auto-switches to Findings) |
u |
Toggle unmatched_shadow assets filter (auto-switches to Findings) |
b |
Toggle Pre-KEV breakout watchlist filter (auto-switches to Findings) |
a |
Toggle Remediation@1.0 Remediation Plan panel & counterfactual selection |
/ |
Focus search input (Esc returns to table) |
i |
Toggle focus between findings table and inspector scroll pane (Esc returns to table) |
[ / ] |
Previous / next page |
r |
Cycle through available scan runs in .vpp.db |
d |
Switch to Diff tab (demo-baseline → demo-current) |
e / E |
Export Decision Defense Dossier for selected finding (e) or full run (E) |
f |
Open interactive deferral modal (Enter advances Rationale -> Owner or submits) |
? |
Open keybinding help modal (Esc, ?, or Enter closes) |
q |
Quit |
Recipe 2: Consultant / MSSP Multi-Scanner Assessment
Ingest infrastructure, container, DAST, and Nmap discovery files into a persistent engagement DuckDB workspace (.vpp.db), deliver offline HTML/Markdown reports, verify the RunManifest, and track remediation velocity on re-test.
- Runnable script:
examples/workflows/mssp-assessment.sh - Example configs:
examples/configs/assets.example.yaml,examples/configs/decisions.example.yaml
# 1. Initial multi-scanner assessment
vpp scan scans/nessus.xml scans/trivy.sarif scans/nuclei.jsonl \
--nmap scans/nmap.xml \
--assets examples/configs/assets.example.yaml \
--decisions examples/configs/decisions.example.yaml \
--profile bod-26-04 \
--run-id assessment-baseline \
--db engagement.vpp.db \
--output-dossier out/mssp/dossier \
--output-runmanifest out/mssp/runmanifest.json \
--runmanifest-mode expanded \
--show-ingestion-summary
# 2. Export Executive Client Roadmaps, Remediation Plans, and Interactive Simulator HTML
vpp export --db engagement.vpp.db --run-id assessment-baseline \
--format roadmap-html --output out/mssp/executive_roadmap.html
vpp export --db engagement.vpp.db --run-id assessment-baseline \
--format roadmap-md --output out/mssp/executive_roadmap.md
vpp export --db engagement.vpp.db --run-id assessment-baseline \
--format simulator-html --output out/mssp/remediation_simulator.html
# 2b. Audit inventory coverage & model a counterfactual KEV remediation plan
vpp assets audit --db engagement.vpp.db --run-id assessment-baseline \
--assets examples/configs/assets.example.yaml --output-md out/mssp/assets_audit.md
vpp simulate --db engagement.vpp.db --run-id assessment-baseline \
--goal clear-kev --output-md out/mssp/qbr_kev_plan.md
# 3. Verify RunManifest digest, hash-chained ledger, and output hashes (read-only)
vpp verify out/mssp/runmanifest.json
# 3b. Or review interactively in the built-in browser workbench (read-only)
vpp gui --db engagement.vpp.db --assets examples/configs/assets.example.yaml --no-open
# 4. Re-test engagement & verify remediation velocity
vpp scan scans/retest_nessus.xml scans/retest_trivy.sarif \
--nmap scans/nmap.xml \
--assets examples/configs/assets.example.yaml \
--decisions examples/configs/decisions.example.yaml \
--profile bod-26-04 \
--run-id assessment-retest \
--baseline-run-id assessment-baseline \
--db engagement.vpp.db \
--output-dossier out/mssp/retest_dossier \
--output-runmanifest out/mssp/retest_runmanifest.json
vpp diff assessment-baseline assessment-retest \
--db engagement.vpp.db \
--decisions examples/configs/decisions.example.yaml \
--fail-on stale-assumption \
--output-md out/mssp/retest_diff.md \
--output-json out/mssp/retest_diff.json
Recipe 3: Federal --profile bod-26-04 SSVC & SLA Triage
Use --profile bod-26-04 to activate CISA BOD 26-04 Stakeholder-Specific Vulnerability Categorization (Triage@2.0), mapping Exposure, Exploitation (active, poc, none), Automatable, Technical Impact, and Signal Reliability into SSVC actions (Act, Attend, Track*, Track) and SLA buckets (3-day + Forensic Triage, 14-day, 60-day, Fix on Upgrade).
# Score and triage with BOD 26-04 SSVC and Nmap port reconciliation
vpp scan scans/nessus.xml scans/trivy.sarif \
--nmap scans/nmap.xml \
--assets examples/configs/assets.example.yaml \
--decisions examples/configs/decisions.example.yaml \
--profile bod-26-04 \
--db federal.vpp.db \
--output-all out/federal/bod_26_04 \
--output-dossier out/federal/dossier \
--runmanifest-mode expanded
# Export audit-profile CSV (with formula-injection sanitization enabled by default)
vpp export --db federal.vpp.db --format csv --csv-profile audit \
--output out/federal/bod_26_04_audit.csv
# Verify RunManifest and every hashed output artifact
vpp verify out/federal/bod_26_04_runmanifest.json
Static SAST Guardrail: Under
config.yaml(triage.static_sast_p1_cap: true), findings detected solely bystatic_sast(signal_reliability = 0.55) are capped belowP1unless confirmed by higher-reliability runtime/host evidence or active exploitation context.
Recipe 4: CI/CD Trivy SARIF PR Gate (GitHub Actions & GitLab CI)
Run Trivy to produce SARIF 2.1.0, triage with vpp scan, verify RunManifest integrity, and fail the build (exit 2) if any deferred finding breaks its underlying assumptions or introduces unreviewed risk.
- GitHub Actions template:
examples/ci/github-actions-trivy-vpp.yml - GitLab CI template:
examples/ci/gitlab-ci-trivy-vpp.yml
# 1. Produce Trivy SARIF (vuln + misconfig)
trivy fs . --scanners vuln,misconfig --format sarif --output trivy.sarif
# 2. Triage into cached .vpp.db workspace with Decision Defense Dossier & RunManifest
mkdir -p out
vpp scan trivy.sarif \
--assets examples/configs/assets.example.yaml \
--decisions examples/configs/decisions.example.yaml \
--profile bod-26-04 \
--db .vpp.db \
--output-dossier out/dossier \
--output-runmanifest out/runmanifest.json
# 3. Read-only RunManifest verification
vpp verify out/runmanifest.json
# 4. Evaluate PR delta & stale-assumption gate (exits 2 on breach)
vpp diff \
--db .vpp.db \
--decisions examples/configs/decisions.example.yaml \
--fail-on stale-assumption \
--output-pr-comment out/pr_comment.md
Available --fail-on modes on vpp diff: p1, p2, kev, pre-kev, stale-assumption, none (default).
Recipe 5: Waiver Lifecycle with vpp defer + vpp diff
Record auditable deferrals, mitigations, and risk acceptances in decisions.yaml using vpp defer—including explicit falsifiable assumptions—and let vpp diff fail closed whenever reality invalidates a waiver.
# 1. Record or update a deferral with explicit threat-intel and exposure assumptions
vpp defer \
--asset "*10.20.1.*" \
--id CVE-2023-38545 \
--status deferred \
--rationale "Internal-only worker behind mTLS; SOCKS5 proxy disabled pending OS rebuild." \
--owner "core-infra@example.org" \
--expires "2027-06-01" \
--in-kev false \
--max-epss 0.04 \
--max-epss-percentile 0.85 \
--internet-facing false \
--max-cvss 9.8 \
--decisions decisions.yaml \
--db .vpp.db
# 2. Later, after threat feeds update or exposure changes, run diff gate
vpp diff \
--db .vpp.db \
--decisions decisions.yaml \
--fail-on stale-assumption \
--output-md out/waiver_drift.md
DecisionsRegistry and DiffEngine automatically flag violated predicates:
expired(expires_athas passed)kev_flipped(CVE entered CISA KEV whenin_kev: falsewas assumed)epss_exceeded/epss_percentile_exceeded(EPSS probability or percentile rose abovemax_epss/max_epss_percentile)exposure_flipped(assets.yamlor scan exposure changedinternet_facing)cvss_exceeded(effective CVSS rose abovemax_cvss)
Recipe 6: Scheduled KEV / EPSS Drift Monitoring + Signed Webhook
Sync threat-intel feeds on a schedule (cron, systemd timer, or Kubernetes CronJob), evaluate vpp diff --fail-on stale-assumption, and separate operational failures (exit 1) from policy drift alerts (exit 2).
When SCAN_FILES is empty (no new scan reports to ingest), pass --re-enrich on vpp diff to re-evaluate existing target-run CVEs against freshly synced local KEV/EPSS/NVD caches without mutating frozen historical runs rows (works in both 1-run and multi-run .vpp.db workspaces):
vpp intel sync --feed kev
vpp intel sync --feed epss
vpp intel sync --feed nvd --years 2021-2026
vpp diff --db .vpp.db --decisions decisions.yaml --re-enrich --fail-on stale-assumption --output-json out/drift_report.json
- Runnable script:
examples/workflows/scheduled-kev-drift-check.sh - Scheduler templates:
examples/deploy/k8s-cronjob-vpp-drift.yaml,examples/deploy/systemd/vpp-drift.service
export VP_FEED_CACHE_HMAC_KEY="replace-with-strong-random-secret"
export VP_SQLITE_HMAC_KEY="replace-with-strong-random-secret"
export VP_WEBHOOK_HMAC_KEY="replace-with-strong-random-secret"
# Optional: run script with fresh scan + signed webhook notification for P1 findings
SCAN_FILES="scans/trivy.sarif" \
DECISIONS_FILE="examples/configs/decisions.example.yaml" \
ASSETS_FILE="examples/configs/assets.example.yaml" \
VPP_WEBHOOK_URL="https://hooks.example.org/vpp" \
VPP_WEBHOOK_OAL_FILTER="P1" \
./examples/workflows/scheduled-kev-drift-check.sh
Direct CLI flags for webhook overrides on vpp scan (requires VP_WEBHOOK_HMAC_KEY to be set; fails closed if missing/invalid, excludes validly deferred/accepted/mitigated findings, and logs a hash-chained WEBHOOK_DELIVERY ledger event):
vpp scan scans/trivy.sarif \
--assets examples/configs/assets.example.yaml \
--decisions examples/configs/decisions.example.yaml \
--webhook-endpoint https://hooks.example.org/vpp \
--webhook-oal-filter P1
See Deployment Options — Signed Webhook Receiver Verification for validating X-VPP-Signature, X-VPP-Timestamp, and X-VPP-Nonce.
Recipe 7: Air-Gapped Intel Transfer & Read-Only vpp verify
Prepare HMAC-signed threat-intelligence caches on a connected staging host, verify integrity metadata, transfer the bundle across the air gap, and scan strictly offline inside the enclave with --portable --enforce-root-read.
- Runnable script:
examples/workflows/airgapped-sync-and-scan.sh
# === On connected staging host ===
export VP_FEED_CACHE_HMAC_KEY="shared-staging-enclave-feed-secret"
export VP_SQLITE_HMAC_KEY="shared-staging-enclave-sqlite-secret"
./examples/workflows/airgapped-sync-and-scan.sh stage
# Produces vpp-intel-bundle.tar.gz + vpp-intel-bundle.tar.gz.sha256
# === On air-gapped enclave (same HMAC env vars exported) ===
sha256sum -c vpp-intel-bundle.tar.gz.sha256
export VP_FEED_CACHE_HMAC_KEY="shared-staging-enclave-feed-secret"
export VP_SQLITE_HMAC_KEY="shared-staging-enclave-sqlite-secret"
# Runs:
# vpp intel status --portable --json
# vpp scan <inputs...> --offline --kev-source offline --epss-source offline \
# [--nvd ...] [--ghsa ...] [--osv ...] [--exploit-source offline --exploit-db ...] \
# --portable --enforce-root-read --output-dossier ... --output-runmanifest ...
# vpp verify out/airgapped/runmanifest.json --portable --enforce-root-read
./examples/workflows/airgapped-sync-and-scan.sh scan scans/nessus.xml scans/trivy.sarif
Note on
--enforce-root-read+--portable: Without--portable,PermFileHandleranchorsallowed_rootsto the OS user data directory (~/.local/share/VulnParse-Pin/), so--enforce-root-readrejects scan files under$PWD. Pairing--portable(-P) with--enforce-root-readsets$PWDasroot_dir, permitting reads under$PWDwhile blocking reads outside it.Note on
--exploit-source offline:cli/args.pyrequires--exploit-db <PATH>whenever--exploit-source offlineis passed explicitly. When using the synced cache without a standalone Exploit-DB CSV path,--offlinealone reads the cachedfiles_exploit.csvundercache/exploit_db/if present.
Recipe 8: Automated assets.yaml Upkeep & Drift Gates (vpp assets)
Compile offline exports from AWS EC2, GCP Compute, Azure VM, NetBox JSON/CSV, generic CSV, or Nmap XML into schema-valid assets.yaml rules, merge them without overwriting manually pinned fields, and gate CI when shadow assets or stale rules appear:
# 1. Compile multi-source offline exports and merge safely into assets.yaml
vpp assets compile ec2_instances.json netbox_devices.csv \
--default-private-exposure false \
--merge assets.yaml \
--output assets.yaml
# 2. Audit coverage against .vpp.db (exits 2 if unmatched shadow assets or stale rules exist)
vpp assets audit --db .vpp.db --assets assets.yaml --fail-on any --output-md out/assets_audit.md
# 3. Bootstrap reviewable YAML stubs for any remaining unmatched shadow assets
vpp assets bootstrap --db .vpp.db --merge assets.yaml --output assets.yaml
Recipe 9: Counterfactual QBR Simulation & Browser Workbench (vpp simulate + vpp gui)
Use vpp simulate to answer “What happens to our risk score and SLA backlog if we apply the top package upgrades or clear all CISA KEVs?” and open vpp gui for interactive team review:
# 1. Run a read-only counterfactual simulation targeting 80% risk reduction and export QBR deliverables
vpp simulate --db .vpp.db \
--goal risk-pct \
--target-risk-pct 80 \
--output-md out/qbr_simulation.md \
--output-json out/qbr_simulation.json \
--output-html out/remediation_simulator.html
# 2. Launch the 7-tab browser GUI workbench (read-only by default; add --allow-write for modals)
vpp gui --db .vpp.db --assets assets.yaml --decisions decisions.yaml --allow-write
Recipe 10: Read-Only & Write-Gated Agentic MCP Safety Rail (vpp mcp)
Expose .vpp.db to AI agents over stdio or hardened streamable-http. By default, vpp mcp opens DuckDB read-only and exposes only the 7 inspection/simulation tools (vpp_run_overview, vpp_query_findings, vpp_explain_finding, vpp_remediation_plan, vpp_simulate_remediation, vpp_diff_and_drift, vpp_verify_manifest):
# Default read-only stdio server
vpp mcp --db .vpp.db
# Authenticated HTTP server with write tools opted in and workspace path confinement
export VPP_MCP_TOKEN="replace-with-at-least-16-char-random-secret"
vpp mcp --db .vpp.db \
--transport streamable-http \
--host 127.0.0.1 \
--port 8765 \
--auth-token-env VPP_MCP_TOKEN \
--assets assets.yaml \
--decisions decisions.yaml \
--workspace-root . \
--allow-write