Skip to content

Commit

Permalink
first version, not sure if CVE in needed for that type
Browse files Browse the repository at this point in the history
  • Loading branch information
lotfi-abusix committed Aug 6, 2024
1 parent 5b178c7 commit b4562a4
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
30 changes: 30 additions & 0 deletions samples/positive/development/webhack_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"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": "Activity",
"ReportType": "WebHack",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.59",
"SourcePort": 443,
"Ongoing": true,
"ThreatActor": "malicious devil",
"Samples": [
{
"ContentType": "text/plain",
"Base64Encoded": false,
"Description": "Requested page does't exist",
"Payload": "GET /login.php 404"
}
],
"CVE": "CVE-1234-56789"
}
}
42 changes: 42 additions & 0 deletions schemas/development/webhack.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/webhack.schema.json",
"title": "XARF WEBHACK",
"description": "A format to report Web-Hack 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": ["Activity"]
},
"ReportType": {
"type": "string",
"enum": ["WebHack"]
}
}
},
{
"$ref": "xarf_shared.schema.json#/properties/CommonProps"
},
{
"$ref": "xarf_shared.schema.json#/properties/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": "webhack.schema.json"
}
]
}

0 comments on commit b4562a4

Please sign in to comment.