-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(vex): VEX Repository support #7206
Conversation
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
ubuntu-latest-m is broken now. TODO: switch it back to ubuntu-latest-m later Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
@DmitriyLewen |
Co-authored-by: DmitriyLewen <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
[skip ci] Co-authored-by: DmitriyLewen <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
[skip ci] Signed-off-by: knqyf263 <[email protected]>
[skip ci] Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
[skip ci] Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
Signed-off-by: knqyf263 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
left small comment
Showing debug messages per vulnerability may be too much. Signed-off-by: knqyf263 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR introduces VEX (Vulnerability Exploitability eXchange) Repository integration into Trivy. While Trivy currently supports VEX through the
--vex
flag for local VEX files, manually finding and managing relevant VEX documents for each scan is impractical and time-consuming for users. This new feature addresses this limitation by enabling automatic discovery and application of VEX data during vulnerability scans, primarily to filter out vulnerabilities that are not exploitable in the scanned context by leveraging community-maintained VEX information.Usage
New Features
VEX Repository support:
New CLI option:
--vex repo
: Enable VEX repository integration during scans (extends the existing--vex
flag)New CLI commands:
trivy vex repo init
: Initialize the default VEX repository configurationtrivy vex repo list
: List configured VEX repositoriestrivy vex repo download
: Pre-cache VEX data for configured repositoriesCache management:
trivy clean --vex-repo
to clear the VEX repository cacheImplementation Details
$HOME_DIR/.trivy/vex/repository.yaml
$CACHE_DIR/vex/repositories/
Benefits
Next Steps
This feature is initially designed to be opt-in to allow for testing and feedback. Existing Trivy functionality remains unchanged unless the new VEX repository options are explicitly used. However, given the benefits of VEX integration, we plan to transition this feature to opt-out in a future release. This change will make VEX repository integration the default behavior, further enhancing Trivy's vulnerability scanning capabilities for all users.
Issues
Checklist