fix(scans): stop offering scans nothing runs, and record them (#319) (#328)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 53s
CI / Deploy MCP (push) Successful in 3m39s
CI / Deploy Dashboard (push) Successful in 5m21s
CI / Deploy Agent (push) Successful in 6m43s

This commit was merged in pull request #328.
This commit is contained in:
sharang committed 2026-09-22 21:05:31 +00:00
1 parent 27e8c866ba
commit f90bfcc5c6
12 files changed
+370 -51

No files matched your search

+6 -4
View File
@@ -8,7 +8,7 @@ the control application *and* the device it runs on.
| --- | --- |
| PLC project (PLCopen XML / ST, or a `.projectarchive`) | **Control-logic SAST** — semantic security rules over ST **and** graphical FBD/LD |
| A `.projectarchive` | **Control-app SBOM** — the referenced CODESYS libraries + the runtime version, matched against known CVEs |
| A device firmware image | Firmware SBOM / CVE (opt-in) |
| A device firmware image | *Not analysed yet* — the run records it as skipped, and says so. Firmware is covered from its **sources**, or from an imported Firmwerk bundle |
| A reachable endpoint (WebVisu, OPC UA) | DAST / pentest (opt-in) |
## Anatomy: a soft PLC is a SoC + Linux + runtime
@@ -46,7 +46,7 @@ flowchart TB
subgraph CERT["What Prüfwerk scans — one layer per artifact"]
direction LR
S1["Firmware layer<br/>FirmwareStatic · SBOM · CVE"]
S1["Firmware layer<br/>not analysed yet — recorded as skipped"]
S2["Control-logic layer<br/>PLC SAST — ST + FBD/LD"]
S3["Control-app SBOM<br/>libraries + runtime → CVE"]
S4["Running layer<br/>ICS probe · DAST (WebVisu)"]
@@ -71,8 +71,10 @@ flowchart TB
Yocto is **Track A** — the *build system* for the device platform. It produces
the Linux image and bakes in the CODESYS runtime, so it is the **firmware
layer**, entirely separate from the control application. Hand it to Prüfwerk as
its own **firmware image** artifact (scanned by the firmware pipeline, not the
PLC pipeline). The device OS need not be Yocto — Raspbian/Debian/Buildroot, or
its own **firmware image** artifact. Nothing unpacks an image yet: the scan run
records that layer as skipped and names the reason, so an unanalysed image is
never mistaken for a clean one. Until it lands, the firmware layer is covered
from its **sources** or from an SBOM imported out of a Firmwerk bundle. The device OS need not be Yocto — Raspbian/Debian/Buildroot, or
even an RTOS / bare-metal, are all possible — but Yocto is the common,
product-grade industrial choice.
:::