feat: add offline OSV-to-catalog generator (tools/osvcatalog)#45
Open
adel-pplx wants to merge 1 commit into
Open
feat: add offline OSV-to-catalog generator (tools/osvcatalog)#45adel-pplx wants to merge 1 commit into
adel-pplx wants to merge 1 commit into
Conversation
Converts a locally-downloaded OSV snapshot into a Bumblebee exposure catalog. The scanner never contacts osv.dev; this is an offline, maintainer-side import that produces a static catalog reviewed and committed like any other under threat_intel/. By default only malicious-package records (MAL- ids) are emitted; -include-vulns widens to all OSV records. OSV ecosystems (npm, PyPI, Go, RubyGems, Packagist) map to Bumblebee's, using OSV's enumerated affected[].versions. Range-only entries (no enumerated versions) are skipped, since v0.1 matches exact versions only. Closes #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tools/osvcatalog, an offline generator that converts a locally-downloaded OSV snapshot into a Bumblebee exposure catalog. The scanner never contacts osv.dev at scan time; this is a maintainer-side import that produces a static catalog reviewed and committed like any other underthreat_intel/.By default only malicious-package records (
MAL-ids) are emitted;-include-vulnswidens to all OSV records. OSV ecosystems (npm,PyPI,Go,RubyGems,Packagist) map to Bumblebee's, using OSV's enumeratedaffected[].versions. Records whose only version information is a range (no enumerated versions, e.g.introduced:"0") are skipped, since v0.1 matches exact versions only — documented as the main coverage limit.Conversion logic lives in
internal/osv; the CLI undertools/is thin. Output validates against the published exposure-catalog schema and is consumed bybumblebee scan --exposure-catalog. Zero new dependencies.Closes #21