Execution (TA0002)(external, opens in a new tab or window)
Initial Access (TA0001)(external, opens in a new tab or window)
text code block:host.os.type:windows and event.category:process and event.provider:("Microsoft-Windows-PowerShell" or "PowerShellCore") and event.action:"Execute a Remote Command" and powershell.file.script_block_text:( ("Clear-Host" or "Write-Host" or "Write-Output" or "Write-Warning" or "cls;" or echo or WriteLine) and ("Cloudflare ID:" or "Cloudflare Services respond" or "Cloudflare verification" or "I am not a robot" or "I'm not a robot") )
Install detection rules in Elastic Security
Detect Potential TerminalFix Cloudflare Lure in PowerShell 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).