Sigma rule: Execute Code with Pester.bat as Parent

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1a53518b7bed, updated 2022-08-20T00:00:00.000Z.

Rule

Title
Execute Code with Pester.bat as Parent
Status
test
Level
medium
Author
frack113, Nasreddine Bencherchali
Date
2022-08-20
File
rules/windows/process_creation/proc_creation_win_lolbin_pester.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects code execution via Pester.bat (Pester - Powershell Modulte for testing)

Log source

product
windows
category
process_creation

Detection

selection_module:
    ParentImage|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    ParentCommandLine|contains: '\WindowsPowerShell\Modules\Pester\'
selection_cli:
    ParentCommandLine|contains:
        - '{ Invoke-Pester -EnableExit ;'
        - '{ Get-Help "'
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate use of Pester for writing tests for Powershell scripts and modules

Tags

  • attack.execution
  • attack.stealth
  • attack.t1059.001
  • attack.t1216

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_pester.yml

Sources and licences

  • SigmaHQ

    "Execute Code with Pester.bat as Parent" by frack113, Nasreddine Bencherchali (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_pester.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Execute Code with Pester.bat as Parent",
entity page, dataset version ref-1a53518b7bed, updated 2022-08-20T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/18988e1b-9087-4f8a-82fe-0414dce49878 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 18988e1b-9087-4f8a-82fe-0414dce49878, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.