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

ignore CVEs by pattern-matching in Summary field #1269

Open
hdhoang opened this issue Jul 7, 2021 · 6 comments
Open

ignore CVEs by pattern-matching in Summary field #1269

hdhoang opened this issue Jul 7, 2021 · 6 comments

Comments

@hdhoang
Copy link

hdhoang commented Jul 7, 2021

Hi! In our environment, we can blacklist whole linux modules (eg NFC, bluetooth, InfiniBand networking). We would like a feature to ignore CVEs by a keyword list, preferrably also applied to API server submissions.

What do you think? Thanks

@shigechika
Copy link
Contributor

Did you try ignorePkgsRegexps option?
https://vuls.io/docs/en/usage-report.html#example-ignorepkgsregexp

@hdhoang
Copy link
Author

hdhoang commented Jul 7, 2021

ignorePkgsRegexp has different granularity. All of the modules and their CVEs are covered under one package regex ^linux-image-.* (in our Debian env). This would suppress other relevant CVEs.

Thanks!

(aside: this option and related ignoreCves are not working for us via API server, cf#1267 )

@qwexvf
Copy link

qwexvf commented Jul 8, 2021

Hi @hdhoang i just submitted a PR for #1267 which is #1270 hopefully it gets merged soon <3
Also, Could you give us more example of what you want and how would your keyword list would look like?

Thanks.

@MaineK00n
Copy link
Collaborator

MaineK00n commented Jul 8, 2021

Isn't what you're expecting is that you want to ignore CVE's that are pattern matched in the summary field in cveContents(ex. cveContents[nvd][summary], cveContents[ubuntu][summary]), and you want to be able to accept keywords that match that pattern?

@hdhoang
Copy link
Author

hdhoang commented Jul 9, 2021

I imagine the setting entry (for default list, and servers, containers tables) look like:

ignoreSummaryPatterns = [
  "* DISPUTED *",
  "f2fs filesystem",
  "drivers/net/wireless",
]

and the CVE is skipped if any of the datasource Summary fields contains such a substring. Cascading/shadowing behaviour should be consistent with other ignore* settings.

ex. cveContents[nvd][summary], cveContents[ubuntu][summary]

Ah, that's deeper structure than I imagined, thanks for clarifying.

@hdhoang
Copy link
Author

hdhoang commented Feb 24, 2023

ah feel free to reopen if people want this feature. thanks for the effort

@hdhoang hdhoang closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2023
@MaineK00n MaineK00n reopened this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants