RunManifest Overview
RunManifest v2 is VulnParse-Pin’s provenance, integrity, and audit-defense artifact (manifest_version: "2.0"). Built directly from .vpp.db via build_runmanifest_from_db() (src/vulnparse_pin/utils/runmanifest.py), it captures:
- Run metadata (
run_id,profile,assets_sha256,decisions_sha256, runtime version). - SHA-256 input & configuration fingerprints (
inputs.input_files_sha256,config_hashes). - Output file paths and SHA-256 digests (
outputs,output_hashes) across the exported artifact bundle. - Threat-intelligence metadata & snapshot statistics (
enrichment_summary). - Per-pass summaries (
ACI@2.0,Scoring@3.0,Triage@2.0,Summary@2.0) built from DuckDB tables with multi-CVE KEV parity. - ML governance metadata (
ml_governance) recording the active ML mode, provider, model IDs, and SHA-256 model hashes. - An append-only, SHA-256 hash-chained
decision_ledgerbacked by DuckDBledger_events. - Deterministic
verification.manifest_digestfor offline tamper detection.
Why RunManifest Exists
Raw scanner output tells you what was found. Decision Defense Dossiers tell stakeholders why a finding was prioritized or deferred. RunManifest v2 cryptographically ties the inputs, policies, threat-intel snapshots, decision ledger, and exported artifacts together so teams can verify nothing was altered after the run.
Practical Uses
- Triage & Audit Evidence Pack: Attach
runmanifest.jsonalongside Decision Defense Dossiers (dossier.html,dossier.md) and CSV/JSON exports to prove scoring, SSVC decisions, and deferral evaluations match the recorded policy and threat feeds. - Repeatability & Drift Audits: Compare
config_hashes,assets_sha256,decisions_sha256, andenrichment_summary.intel_metadataacross runs (complemented byvpp diff). - Tamper-Evident CI Gates: Run
vpp verify <runmanifest.json>in CI/CD or before archival to validate both the manifest digest/ledger chain and the SHA-256 digests of every listed output artifact on disk.
What Is Captured
Top-level sections (runManifest.schema.json, Draft 2020-12):
manifest_version("2.0")runmanifest_mode("compact"or"expanded")run_id,profile,assets_sha256,decisions_sha256generated_at_utcruntime(vulnparse_version,python_version,platform)inputs(target_path,target_sha256,input_files,input_files_sha256,baseline_run_id)config_hashes(config_yaml_sha256,scoring_json_sha256,tn_triage_json_sha256,assets_sha256,decisions_sha256)outputs&output_hashes(in--output-all, hashes all 6 written output keys:json,csv,executive_markdown,technical_markdown,dossier_markdown,dossier_html)enrichment_summary(kev_enabled,epss_enabled,nvd_enabled,exploit_enabled,ghsa_enabled,osv_enabled,intel_metadata,stats)pass_summariesdecision_ledgerml_governance(ml_mode[off|shadow|active],provider[auto|core|onnx],model_ids[],model_hashes{}mapping each model ID to itssha256:...digest)verification(canonicalization: "json-c14n-v1",volatile_fields_excluded,manifest_digest)
Decision Ledger at a Glance
The embedded decision_ledger mirrors the DuckDB ledger_events table with an append-only SHA-256 hash chain:
- Sequential
seqvalues starting at1. prev_hashlinks to the previous entry (EMPTY_LEDGER_ROOTfor entry1/ empty ledger).entry_hashprotects every entry body andevidence_digest.chain_rootanchors the final entry hash.
The ledger records ingestion quality gates (CSV drops, malformed skips, strict-ingestion / confidence rejections), ACI summaries, Scoring summaries, Triage outcomes, and webhook emission statuses.
Output Modes
compact(default): high-impact decision events with minimal overhead.expanded: richer per-finding/per-asset decision detail and SLA bucket breakdowns.
Pre-Seal vs. Post-Export Dossier Seal
During single-pass vpp scan --output-dossier ... --output-runmanifest ..., vpp scan --output-all ..., or vpp demo, dossier.html (and dossier.md / executive_roadmap.html) is written before build_runmanifest_from_db() computes output_hashes and seals verification.manifest_digest (preventing a circular SHA-256 self-hash). Consequently, inline dossiers generated during the scan pass display:
Pending post-export RunManifest seal (see runmanifest.json)
After the scan completes and stores runs.manifest_digest in .vpp.db, run vpp export to embed the sealed sha256:... digest directly inside the dossier:
vpp export --db .vpp.db --format dossier-html -o dossier.html
Core Commands
Generate a RunManifest during vpp scan:
vpp scan scan.nessus --profile bod-26-04 --db workspace.vpp.db \
-o out/result.json --output-runmanifest out/runmanifest.json
Generate the full 6-artifact --output-all bundle with expanded RunManifest mode:
vpp scan scan.nessus --profile bod-26-04 --db workspace.vpp.db \
--output-all out/prod --runmanifest-mode expanded
Verify an existing RunManifest and its listed outputs (strictly read-only by default):
vpp verify out/prod_runmanifest.json
Enforce root confinement or inspect symlink-read overrides during verification:
vpp verify out/prod_runmanifest.json --enforce-root-read
vpp verify out/prod_runmanifest.json --allow-symlinks-read
What vpp verify Confirms
vpp verify performs strictly read-only verification (no directories or log files are created unless you pass a custom --log-file <name>):
- Symlink rejection on the manifest path and all listed output artifacts (unless
--allow-symlinks-readis explicitly passed), plus optional root confinement (--enforce-root-read). - JSON Schema Draft 2020-12 conformance (
runManifest.schema.json). - Per-entry hash-chain continuity (
seq,prev_hash,entry_hash,chain_root). - Canonical
verification.manifest_digestrecomputation (json-c14n-v1). - Existence and SHA-256 digest verification (
hmac.compare_digest) for every non-null output listed inoutputs/output_hashes.