kubescape / kubevuln

Kubevuln is an in-cluster component of the Kubescape security platform. It scans container images for vulnerabilities, using Grype as its engine.
Apache License 2.0
17 stars 19 forks source link

Generation of VEX documents by the Kubescape relevancy engine #155

Closed slashben closed 9 months ago

slashben commented 11 months ago

Overview

Kubescape calculates the relevancy of container image vulnerabilities by monitoring using eBPF the application behavior and produces a filtered list of vulnerabilities. Today the results are stored in the same format as the vulnerabilities, however the VEX seems to be a much better choice to store and publish this information. Kubescape needs to publish the filtered list of vulnerabilities in a VEX format.

Solution

In the current state, the Kubevuln is watching the filtered SBOM objects, every time a new object is created or updated a filtered SBOM is created by the node-agent with only those modules that were loaded into the memory.

When a new filtered SBOM is available, the Kubevuln translates the SBOM to vulnerability list using Grype to create a filtered vulnerability list.

In the same step when the filtered vulnerability is created, Kubevuln should generate a VEX object. The object contains statements that all these vulnerabilities are loaded into the memory therefore they're relevant. This object should be stored as an API objects another vulnerability related.

See more at here

cc: @craigbox @puerco

puerco commented 11 months ago

This is wonderful, please let us know if @openvex can help!

slashben commented 10 months ago

@matthyx added support in Kubevuln PR #179 but it covers only creation and update. Where should we handle the cleanup of objects?

matthyx commented 10 months ago

@matthyx added support in Kubevuln PR #179 but it covers only creation and update. Where should we handle the cleanup of objects?

In the operator, check with @vladklokun

slashben commented 9 months ago

Released! 💯 🚀

For the reference see here initial doc: https://kubescape.io/docs/operator/generating-vex/