How to Decide on Critical Vulnerabilities When Using Trivy?
Asked by
__fresh_start
I've set up a CI pipeline, and during the scanning phase, I use Trivy. If it finds any critical vulnerabilities, it halts the pipeline as a pre-deployment check. However, I've noticed some discrepanciesโTrivy marks certain issues as critical, while Red Hat's CVE database classifies them as medium severity. This inconsistency creates a bit of confusion. Is there a standard way to determine what constitutes a critical vulnerability, considering each tool has its own definition? I would appreciate any insights on this!
Answers
I've noticed similar issues with Trivy, especially regarding Kubernetes images. It tends to show many false positives. I think a solution is to define a clear vulnerability management policy and stick to one scanning tool to minimize confusion. For example, we use Twistlock and have customized the severity levels for both base and app images, which helps streamline our process.
Reply to this answer
Absolutely! It's about balancing the risk and understanding which vulnerabilities actually impact your application. One challenge is figuring out if the flagged vulnerabilities are even being used in your application. Tools like Kubescape can help identify whether certain vulnerabilities that are marked critical are relevant to your app. We need a solid framework to assess the real risks.
Reply to this answer
You bring up some great points! The discrepancies in scoring systems can really throw a wrench into vulnerability management. The CVSS is widely used, but vendors like Red Hat often have their own criteria that might skew how they rate vulnerabilities. Trivy and Red Hat also pull data from different sources, which can add to the confusion. It's crucial to understand the context of the vulnerabilities according to your specific environment.
Reply to this answer
That's an interesting dilemma you're facing. Personally, I donโt think stopping a deployment solely based on a critical vulnerability in a base image is feasible, especially if there's no fix available. It really depends on how critical your app is and the context of that vulnerability. For example, how often are base images updated? I also recommend looking into how different teams automate their pipelines for updates and addressing vulnerabilities when they arise.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions