Skip to content

Instantly share code, notes, and snippets.

@armamini
Created September 10, 2024 09:48
Show Gist options
  • Select an option

  • Save armamini/c21b81e34ad2fd59a56d5390c974f5f3 to your computer and use it in GitHub Desktop.

Select an option

Save armamini/c21b81e34ad2fd59a56d5390c974f5f3 to your computer and use it in GitHub Desktop.
CSAF Example
{
"document": {
"category": "csaf_security_advisory",
"title": "Example Security Advisory",
"csaf_version": "2.0",
"tracking": {
"id": "CSAF-2023-0001",
"status": "final",
"version": "1.0",
"revision_history": [
{
"number": "1.0",
"date": "2023-09-10T00:00:00Z",
"summary": "Initial release"
}
],
"initial_release_date": "2023-09-10T00:00:00Z",
"current_release_date": "2023-09-10T00:00:00Z",
"generator": {
"engine": "Example Engine 1.0"
}
}
},
"product_tree": {
"branches": [
{
"name": "Software Component",
"category": "software",
"product": {
"name": "Example Software",
"version": "1.2.3",
"product_id": "SW-2023-123"
}
}
]
},
"vulnerabilities": [
{
"title": "Example Vulnerability",
"id": "CVE-2023-0001",
"notes": [
{
"text": "This is an example vulnerability.",
"audience": "general"
}
],
"threats": [
{
"category": "impact",
"details": "This vulnerability could result in a denial of service."
}
],
"scores": [
{
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 7.5,
"baseSeverity": "High"
}
],
"remediations": [
{
"category": "workaround",
"details": "Update the software to version 1.2.4 to resolve this issue.",
"product_ids": ["SW-2023-123"]
}
]
}
]
}
{
"components": [
{
"name": "example-app",
"version": "2.3.4",
"type": "application",
"purl": "pkg:generic/[email protected]",
"license": "Proprietary",
"supplier": "ExampleCorp"
},
{
"name": "express",
"version": "4.17.1",
"type": "library",
"purl": "pkg:npm/[email protected]",
"license": "MIT",
"supplier": "ExpressJS"
},
{
"name": "lodash",
"version": "4.17.21",
"type": "library",
"purl": "pkg:npm/[email protected]",
"license": "MIT",
"supplier": "Lodash"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment