fix(plc): CVE alerts of PLC targets resolve, their issues sync (#519)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy Agent (push) Successful in 5m21s

This commit was merged in pull request #519.
This commit is contained in:
sharang committed 2026-10-06 16:13:58 +00:00
1 parent b4dc84671f
commit dc9ca8dcd8
3 files changed
+56 -3

No files matched your search

+5
View File
@@ -144,6 +144,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.
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
covered every component. For a PLC project in a managed Git repository, the CVE
issues in the repository follow, as for code.
## Dynamic testing — ICS protocol probe
@@ -33,6 +33,7 @@ together on stage in one pass before the next prod promotion.
| #498 (4/4) | Draft ENISA notifications (CRA Art. 14) for actively exploited vulnerabilities |
| #498 (follow-up) | ENISA deadlines evaluated by the agent; one notification per CVE |
| #516 | Secret scanning with Betterleaks instead of gitleaks |
| PLC CVE fix | CVE alerts of PLC targets resolve; their issues sync |
**Customer-visible on the next prod rescan** is marked **[visible]**: these
change what a customer sees on their existing targets, without them doing
@@ -724,6 +725,27 @@ Use the log4j target of check 31.
- **[visible]** more secret findings on some targets (new Betterleaks
rules); a few existing ones show another rule name.
### 34. PLC targets: CVE alerts resolve and their issues sync
Before, a PLC target's CVE alerts were never marked resolved and never
created or closed issues in a managed repository.
- **Do:** upload `fixtures/nightly/plc/line_control.projectarchive` (CODESYS
Control for Linux SL 3.5.16.0, many CODESYS CVEs) as a PLC target; then
edit the archive so the device descriptor names a newer runtime (e.g.
`3.5.22.40`), re-upload, rescan. **Expect:** the CVEs fixed before
3.5.22.40 are marked resolved with VEX status `fixed` (by the scan); a
person's `not_affected` stays. Log: `CVE alerts no longer found marked
resolved`.
- **Do:** make the NVD lookup fail (e.g. block `services.nvd.nist.gov`)
and rescan. **Expect:** nothing is resolved (the lookup was incomplete),
and the scan run lists the CVE gap.
- **Do:** a PLC project in a managed Gitea repository with critical/high
CODESYS CVEs. **Expect:** CVE issues are created in the repository, and
closed once the runtime is updated.
- **[visible]** PLC targets' fixed CVEs leave the open list after the next
rescan; managed PLC repositories get CVE issues.
## After the pass
- The nightly job on `main` is green with the new mobile targets.