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
+5
-1
@@ -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
|
||||
|
||||
+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`
|
||||
|
||||
@@ -35,6 +35,7 @@ together on stage in one pass before the next prod promotion.
|
||||
| #516 | Secret scanning with Betterleaks instead of gitleaks |
|
||||
| PLC CVE fix | CVE alerts of PLC targets resolve; their issues sync |
|
||||
| #515 (A, B) | Vendor CSAF advisories read and indexed |
|
||||
| #515 (C) | Components matched against the vendor CSAF advisories |
|
||||
|
||||
**Customer-visible on the next prod rescan** is marked **[visible]**: these
|
||||
change what a customer sees on their existing targets, without them doing
|
||||
@@ -766,6 +767,25 @@ Internal so far (matching follows in part C).
|
||||
- **Egress:** only `*.csaf-tp.certvde.com` and `cert-portal.siemens.com`
|
||||
(with CISA: `www.cisa.gov`, `raw.githubusercontent.com`).
|
||||
|
||||
### 36. #515 part C: CODESYS components against the vendor advisories
|
||||
|
||||
Needs the index of check 35 filled (the `codesys` provider at least).
|
||||
|
||||
- **Do:** rescan the PLC target of check 34 with its original runtime
|
||||
(`line_control.projectarchive`, CODESYS Control for Linux SL 3.5.16.0).
|
||||
**Log:** `vendor CSAF advisories matched` with `advisories` (CODESYS's,
|
||||
about 36) and `matched` (about 25 for 3.5.16.0).
|
||||
- **Expect:** in **Schwachstellen und VEX**, CVEs such as CVE-2023-37545 …
|
||||
CVE-2023-37559 or CVE-2025-41658 show the advisory id (`VDE-…`) as a link
|
||||
to certvde.com; hovering it shows the vendor's remediation; alerts NVD
|
||||
also reported are not doubled (one row per CVE), now with the fixed
|
||||
version. Alerts only CSAF knows have source `csaf`. The SBOM page lists
|
||||
them on the runtime with source `csaf` and the advisory link.
|
||||
- **Do:** set the runtime to 3.5.22.40 (as in check 34), rescan.
|
||||
**Expect:** the CVEs fixed before it resolve (check 34's behaviour).
|
||||
- **[visible]** PLC targets get CVE alerts from CODESYS's own advisories,
|
||||
with the advisory linked and the vendor's fix.
|
||||
|
||||
## After the pass
|
||||
|
||||
- The nightly job on `main` is green with the new mobile targets.
|
||||
|
||||
Reference in new issue
Block a user