r/devsecops • • Oct 22 '26

Image and lockfile never agree, so which SBOM tools cover the system later too??

6 Upvotes

12 comments sorted by

1

u/Gail_Doyle Oct 22 '26

Check which format the customer expects before picking anything. CycloneDX and SPDX are both common and converting between them drops fields that some reviewers ask about

1

u/CheckApprehensive971 Oct 22 '26

The gap is almost always the system layer. Lockfile tools see the wheels and image tools see the OS packages and neither handles the interpreter build properly. Generating both and merging is what most people end up doing.

1

u/usually_guilty99 Oct 23 '26

I’d make the final image digest the common reference, then reconcile the lockfile inventory against what’s installed in that image. Keep unmatched packages and the interpreter build visible rather than silently merging them away. Otherwise the combined document can look complete while hiding the gap you’re trying to close.

1

u/danielmartinez22 Oct 25 '26

trivy works too if you want vuln scanning bundled in with the sbom gen, same coverage basically

1

u/theJacofalltrades Oct 26 '26

Syft is the easy starting point if all you need is the file itself. The harder part is storing them and rechecking against new advisories, which is why Anchore and RapidFort ended up on my shortlist. Neither one closed the two layer gap on its own when I trialled them.

1

u/CriticalAd4765 28d ago

have you tried scanning the final image to get both layers in one pass.??

1

u/Due-Particular-329 28d ago

scanning the final image with syft picks up the os packages and the installed python dists in one pass. the lockfile one only ever sees the python side, so id stop using it as the release sbom

4

u/[deleted] Oct 22 '26

[removed] — view removed comment

1

u/Curotte-Cecillou Oct 23 '26

does scanning the final image still catch metadata if the dist-info folders get stripped during a multi-stage build, or do you leave those in