Files
pruefwerk/docs/guide
Sharang ParnerkarandClaude Opus 5.5 7743f03ed8
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 8m12s
feat(malware): ClamAV stage, committed-binary inventory, unchanged rescans skipped (#465)
Closes #465.

Malware (pipeline/clamav.rs, stage after the secret scan):
- The agent streams each file of the tree (vendor code included, .git
  not; up to 64 MiB, larger ones listed under "Nicht ausgeführt") to a
  clamd service at CLAMD_ADDRESS (INSTREAM over TCP; the stage sidecar is
  orca-platform #66). No signatures in the agent image.
- Clean files are remembered per tenant by SHA-256 and signature version
  (malware_clean_files), so rescans stream only what changed or met new
  signatures.
- A hit is a High finding (new ScanType::Malware, CWE-506) with signature,
  file and SHA-256; heuristic signatures say they need review. The LLM
  triage skips them ("skipped: binary").
- No CLAMD_ADDRESS: the stage is listed as not enabled; clamd unreachable
  or failing: as not completed (ToolFailed). The scan goes on.

Committed binaries (pipeline/binaries.rs):
- PE (format, CPU, .NET, version resource strings), ELF, Mach-O (told
  apart from Java classes) and firmware images (.hex/.srec/.uf2/.dfu/raw
  .bin of 1 KiB+) found by their bytes, as Info findings with size and
  SHA-256; a changed file is a new finding; many group (#464).

Unchanged scheduled rescans (pipeline/change.rs):
- A scheduled or webhook scan of uploaded files identical to the last
  completed scan (ids and content hashes) is skipped
  (SkipCode::UploadUnchanged); git targets already skipped unchanged
  commits. Both now also compare the Prüfwerk build (LastScan.build), so
  a release rescans every target once. Targets with a live URL always run.
- A skipped scan sends no scan.completed usage (it did before, every six
  hours, for unchanged git targets).
- A scan a restart interrupted resumes with its own trigger, so a
  person's scan still runs in full (#459).
- The CVE monitor keeps matching the stored SBOM independently.

Dashboard texts for the new type, phase, skip codes, stage and tools; docs
(scanning, findings, tools incl. egress); nightly: every baseline lists
the malware stage as not enabled (no clamd in the nightly), and
fw-c-sensor-node gains a prebuilt bootloader image as a committed binary.
Staging test plan: check 15.

YARA is not part of this (optional in the issue).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-06 10:40:42 +02:00
..