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
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:
1 parent
ff570bac66
commit
f682fad1ef
13 files changed
+609
-12
No files matched your search
+13
-2
@@ -227,8 +227,19 @@ newer than the stored one; its SHA-512 must match the hash file the provider
|
||||
publishes beside it (an advisory without one is stored and counted as
|
||||
unverified); the PGP signatures are not checked. A run fetches at most 400
|
||||
advisories within 15 minutes, newest first, so the first fill spans a few
|
||||
runs. Scans never fetch; they match the target's components against the index
|
||||
(#515, part C).
|
||||
runs. Scans never fetch; they match the target's components against the index:
|
||||
|
||||
- a CODESYS runtime or library (from a `.projectarchive`) by its name and
|
||||
version against CODESYS's advisories, including the range forms CERT@VDE's
|
||||
vendors write besides proper `vers` (`4.15.0.0<4.21.0.0`, `<4.17.0.0`);
|
||||
- any component with a purl against an advisory product with the same purl.
|
||||
|
||||
A match raises a CVE alert with source `csaf`, or, where OSV or NVD reported
|
||||
the same CVE, is added to that alert. Either way the alert names the advisory
|
||||
(id, title, link) with the vendor's remediation and the fixed versions, and
|
||||
the component lists the CVE with the advisory's link. Siemens order numbers
|
||||
(MLFB) are indexed but not matched yet: no component carries one until TIA
|
||||
exports are read.
|
||||
|
||||
`PW_CSAF_PROVIDERS` chooses the providers: unset or `default` (CERT@VDE's
|
||||
vendors and Siemens), `off`, or a comma list of `default`, `siemens`, `cisa`
|
||||
|
||||
Reference in new issue
Block a user