Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first version, not sure if CVE in needed for that type #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]
}
Loading