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

Allow Policies to have rules based on EPSS values #3703

Closed
2 tasks done
wnmzzzz opened this issue May 14, 2024 · 1 comment · Fixed by #3746
Closed
2 tasks done

Allow Policies to have rules based on EPSS values #3703

wnmzzzz opened this issue May 14, 2024 · 1 comment · Fixed by #3746
Labels
enhancement New feature or request good first issue Good for newcomers p3 Nice-to-have features size/S Small effort
Milestone

Comments

@wnmzzzz
Copy link

wnmzzzz commented May 14, 2024

Current Behavior

We are using Policies to trigger notifications about Issues that need to be urgently adressed.

A Policy can be defined based on the Severity of a Vulnerability, but not based on its EPSS value.

While this is a good start, a vulnerability with medium severity but a high EPSS value might be more urgent to adress than one with high severity but very low EPSS. If we alert on any medium severity issue, we might run into alert fatigue, rendering our efforts moot.

Proposed Behavior

I would like a new Condition added to Policies that allows operations on the EPSS. For example, you might configure it to only violate the Policy if EPSS greater than 0.5

I could then combine this with a Severity Condition to, for example, alert me if a new Vulnerability is Severity medium and EPSS greater 0.5

This would allow our team to prioritise updates where they are likely to be an issue, while adressing less urgent applications or components later.

Checklist

@wnmzzzz wnmzzzz added the enhancement New feature or request label May 14, 2024
@nscuro
Copy link
Member

nscuro commented May 14, 2024

We can add an EPSS condition, however the current policy engine does not allow for multiple conditions targeting the exact same vulnerability. Some more details in #2673.

v5.x will ship with support for expressions, which will enable the desired behavior. An initial documentation for this can be found here: https://dependencytrack.github.io/hyades/0.4.0/usage/policy-compliance/expressions/

@nscuro nscuro added p3 Nice-to-have features good first issue Good for newcomers size/S Small effort labels May 14, 2024
@nscuro nscuro added this to the 4.12 milestone May 23, 2024
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 p3 Nice-to-have features size/S Small effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants