Skip to content

sodejm/exposure-triage-workbench

v0.1.0PolyForm-Noncommercial-1.0.0

Prioritize vulnerability alerts using multi-source evidence including SBOM versions, cloud asset criticality, and network reachability.

COPS Exposure Triage Workbench

The Exposure Triage Workbench combines offline vulnerability advisories, software-component observations, cloud asset context, and reachability evidence into a prioritized review queue. It helps analysts distinguish urgent, contextual exposure from unaffected or unresolved records while preserving the evidence behind each decision.

The package performs no scan or probe. A priority tier expresses review urgency from supplied evidence. It does not prove remote code execution, exploit activity, or complete production coverage.

Prerequisites and quick start

Run from the repository root with Python 3.14 or later:

python3 -m cops demo exposure-triage-workbench

The public command creates an owner-only temporary workspace and removes it after the playback. Use the package runner directly when you need to retain all artifacts in a new directory:

PYTHON="${PYTHON:-python3.14}"
scratch="$(mktemp -d "${TMPDIR:-/tmp}/cops-exposure-playback.XXXXXX")"
chmod 700 "$scratch"
"$PYTHON" plugins/vulnerability-management/exposure-triage-workbench/scripts/run_demo.py \
  --workspace "$scratch/playback"
cat "$scratch/playback/playback-summary.json"

The command retains artifacts under $scratch/playback; after review, remove the private scratch directory with rm -rf "$scratch" in the same shell. The playback workspace must not already exist.

See the playbook for evidence review and failure handling and the verification guide for package checks.

Design and data flow

  1. Intake: ingest_triage_bundle validates a local bundle and its cross-references.
  2. Correlation: package versions, affected ranges, asset identities, subscriptions, criticality, and reachability are joined without collapsing same-named assets from different scopes.
  3. Assessment: evaluate_triage_bundle applies deterministic tier rules and records supporting evidence and uncertainty.
  4. Reporting: renderers emit JSON for automation and Markdown for analyst review.

Contradictory or missing facts become UNKNOWN_INVESTIGATION_REQUIRED; the evaluator does not guess.

Contracts and artifacts

Contract or artifactPurposeKey fieldsProducer and consumerDefinition and validation
Triage input bundleCarries all offline evidence for one evaluationbundle_id, advisories, assets, components, reachabilityExport preparer → ingestionschemas/triage-input.schema.json; runtime checks the version, bundle ID, and required fields in records that are present, but does not enforce the full schema or collection completeness
AdvisoryDefines an affected package range and severity contextadvisory ID, package, affected versions, severityVulnerability source → evaluatorValidated as part of the bundle
Asset/component/reachability recordsBind software evidence and network context to scoped assetsasset ID, subscription, component version, route statusInventory sources → evaluatorRequired fields checked at intake; scoped identity is preserved
Prioritized reportPresents counts and the ordered review queuereport_id, summary, queueEvaluator → automation and analystschemas/triage-report.schema.json
report.mdHuman-readable review queuetier, asset, evidence, rationaleRenderer → analystDerived from the same evaluated queue as JSON
playback-summary.jsonCaptures regression acceptancetotals, P1 count, unresolved count, rerun/failure checksDemo → reviewerWritten only after semantic assertions pass

Reading the queue

Review P1_CRITICAL items first, then validate their supporting evidence. Treat UNKNOWN_INVESTIGATION_REQUIRED as an evidence request rather than low risk. The synthetic playback creates seven queue items: two P1 and two unresolved. It also proves that two app-service-frontend assets in different subscriptions remain distinct.

The output is only as complete and current as its bundle. It does not establish exploitability, active compromise, remediation success, or absence of unreported assets.

For real data, use the installed skill's private-output workflow. triage requires either a new --output path (created with mode 0600 on POSIX, without replacing an existing file) or explicit --stdout for synthetic or sanitized input. On Windows, use a private parent directory with an appropriate ACL. Routine intake status and handled input errors omit source paths and values; the command does not enforce the published JSON Schema. Protect the input and parent directory separately.