Part 1 of #498 (VEX and CSAF for CRA vulnerability handling): the VEX
state, its API and the two VEX exports. The dashboard (2/4), the CSAF
advisory draft (3/4) and the ENISA report drafts (4/4) follow.
- compliance_core::models::vex: VexStatus (under_investigation, affected,
not_affected, fixed), the five OpenVEX justifications, VexAssessment
(who, when, by_scan). validate(): not_affected needs a justification or
impact statement, affected an action statement.
- CveAlert gains `vex` and `resolved_at` (both skipped when empty, so the
scan's upsert never wipes a statement).
- pipeline::vex_lifecycle: an alert reported again is open and loses a
`fixed` the scan stated; one a complete lookup no longer finds is
resolved, and becomes `fixed` (by_scan) unless a person stated
not_affected/fixed. Alerts were never resolved before.
- API: GET /api/v1/targets/{id}/cves, PATCH /api/v1/cves/{id}/vex (422
with the reason when incomplete), GET /api/v1/targets/{id}/vex
?format=openvex|cyclonedx. Writes go through the role gate and the
support audit like any other.
- compliance_core::vex_docs: OpenVEX 0.2.0 and CycloneDX 1.5 VEX (the SBOM
plus vulnerabilities with analysis); the status/justification mapping
to CycloneDX is documented in the module and the guide.
- sbom_docs CycloneDX fixed: it put `vulnerabilities` inside components
(invalid, components forbid other properties); now top-level, with
bom-refs on every component and the product (pkg:generic/<target>), a
serial number, metadata.timestamp/tools, and licenses as SPDX id
(checked against CycloneDX's own SPDX list), expression or name.
- Evidence pack: vex.openvex.json and vex.cdx.json.
- Vendored schemas (compliance-core/schemas, provenance README):
CycloneDX 1.5 + SPDX + JSF (Apache-2.0), OpenVEX 0.2.0 (CC0).
- Tests: the SBOM and both VEX documents validate against the official
schemas (jsonschema, dev-only), with negative controls (nested
vulnerabilities, a name as SPDX id, a statement without status fail);
statement validation; Mongo: the lifecycle (scan fixes the unassessed
and affected, keeps a person's not_affected, withdraws its fixed when
the CVE returns, does nothing on an incomplete lookup).
- Docs (sbom guide); staging test plan: check 22.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Every CVE alert, and the SBOM's reference to the same advisory, now says
whether the CVE is exploited: its entry in CISA's KEV catalog (date added,
known ransomware use), FIRST's EPSS score and percentile, and the SSVC
exploitation decision of CISA's Vulnrichment.
- pipeline/cve_enrichment.rs reads KEV (one JSON, at most daily), EPSS
(FIRST API, 50 CVE ids per request) and Vulnrichment (per-CVE record on
raw.githubusercontent.com, a 404 is an answer) through guarded_net. Only
CVE ids leave the agent. Bounded: 500 uncached CVEs, 8 at once, 2 min.
- Answers are cached a day for all tenants in <prefix>__admin
(cve_exploitation per CVE, cisa_kev for the catalog), TTL index like the
NuGet licence cache. A failed source stays unknown, is not cached and
never fails the scan. CVE_EXPLOIT_LOOKUP=false turns it off.
- Runs in the scan (after the CVE stage), the PLC control-app path and the
hourly CVE monitor (which now refreshes an existing alert's exploitation).
- CVE issues (#452): a KEV CVE always opens an issue, rated at least high;
an EPSS percentile at or above CVE_ISSUE_EPSS_PERCENTILE (default 0.95)
rates it one step higher. The body names KEV, EPSS (with FIRST's credit)
and SSVC.
- LLM triage: a finding that names a CVE gets its exploitation in the
prompt. No scanner sets Finding.cve today, so this is a hook for now.
- Dashboard: "Aktiv ausgenutzt (KEV)" and "EPSS … · P…" badges on the SBOM
page's CVE cards, a KEV marker on the row, SSVC line, EPSS attribution.
- Docs: tools.md section and egress rows, SBOM and issues guides, staging
check 18. Tests run on trimmed real fixtures and a loopback stand-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Minimal .NET/C# support for epic #445 (N1-N5): detection of solutions/projects and target frameworks, NuGet SBOM without build or restore (pkg:nuget purls for OSV, unresolved-dependency warning, end-of-support frameworks), own C# semgrep rule pack, .NET configuration and key-file checks, .NET build output and restored packages not counted as own code. Fixture fixtures/dotnet/framework48, docs .NET-Projekte (DE/EN).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB