Powershell Encoded Command Switch (RedCanary Threat Detection Report)
Detects the execution of powershell.exe with command lines that include variations of the -encodedcommand argument. Part of the RedCanary 2023 Threat Detection Report.
Sigma rule (View on GitHub)
1title: Powershell Encoded Command Switch (RedCanary Threat Detection Report)
2id: 8446b07e-3088-403f-b93e-5a62d88e8dc5
3status: experimental
4description: Detects the execution of powershell.exe with command lines that include variations of the -encodedcommand argument. Part of the RedCanary 2023 Threat Detection Report.
5references:
6 - https://redcanary.com/threat-detection-report/techniques/powershell/
7author: RedCanary, Sigma formatting by Micah Babinski
8date: 2023/05/10
9tags:
10 - attack.execution
11 - attack.t1059.001
12logsource:
13 category: process_creation
14 product: windows
15detection:
16 selection:
17 Image|endswith: '\powershell.exe'
18 CommandLine|contains: '-e'
19 condition: selection
20falsepositives:
21 - Unknown
22level: low```
References
Related rules
- Powershell Base64 Encoding (RedCanary Threat Detection Report)
- Powershell Obfuscated Commands (RedCanary Threat Detection Report)
- Suspicious Powershell Commandlets (RedCanary Threat Detection Report)
- Invoke-Obfuscation CLIP+ Launcher
- Invoke-Obfuscation COMPRESS OBFUSCATION