Skip to content

Commit 64cc823

Browse files
authored
[Tuning] Outbound Scheduled Task Activity via PowerShell (#5287)
#5286 Verified cidrmatch on destination.ip works on both integrations (endpoint and sysmon):
1 parent 4c984b0 commit 64cc823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/windows/execution_scheduled_task_powershell_source.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/12/15"
33
integration = ["endpoint", "windows"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/11/06"
66

77
[rule]
88
author = ["Elastic"]
@@ -76,7 +76,7 @@ query = '''
7676
sequence by host.id, process.entity_id with maxspan = 5s
7777
[any where host.os.type == "windows" and (event.category == "library" or (event.category == "process" and event.action : "Image loaded*")) and
7878
(?dll.name : "taskschd.dll" or file.name : "taskschd.dll") and process.name : ("powershell.exe", "pwsh.exe", "powershell_ise.exe")]
79-
[network where host.os.type == "windows" and process.name : ("powershell.exe", "pwsh.exe", "powershell_ise.exe") and destination.port == 135 and not destination.address in ("127.0.0.1", "::1")]
79+
[network where host.os.type == "windows" and process.name : ("powershell.exe", "pwsh.exe", "powershell_ise.exe") and destination.port == 135 and not cidrmatch(destination.ip, "127.0.0.0/8", "::1/128")]
8080
'''
8181

8282

0 commit comments

Comments
 (0)