diff --git a/sample-filters/example-cvss-9-or-above-and-cvss-probability-10-percent-or-above.yml b/sample-filters/example-cvss-9-or-above-and-cvss-probability-10-percent-or-above.yml new file mode 100644 index 0000000..b93c6b8 --- /dev/null +++ b/sample-filters/example-cvss-9-or-above-and-cvss-probability-10-percent-or-above.yml @@ -0,0 +1,5 @@ +version: 2 +customFilters: + filter: ".vulnerabilities |= map(if .cvssScore >= 9 and .epssDetails.probability >= \"0.00001\" then . else empty end)" + pass: "[.vulnerabilities[] | select(.cvssScore >= 9 and .epssDetails.probability >= \"0.00001\")] | length" + msg: "Vulnerabilities with CVSS Score of 9+ or EPSS Probability >=10% found"