This commit was merged in pull request #488.
This commit is contained in:
1 parent
ecc6466a18
commit
d960ba658e
62 files changed
+1600
-61
No files matched your search
@@ -180,8 +180,8 @@ What the scan never changes:
|
||||
**Nicht ausgeführt**): a failed analysis says nothing about the code.
|
||||
- Findings of the linters and of the AI checks, and of SPS/PLC projects (not
|
||||
yet).
|
||||
- A scheduled scan that finds no new commits does not scan, so it closes
|
||||
nothing.
|
||||
- A scheduled scan that finds no new commits (or unchanged uploaded files) does
|
||||
not scan, so it closes nothing.
|
||||
|
||||
Findings are tied to a file and line. When code moves (lines added above it),
|
||||
the same issue is reported at its new line as a new finding, and the old one
|
||||
|
||||
@@ -75,8 +75,13 @@ A manual scan always scans in full, even if nothing changed.
|
||||
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
|
||||
administrator controls these schedules. A scheduled scan of a git repository
|
||||
with no new commits since the last scan does not scan again; the run says so
|
||||
under **Nicht ausgeführt**.
|
||||
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
|
||||
components runs either way.
|
||||
|
||||
### Webhook-Triggered Scans
|
||||
|
||||
@@ -150,6 +155,8 @@ as a clean result: the CRA requirements it checks show as **Nicht bewertet**.
|
||||
| **Firmware-SBOM** | *(build system)*-Build erkannt, aber ohne Build lassen sich keine Komponenten auflösen. | The components could not be read from the sources without building. Importing a Firmwerk bundle, which the message mentions, is not available yet. |
|
||||
| **CVE-Abgleich unvollständig** | Nicht abgeglichen: *(lookup and components)* | Start the scan again later; the lookup service may have been unavailable. |
|
||||
| **Änderungserkennung** | Keine neuen Commits seit der letzten Prüfung, daher nicht erneut geprüft. „Prüfung starten“ prüft trotzdem vollständig. | Nothing; click **Prüfung starten** for a full scan. |
|
||||
| **Änderungserkennung** | Die hochgeladenen Dateien und die Prüfwerk-Version sind seit der letzten Prüfung unverändert, daher nicht erneut geprüft. | Nothing; click **Prüfung starten** for a full scan. |
|
||||
| **Schadsoftware (ClamAV)** | In dieser Umgebung nicht aktiviert. / … wurde nicht fertig. / Zu groß für die Suche nach Schadsoftware, nicht geprüft: … | Without the ClamAV service nothing was searched; files above 64 MiB are listed. |
|
||||
|
||||
## Where a scan may connect
|
||||
|
||||
|
||||
@@ -138,6 +138,33 @@ Only package URLs (purl), CVE ids and CPE product prefixes are sent. Both source
|
||||
|
||||
Licenses of NuGet packages that no `.nuspec` in the tree gives are read from the [nuget.org registration API](https://learn.microsoft.com/nuget/api/registration-base-url-resource) (`api.nuget.org`). Only the package id and version are sent, never for an id a `nuget.config` routes to another feed (see [.NET projects](/guide/dotnet-en)). The lookup is bounded per scan (8 requests at once, 10 s per request, 60 s and 300 uncached packages in total); answers are cached for all tenants. Set `NUGET_LICENSE_LOOKUP=false` to keep the agent from contacting nuget.org.
|
||||
|
||||
## ClamAV -- Malware
|
||||
|
||||
[ClamAV](https://www.clamav.net/) (GPL-2.0, the official image unchanged) runs
|
||||
as its own service beside the agent, its signatures updated daily by freshclam
|
||||
inside it. The agent streams each file of the tree to it (`INSTREAM`, at most
|
||||
64 MiB per file; larger files are listed under **Nicht ausgeführt**), vendor
|
||||
code included: a vendored DLL is exactly where malware hides. A file found
|
||||
clean is remembered by its SHA-256 and the signature version, so a rescan only
|
||||
streams what changed or met new signatures. Each hit is a finding of high
|
||||
severity with the signature, the file and its SHA-256 (type **Schadsoftware und
|
||||
Binärdateien**, tool **Schadsoftware (ClamAV)**). Heuristic signatures
|
||||
(`Heuristics.*`, `*.Malware.*`, `PUA.*`) also match packers, obfuscators and
|
||||
protection tools; such a finding says so and needs a person's review. The LLM
|
||||
triage does not judge these findings (there is no code to read). Without the
|
||||
service (`CLAMD_ADDRESS` unset) the stage is listed as not enabled; when the
|
||||
service cannot be reached, as not completed, never as clean.
|
||||
|
||||
## Committed binaries
|
||||
|
||||
Executables, libraries and firmware images committed as built files (PE, ELF,
|
||||
Mach-O, and `.hex`/`.srec`/`.uf2`/`.dfu`/raw `.bin` images, recognised by their
|
||||
first bytes) are listed as informational findings (tool **Eingecheckte
|
||||
Binärdateien**) with format, architecture (and `.NET` for an assembly), size,
|
||||
SHA-256 and, for a Windows file, its version resource (product, version,
|
||||
company, original file name). A changed file is a new finding. Many of them in
|
||||
one repository become one finding listing them.
|
||||
|
||||
## Custom OAuth Scanner
|
||||
|
||||
A purpose-built scanner that detects OAuth and OIDC misconfigurations in your code, including:
|
||||
@@ -241,6 +268,7 @@ These are set by the operator in the agent's environment, not by a tenant, and o
|
||||
| Identity providers for pentest test-user cleanup (Keycloak, Auth0, Okta) | `pentest/cleanup.rs` | `KEYCLOAK_URL`, `AUTH0_DOMAIN`, `OKTA_DOMAIN` |
|
||||
| Headless Chrome for PDF reports | `pentest/report/pdf.rs` | `CHROME_WS_URL` |
|
||||
| MongoDB | `database.rs` | `MONGODB_URI` |
|
||||
| ClamAV service (clamd, plain TCP; the tree's files are streamed to it) | `pipeline/clamav.rs` | `CLAMD_ADDRESS` |
|
||||
|
||||
## Planned integrations (decided 2026-08-31, not yet in the code)
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ together on stage in one pass before the next prod promotion.
|
||||
| #478–#482 | iOS readiness 1–5: Carthage and lifecycle, iOS rules, Unity targets, app variants, public samples (with the mobsfscan and Firebase fixes) |
|
||||
| #484 | Groups take over their places' decisions (#483) |
|
||||
| #486 | The clone cache heals itself after an interrupted clone or fetch |
|
||||
| #465 | Malware stage (ClamAV), committed binaries, unchanged scheduled rescans skipped |
|
||||
|
||||
**Customer-visible on the next prod rescan** is marked **[visible]**: these
|
||||
change what a customer sees on their existing targets, without them doing
|
||||
@@ -217,6 +218,55 @@ places) and rescan.
|
||||
- **[visible]** customers whose scans failed on a broken cache entry get scans
|
||||
again; nothing else changes.
|
||||
|
||||
### 15. #465 Malware, committed binaries, unchanged rescans
|
||||
|
||||
Needs orca-platform #66 deployed (the `pruefwerk-clamav-stage` service);
|
||||
`docker logs` of it shows `clamd started` once its signatures are in.
|
||||
|
||||
Malware:
|
||||
|
||||
- **Do:** upload an archive holding the EICAR test file (create it locally,
|
||||
`printf 'X5O!P%%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > eicar.com`,
|
||||
never commit it) next to a few source files.
|
||||
- **Expect:** a **Hoch** finding **Malware signature Eicar-Test-Signature
|
||||
matches eicar.com**, type **Schadsoftware und Binärdateien**, tool
|
||||
**Schadsoftware (ClamAV)**, with its SHA-256; no LLM verdict (triage
|
||||
rationale "skipped: binary"). Rescan the same target: no new finding, and
|
||||
the log shows `0 files streamed` (the clean files are remembered).
|
||||
- **Log:** `ClamAV 1.5.4/<daily>: N files streamed, 1 hits, M binaries listed`.
|
||||
- **Without the service:** stop `pruefwerk-clamav-stage` and scan: the scan
|
||||
completes, **Nicht ausgeführt** lists **Schadsoftware (ClamAV)** as not
|
||||
completed (`ClamAV did not complete: clamd at clamav:3310 cannot be reached`).
|
||||
|
||||
Committed binaries:
|
||||
|
||||
- **Do:** scan `fixtures/nightly/firmware/c-sensor-node` (it holds
|
||||
`Prebuilt/bootloader.hex`) and any repository with committed DLLs.
|
||||
- **Expect:** an **Info** finding **Committed binary bootloader.hex
|
||||
(firmware image (Intel HEX))** with size and SHA-256; for a DLL its format
|
||||
(`PE32 i386 (.NET)` …) and version resource (ProductName, FileVersion,
|
||||
CompanyName, OriginalFilename). More than five in one repository become one
|
||||
finding listing them.
|
||||
- **[visible]** repositories with committed DLLs, executables or firmware
|
||||
images get these Info findings on the next rescan; a malware hit is High.
|
||||
|
||||
Unchanged rescans:
|
||||
|
||||
- **Do:** upload an archive target and let a scheduled scan run after a
|
||||
completed one (or wait for the 6-hourly schedule).
|
||||
- **Expect:** the scheduled run lists **Änderungserkennung** under **Nicht
|
||||
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.
|
||||
- **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`).
|
||||
- **Log:** `Uploaded files unchanged, skipping scan` / `No new commits,
|
||||
skipping scan`.
|
||||
- **[visible]** scheduled scans of unchanged targets no longer count as scans
|
||||
(usage), and a new Prüfwerk release rescans every target once.
|
||||
|
||||
## After the pass
|
||||
|
||||
- The nightly job on `main` is green with the new mobile targets.
|
||||
|
||||
Reference in new issue
Block a user