64
64
'GUID' , 'Link' , 'CreationTime' , 'Status' , 'LastUpdateTime' , 'DecisionFailure' , 'Suspects' , 'AffectedMachine' , 'InvolvedHash' ]
65
65
66
66
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" ]
68
68
69
69
DOMAIN_HEADERS = [
70
70
'Name' , 'Reputation' , 'IsInternalDomain' , 'WasEverResolved' , 'WasEverResolvedAsASecondLevelDomain' , 'Malicious' ,
@@ -2185,11 +2185,28 @@ def query_malop_management_command(client: Client, args: dict):
2185
2185
involved_hashes = single_malop .get ("rootCauseElementHashes" , [])
2186
2186
malop_severity = single_malop .get ("severity" ,"" )
2187
2187
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
+
2188
2197
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
+ ]
2189
2205
decision_statuses = single_malop .get ("decisionStatuses" ,[])
2190
2206
dectection_types = single_malop .get ("detectionTypes" ,[])
2191
2207
detection_engines = single_malop .get ("detectionEngines" , [])
2192
2208
mitre_techniques = single_malop .get ("mitreTechniques" )
2209
+ closer_name = single_malop .get ("closerName" )
2193
2210
if single_malop ["isEdr" ]:
2194
2211
link = SERVER + '/#/malop/' + guid
2195
2212
else :
@@ -2202,12 +2219,13 @@ def query_malop_management_command(client: Client, args: dict):
2202
2219
'Status' : management_status ,
2203
2220
'InvolvedHash' : involved_hashes ,
2204
2221
'Severity' : malop_severity ,
2205
- 'Machines' : machines ,
2206
- 'Users' : users ,
2222
+ 'Machines' : filtered_machines ,
2223
+ 'Users' : filtered_users ,
2207
2224
"DecisionStatuses" : decision_statuses ,
2208
2225
"DetectionTypes" : dectection_types ,
2209
2226
"DetectionEngines" : detection_engines ,
2210
2227
"MitreTechniques" : mitre_techniques ,
2228
+ "MalopCloserName" : closer_name
2211
2229
2212
2230
}
2213
2231
outputs .append (malop_output )
0 commit comments