Skip to content

Commit 745c8d9

Browse files
idovandijkContent Bot
authored andcommitted
A user executed multiple LDAP enumeration queries - IP validation task fix (demisto#40689)
* pb, format, rn * Bump pack from version CortexResponseAndRemediation to 1.1.94. * added continueonerror for core-get-endpoints --------- Co-authored-by: Content Bot <[email protected]>
1 parent d6f6bff commit 745c8d9

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

Packs/CortexResponseAndRemediation/Playbooks/playbook-A_user_executed_multiple_LDAP_enumeration_queries.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ tasks:
216216
id: 2967545d-ba7a-4934-89fc-84f4a41ff124
217217
version: -1
218218
name: Search for recent malware alerts on client IP
219-
description: Searches for alerts that happened in the past day with Malware category where the host IP is the client IP of the current alert.
219+
description: Searches for Malware category alerts that occurred in the past day with host IP equal to the client IP of the current alert.
220220
scriptName: SearchAlertsV2
221221
type: regular
222222
iscommand: false
@@ -294,10 +294,10 @@ tasks:
294294
isautoswitchedtoquietmode: false
295295
"8":
296296
id: "8"
297-
taskid: a685af16-c239-4712-81ff-00dbcca78bca
297+
taskid: e7e2c5dc-46a4-466f-a6ef-ec40b094423b
298298
type: condition
299299
task:
300-
id: a685af16-c239-4712-81ff-00dbcca78bca
300+
id: e7e2c5dc-46a4-466f-a6ef-ec40b094423b
301301
version: -1
302302
name: Ensure that a single client IP exists
303303
description: Ensures that the alert contains only 1 client IP. LDAP enumeration query alerts containing multiple IPs are not supported by the playbook.
@@ -313,6 +313,20 @@ tasks:
313313
conditions:
314314
- label: "yes"
315315
condition:
316+
- - operator: isNotEmpty
317+
left:
318+
value:
319+
simple: Core.OriginalAlert.event.client
320+
iscontext: true
321+
- - operator: isNotEqualString
322+
left:
323+
value:
324+
simple: Core.OriginalAlert.event.client
325+
iscontext: true
326+
right:
327+
value:
328+
simple: 127.0.0.1
329+
ignorecase: true
316330
- - operator: isEqualString
317331
left:
318332
value:
@@ -335,14 +349,6 @@ tasks:
335349
right:
336350
value:
337351
simple: "3"
338-
- - operator: isNotEqualString
339-
left:
340-
value:
341-
simple: Core.OriginalAlert.event.client
342-
iscontext: true
343-
right:
344-
value:
345-
simple: 127.0.0.1
346352
continueonerrortype: ""
347353
view: |-
348354
{
@@ -382,6 +388,7 @@ tasks:
382388
transformers:
383389
- operator: uniq
384390
separatecontext: false
391+
continueonerror: true
385392
continueonerrortype: ""
386393
view: |-
387394
{
@@ -1659,7 +1666,7 @@ tasks:
16591666
id: e64d505f-b741-489d-8513-9b68a04129f1
16601667
version: -1
16611668
name: Check that client OS is Windows and client role is not Server
1662-
description: Ensures that the client is not a server, not the domain controller, and runs the Windows operating system (required for automatic remediation).
1669+
description: Ensures that the client is not a server or domain controller and is running the Windows operating system, which is necessary for automatic remediation.
16631670
type: condition
16641671
iscommand: false
16651672
brand: ""
@@ -1892,7 +1899,7 @@ tasks:
18921899
id: 9cdd928b-40cc-4abe-9f62-11968d3d8326
18931900
version: -1
18941901
name: Get user session results
1895-
description: Retrieves results from the "quser" command for the user - which can be used to tell if the user is currently logged in.
1902+
description: Retrieves the output of the "quser" command for the user, which can indicate whether the user is currently logged in.
18961903
script: '|||core-get-script-execution-results'
18971904
type: regular
18981905
iscommand: true
@@ -1927,7 +1934,7 @@ tasks:
19271934
id: e53a7044-64ba-47db-8470-d9d23b475850
19281935
version: -1
19291936
name: Check for active session of the user
1930-
description: Checks if the execution results show that there is currently an active session for the user - which means the user is currently logged in.
1937+
description: Checks whether the execution results indicate an active session for the user, confirming the user is currently logged in.
19311938
type: condition
19321939
iscommand: false
19331940
brand: ""
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Playbooks
3+
4+
##### A user executed multiple LDAP enumeration queries
5+
6+
- Fixed an issue where in rare cases the IP validation task would fail due to a null value.

Packs/CortexResponseAndRemediation/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Cortex Response And Remediation",
33
"description": "The Cortex Response & Remediation Pack delivers a powerful collection of automated playbooks designed to streamline incident response and remediation processes. Built to support an Autonomous SOC vision.",
44
"support": "xsoar",
5-
"currentVersion": "1.1.93",
5+
"currentVersion": "1.1.94",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)