Attack Capability Inference (ACI) Feature Explanation
This page explains what Attack Capability Inference (ACI@2.0 and its offline ACIModel ML overlay in VulnParse-Pin v2.1.0) is, what problem it solves across CVE and non-CVE scanner findings, what DuckDB inputs it consumes, and how its outputs appear in scoring, triage, the Textual TUI, and Decision Defense Dossiers.
Why ACI Exists
Vulnerability scanners emit thousands of findings across Nessus, OpenVAS, Qualys, Trivy/Grype/Semgrep/CodeQL SARIF, and Nuclei JSONL. Analysts still need a deterministic way to answer:
- Which findings imply high-impact attacker capability (e.g.,
remote_execution,command_execution,auth_bypass,sql_injection,deserialization,ssrf), especially when no CVE exists (Track Bexposure_weakness)? - Which findings combine into multi-step attack pathway candidates (
chain_candidates)? - Which findings should break ties inside
TopN@2.0and qualify for SSVCautomatable/technical_impact=totalescalation inTriage@2.0?
ACI adds a deterministic, explainable inference pass that preserves raw scanner truth while feeding structured capability signals into Scoring@3.0, Triage@2.0, and TopN@2.0.
What ACI@2.0 Is
ACIV2Pass (ACI@2.0 in src/vulnparse_pin/core/passes/ACI/aci_pass.py) is the default-enabled DuckDB-first pass that:
- Streams findings from
.vpp.dbjoined withfinding_cves,enrichment_snapshots, andfinding_evidence. - Extracts normalized signals from text, structured Nuclei/SARIF tags, CWE IDs, normalized
scanner_sigrule IDs (_scan_sig), affected remote ports, and KEV/exploit flags. - Evaluates capability rules (with guardrails against generic remote-port or protocol-only false positives) and multi-capability chain rules.
- Computes bounded
confidence(0.0–1.0) anduplift_score(0.0–max_uplift). - Persists per-finding results into the DuckDB
aci_signalstable and emitsACI@2.0metrics/semantics.
What ACI Is Not
ACI is decision support—not:
- proof of exploit success or network reachability
- proof of compromise
- a replacement for analyst validation or compensating-control review
Inputs ACI@2.0 Uses
In the v2.1.0 DuckDB pipeline, ACIV2Pass joins:
findings:title,description,plugin_output,references_json,tags_json,cwes_json,affected_port,exploit_evidencefinding_cves+enrichment_snapshots:BOOL_ORunion ofin_kevandverified_exploitacross all linked CVEs (bothprimary_cveand secondary CVEs)finding_evidence: distinctscanner_sigvalues aggregated across deduplicated cross-scanner evidence rows, parsed via_scan_sig
Offline ML Inference (ACIModel / aci_v3_core)
In v2.1.0, ACIV2Pass._run_duckdb also runs optional, 100% offline distilled ML inference (ACIModel backed by the signed aci_v3_core model artifact) whenever ml.mode is not "off":
shadowmode (default): RunsACIModelinference and stores calibrated capability probabilities, top-K signed feature attributions, confidence, andmodel_idinaci_signalsfor analyst inspection and evaluation (vpp ml eval), while adding0.0to risk scores.activemode (--ml-mode active): Keeps the exact same deterministic rule outputs and additionally allowsScoring@3.0to apply a bounded ML capability uplift (ml_uplift, up to1.25points) when offensive capability probability is high (>= 0.60) and the negated-false-positive guard is below0.50.offmode (--ml-mode off): Skips loadingACIModeland leaves the ML columns empty ("{}","[]",NULL,NULL).
Outputs ACI@2.0 Produces
DuckDB aci_signals Table
For every finding in a run, ACIV2Pass writes one row to aci_signals:
capabilities_json: sorted list of inferred capabilities (e.g.,["auth_bypass", "remote_execution"])chains_json: matched attack pathway labels (e.g.,["Initial access and credential theft pathway"])matched_tokens_json: normalized tokens/signals that triggered inferenceconfidence: bounded float in[0.0, 1.0]uplift_score: bounded float in[0.0, max_uplift]ml_capabilities_json: JSON map of calibratedACIModelcapability probabilities (default'{}')ml_attributions_json: JSON list of top-K signed token/feature attributions explaining the ML prediction (default'[]')ml_confidence: peak calibrated ML capability probability (DOUBLE,NULLwhen--ml-mode off)ml_model_id: identifier of the signed model artifact used (for exampleaci_v3_core,NULLwhen--ml-mode off)
Metrics & Derived Output
For runs up to 10,000 findings, DerivedPassResult also populates finding_semantics in memory (asset_semantics up to 50,000 assets) alongside aggregate metrics (total_findings, inferred_findings, coverage_ratio, capabilities_detected, chain_candidates_detected, confidence_buckets, uplifted_findings). Larger runs stream directly through DuckDB without holding per-finding semantic objects in RAM.
How ACI Integrates with Scoring@3.0, Triage@2.0, and TopN@2.0
Unlike v1.x (where ACI@1.0 ran after Scoring@2.0), in v2.1.0 ACI@2.0 runs before Scoring@3.0:
- Track B (
exposure_weakness) inScoring@3.0: Non-CVE findings (Nuclei, Semgrep, misconfigurations) receive+3.5for high-impact ACI capabilities (or+2.0for general ACI capabilities) and+1.0foraci_chains, before applyingsignal_reliability. - SSVC & Guardrails in
Triage@2.0:- High-impact capabilities/tokens (
remote_execution,command_execution,auth_bypass,default-login,rce) feed SSVCexploitation=active(whenscoring_track == "exposure_weakness"andsignal_reliability >= 0.90),automatable=true, andtechnical_impact=total. aci_chainselevate findings toP2(Attend,60-dayinbod-26-04;14-dayindefault).- High-impact ACI capabilities/chains can corroborate internet-facing
High/Criticalstatic_sastfindings under the SAST P1-cap guardrail.
- High-impact capabilities/tokens (
- Tie-Breaking in
TopN@2.0:TopNV2Passorders ties after(priority_tier, operational_score, epss_score)byaci.uplift_score DESC.
Display in vpp ui and Decision Defense Dossiers
vpp ui: The finding detail inspector rendersACI CapsandACI Chainsdirectly fromaci_signals(withscore_tracefallback).- Decision Defense Dossiers (
dossier.html,dossier.md): Prioritized finding blocks display ACI Signals (capabilities,chains,confidence,uplift). - JSON & CSV Exports:
namespaceJSON includesderived["ACI@2.0"](capabilities,chains,matched_tokens,confidence,uplift_score);fullandauditCSV profiles includeaci_capabilities,aci_chains,aci_confidence, andaci_uplift_score.
Guardrails and Token Vocabulary Governance
- Hybrid token model (
tn_triage.json): Maintainer-owned core tokens + word-boundary short-token matching (rce,sqli,lfi,smb,ssh,rdp,rpc,xss) + structured tag/CWE maps + usersignal_aliases,disabled_core_tokens, ortoken_mode: "replace". - Precision guardrails:
remote_serviceport matches alone never triggerremote_executionorinitial_access, and bare protocol tokens (smb,ssh,rdp,rpc) require lateral/exploit/credential context before inferringlateral_movement.