cve-search / vulnerability-lookup

Vulnerability-Lookup facilitates quick correlation of vulnerabilities from various sources, independent of vulnerability IDs, and streamlines the management of Coordinated Vulnerability Disclosure (CVD).
https://vulnerability.circl.lu
GNU Affero General Public License v3.0
136 stars 16 forks source link

Possibility to dump the comments and bundles in an archive #65

Closed cedricbonhomme closed 3 months ago

cedricbonhomme commented 3 months ago

Add a way to dump (a command and/or via the web interface) all the comments and bundles in JSON format, in a archive. The same way we are doing for the various vulnerability sources.

cedricbonhomme commented 3 months ago

Usage:

$ dump --comments --bundles
Dumping comments...
Dumping bundles...
$ cat dumps/bundles.ndjson | jq
{
  "uuid": "94cb9f68-8d24-4081-831d-57d60423195f",
  "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd",
  "name": "Bundle 42",
  "description": "Test",
  "description_format": "markdown",
  "creation_timestamp": "2024-07-31T11:15:40.455037Z",
  "timestamp": "2024-07-31T11:15:40.455037Z",
  "related_vulnerabilities": [
    "CVE-2024-31497"
  ],
  "meta": {}
}
.
.
.