Binary Proxy Execution via Pester
Description
Identifies the execution of a binary via the Pester PowerShell module. Adversaries may bypass process and signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries.
Query · eql
process where event.action == "start" and
(
(process.parent.name : "powershell.exe" and
process.parent.command_line : "powershell*WindowsPowerShell\\Modules*\\Pester.psm1*;*" and
not process.executable : ("?:\\Windows\\Microsoft.NET\\Framework*\\csc.exe", "?:\\Windows\\Sys*\\conhost.exe")) or
(process.name : "powershell.exe" and process.command_line : "*\\Pester.psm1*;*http*")
)