Skip to content

Commit

Permalink
release xarf v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Isele committed Mar 22, 2023
1 parent 71c203e commit cc1a6e6
Show file tree
Hide file tree
Showing 99 changed files with 3,701 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Find the latest schema release [on the releases page](https://github.com/abusix/

## Current Version

`2`
`3`

[Up-To-Date Tested Sample XARF Reports](samples/positive/2)
[Up-To-Date Tested Sample XARF Reports](samples/positive/3)

## Build status

Expand Down
18 changes: 18 additions & 0 deletions samples/negative/3/harassment_sample_no_description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Harassed McPerson",
"ReporterContactPhone": "+ 01 555 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Harassed",
"Date": "2022-09-09T14:17:10Z",
"SourceUrl": "192.168.0.11",
"Ongoing": true,
"Harasser": "x.X.Fl4m3r.X.x"
}
}
18 changes: 18 additions & 0 deletions samples/negative/3/harassment_sample_no_harasser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Harassed McPerson",
"ReporterContactPhone": "+ 01 555 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Harassed",
"Date": "2022-09-09T14:17:10Z",
"SourceUrl": "192.168.0.11",
"Ongoing": true,
"HarassmentDescription": "The user called me a bunch of slurs."
}
}
26 changes: 26 additions & 0 deletions samples/negative/3/invalid_additional_fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterOrg": "Example",
"ReporterOrgDomain": "example.de",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Abuse-Desk"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Malware",
"ReportSubType": "RPZ-Rewrite",
"Date": "2020-07-19T19:39:54Z",
"SourceIp": "2001:db8:1300:9:3949:9d93:bd2:9da5",
"SourcePort": 48107,
"RpzDomain": "example.net",
"Custom": {
"DNSResolver": "de-example-dnsres-07",
"MalwareName": "suppobox",
"NumberOfIncidents": [5],
"TimeframeSeconds": { "no": 600 }
}
}
}
31 changes: 31 additions & 0 deletions samples/negative/3/invalid_b64_flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"Version": "3",
"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": "Spam",
"ReportSubType": "Trap",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"DestinationIp": "198.51.100.33",
"DestinationPort": 25,
"SmtpMailFromAddress": "[email protected]",
"Samples": [
{
"ContentType": "message/rfc822",
"Base64Encoded": "yes not I don't know",
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
32 changes: 32 additions & 0 deletions samples/negative/3/invalid_byte_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Version": "3",
"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": "PortScan",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"DestinationIp": "198.51.100.33",
"DestinationPort": 80,
"Ongoing": true,
"ByteCount": true,
"PacketCount": "stringy",
"Samples": [
{
"ContentType": "text/plain",
"Base64Encoded": false,
"Description": "Just a test sample",
"Payload": "bla bla bla bla"
}
]
}
}
29 changes: 29 additions & 0 deletions samples/negative/3/invalid_date.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Mr. Example",
"ReporterContactPhone": "+ 01 000 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Content",
"ReportType": "Phishing",
"Date": "This is not a date",
"SourceIp": "192.0.2.55",
"SourcePort": 80,
"SourceUrl": "http://phish.example.org/index.html",
"Ongoing": true,
"Samples": [
{
"ContentType": "text/html",
"Base64Encoded": false,
"Description": "Just a test sample",
"Payload": "<html>Phishy</html>"
}
]
}
}
31 changes: 31 additions & 0 deletions samples/negative/3/invalid_destination.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"Version": "3",
"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": "Spam",
"ReportSubType": "Trap",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"DestinationIp": "198",
"DestinationPort": 8000000,
"SmtpMailFromAddress": "[email protected]",
"Samples": [
{
"ContentType": "message/rfc822",
"Base64Encoded": true,
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
31 changes: 31 additions & 0 deletions samples/negative/3/invalid_destination2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"Version": "3",
"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": "Spam",
"ReportSubType": "Trap",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"DestinationIp": 45,
"DestinationPort": "mh",
"SmtpMailFromAddress": "[email protected]",
"Samples": [
{
"ContentType": "message/rfc822",
"Base64Encoded": true,
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"Version": "3",
"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": "PotentiallyCompromisedAccount",
"Date": "2018-02-05T14:17:10Z",
"DestinationIp": "198.51.100.33",
"DestinationPort": 80,
"Ongoing": true,
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"Account": {
"AccountIdentifier": "[email protected]",
"AccountEmail": "[email protected]"
},
"Samples": [
{
"ContentType": "text/plain",
"Base64Encoded": false,
"Description": "Log entry",
"Payload": "User at 192.0.2.55:54321 tried to log in unsuccessfully 123 times."
}
]
}
}
32 changes: 32 additions & 0 deletions samples/negative/3/invalid_emails.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Version": "3",
"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": "Spam",
"ReportSubType": "Trap",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"DestinationIp": "198.51.100.33",
"DestinationPort": 25,
"SmtpMailFromAddress": "spamexample.com",
"SmtpRcptToAddress": "0012345678",
"Samples": [
{
"ContentType": "message/rfc822",
"Base64Encoded": true,
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
3 changes: 3 additions & 0 deletions samples/negative/3/invalid_empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Version": "3"
}
29 changes: 29 additions & 0 deletions samples/negative/3/invalid_empty_account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Version": "3",
"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": "PotentiallyCompromisedAccount",
"Date": "2018-02-05T14:17:10Z",
"DestinationIp": "198.51.100.33",
"DestinationPort": 80,
"Ongoing": true,
"Account": {},
"Samples": [
{
"ContentType": "text/plain",
"Base64Encoded": false,
"Description": "Log entry",
"Payload": "User at 192.0.2.55:54321 tried to log in unsuccessfully 123 times."
}
]
}
}
21 changes: 21 additions & 0 deletions samples/negative/3/invalid_exploit_wrong_cve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Mr. Example",
"ReporterContactPhone": "+ 01 000 1234567"
},
"Disclosure": true,
"Report": {
"ReportType": "Exploit",
"ReportClass": "Activity",
"FirstSeen": "2022-08-22T15:17:10Z",
"Date": "2022-08-24T11:21:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"CVE": "CVE-NOW-23112"
}
}
24 changes: 24 additions & 0 deletions samples/negative/3/invalid_exploit_wrong_vector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Version": "3",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Mr. Example",
"ReporterContactPhone": "+ 01 000 1234567"
},
"Disclosure": true,
"Report": {
"ReportType": "Exploit",
"ReportClass": "Activity",
"FirstSeen": "2022-08-22T15:17:10Z",
"Date": "2022-08-24T11:21:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"CVSS": {
"Version": "2",
"Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
}
}
Loading

0 comments on commit cc1a6e6

Please sign in to comment.