Sigma rule: Invoke-Obfuscation Obfuscated IEX Invocation
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8162ca001091, updated 2026-03-16T00:00:00.000Z.
Rule
- Title
- Invoke-Obfuscation Obfuscated IEX Invocation
- Status
- test
- Level
- high
- Author
- Daniel Bohannon (@Mandiant/@FireEye), oscd.community
- Date
- 2019-11-08
- Modified
- 2026-03-16
- File
- rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_obfuscated_iex_commandline.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the following code block
Log source
- product
- windows
- category
- process_creation
Detection
selection:
- CommandLine|re: '\$PSHome\[\s*\d{1,3}\s*\]\s*\+\s*\$PSHome\['
- CommandLine|re: '\$ShellId\[\s*\d{1,3}\s*\]\s*\+\s*\$ShellId\['
- CommandLine|re: '\$env:Public\[\s*\d{1,3}\s*\]\s*\+\s*\$env:Public\['
- CommandLine|re: '\$env:ComSpec\[(?:\s*\d{1,3}\s*,){2}'
- CommandLine|re: '\*mdr\*\W\s*\)\.Name'
- CommandLine|re: '\$VerbosePreference\.ToString\('
- CommandLine|re: '\[String\]\s*\$VerbosePreference'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1027
- 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_hktl_invoke_obfuscation_obfuscated_iex_commandline.yml
Sources and licences
SigmaHQ
"Invoke-Obfuscation Obfuscated IEX Invocation" by Daniel Bohannon (@Mandiant/@FireEye), oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_obfuscated_iex_commandline.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",
entity page, dataset version ref-8162ca001091, updated 2026-03-16T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4bf943c6-5146-4273-98dd-e958fd1e3abf (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4bf943c6-5146-4273-98dd-e958fd1e3abf, 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.