Skip to main content
VulnParse-Pin emblem VulnParse-Pin emblem
VulnParse-Pin
Architecture Features.md
View source on GitHub ↗

Features

VulnParse-Pin (vpp) v2.1.0 (Apache-2.0) combines streaming multi-scanner ingestion, persistent 14-table DuckDB storage, threat-intelligence enrichment, explainable offline ML (ACI@3.0 + Pre-KEV), dual-track scoring, CISA BOD 26-04 SSVC triage, minimum-patch remediation optimization (Remediation@1.0) with counterfactual simulation, automated assets.yaml compilation and drift auditing, scan-over-scan drift detection, Decision Defense Dossiers, a zero-dependency local browser GUI, an optional Textual TUI, and a read-only-by-default MCP server.

  • Multi-Scanner Streaming Ingestion: Ingests and normalizes Nessus (.nessus XML, .csv), OpenVAS (.xml), Qualys (.xml, .csv), SARIF 2.1.0 (Trivy, Grype, Clair, Semgrep, CodeQL, Bandit), Nuclei JSONL (.jsonl), and Nmap (.xml host context) via bounded 64 KB format sniffing (SchemaDetector) and 10,000-row streaming iter_batches() parsers. Experimental JSON parser paths (openvas-json, nessus-json) remain available for legacy compatibility.
  • Persistent 14-Table DuckDB Workspace (.vpp.db): Stores normalized runs across a 14-table columnar schema (runs, assets, asset_aliases, findings, finding_evidence, finding_cves, enrichment_snapshots, aci_signals, scores, triage_decisions, remediation_actions, remediation_action_findings, diff_events, ledger_events) with 0o600 POSIX creation permissions, symlink rejection, and deterministic cross-scanner deduplication (aid_v2_ / fid_v2_).
  • Automated assets.yaml Inventory Compilers, Drift Audit & Shadow Bootstrap (vpp assets): Compiles normalized assets.yaml rules from netbox-json, netbox-csv, aws-ec2, gcp-compute, azure-vm, generic csv, and nmap-xml (--source auto, repeatable --column-map FIELD=HEADER, --merge preserving manually pinned fields, honest internet_facing: null private-only defaults), audits workspace drift (vpp assets audit --fail-on none|shadow|stale-rules|any), and bootstraps Shadow-IT stubs (vpp assets bootstrap).
  • Pattern assets.yaml & decisions.yaml: Draft 2020-12 schema-validated AssetContextMatcher (5-tier precedence: alias/asset_id → exact IP/FQDN/URI/image → longest-prefix CIDR → fnmatchcase glob → unmatched_shadow visibility) and DecisionsRegistry (deferred, accepted, mitigated) with assumption predicates (expires_at, in_kev, max_epss, max_epss_percentile, internet_facing, max_cvss).
  • Unified Threat-Intelligence Enrichment: Hydrates scan-matched CVEs and PURLs from CISA KEV, FIRST EPSS v5 (#model_version, raw probability, percentile, and 90-day velocity slopes epss_delta_7d / epss_delta_30d / epss_slope), NVD (CVSS v4.0 / v3.x / v2.0 with NVD > CNA > GHSA > OSV > Scanner-Supplied > Missing precedence), Exploit-DB, opt-in GHSA (--ghsa, including ghsa_package_index PURL lookup), and optional offline OSV (--osv), cached in 0o600 HMAC/SHA-256 verified SQLite indexes.
  • Dual-Track Scoring@3.0 & Signal Reliability: Vectorized DuckDB scoring across Track A (cve_threat, monotonic EPSS v5 piecewise breakpoints, non-double-counted KEV + verified exploit) and Track B (exposure_weakness), weighted by detection_mode Signal Reliability (credentialed_host/active_dast 1.0, sca_container 0.90, uncredentialed_banner 0.85, static_sast 0.55), with clean-room Apache-2.0 CVSS v2.0/v3.x/v4.0 calculation and full score_trace.
  • Attack Capability Inference (ACI@2.0 / ACI@3.0) & Pre-KEV Breakout Detector (vpp ml): Combines rule-based capability/chain inference with < 2 MB signed distilled core ML models (aci_v3_core, pre_kev_v1_core, ml.mode: off | shadow | active defaulting to shadow), top-K signed attributions in score_trace["ml_aci"], Pre-KEV breakout alerts (pre_kev_threshold: 0.65), optional [ml] (onnxruntime) / [ml-train] (scikit-learn) extras, and RunManifest ml_governance sealing.
  • Minimum-Patch-Set Optimizer (Remediation@1.0) & Counterfactual Simulator (vpp simulate): Lazy-greedy weighted set-cover optimizer grouping active findings into ranked upgrade_package, rebuild_image, remediate_service, and fix_code_location actions. Supports read-only counterfactual simulations by --action-id, --top, --action-type, --target, or --goal (clear-kev|clear-p1|clear-3day|clear-pre-kev|risk-pct), exporting QBR Markdown/JSON and standalone zero-CDN simulator-html.
  • CISA BOD 26-04 SSVC & Triage@2.0: Supports --profile default and --profile bod-26-04, mapping findings to SSVC actions (Act, Attend, Track*, Track), priority tiers (P1, P1b, P2, P3, P4), SLA buckets (3-day + Forensic Triage, 14-day, 60-day, Fix on Upgrade), a static_sast P1-cap guardrail, and decisions.yaml reconciliation.
  • Scan-Over-Scan Diff Engine (vpp diff): Compares .vpp.db runs (or two scan files on the fly) to detect newly introduced high-risk findings, threat-intel escalations (KEV additions, Pre-KEV breakouts, EPSS 0.04/0.10 or percentile 90th/95th crossings, CVSS +1.0 jumps, internet_facing flips), verified remediations, shadow-asset deltas, and stale-assumption deferral invalidations (--fail-on p1|p2|kev|pre-kev|stale-assumption|none, exit code 2 on breach).
  • Zero-Dependency Local Browser GUI (vpp gui & vpp demo --gui): Built-in localhost workbench (127.0.0.1:8787, zero Node/Electron/CDN dependencies) sharing the 7-tab HTML interface (Overview, What-If Simulator, Findings & Trace, Assets & Shadow IT, Deferrals & Waivers, Diff & Drift, Exports & Proof). Read-only by default with strict CSP (frame-ancestors 'none') and 256-bit X-VPP-CSRF protection; opt-in --allow-write logs hash-chained GUI_DEFERRAL_RECORDED and GUI_ASSET_RULE_PROMOTED ledger events.
  • Agentic MCP Server (vpp mcp) & SEP-1865 Workbench: Pure-Python JSON-RPC 2.0 MCP server (stdio and hardened streamable-http with non-loopback --auth-token-env Bearer auth and Host/Origin DNS-rebinding defense) opening .vpp.db read-only by default, exposing 7 read-only tools + 3 opt-in --allow-write tools, the zero-CDN SEP-1865 ui://vpp/workbench.html HTML UI, and turn-key plugins/vpp-mcp/.
  • Dossiers, Roadmaps, Simulator HTML & Exporters (vpp export): Self-contained offline Jinja2 HTML & Markdown Decision Defense Dossiers, Executive Roadmaps, standalone What-If Simulator HTML (--format choices: dossier-md, dossier-html, roadmap-md, roadmap-html, remediation-json, remediation-md, simulator-html, csv, json), PR diff comments (--output-pr-comment), and custom --template-dir overrides.
  • Interactive Textual TUI (vpp ui): Optional vulnparse-pin[ui] terminal workbench over .vpp.db supporting instant tier/track/KEV/Pre-KEV/shadow filtering (1–4, t, k, b, u, /), remediation plan view (a), live score_trace & merged multi-scanner evidence inspection, diff/stale-assumption review (d), one-key dossier export (e/E), and interactive deferral modals (f).
  • 13-Subcommand CLI & 100% Offline Demo: Purpose-built subcommands (scan, demo, diff, ui, gui, export, verify, defer, intel, ml, mcp, assets, simulate) with a transparent legacy compatibility shim (-f/--file, --demo, --verify-runmanifest), plus an under-2-second 100% offline multi-scanner vpp demo (--gui or TUI).
  • Auditability & RunManifest v2: Append-only SHA-256 hash-chained decision ledger (ledger_events), ML model governance hashes (ml_governance), chunked SHA-256 hashing of all written artifacts, and strictly read-only vpp verify <runmanifest.json> validation (verifying schema, manifest digest, ledger chain, and listed output files).
  • Scale & Performance: Streaming lxml.etree.iterparse, chunked JSONDecoder.raw_decode SARIF parsing, DuckDB appender ingestion, vectorized scoring, and parameterized SQL queries validated up to 700,000 multi-scanner findings in benchmarks/bench_scale.py with <1.0s UI/summary queries.
  • Secure-by-Default I/O & Outputs: Fail-closed path policy (PermFileHandler, symlink rejection on read/write, 0o600/0o700 POSIX permissions), HTTP smuggling/CSRF/CSP guards on vpp gui and vpp mcp, XXE/Billion-Laughs XML blocking, zip-traversal protection on OSV archives, CSV formula-injection sanitization (--no-csv-sanitize blocked without --confirm-unsafe-csv), and HMAC-SHA256 signed HTTPS webhooks (--webhook-endpoint).
  • Nmap Attack-Surface Context (--nmap): Streaming NmapXMLParser (NmapAdapter@1.0) mapping confirmed open ports to assets for tie-breaking and optional scoring_port_bonus without blocking if omitted.
  • Permissive Open Source (Apache-2.0): Released under Apache-2.0 starting at v2.0.0 with zero copyleft Python runtime dependencies, PEP 639 packaging, SLSA provenance, and CycloneDX SBOM generation.