Skip to content

How to deal with false positives in the vulnerabilities check? #2

Answered by HubTou
HubTou asked this question in Q&A
Discussion options

You must be logged in to vote

Version 1.3.0 now provides a way to discard false-positive vulnerabilities.

Start by generating a default configuration file:

$ ptlint --gencfg $HOME/.ptlint

Modify the file section [exclusions]/[vulnerabilities] to add all vulnerability IDs that you want to exclude from your results.

For example :

[exclusions]
# (multilines) lists of space separated Vulnerabilities IDs:
vulnerabilities = 92442c4b-6f4a-11db-bd28-0012f06707f0
    bd579366-5290-11d9-ac20-00065be4b5b6

And voilà! Bye bye false-positives :-)

I also investigated the greed-game case described above:

We see that the greed-game port has an assumed PORTNAME=greed (maybe a bug in portstreelint!) and that portname is associated with…

Replies: 1 comment

Comment options

HubTou
Apr 1, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by HubTou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
answer A question answer
1 participant