Skip to content

Commit 2baeb65

Browse files
author
shabina-metron
committed
add required field in command
1 parent 01575c7 commit 2baeb65

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

Packs/Cybereason/Integrations/Cybereason/Cybereason.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
'GUID', 'Link', 'CreationTime', 'Status', 'LastUpdateTime', 'DecisionFailure', 'Suspects', 'AffectedMachine', 'InvolvedHash']
6565

6666
SINGLE_MALOP_HEADERS = [
67-
'GUID', 'Link', 'CreationTime', 'Status', 'LastUpdateTime', 'InvolvedHash']
67+
'GUID', 'Link', 'CreationTime', 'Status', 'LastUpdateTime', 'InvolvedHash', 'Severity', 'Machines', 'Users', "DecisionStatuses", "DetectionTypes", "DetectionEngines" ,"MitreTechniques", "MalopCloserName"]
6868

6969
DOMAIN_HEADERS = [
7070
'Name', 'Reputation', 'IsInternalDomain', 'WasEverResolved', 'WasEverResolvedAsASecondLevelDomain', 'Malicious',
@@ -2185,11 +2185,28 @@ def query_malop_management_command(client: Client, args: dict):
21852185
involved_hashes = single_malop.get("rootCauseElementHashes", [])
21862186
malop_severity = single_malop.get("severity","")
21872187
machines = single_malop.get("machines",[])
2188+
filtered_machines = [
2189+
{
2190+
"guid": machine.get("guid"),
2191+
"displayName": machine.get("displayName"),
2192+
"pylumId": machine.get("pylumId"),
2193+
}
2194+
for machine in machines
2195+
]
2196+
21882197
users = single_malop.get("users",[])
2198+
filtered_users = [
2199+
{
2200+
"guid": user.get("guid"),
2201+
"displayName": user.get("displayName"),
2202+
}
2203+
for user in users
2204+
]
21892205
decision_statuses = single_malop.get("decisionStatuses",[])
21902206
dectection_types = single_malop.get("detectionTypes",[])
21912207
detection_engines = single_malop.get("detectionEngines", [])
21922208
mitre_techniques = single_malop.get("mitreTechniques")
2209+
closer_name = single_malop.get("closerName")
21932210
if single_malop["isEdr"]:
21942211
link = SERVER + '/#/malop/' + guid
21952212
else:
@@ -2202,12 +2219,13 @@ def query_malop_management_command(client: Client, args: dict):
22022219
'Status': management_status,
22032220
'InvolvedHash': involved_hashes,
22042221
'Severity' : malop_severity,
2205-
'Machines' : machines,
2206-
'Users' : users,
2222+
'Machines' : filtered_machines,
2223+
'Users' : filtered_users,
22072224
"DecisionStatuses" : decision_statuses,
22082225
"DetectionTypes" : dectection_types,
22092226
"DetectionEngines" : detection_engines,
22102227
"MitreTechniques" : mitre_techniques,
2228+
"MalopCloserName" : closer_name
22112229

22122230
}
22132231
outputs.append(malop_output)

Packs/Cybereason/Integrations/Cybereason/Cybereason.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,29 @@ script:
387387
- contextPath: Cybereason.Malops.Status
388388
description: Malop managemant status.
389389
type: string
390+
- contextPath: Cybereason.Malops.Severity
391+
description: Severity of Malop.
392+
type: string
393+
- contextPath: Cybereason.Malops.Machines
394+
description: List of Machines involved in this Malop.
395+
type: string
396+
- contextPath: Cybereason.Malops.Users
397+
description: List of Users involved in this Malop.
398+
type: string
399+
- contextPath: Cybereason.Malops.DecisionStatuses
400+
description: List of Decision Statuses involved in this Malop.
401+
type: string
402+
- contextPath: Cybereason.Malops.DetectionTypes
403+
description: List of Detection Types involved in this Malop.
404+
type: string
405+
- contextPath: Cybereason.Malops.DetectionEngines
406+
description: List of Detection Engines involved in this Malop.
407+
type: string
408+
- contextPath: Cybereason.Malops.MitreTechniques
409+
description: List of Mitre Techniques involved in this Malop.
410+
- contextPath: Cybereason.Malops.MalopCloserName
411+
description: List of Malop Closer Name involved in this Malop.
412+
type: string
390413
- arguments:
391414
- description: processGuid of the Cybereason Malop (can accept multiple guids separated by comma).
392415
name: processGuid

0 commit comments

Comments
 (0)