Skip to content

Commit

Permalink
Merge branch 'master' into xarf4-spamvertised-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanae committed Aug 5, 2024
2 parents 5c219ad + ad1634c commit 4bc7f2d
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 23 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,8 @@ jobs:
uses: actions/download-artifact@v2
with:
name: coverage
# - name: Debug downloaded artifacts
# id: debug_downloaded_artifacts
# run: |
# ls -ahl
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion samples/negative/development/invalid_ip.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Disclosure": true,
"Report": {
"ReportClass": "Content",
"ReportType": "ChildAbuse",
"ReportType": "ChildSexualAbuseMaterial",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "not an IP",
"SourcePort": 9999999,
Expand Down
2 changes: 1 addition & 1 deletion samples/negative/development/invalid_ip2.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Disclosure": true,
"Report": {
"ReportClass": "Content",
"ReportType": "ChildAbuse",
"ReportType": "ChildSexualAbuseMaterial",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": 45545,
"SourcePort": 80,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"Disclosure": true,
"Report": {
"ReportClass": "Content",
"ReportType": "ChildAbuse",
"Date": "2018-02-05T14:17:10Z",
"SourceIp": "192.0.2.55",
"SourcePort": 80,
"SourceUrl": "http://evil.website.com/index.html"
"ReportType": "ChildSexualAbuseMaterial",
"Date": "2023-08-05T14:17:10Z",
"SourceUrl": "https://evil.hoster.com/csam.zip",
"ReporterNotes": "The zip file requires this password to open: 'example'",
"ReporterCaseID": "CASE-1234-2023"
}
}
21 changes: 21 additions & 0 deletions samples/positive/development/csam_sample_links.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": {
"ReportClass": "Content",
"ReportType": "ChildSexualAbuseMaterial",
"ReportSubType": "Link-Sharing",
"Date": "2023-08-05T14:17:10Z",
"SourceUrl": "https://evil.hoster.com/csam.zip",
"ReporterNotes": "The zip file requires this password to open: 'example'",
"ReporterCaseID": "CASE-1234-2023"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/childabuse.schema.json",
"title": "XARF CHILDABUSE",
"description": "A format to report child abuse events.",
"$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/csam.schema.json",
"title": "XARF CHILDSEXUALABUSEMATERIAL",
"description": "A format to report content depicting child sexual abuse.",
"allOf": [
{
"$ref": "xarf_shared.schema.json#/properties/XarfBase"
Expand All @@ -24,7 +24,11 @@
},
"ReportType": {
"type": "string",
"enum": ["ChildAbuse"]
"enum": ["ChildSexualAbuseMaterial"]
},
"ReportSubType": {
"type": "string",
"enum": ["Link-Sharing"]
}
}
}
Expand Down
1 change: 1 addition & 0 deletions schemas/development/openservice.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"$ref": "xarf_shared.schema.json#/properties/Service"
},
{
"type": "object",
"required": ["ServiceName"]
},
{
Expand Down
2 changes: 1 addition & 1 deletion schemas/development/xarf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"$ref": "potentially_compromised_account.schema.json"
},
{
"$ref": "childabuse.schema.json"
"$ref": "csam.schema.json"
},
{
"$ref": "botnet.schema.json"
Expand Down
6 changes: 4 additions & 2 deletions schemas/development/xarf_shared.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@
"enum": ["Low", "Medium", "High"]
},
"Vector": {
"pattern": "^\\(?AV:[LAN]\\/AC:[HML]\\/Au:[MSN]\\/C:[NPC]\\/I:[NPC]\\/A:[NPC](\\/E:((ND)|(POC)|[UFH])\\/RL:([WU]|(ND)|(OF)|(TF))\\/RC:(C|(ND)|(UC)|(UR)))?(\\/CDP:([NLH]|ND|LM|MH)\\/TD:(ND|[NLMH])\\/CR:(ND|[NLMH])\\/IR:(ND|[LMH])\\/AR:(ND|[LMH]))?\\)?$"
"pattern": "^\\(?AV:[LAN]\\/AC:[HML]\\/Au:[MSN]\\/C:[NPC]\\/I:[NPC]\\/A:[NPC](\\/E:((ND)|(POC)|[UFH])\\/RL:([WU]|(ND)|(OF)|(TF))\\/RC:(C|(ND)|(UC)|(UR)))?(\\/CDP:([NLH]|ND|LM|MH)\\/TD:(ND|[NLMH])\\/CR:(ND|[NLMH])\\/IR:(ND|[LMH])\\/AR:(ND|[LMH]))?\\)?$",
"type": "string"
}
}
},
Expand All @@ -705,7 +706,8 @@
"enum": ["None", "Low", "Medium", "High", "Critical"]
},
"Vector": {
"pattern": "^CVSS:3.[01]\\/AV:[NALP]\\/AC:[LH]\\/PR:[NLH]\\/UI:[NR]\\/S:[UC]\\/C:[NLH]\\/I:[NLH]\\/A:[NLH](\\/E:[XUPFH]\\/RL:[XOTWU]\\/RC:[XURC])?(\\/CR:[XLMH]\\/IR:[XLMH]\\/AR:[XLMH]\\/MAV:[XNALP]\\/MAC:[XLH]\\/MPR:[XNLH]\\/MUI:[XNR]\\/MS:[XUC]\\/MC:[XNLH]\\/MI:[XNLH]\\/MA:[XNLH])?$"
"pattern": "^CVSS:3.[01]\\/AV:[NALP]\\/AC:[LH]\\/PR:[NLH]\\/UI:[NR]\\/S:[UC]\\/C:[NLH]\\/I:[NLH]\\/A:[NLH](\\/E:[XUPFH]\\/RL:[XOTWU]\\/RC:[XURC])?(\\/CR:[XLMH]\\/IR:[XLMH]\\/AR:[XLMH]\\/MAV:[XNALP]\\/MAC:[XLH]\\/MPR:[XNLH]\\/MUI:[XNR]\\/MS:[XUC]\\/MC:[XNLH]\\/MI:[XNLH]\\/MA:[XNLH])?$",
"type": "string"
}
}
}
Expand Down

0 comments on commit 4bc7f2d

Please sign in to comment.