forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Defender for Endpoint File Indicator to file statistics command (d…
- Loading branch information
Showing
21 changed files
with
933 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
#### Scripts | ||
|
||
##### CommonServerPython | ||
|
||
Added new fields to `Common.File`, `Common.URL`, `Common.Domain`, `Common.IP` indicator classes: | ||
|
||
- `organization_prevalence` | ||
|
||
- `globally_prevalence` | ||
|
||
- `organization_first_seen` | ||
|
||
- `organization_last_seen` | ||
|
||
- `first_seen_by_source` | ||
|
||
- `last_seen_by_source` |
186 changes: 181 additions & 5 deletions
186
Packs/Base/Scripts/CommonServerPython/CommonServerPython.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5819,6 +5819,7 @@ def test_create_domain(self): | |
dns='dns.somedomain', | ||
detection_engines=10, | ||
positive_detections=5, | ||
first_seen_by_source='2024-10-06T09:50:50.555Z', | ||
organization='Some Organization', | ||
admin_phone='18000000', | ||
admin_email='[email protected]', | ||
|
@@ -5896,6 +5897,7 @@ def test_create_domain(self): | |
'Registrar': {'Name': 'Mr Registrar', 'AbuseEmail': '[email protected]', 'AbusePhone': None}, | ||
'Registrant': {'Name': 'Mr Registrant', 'Email': None, 'Phone': None, 'Country': None}, | ||
'Admin': {'Name': None, 'Email': '[email protected]', 'Phone': '18000000', 'Country': None}, | ||
'FirstSeenBySource': '2024-10-06T09:50:50.555Z', | ||
'Organization': 'Some Organization', | ||
'Subdomains': ['sub-domain1.somedomain.com', 'sub-domain2.somedomain.com', | ||
'sub-domain3.somedomain.com'], 'DomainStatus': 'ACTIVE', | ||
|
@@ -5994,6 +5996,7 @@ def test_create_url(self): | |
certificates=None, | ||
description='description test', | ||
stix_id='stix_id', | ||
organization_first_seen='2024-11-04T14:48:23.456Z', | ||
) | ||
|
||
results = CommandResults( | ||
|
@@ -6033,6 +6036,7 @@ def test_create_url(self): | |
'ASOwner': 'test_as_owner', | ||
'Geo': {'Country': 'test_geo_country'}, | ||
'Organization': 'test_organization', | ||
'OrganizationFirstSeen': '2024-11-04T14:48:23.456Z', | ||
'CommunityNotes': [{'note': 'note', 'timestamp': '2019-01-01T00:00:00'}], | ||
'Publications': [ | ||
{'source': 'source', | ||
|
@@ -6118,7 +6122,8 @@ def test_create_file(self): | |
creation_date='test_creation_date', | ||
description='test_description', | ||
hashes=None, | ||
stix_id='test_stix_id' | ||
stix_id='test_stix_id', | ||
organization_prevalence=0, | ||
) | ||
|
||
results = CommandResults( | ||
|
@@ -6164,6 +6169,7 @@ def test_create_file(self): | |
'threatcategoryconfidence': 'threat_category_confidence'}], | ||
'Imphash': 'test_imphash', | ||
'Organization': 'test_organization', | ||
'OrganizationPrevalence': 0, | ||
'Malicious': {'Vendor': 'Test', 'Description': 'malicious!'} | ||
} | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Packs/CommonTypes/IndicatorFields/indicatorfield-globalprevalence.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"id": "indicator_globalprevalence", | ||
"version": -1, | ||
"modified": "2024-10-30T12:05:32.803043623Z", | ||
"name": "Global Prevalence", | ||
"ownerOnly": false, | ||
"cliName": "globalprevalence", | ||
"type": "number", | ||
"closeForm": false, | ||
"editForm": true, | ||
"required": false, | ||
"neverSetAsRequired": false, | ||
"isReadOnly": false, | ||
"useAsKpi": false, | ||
"locked": false, | ||
"system": false, | ||
"content": true, | ||
"group": 2, | ||
"hidden": false, | ||
"openEnded": false, | ||
"description": "The number of times the indicator is detected across all organizations.", | ||
"associatedTypes": [ | ||
"Domain", | ||
"IP", | ||
"IPv6", | ||
"URL", | ||
"File" | ||
], | ||
"associatedToAll": false, | ||
"unmapped": false, | ||
"unsearchable": false, | ||
"caseInsensitive": true, | ||
"sla": 0, | ||
"threshold": 72, | ||
"fromVersion": "5.0.0" | ||
} |
36 changes: 36 additions & 0 deletions
36
Packs/CommonTypes/IndicatorFields/indicatorfield-organizationfirstseen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"id": "indicator_organizationfirstseen", | ||
"version": -1, | ||
"modified": "2024-10-30T12:05:32.803043623Z", | ||
"name": "Organization First Seen", | ||
"ownerOnly": false, | ||
"cliName": "organizationfirstseen", | ||
"type": "date", | ||
"closeForm": false, | ||
"editForm": true, | ||
"required": false, | ||
"neverSetAsRequired": false, | ||
"isReadOnly": false, | ||
"useAsKpi": false, | ||
"locked": false, | ||
"system": false, | ||
"content": true, | ||
"group": 2, | ||
"hidden": false, | ||
"openEnded": false, | ||
"description": "Date and time when the indicator was first seen in the organization.", | ||
"associatedTypes": [ | ||
"Domain", | ||
"IP", | ||
"IPv6", | ||
"URL", | ||
"File" | ||
], | ||
"associatedToAll": false, | ||
"unmapped": false, | ||
"unsearchable": false, | ||
"caseInsensitive": true, | ||
"sla": 0, | ||
"threshold": 72, | ||
"fromVersion": "5.0.0" | ||
} |
36 changes: 36 additions & 0 deletions
36
Packs/CommonTypes/IndicatorFields/indicatorfield-organizationlastseen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"id": "indicator_organizationlastseen", | ||
"version": -1, | ||
"modified": "2024-10-30T12:05:32.803043623Z", | ||
"name": "Organization Last Seen", | ||
"ownerOnly": false, | ||
"cliName": "organizationlastseen", | ||
"type": "date", | ||
"closeForm": false, | ||
"editForm": true, | ||
"required": false, | ||
"neverSetAsRequired": false, | ||
"isReadOnly": false, | ||
"useAsKpi": false, | ||
"locked": false, | ||
"system": false, | ||
"content": true, | ||
"group": 2, | ||
"hidden": false, | ||
"openEnded": false, | ||
"description": "Date and time when the indicator was last seen in the organization.", | ||
"associatedTypes": [ | ||
"Domain", | ||
"IP", | ||
"IPv6", | ||
"URL", | ||
"File" | ||
], | ||
"associatedToAll": false, | ||
"unmapped": false, | ||
"unsearchable": false, | ||
"caseInsensitive": true, | ||
"sla": 0, | ||
"threshold": 72, | ||
"fromVersion": "5.0.0" | ||
} |
36 changes: 36 additions & 0 deletions
36
Packs/CommonTypes/IndicatorFields/indicatorfield-organizationprevalence.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"id": "indicator_organizationprevalence", | ||
"version": -1, | ||
"modified": "2024-10-30T12:05:32.803043623Z", | ||
"name": "Organization Prevalence", | ||
"ownerOnly": false, | ||
"cliName": "organizationprevalence", | ||
"type": "number", | ||
"closeForm": false, | ||
"editForm": true, | ||
"required": false, | ||
"neverSetAsRequired": false, | ||
"isReadOnly": false, | ||
"useAsKpi": false, | ||
"locked": false, | ||
"system": false, | ||
"content": true, | ||
"group": 2, | ||
"hidden": false, | ||
"openEnded": false, | ||
"description": "The number of times the indicator is detected in the organization.", | ||
"associatedTypes": [ | ||
"Domain", | ||
"IP", | ||
"IPv6", | ||
"URL", | ||
"File" | ||
], | ||
"associatedToAll": false, | ||
"unmapped": false, | ||
"unsearchable": false, | ||
"caseInsensitive": true, | ||
"sla": 0, | ||
"threshold": 72, | ||
"fromVersion": "5.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.