Potential PowerShell Obfuscation Via WCHAR/CHAR
Detects suspicious encoded character syntax often used for defense evasion
Detection logic
selection
CommandLine|contains:
- "[char]0x"
- (WCHAR)0xCondition
selectionRaw YAML
title: Potential PowerShell Obfuscation Via WCHAR/CHAR
id: e312efd0-35a1-407f-8439-b8d434b438a6
status: test
description: Detects suspicious encoded character syntax often used for defense evasion
references:
- https://twitter.com/0gtweet/status/1281103918693482496
author: Florian Roth (Nextron Systems)
date: 2020-07-09
modified: 2025-03-03
tags:
- attack.execution
- attack.stealth
- attack.t1059.001
- attack.t1027
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains:
- '[char]0x'
- '(WCHAR)0x'
condition: selection
falsepositives:
- Unknown
level: highFalse positives
- Unknown
References
Similar rules
Base64 Encoded PowerShell Command Detected
highwindows · Shares T1027, T1059
ConvertTo-SecureString Cmdlet Usage Via CommandLine
mediumwindows · Shares T1027, T1059
Invoke-Obfuscation CLIP+ Launcher
highwindows · Shares T1027, T1059
Invoke-Obfuscation COMPRESS OBFUSCATION
mediumwindows · Shares T1027, T1059