Sigma rule: Suspicious PowerShell IEX Execution Patterns

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b55718dd4886, updated 2022-11-28T00:00:00.000Z.

Rule

Title
Suspicious PowerShell IEX Execution Patterns
Status
test
Level
high
Author
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
Date
2022-03-24
Modified
2022-11-28
File
rules/windows/process_creation/proc_creation_win_powershell_iex_patterns.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects suspicious ways to run Invoke-Execution using IEX alias

Log source

product
windows
category
process_creation

Detection

selection_combined_1:
    Image|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    CommandLine|contains:
        - ' | iex;'
        - ' | iex '
        - ' | iex}'
        - ' | IEX ;'
        - ' | IEX -Error'
        - ' | IEX (new'
        - ');IEX '
selection_combined_2:
    CommandLine|contains:
        - '::FromBase64String'
        - '.GetString([System.Convert]::'
selection_standalone:
    CommandLine|contains:
        - ')|iex;$'
        - ');iex($'
        - ');iex $'
        - ' | IEX | '
        - ' | iex\"'
condition: all of selection_combined_* or selection_standalone

False positives (as the rule lists them)

  • Legitimate scripts that use IEX

Tags

  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

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_powershell_iex_patterns.yml

Sources and licences

  • SigmaHQ

    "Suspicious PowerShell IEX Execution Patterns" by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_iex_patterns.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: Suspicious PowerShell IEX Execution Patterns",
entity page, dataset version ref-b55718dd4886, updated 2022-11-28T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/09576804-7a05-458e-a817-eb718ca91f54 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 09576804-7a05-458e-a817-eb718ca91f54, 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.