feat(csaf): match components against vendor CSAF advisories (#515, part C)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 12m6s

- pipeline::csaf_match: a CODESYS runtime or library (package manager
  codesys) by normalised name and version against the codesys provider's
  advisories, and any component with a purl against advisory products with
  the same purl (version, range or the purl's own version). Only CVEs;
  only affected products (known/first/last_affected).
- A match raises a CveAlert with the new source `csaf`, or, where OSV/NVD
  reported the same CVE, is merged into that alert (one row per CVE; source
  and summary kept). The alert gains `advisories` (AdvisoryRef: provider,
  id, title, link to the advisory page as Siemens' terms ask, the vendor's
  remediations for the product) and the advisory link in references;
  fixed versions and severity fill in where empty. The SBOM entry gets a
  `csaf` VulnRef with the link (unless the CVE is listed already).
- Run in both paths before the exploitation enrichment, from the
  admin-db index (AdvisoryIndex over MongoAdvisoryStore; providers and
  purls asked for). Scans never fetch.
- compliance_core::version: Vers also reads the range forms CERT@VDE's
  vendors write besides proper vers (`vers:generic/4.15.0.0<4.21.0.0`,
  `4.15.0.0<4.19.0.0`, `<4.17.0.0`); 25 of CODESYS's 36 advisories use them.
- Dashboard: the VEX card shows each advisory id as a link, the remediation
  on hover.
- Tests: runtime below/at the fix, a library not named, merge with an NVD
  alert, purl match; an #[ignore] live test matches CODESYS's 36 real
  advisories against the nightly fixture's runtime 3.5.16.0 (25 CVEs).
- Docs: tools reference, PLC guide; test plan check 36.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-06 18:33:02 +02:00
1 parent ff570bac66
commit f682fad1ef
13 files changed
+609 -12

No files matched your search

+5 -1
View File
@@ -143,7 +143,11 @@ guard-aware), cleartext/insecure communication (CWE-319), insecure protocol port
The **SBOM** view lists the CODESYS libraries (`pkg:codesys/<name>@<version>`) and
the runtime; matching runtime components (e.g. the `Cmp*` / `3SLicense` libraries)
surface real CODESYS advisories as CVE alerts.
surface real CODESYS advisories as CVE alerts. Besides NVD, the runtime and
libraries are matched against CODESYS's own CSAF advisories (published through
CERT@VDE): the alert links the advisory (e.g. `VDE-2026-094`) and carries the
vendor's remediation and the fixed version.
A CVE alert a later scan no longer finds (the project now references a fixed
runtime or library version) is marked resolved, and its VEX status becomes
`fixed`, as for code targets; this needs both lookups (OSV and NVD) to have