Skip to content

Commit

Permalink
added vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
lotfi-abusix committed Aug 6, 2024
1 parent 5b178c7 commit b2bf752
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
24 changes: 24 additions & 0 deletions samples/negative/development/vulnerability_sample_no-CVE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Mr. Example",
"ReporterContactPhone": "+ 01 000 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Vulnerability",
"ReportType": "Vulnerability",
"Date": "2024-01-05T17:07:10Z",
"SourceIp": "192.07.2.594",
"SourcePort": 443,
"CVSS": {
"Version": "3.1",
"Score": 10.0,
"Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
}
}
25 changes: 25 additions & 0 deletions samples/positive/development/vulnerability_sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Mr. Example",
"ReporterContactPhone": "+ 01 000 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Vulnerability",
"ReportType": "Vulnerability",
"Date": "2024-01-05T17:07:10Z",
"SourceIp": "192.07.2.255",
"SourcePort": 443,
"CVE": "CVE-1234-78941",
"CVSS": {
"Version": "3.1",
"Score": 10.0,
"Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
}
}
43 changes: 43 additions & 0 deletions schemas/development/vulnerability.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/vulnerability.schema.json",
"title": "XARF WEBCRAWLER",
"description": "A format to report Vulnerability events.",
"allOf": [
{
"$ref": "xarf_shared.schema.json#/properties/XarfBase"
},
{
"type": "object",
"properties": {
"Report": {
"allOf": [
{
"$ref": "xarf_shared.schema.json#/properties/IpAndUrlBasedReport"
},
{
"type": "object",
"properties": {
"ReportClass": {
"type": "string",
"enum": ["Vulnerability"]
},
"ReportType": {
"type": "string",
"enum": ["Vulnerability"]
}
}
},
{
"$ref": "xarf_shared.schema.json#/properties/CVE"
},
{
"$ref": "xarf_shared.schema.json#/properties/CVSS"
}
],
"required": ["CVE"]
}
}
}
]
}
3 changes: 3 additions & 0 deletions schemas/development/xarf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
},
{
"$ref": "harassment.schema.json"
},
{
"$ref": "vulnerability.schema.json"
}
]
}

0 comments on commit b2bf752

Please sign in to comment.