Sigma rule: Potential PowerShell Obfuscation Via Reversed Commands
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e9b457a45b57, updated 2023-05-31T00:00:00.000Z.
Rule
- Title
- Potential PowerShell Obfuscation Via Reversed Commands
- Status
- test
- Level
- high
- Author
- Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton
- Date
- 2020-10-11
- Modified
- 2023-05-31
- File
- rules/windows/process_creation/proc_creation_win_powershell_cmdline_reversed_strings.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the presence of reversed PowerShell commands in the CommandLine. This is often used as a method of obfuscation by attackers
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- OriginalFileName:
- 'PowerShell.EXE'
- 'pwsh.dll'
selection_cli:
CommandLine|contains:
- 'hctac'
- 'kaerb'
- 'dnammoc'
- 'ekovn' # Also covers 'ekovni'
- 'eliFd'
- 'rahc'
- 'etirw'
- 'golon'
- 'tninon'
- 'eddih'
- 'tpircS'
- 'ssecorp'
- 'llehsrewop'
- 'esnopser'
- 'daolnwod'
- 'tneilCbeW'
- 'tneilc'
- 'ptth'
- 'elifotevas'
- '46esab'
- 'htaPpmeTteG'
- 'tcejbO'
- 'maerts'
- 'hcaerof'
- 'retupmoc'
filter_main_encoded_keyword:
# We exclude usage of encoded commands as they might generate FPs as shown here:
# https://github.com/SigmaHQ/sigma/pull/2720
# https://github.com/SigmaHQ/sigma/issues/4270
CommandLine|contains:
- ' -EncodedCommand '
- ' -enc '
condition: all of selection_* and not 1 of filter_main_*False positives (as the rule lists them)
- Unlikely
Tags
- attack.stealth
- attack.t1027
- attack.execution
- attack.t1059.001
MITRE ATT&CK ids this rule names
References
- https://2019.offzone.moscow/ru/report/hunting-for-powershell-abuses/
- https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=66
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_cmdline_reversed_strings.yml
Sources and licences
SigmaHQ
"Potential PowerShell Obfuscation Via Reversed Commands" by Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_cmdline_reversed_strings.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: Potential PowerShell Obfuscation Via Reversed Commands",
entity page, dataset version ref-e9b457a45b57, updated 2023-05-31T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b6b49cd1-34d6-4ead-b1bf-176e9edba9a4 (accessed 2026-11-03).
Underlying source: SigmaHQ rule b6b49cd1-34d6-4ead-b1bf-176e9edba9a4, 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.