Analyze vulnerabilities for rpm packages in RedHat or CentOS operating systems #3991
Open
2 tasks done
Labels
enhancement
New feature or request
Current Behavior
I collected the sbom of all rpm packages in the CentOS system through the syft(https://github.com/anchore/syft) tool, the format of the sbom file is cyclonedx-json, then I upload the sbom file to the Dependency-Track.
![Snipaste_2024-07-22_11-42-32](https://private-user-images.githubusercontent.com/175908267/350861877-81e6b887-c900-4bcc-b9f3-1ad3f272106a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzU0OTAsIm5iZiI6MTczOTAzNTE5MCwicGF0aCI6Ii8xNzU5MDgyNjcvMzUwODYxODc3LTgxZTZiODg3LWM5MDAtNGJjYy1iOWYzLTFhZDNmMjcyMTA2YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxNzE5NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wY2E0YjdjN2I0MGU1MGY0Zjg5Y2Q4MGQwMDA5YjRkYTJhNTBhYTBlNzI5YzcxNDY0YjgyNDIyZjI4MzhkNDljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yz8gAjuUBkdFd70y_j7E7Jt2E9QqZz6fovawUp-3TfY)
I found that Dependency Track could only analyze very few vulnerabilities on individual rpm packages.
However, I used the grype(https://github.com/anchore/grype) tool to perform vulnerability scanning locally and was able to scan over 10,000 vulnerabilities.
# grype sbom:./only-rpm-sbom-by-syft.json -o cyclonedx-json --file rpm-vulnerabilities.json ✔ Vulnerability DB [updated] ✔ Scanned for vulnerabilities [15862 vulnerability matches] ├── by severity: 11 critical, 724 high, 9902 medium, 6470 low, 0 negligible (49 unknown) └── by status: 5934 fixed, 11222 not-fixed, 1294 ignored
I found the following vulnerability databases supported by grype:
![image](https://private-user-images.githubusercontent.com/175908267/350862100-67950deb-99d8-461f-92d6-e9f9d74c0220.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzU0OTAsIm5iZiI6MTczOTAzNTE5MCwicGF0aCI6Ii8xNzU5MDgyNjcvMzUwODYyMTAwLTY3OTUwZGViLTk5ZDgtNDYxZi05MmQ2LWU5ZjlkNzRjMDIyMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxNzE5NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMjc1ODE0YjQ5YWU3Mzg4OTkzYjliYzc4NzIwNTQ5ZGQzYjE4Mzc2MzYxOWE3NWQ0OWJjMmEyODUwYjY5YTllJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._ZO6IiWKo3slGtM2Cp52BR_bAG4kkn0cj1y6ymzcYoM)
https://github.com/anchore/grype?tab=readme-ov-file#grypes-database
Dependency-Track whether it supports distributions such as RedHat, or planned to be supported?
Proposed Behavior
I hope that Dependency Track can analyze more vulnerabilities for rpm packages like grype did.
Checklist
The text was updated successfully, but these errors were encountered: