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

[v6] Identifying c/c++ libraries and projects #95

Open
prabhu opened this issue Feb 15, 2024 · 0 comments
Open

[v6] Identifying c/c++ libraries and projects #95

prabhu opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request sponsor this

Comments

@prabhu
Copy link
Contributor

prabhu commented Feb 15, 2024

We need a poc to experiment with better identification for c/c++ libraries with vulnerabilities.

With a local vuln-list repo, I am getting good hits from inside the NVD directory.

find . -name "*.json" -exec jq -c ".descriptions[].value" {} \; | rg '\.(c|cpp|h|hpp) '

We can build up a list of known vulnerable c/c++ libraries by collecting the various git and svn URLs from the references for those CVEs that refer to a .c/c++ code in the description (Low precision). We can then augment this list by looking for similar URLs in the NVD CPE feeds.

https://nvd.nist.gov/feeds/xml/cpe/dictionary/official-cpe-dictionary_v2.3.xml.gz

To improve precision, we may have to add more repos and CVEs to our data set manually.

@prabhu prabhu added enhancement New feature or request sponsor this labels Feb 15, 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 sponsor this
Projects
None yet
Development

No branches or pull requests

1 participant