Add support for CleanStart OS vulnerability scanning#3281
Add support for CleanStart OS vulnerability scanning#3281cleanstart-community-admin wants to merge 4 commits into
Conversation
|
I’m following up on the status of PR #3294. Are there any updates or next steps for merging it, or anything needed from our side to help move it forward? Thanks and regards |
|
Just following up to check if there are any updates or anything needed from our side. Please let us know when you get a chance. Thanks and regards, |
|
Hi @cleanstart-community-admin thanks for the ping! I was expecting to see a vunnel PR but I don't see one. Vunnel is what actually pulls in your vulnerability data. Without that data, #3281 won't result in additional matching. I'd also like some information about the product and the vulnerability feed semantics. For example, do you all publish information on vulns that are found and not yet patched, or only fixes? Is everything you publish in the same distro, or do you also publish fixes to language packages regardless of distro, e.g. fixes to Maven or PyPI packages that can be installed in any image? For example, Ubuntu publishes CVEs that affect any of their packages, whether a fix is yet available or not. AlmaLinux publishes fixes, but we use Red Had disclosure data to search for vulnerabilities. Can you describe Clean Start vulnerability data in these terms? Do you have any publicly available test artifacts? A common strategy other vendors have used is to push an old build of an image that has some CVEs that are fixed by CleanStart and some that aren't to a public Docker Hub repo. Thanks! |
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
d5abda9 to
7501cc6
Compare
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
Signed-off-by: cleanstart-community-admin <community-admin@cleanstart.com>
|
Hi @willmurphyscode, thanks for the detailed feedback! Vunnel PR Vulnerability feed semantics All advisories are scoped to CleanStart OS packages (APK format). We do not publish advisories for language ecosystem packages (Maven, PyPI, npm, etc.) independent of distro. We are actively building out our vulnerability detection mechanism for CleanStart images and will be publishing advisories publicly on an ongoing basis. Advisory format Test artifacts Related PRs
Thanks and let us know if you need anything else! |
|
Hi @willmurphyscode , following up with our test artifacts. We have two public test images available that demonstrate CleanStart vulnerability scanning: Vulnerable image (redis 7.4.5-r0 — below the fixed version): docker pull ghcr.io/clnstrt/redis-test-old:latestPatched image (redis 8.0.4-r0 — at the fixed version): docker pull ghcr.io/clnstrt/redis-test-new:latestScanning the vulnerable image correctly identifies 34 vulnerability matches including critical CVEs with known fixes in the CleanStart advisory database. Scanning the patched image reduces the match count to 26, reflecting that advisories fixed at This confirms the full pipeline is working — distro detection, advisory ingestion via vunnel, and version-based matching in grype. Let us know if you need anything else! |


Summary
Adds CleanStart OS as a supported distro type in Grype, enabling accurate vulnerability scanning of CleanStart-based container images using the CleanStart Security Advisories database.
Motivation
CleanStart OS container images were previously unrecognised by Grype — scans produced no vulnerability results and emitted distro-detection warnings. Users scanning CleanStart images had no way to detect known vulnerabilities in installed packages.
Changes
Clnstrtdistro type constant ingrype/distro/type.goclnstrtandcleanstartto theIDMappingtable —clnstrtis the current/etc/os-releaseidentifier;cleanstartsupports an in-progress upstream renameClnstrtto theAlldistro sliceRolling: trueOS specifier overrides for both identifiers ingrype/db/v6/data.go— CleanStart is a rolling distro and does not pin versionsCleanStartecosystem topkg.ApkPkg— CleanStart uses the APK package formattestdata/os/clnstrtandtestdata/os/cleanstarttest fixturesdistro_test.goandtype_test.goRelated
Type of change
Checklist