Defense Evasion (TA0005)(external, opens in a new tab or window)
endpoint(external, opens in a new tab or window)
windows(external, opens in a new tab or window)
system(external, opens in a new tab or window)
m365_defender(external, opens in a new tab or window)
sentinel_one_cloud_funnel(external, opens in a new tab or window)
text code block:process where host.os.type == "windows" and event.type == "start" and process.name : "conhost.exe" and process.args : "--headless" and process.command_line : ( "*powershell*", "*cmd *", "*cmd.exe *", "*script*", "*mshta*", "*curl *", "*curl.exe *", "*^*^*^*", "*.bat*", "*.cmd*", "*schtasks*", "*@SSL*", "*http*", "* \\\\*", "*.vbs*", "*.js*", "*mhsta*" ) and not ( /* Winget-AutoUpdate via ServiceUI */ process.parent.executable : "?:\\Program Files\\winget-autoupdate*\\serviceui.exe" or /* Winget-AutoUpdate notification via Task Scheduler */ ( process.parent.executable : "?:\\Windows\\System32\\svchost.exe" and process.parent.args : "-s" and process.parent.args : "Schedule" and process.command_line : "*WAU-Notify.ps1*" ) or /* Windows OpenSSH console host — SSH-specific detection handled by 8cd49fbc-a35a-4418-8688-133cc3a1e548 */ process.parent.executable : ( "?:\\Windows\\System32\\OpenSSH\\sshd.exe", "?:\\Windows\\System32\\OpenSSH\\sshd-session.exe", "?:\\Program Files\\OpenSSH*\\sshd.exe", "?:\\Program Files\\OpenSSH*\\sshd-session.exe" ) )
Install detection rules in Elastic Security
Detect Proxy Execution via Console Window Host in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).