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

SentinelOne v 3 2 12 #30626

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"feed": false,
"id": "SentinelOne Classifier",
"keyTypeMap": {
"SentinelOne Incident": "SentinelOne Incident"
"SentinelOne Incident": "SentinelOne Incident",
"incident": "SentinelOne Incident"
},
"name": "SentinelOne Classifier",
"transformer": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def get_threats_request(self, content_hash=None, mitigation_status=None, created
siteIds=site_ids,
rank=int(rank) if rank else None,
keys_to_ignore=keys_to_ignore,
incidentStatuses=argToList(incident_statuses.lower() if incident_statuses is not None else None)
incidentStatuses=incident_statuses.lower() if incident_statuses else None
)
response = self._http_request(method='GET', url_suffix='threats', params=params, ok_codes=[200])
return response.get('data', {})
Expand Down Expand Up @@ -3302,13 +3302,12 @@ def fetch_threats(client: Client, args):
incidents_threats = []
current_fetch = args.get('current_fetch')
incident_statuses = args.get('fetch_threat_incident_statuses')
resolved = 'true' if incident_statuses and 'RESOLVED' in incident_statuses else 'false'

threats = client.get_threats_request(limit=args.get('fetch_limit'),
created_after=args.get('last_fetch_date_string'),
site_ids=args.get('fetch_site_ids'),
incident_statuses=','.join(incident_statuses).lower() if incident_statuses else None,
resolved=resolved)
include_resolved_param=False)
MosheEichler marked this conversation as resolved.
Show resolved Hide resolved
for threat in threats:
rank = threat.get('rank')
threat.update(get_mirroring_fields(args))
Expand Down Expand Up @@ -3434,8 +3433,8 @@ def main():
fetch_type = params.get('fetch_type', 'Threats')
first_fetch_time = params.get('fetch_time', '3 days')
fetch_severity = params.get('fetch_severity', [])
fetch_incidentStatus = params.get('fetch_incidentStatus', [])
fetch_threat_incident_statuses = params.get('fetch_threat_incident_statuses', [])
fetch_incidentStatus = params.get('fetch_incidentStatus', ["UNRESOLVED"])
fetch_threat_incident_statuses = params.get('fetch_threat_incident_statuses', ["UNRESOLVED"])
MosheEichler marked this conversation as resolved.
Show resolved Hide resolved
fetch_threat_rank = int(params.get('fetch_threat_rank', 0))
fetch_limit = int(params.get('fetch_limit', 10))
fetch_site_ids = params.get('fetch_site_ids', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2313,7 +2313,7 @@ script:
description: IP Address.
- contextPath: SentinelOne.MAC.mac
description: MAC Address.
dockerimage: demisto/python3:3.10.13.75921
dockerimage: demisto/python3:3.10.13.78960
isfetch: true
ismappable: true
isremotesyncin: true
Expand Down
14 changes: 14 additions & 0 deletions Packs/SentinelOne/ReleaseNotes/3_2_12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

#### Integrations

##### SentinelOne v2

- Updated the Docker image to: *demisto/python3:3.10.13.78960*.
- Improved implementation of the ***fetch-threats*** functionality, so that it will fetch the selected threat statuses from the configuration.


#### Classifiers

##### SentinelOne Classifier

- Fixed an issue where the **SentinelOne Classifier** unable to mapped with the Incident Type whose name is **incident**.
2 changes: 1 addition & 1 deletion Packs/SentinelOne/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "SentinelOne",
"description": "Endpoint protection",
"support": "partner",
"currentVersion": "3.2.11",
"currentVersion": "3.2.12",
"author": "SentinelOne",
"url": "https://www.sentinelone.com/support/",
"email": "[email protected]",
Expand Down
Loading