Skip to content

Commit 7c1e656

Browse files
Samirboustradebot-elastic
authored andcommitted
[Tuning] Powershell Atomics test gaps for T1059.001 (#5380)
https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1059.001/T1059.001.md (cherry picked from commit 5e1ac4f)
1 parent a676887 commit 7c1e656

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

rules/windows/execution_posh_hacktool_functions.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2023/01/17"
33
integration = ["windows"]
44
maturity = "production"
5-
updated_date = "2025/09/03"
5+
updated_date = "2025/12/01"
66

77
[transform]
88
[[transform.osquery]]
@@ -321,7 +321,8 @@ event.category:process and host.os.type:windows and
321321
"Invoke-FileTransferOverWMI" or "Invoke-WMImplant" or
322322
"Invoke-WMIObfuscatedPSCommand" or "Invoke-WMIDuplicateClass" or
323323
"Invoke-WMIUpload" or "Invoke-WMIRemoteExtract" or "Invoke-winPEAS" or
324-
"Invoke-AzureHound" or "Invoke-SharpHound"
324+
"Invoke-AzureHound" or "Invoke-SharpHound" or "Invoke-DownloadCradle" or
325+
"Invoke-AppPathBypass"
325326
) and
326327
not powershell.file.script_block_text : (
327328
"sentinelbreakpoints" and "Set-PSBreakpoint"

rules/windows/execution_windows_powershell_susp_args.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2024/09/06"
33
integration = ["endpoint", "windows", "system", "sentinel_one_cloud_funnel", "m365_defender", "crowdstrike"]
44
maturity = "production"
5-
updated_date = "2025/09/18"
5+
updated_date = "2025/12/01"
66

77
[rule]
88
author = ["Elastic"]
@@ -150,7 +150,9 @@ process where host.os.type == "windows" and event.type == "start" and
150150
"*$env:computername*http*",
151151
"*;InVoKe-ExpRESsIoN $COntent.CONTENt;*",
152152
"*WebClient*example.com*",
153-
"*=iwr $*;iex $*"
153+
"*=iwr $*;iex $*",
154+
"*ServerXmlHttp*IEX*",
155+
"*XmlDocument*IEX*"
154156
) or
155157
156158
(process.args : "-c" and process.args : "&{'*") or
@@ -161,6 +163,11 @@ process where host.os.type == "windows" and event.type == "start" and
161163
162164
process.args : "$*$*;set-alias" or
163165
166+
process.args == "-e" or
167+
168+
// ATHPowerShellCommandLineParameter
169+
process.args : ("-EncodedCommandParamVariation", "-UseEncodedArguments", "-CommandParamVariation") or
170+
164171
(
165172
process.parent.name : ("explorer.exe", "cmd.exe") and
166173
process.command_line : ("*-encodedCommand*", "*Invoke-webrequest*", "*WebClient*", "*Reflection.Assembly*"))

0 commit comments

Comments
 (0)