From 85aff4cd2c5116a53bffc68856169f089d9d4a5c Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Tue, 6 Oct 2026 17:38:00 +0000 Subject: [PATCH] docs(release): pre-verification of the v0.4.5 batch, daily CVE monitor (#524) --- docs/guide/sbom.md | 2 +- docs/guide/scanning.md | 4 +- docs/reference/tools.md | 2 +- .../release/staging-test-plan-after-v0.4.5.md | 62 ++++++++++++++++--- .../nightly/baselines/git-cra-vuln-demo.json | 2 +- 5 files changed, 59 insertions(+), 13 deletions(-) diff --git a/docs/guide/sbom.md b/docs/guide/sbom.md index 0bb839f..47a9946 100644 --- a/docs/guide/sbom.md +++ b/docs/guide/sbom.md @@ -93,7 +93,7 @@ compared with the version in use. OSV publishes no advisories for CocoaPods, so pods are not matched. Components that could not be matched are listed on the scan run under **CVE-Abgleich unvollständig**. -Known components are re-checked hourly, so a CVE published against an unchanged +Known components are re-checked daily, so a CVE published against an unchanged component still raises an alert. ## Packages Tab diff --git a/docs/guide/scanning.md b/docs/guide/scanning.md index 7d3579c..696401a 100644 --- a/docs/guide/scanning.md +++ b/docs/guide/scanning.md @@ -73,14 +73,14 @@ A manual scan always scans in full, even if nothing changed. ### Scheduled Scans Targets are scanned automatically on a recurring schedule: by default every 6 -hours, with an hourly check of known components for newly published CVEs. Your +hours, with a daily check of known components for newly published CVEs. Your administrator controls these schedules. A scheduled scan of a git repository with no new commits since the last scan, or of uploaded files that are the same as at the last scan, does not scan again; the run says so under **Nicht ausgeführt** and counts as no scan. After an update of Prüfwerk every target is scanned once more, since new rules can find more in the same code. **Prüfung starten** always scans in full, also when a restart of Prüfwerk -interrupted it and it is started again. The hourly CVE check of the known +interrupted it and it is started again. The daily CVE check of the known components runs either way. ### Webhook-Triggered Scans diff --git a/docs/reference/tools.md b/docs/reference/tools.md index 6b998c0..5840581 100644 --- a/docs/reference/tools.md +++ b/docs/reference/tools.md @@ -186,7 +186,7 @@ Prüfwerk matches every SBOM component directly against two public vulnerability - [OSV.dev](https://osv.dev/) -- batch queried by package URL (purl) for ecosystem advisories (npm, PyPI, crates.io, Go, Maven, ...) - [NVD](https://nvd.nist.gov/) -- queried per CVE for the CVSS v3.1 base score, and by CPE for components outside a package ecosystem: the CODESYS runtime found in PLC projects and the embedded libraries above. All CVEs of the product are fetched and their affected version ranges compared with the version in use. -Matches are stored as CVE alerts with CVSS scores and re-checked hourly, so newly published CVEs against an unchanged dependency still raise a notification. +Matches are stored as CVE alerts with CVSS scores and re-checked daily, so newly published CVEs against an unchanged dependency still raise a notification. Only package URLs (purl), CVE ids and CPE product prefixes are sent. Both sources are reached through the net guard like every other outbound request (see [Outbound connections](#outbound-connections-egress)). diff --git a/docs/release/staging-test-plan-after-v0.4.5.md b/docs/release/staging-test-plan-after-v0.4.5.md index 60a8438..919b592 100644 --- a/docs/release/staging-test-plan-after-v0.4.5.md +++ b/docs/release/staging-test-plan-after-v0.4.5.md @@ -41,6 +41,45 @@ together on stage in one pass before the next prod promotion. change what a customer sees on their existing targets, without them doing anything. Everything else needs a new upload, a staff action, or is internal. +## Pre-verification 2026-10-06 + +Run by Claude before the pass, without a browser login: stage through its +public endpoints, container log and Mongo (read by the platform session), +and the same agent image (`8ea3731`) locally with the fixtures of this plan. +**NEEDS USER** names what is left to look at in the dashboard. + +| Check | Result | Evidence, or what to look at | +|---|---|---| +| 1 | PASS / NEEDS USER | `/api/v1/platform/version` on stage gives build `8ea3731`. Look at: the build shown in the portal. | +| 2 | NEEDS USER | A blocked member is refused (needs a second account). | +| 3 | NEEDS USER | Triage verdicts on the critical/high findings, after the rescan. | +| 4 | PASS | Stage Mongo: no `tmp.` rule ids left. Look at: an umlaut control title. | +| 5 | PASS | Locally, `Ionic.Zip.dll` gives `pkg:nuget/DotNetZip@1.9.1.8` with `GHSA-7378-6268-4278`. The 1.9.1.5 package named before does not exist on nuget.org; the check now uses 1.9.1.8. | +| 6 | PASS | Locally, OSV and NVD answers on the CVE fixtures; stage log grep after the rescan. | +| 7 | PASS | Locally, one `android_logging` finding with 7 places in `PumpLog.java`; no secret finding in `.launch`. | +| 8 | NEEDS USER | Group decisions on a git scratch repository on stage. | +| 9–13 | PASS / NEEDS USER | The iOS, Unity and sample fixtures match their nightly baselines locally. Look at: the dashboard parts (11, 12: filters and variants). | +| 14 | NEEDS USER | Interrupt a clone on stage and rescan. | +| 15 | PASS / NEEDS USER | Committed-binary findings locally; clamd is up on stage. Look at: the EICAR file and the scheduled skip of an unchanged target. | +| 16 | PASS | Locally, `Serilog 2.10.0` from `App/App.csproj (transitive, nuget.org)`, Apache-2.0; one `sbom_dependencies` entry naming only the private-feed project; log line present. | +| 17 | PASS | Locally, the npm and Maven components get licences; with an `.npmrc` scope and a private Maven repository `@corp/util` and every Maven component stay without one, log `Maven licenses not looked up`. The fixture path is now `fixtures/nightly/eco/js-npm-lock-v3`. | +| 18 | PASS | Stage Mongo: findings with `legacy_fingerprints` kept their rows. | +| 19 | PASS / NEEDS USER | Locally, CVE-2021-44228 has KEV (ransomware), EPSS 0.99999, SSVC active. Stage fills `cve_exploitation` with the daily CVE monitor (00:00). Look at: the badges. | +| 20 | NEEDS USER | Edit and re-export a PLC project, then rescan. | +| 21 | PASS / NEEDS USER | Locally, the hardening, HEX, signature and reference texts are as written, and the ASLR/RELRO findings have cra-ai-1 and the HEX finding cra-ai-6. Six files group into one inventory finding (#477), so the check now uploads five. Look at: a native unsigned DLL. | +| 22 | PASS | Locally: 422 without a justification or action; OpenVEX, CycloneDX VEX and the SBOM validate against the schemas; after the update to log4j 2.17.1 the fixed CVEs are set `fixed` by the scan, and a person's `not_affected` is kept. | +| 23 | PASS | The vendored packs' rule ids are in the local nightly baselines. | +| 24 | PASS / NEEDS USER | The sbomqs lines match locally. Look at: the score card. | +| 25 | PASS | The DevSkim .NET fixture matches its baseline locally. | +| 26 | NEEDS USER | The VEX editor and downloads, and the member role. | +| 27, 29, 30 | PASS | Locally, CycloneDX 1.6: manufacturer, BSI properties, incomplete compositions, hashes, download URLs, project URLs, declared licences. | +| 28 | PASS / NEEDS USER | Locally, `csaf_vex` draft, TLP:AMBER, valid in gocsaf and csaf-validator-lib; `example.com` namespace refused. Look at: the download button. | +| 31, 32 | PASS / NEEDS USER | Locally, one notification per CVE with its stages and hours left; still reportable after the fix, with the final report 14 days on. Look at: the button and the deadline texts. | +| 33 | FAIL, fixed / NEEDS USER | Stage has betterleaks 1.9.0 and no gitleaks; `c-sensor-node` gets both `generic-password` findings. The demo `git-cra-vuln-demo` lost its placeholder Stripe key finding and gained `generic-password` on `auth.py:3`; its baseline and this check's [visible] note are updated. Look at: the `AKIA…` rule change on a git target. | +| 34 | PASS | Locally, a newer CODESYS runtime resolves 22 alerts as `fixed` by the scan. | +| 35 | PASS | Stage Mongo: advisories from the 13 CERT@VDE vendors and Siemens, no hash mismatch, no CISA. | +| 36 | FAIL, fixed in #523 / NEEDS USER | Matching worked locally (links to certvde.com, fixed versions), but the remediation was empty: CODESYS advisories name their products through product groups. #523 reads the groups and re-reads the stored advisories once. Look at: the advisory hover; after the deploy, a CODESYS alert with its remediation. | + ## Setup - Stage dashboard: `https://pruefwerk-stage.breakpilot.com`, a test tenant @@ -102,10 +141,11 @@ anything. Everything else needs a new upload, a staff action, or is internal. ### 5. #474 NuGet ids from DLLs -- **Do:** upload a tree holding `bin/Ionic.Zip.dll` from the DotNetZip 1.9.1.5 - package (`https://www.nuget.org/api/v2/package/DotNetZip/1.9.1.5`, a zip; - the DLL is `lib/net20/Ionic.Zip.dll`). -- **Expect:** the SBOM lists `pkg:nuget/DotNetZip@1.9.1.5` with +- **Do:** upload a tree holding `bin/Ionic.Zip.dll` from the DotNetZip 1.9.1.8 + package + (`https://api.nuget.org/v3-flatcontainer/dotnetzip/1.9.1.8/dotnetzip.1.9.1.8.nupkg`, + a zip; the DLL is `lib/net20/Ionic.Zip.dll`). +- **Expect:** the SBOM lists `pkg:nuget/DotNetZip@1.9.1.8` with `GHSA-7378-6268-4278`; an assembly that maps to nothing is listed under **Nicht ausgeführt** as `Nicht abgeglichen: NuGet: …`. - **Log:** none specific. @@ -278,7 +318,7 @@ Unchanged rescans: ausgeführt** ("Die hochgeladenen Dateien und die Prüfwerk-Version sind … unverändert") and sends no `scan.completed` usage; **Prüfung starten** still scans in full. After this deploy every target scans once (new build), then - skips while unchanged. The hourly CVE monitor keeps running. + skips while unchanged. The daily CVE monitor keeps running. - **Restart:** restart the agent during a **Prüfung starten** scan of an unchanged target: the resumed scan runs in full (`starting a scan interrupted by the restart again` with `trigger=Manual`). @@ -309,7 +349,7 @@ Unchanged rescans: ### 17. #467 follow-up: npm and Maven licenses -- **Do:** scan `fixtures/nightly/js-npm-lock-v3` and +- **Do:** scan `fixtures/nightly/eco/js-npm-lock-v3` and `fixtures/nightly/mobile/android-gradle-lock` (or any npm and Gradle target); then add an `.npmrc` with `@corp:registry=https://npm.corp.example.com/` and a `maven { url 'https://nexus.corp.example.com/repo' }` repository to a @@ -401,7 +441,9 @@ plus one .NET DLL and one native Windows DLL (e.g. `lib/net45/Newtonsoft.Json.dl from the nupkg on nuget.org, and any unsigned native DLL you have). - **Do:** upload an archive with `weak`, `strong`, `good.hex`, `broken.hex` - and the two DLLs under `bin/`. + and the .NET DLL under `bin/`, and the native DLL in a second archive (six + files in one archive are one grouped inventory finding, #477, which shows + the evidence of the first file only). - **Expect:** - every file keeps its **Info** finding **Committed binary …**, whose text now ends with what was found: `Hardening: RELRO none, NX yes, PIE no, @@ -725,7 +767,11 @@ Use the log4j target of check 31. findings`. - **Expect:** no outbound connection from the secret stage (no validation). - **[visible]** more secret findings on some targets (new Betterleaks - rules); a few existing ones show another rule name. + rules); a few existing ones show another rule name. Betterleaks drops + obvious placeholder keys: the demo `git-cra-vuln-demo` loses its + `stripe-access-token` finding on `auth.py:2` (a fake `sk_live_…` key; a + realistic random key is still found) and gains `generic-password` on + `auth.py:3`. ### 34. PLC targets: CVE alerts resolve and their issues sync diff --git a/fixtures/nightly/baselines/git-cra-vuln-demo.json b/fixtures/nightly/baselines/git-cra-vuln-demo.json index 10c8a81..d14c174 100644 --- a/fixtures/nightly/baselines/git-cra-vuln-demo.json +++ b/fixtures/nightly/baselines/git-cra-vuln-demo.json @@ -5,7 +5,7 @@ ], "sbom": [], "findings": [ - "gitleaks:stripe-access-token auth.py:2", + "gitleaks:generic-password auth.py:3", "semgrep:cra-ai-14-python-weak-cipher crypto.py:8", "semgrep:cra-ai-15-python-cleartext-http net.py:4", "semgrep:cra-ai-20-python-shell-command db.py:9",