Windows: Code Execution via Pester.bat Using PowerShell Help or cmd.exe

Flags Windows process executions that invoke Pester-related help/commands via PowerShell or cmd, consistent with Pester.bat usage.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Julia Fomina, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-08
Updated
2026-07-31

ATT&CK techniques

Execution → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule identifies suspicious use of Pester-related execution patterns that can lead to code execution. It matches PowerShell invocations containing both "Pester" and "Get-Help", as well as cmd.exe command lines containing "pester" plus a semicolon and help-query indicators ("help" and "\?"), which may reflect attacker-controlled execution through Pester.bat-style behavior. The detection relies on process creation telemetry with process image paths and command-line arguments.

Related detections9 linkedT1059.001 — drag to rearrange
Suspicious PowerShell Execution via SyncAppvPublishingServer LOLBIN
Malicious Command Injection via SyncAppvPublishingServer VBS LOLBin (via process_creation)
Windows: Code execution via Pester.bat invoked by PowerShell (Invoke-Pester/Get-Help)
Suspicious Script Host Spawning Hidden PowerShell (via process_creation)
Suspicious PowerShell Reflective Assembly Load With GZip Decompression (via process_creation)
Suspicious PowerShell Invoke-Expression with Replace Obfuscation
Suspicious PowerShell Archive Extraction to AppData Roaming
Malicious PowerShell Spawned by Masqueraded NVIDIA GeForce Experience Binary
Suspicious PowerShell Hidden Unrestricted Execution via ClickFix
Windows: Code Execution via Pester.bat Using PowerShell Help or cmd.exe
Pivot detection · T1059.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.