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

Support for Google OSV database #931

Closed
sameer1046 opened this issue Feb 11, 2021 · 12 comments
Closed

Support for Google OSV database #931

sameer1046 opened this issue Feb 11, 2021 · 12 comments
Assignees
Labels
enhancement New feature or request p2 Non-critical bugs, and features that help organizations to identify and reduce risk
Milestone

Comments

@sameer1046
Copy link

Current Behavior:

The tool doesn't have support for Google open source vulnerability database
https://osv.dev/list

Proposed Behavior:

The tool should be able to get data from Google osv database.

@sameer1046 sameer1046 added the enhancement New feature or request label Feb 11, 2021
@stevespringett
Copy link
Member

Good suggestion. It's unfortunate osv doesn't support Package URL. I'd recommend creating a ticket for them to support it. Relying on 'name' and 'ecosystem' is fragile and going to be unpredictable. Once osv supports Package URL, I'd be happy to add support for it.

@stevespringett stevespringett added on hold p2 Non-critical bugs, and features that help organizations to identify and reduce risk labels Feb 11, 2021
@VinodAnandan
Copy link
Contributor

google/osv.dev#64

@VinodAnandan
Copy link
Contributor

@stevespringett OSV now supports PURL. Please find the below links for more details

https://security.googleblog.com/2021/06/announcing-unified-vulnerability-schema.html
https://tinyurl.com/vuln-json
https://osv.dev/docs/#operation/OSV_QueryAffected

@stevespringett stevespringett added this to the 4.5 milestone Jun 27, 2021
@VinodAnandan
Copy link
Contributor

curl -X POST -d '{"package": {"purl": "pkg:maven/org.apache.struts:struts2-core"}, "version": "2.0.14"}' https://api.osv.dev/v1/query

@pombredanne
Copy link

@VinodAnandan FWIW, pkg:maven/org.apache.struts:struts2-core may not be the proper purl for this package, but rather pkg:maven/org.apache.struts/struts2-core

@VinodAnandan
Copy link
Contributor

Thanks @pombredanne

@pombredanne
Copy link

@VinodAnandan sure thing! ... note that when VulnerableCode will be ready for usage, it will also have OSV content and everything is keyed by Package URL there... so this could be come a natural additional data source for DT

@VinodAnandan
Copy link
Contributor

The purl issue has been fixed. Thanks to @oliverchang

"curl -X POST -d '{"package": {"purl": "pkg:maven/org.apache.struts/[email protected]"}}' https://api.osv.dev/v1/query"

@stevespringett stevespringett modified the milestones: 4.5, 4.6 May 8, 2022
@sahibamittal
Copy link
Contributor

OSV maintains GCS bucket with all aggregated vulnerabilities which can be scheduled and mirrored in dependency-track database https://github.com/google/osv/blob/master/README.md#data-dumps
I'd like to work on it.

@sahibamittal
Copy link
Contributor

Draft PR for discussion -> #1703

nscuro added a commit that referenced this issue Jul 24, 2022
@nscuro
Copy link
Member

nscuro commented Jul 24, 2022

Implemented in #1703. Thanks @sahibamittal! 🥳

@nscuro nscuro closed this as completed Jul 24, 2022
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request p2 Non-critical bugs, and features that help organizations to identify and reduce risk
Projects
None yet
Development

No branches or pull requests

6 participants