Skip to content

Commit 0801223

Browse files
w0rk3rtradebot-elastic
authored andcommitted
[Rule Tuning] Suspicious PowerShell Engine ImageLoad (#5134)
* Update execution_suspicious_powershell_imgload.toml * Update execution_suspicious_powershell_imgload.toml (cherry picked from commit f75062a)
1 parent 961e50b commit 0801223

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

rules/windows/execution_suspicious_powershell_imgload.toml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/11/17"
33
integration = ["endpoint"]
44
maturity = "production"
5-
updated_date = "2024/09/23"
5+
updated_date = "2025/09/18"
66

77
[rule]
88
author = ["Elastic"]
@@ -74,23 +74,42 @@ timestamp_override = "event.ingested"
7474
type = "new_terms"
7575

7676
query = '''
77-
host.os.type:windows and event.category:library and
78-
dll.name:("System.Management.Automation.dll" or "System.Management.Automation.ni.dll") and
77+
host.os.type:windows and event.category:library and
78+
dll.name:("System.Management.Automation.dll" or "System.Management.Automation.ni.dll") and
7979
not (
80-
process.code_signature.subject_name:("Microsoft Corporation" or "Microsoft Dynamic Code Publisher" or "Microsoft Windows") and process.code_signature.trusted:true and not process.name.caseless:("regsvr32.exe" or "rundll32.exe")
81-
) and
80+
process.code_signature.subject_name:(
81+
"Microsoft Corporation" or
82+
"Microsoft Dynamic Code Publisher" or
83+
"Microsoft Windows"
84+
) and process.code_signature.trusted:true and not process.name.caseless:"regsvr32.exe"
85+
) and
8286
not (
83-
process.executable.caseless:(C\:\\Program*Files*\(x86\)\\*.exe or C\:\\Program*Files\\*.exe) and
87+
process.executable:(C\:\\Program*Files*\(x86\)\\*.exe or C\:\\Program*Files\\*.exe) and
8488
process.code_signature.trusted:true
85-
) and
89+
) and
8690
not (
87-
process.executable.caseless: C\:\\Windows\\Lenovo\\*.exe and process.code_signature.subject_name:"Lenovo" and
91+
process.executable: C\:\\Windows\\Lenovo\\*.exe and process.code_signature.subject_name:"Lenovo" and
8892
process.code_signature.trusted:true
89-
) and
93+
) and
9094
not (
91-
process.executable.caseless: "C:\\ProgramData\\chocolatey\\choco.exe" and
92-
process.code_signature.subject_name:"Chocolatey Software, Inc." and process.code_signature.trusted:true
93-
) and not process.executable.caseless : "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
95+
process.executable: C\:\\Windows\\AdminArsenal\\PDQInventory-Scanner\\service-*\\exec\\PDQInventoryScanner.exe and
96+
process.code_signature.subject_name:"PDQ.com Corporation" and
97+
process.code_signature.trusted:true
98+
) and
99+
not (
100+
process.executable: C\:\\Windows\\Temp\\\{*\}\\_is*.exe and
101+
process.code_signature.subject_name:("Dell Technologies Inc." or "Dell Inc" or "Dell Inc.") and
102+
process.code_signature.trusted:true
103+
) and
104+
not (
105+
process.executable: C\:\\ProgramData\\chocolatey\\* and
106+
process.code_signature.subject_name:("Chocolatey Software, Inc." or "Chocolatey Software, Inc") and
107+
process.code_signature.trusted:true
108+
) and
109+
not process.executable : (
110+
"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" or
111+
"C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
112+
)
94113
'''
95114

96115

0 commit comments

Comments
 (0)