Verlauf: which components each scan added, updated or removed (part of #955) #974

Closed
opened 2026-11-10 21:45:36 +00:00 by sharang · 0 comments
Owner

The "Verlauf" tab (#957, PR #973) shows per scan the CVEs found new and gone. The mockup's drill-down also lists the component changes behind them:

Änderung Komponente Version CVEs
neu libxml2 2.11.4 +2
aktualisiert openssl 3.0.9 → 3.0.11 −1, +3
entfernt libpng 1.6.39 −1
neue Advisory busybox 1.36.0 +1

That is not possible today. Prüfwerk keeps only the target's current SBOM, so a past scan's components cannot be compared with the scan before it. The drill-down says so for now.

What to do

  • At the end of each completed scan, store the delta against the previous SBOM on the scan run: components added, removed, and updated (by name and ecosystem, version before → after). A delta, not a full snapshot, to keep storage small.
  • GET /api/v1/targets/{id}/scan-changes returns it with each scan, together with the CVEs (already there).
  • The drill-down lists the component changes with their CVE effect, as in the mockup. A CVE without a component change (an advisory published for an unchanged version) shows as "neue Advisory".
  • Scans from before this change keep the CVE-only view and say why.

Notes

  • The SBOM comparison that exists today (Stückliste › Vergleich) compares two targets, not two scans. Its diff logic may be reusable.
  • Counts only in logs and usage events.

Mockup: second board "Repo-Ansichten", Verlauf (private artifact, ask the owner for access).

🤖 Generated with Claude Code

The "Verlauf" tab (#957, PR #973) shows per scan the CVEs found new and gone. The mockup's drill-down also lists the component changes behind them: | Änderung | Komponente | Version | CVEs | |---|---|---|---| | neu | libxml2 | 2.11.4 | +2 | | aktualisiert | openssl | 3.0.9 → 3.0.11 | −1, +3 | | entfernt | libpng | 1.6.39 | −1 | | neue Advisory | busybox | 1.36.0 | +1 | That is not possible today. Prüfwerk keeps only the target's current SBOM, so a past scan's components cannot be compared with the scan before it. The drill-down says so for now. ## What to do - At the end of each completed scan, store the delta against the previous SBOM on the scan run: components added, removed, and updated (by name and ecosystem, version before → after). A delta, not a full snapshot, to keep storage small. - `GET /api/v1/targets/{id}/scan-changes` returns it with each scan, together with the CVEs (already there). - The drill-down lists the component changes with their CVE effect, as in the mockup. A CVE without a component change (an advisory published for an unchanged version) shows as "neue Advisory". - Scans from before this change keep the CVE-only view and say why. ## Notes - The SBOM comparison that exists today (Stückliste › Vergleich) compares two targets, not two scans. Its diff logic may be reusable. - Counts only in logs and usage events. Mockup: second board "Repo-Ansichten", Verlauf (private artifact, ask the owner for access). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#974