Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation of VEX documents by the Kubescape relevancy engine #155

Closed
slashben opened this issue Oct 10, 2023 · 4 comments
Closed

Generation of VEX documents by the Kubescape relevancy engine #155

slashben opened this issue Oct 10, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers open-for-contribution

Comments

@slashben
Copy link
Contributor

slashben commented Oct 10, 2023

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
Copy link

puerco commented Oct 10, 2023

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

@slashben
Copy link
Contributor Author

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

@matthyx
Copy link
Contributor

matthyx commented Oct 18, 2023

@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
Copy link
Contributor Author

Released! 💯 🚀

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers open-for-contribution
Projects
None yet
Development

No branches or pull requests

3 participants