Sigma rule: Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell Module
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4dfade815bf7, updated 2022-12-31T00:00:00.000Z.
Rule
- Title
- Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell Module
- Status
- test
- Level
- high
- Author
- Daniel Bohannon (@Mandiant/@FireEye), oscd.community
- Date
- 2019-11-08
- Modified
- 2022-12-31
- File
- rules/windows/powershell/powershell_module/posh_pm_invoke_obfuscation_obfuscated_iex.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the code block cited in the reference section below
Log source
- product
- windows
- category
- ps_module
- definition
- 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
Detection
selection_payload:
- Payload|re: '\$PSHome\[\s*\d{1,3}\s*\]\s*\+\s*\$PSHome\['
- Payload|re: '\$ShellId\[\s*\d{1,3}\s*\]\s*\+\s*\$ShellId\['
- Payload|re: '\$env:Public\[\s*\d{1,3}\s*\]\s*\+\s*\$env:Public\['
- Payload|re: '\$env:ComSpec\[(\s*\d{1,3}\s*,){2}'
- Payload|re: '\*mdr\*\W\s*\)\.Name'
- Payload|re: '\$VerbosePreference\.ToString\('
- Payload|re: '\[String\]\s*\$VerbosePreference'
condition: selection_payloadFalse positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1027
- attack.execution
- attack.t1059.001
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/powershell/powershell_module/posh_pm_invoke_obfuscation_obfuscated_iex.yml
Sources and licences
SigmaHQ
"Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell Module" by Daniel Bohannon (@Mandiant/@FireEye), oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_module/posh_pm_invoke_obfuscation_obfuscated_iex.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell Module",
entity page, dataset version ref-4dfade815bf7, updated 2022-12-31T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2f211361-7dce-442d-b78a-c04039677378 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2f211361-7dce-442d-b78a-c04039677378, 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.