Skip to content

Commit 7b7082e

Browse files
authored
[New] Command Obfuscation via Unicode Modifier Letters (#5311)
* [New] Command Obfuscation via Unicode Modifier Letters * Update defense_evasion_obf_args_unicode_modified_letters.toml * Update defense_evasion_obf_args_unicode_modified_letters.toml * Update defense_evasion_obf_args_unicode_modified_letters.toml * ++ * Update defense_evasion_obf_args_unicode_modified_letters.toml * Update defense_evasion_obf_args_unicode_modified_letters.toml
1 parent 033145a commit 7b7082e

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
[metadata]
2+
creation_date = "2025/11/13"
3+
integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4+
maturity = "production"
5+
updated_date = "2025/11/13"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
description = """
10+
Identifies the presence of unicode modifier letters in the process command_line. Adversaries sometimes replace ASCII characters
11+
with visually similar Unicode modifier letters or combining marks to evade simple string-based detections.
12+
"""
13+
from = "now-9m"
14+
index = [
15+
"endgame-*",
16+
"logs-crowdstrike.fdr*",
17+
"logs-endpoint.events.process-*",
18+
"logs-m365_defender.event-*",
19+
"logs-sentinel_one_cloud_funnel.*",
20+
"logs-system.security*",
21+
"logs-windows.forwarded*",
22+
"logs-windows.sysmon_operational-*",
23+
"winlogbeat-*",
24+
]
25+
language = "eql"
26+
license = "Elastic License v2"
27+
name = "Command Obfuscation via Unicode Modifier Letters"
28+
note = """ ## Triage and analysis
29+
30+
> **Disclaimer**:
31+
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
32+
33+
### Investigating Command Obfuscation via Unicode Modifier Letters
34+
35+
Adversaries sometimes replace ASCII characters with visually similar Unicode modifier letters or combining marks to evade simple string-based detections.
36+
37+
### Possible investigation steps
38+
39+
- Review the process execution details (command_line, parent, code signature, hash).
40+
- Analyze the full execution process tree to identify the root cause.
41+
- Check the creation of any persistence using scheduled tasks, Run key, services, shortcuts or startup folders.
42+
- Cross-reference with other logs or alerts to identify any related incidents or patterns of activity that might indicate a larger threat campaign.
43+
44+
### False positive analysis
45+
46+
- Legitimate internationalized applications and installers use Unicode (e.g., localized product names, non-Latin scripts).
47+
- Dev tools or fonts may create commands with combining marks (rare) — check installer/tool provenance.
48+
- Command lines that include user input, file names, or paths with non-ASCII characters (e.g., user folders) can trigger the rule.
49+
50+
### Response and remediation
51+
52+
- Isolate the host if there are signs of active compromise (outbound C2, credential theft, lateral movement).
53+
- Terminate the suspicious process and any direct descendants after collecting forensic evidence (memory, artifacts).
54+
- Collect EDR snapshots, full disk image or targeted file copies, registry hives, and network logs for investigation.
55+
- Remove any persistence entries (scheduled task, startup, services) tied to the activity.
56+
- Qurantine and submit samples to malware analysis; if confirmed malicious, remove and restore from known good backups.
57+
- Block and update indicators related to this activity (hashes, exact normalized command patterns, codepoint sequences, IPs/domains).
58+
- Run global hutning queries for same Unicode patterns, normalized variants, and identical parent/child process chains.
59+
"""
60+
references = ["https://www.wietzebeukema.nl/blog/windows-command-line-obfuscation"]
61+
risk_score = 73
62+
rule_id = "37148ae6-c6ec-4fe4-88b1-02f40aed93a9"
63+
severity = "high"
64+
tags = [
65+
"Domain: Endpoint",
66+
"OS: Windows",
67+
"Use Case: Threat Detection",
68+
"Tactic: Defense Evasion",
69+
"Data Source: Elastic Endgame",
70+
"Resources: Investigation Guide",
71+
"Data Source: Elastic Defend",
72+
"Data Source: Windows Security Event Logs",
73+
"Data Source: Microsoft Defender for Endpoint",
74+
"Data Source: Sysmon",
75+
"Data Source: SentinelOne",
76+
"Data Source: Crowdstrike",
77+
]
78+
timestamp_override = "event.ingested"
79+
type = "eql"
80+
81+
query = '''
82+
process where host.os.type == "windows" and event.type == "start" and
83+
(
84+
process.name : ("reg.exe", "net.exe", "net1.exe", "certutil.exe", "MSHTA.EXE", "msiexec.exe", "bitsadmin.exe", "CertReq.exe", "PrintBrm.exe", "MSBuild.exe", "wuauclt.exe", "curl.exe", "wget.exe", "ssh.exe", "Cmd.Exe", "PowerShell.EX", "CONHOST.EXE", "wscript.exe", "cscript.exe", "REGSVR32.EXE", "RUNDLL32.EXE", "procdump.exe", "ntdsutil.exe", "diskshadow.exe", "schtasks.exe", "sc.exe", "wmic.exe", "VSSADMIN.EXE", "WBADMIN.EXE", "iCACLS.EXE", "sftp.exe", "scp.exe", "esentutl.exe", "InstallUtil.exe", "wevtutil.exe") or
85+
?process.pe.original_file_name in ("reg.exe", "net.exe", "net1.exe", "CertUtil.exe", "MSHTA.EXE", "msiexec.exe", "bitsadmin.exe", "CertReq.exe", "PrintBrm.exe", "MSBuild.exe", "wuauclt.exe", "curl.exe", "wget.exe", "ssh.exe", "Cmd.Exe", "PowerShell.EX", "CONHOST.EXE", "wscript.exe", "cscript.exe", "REGSVR32.EXE", "RUNDLL32.EXE", "procdump", "ntdsutil.exe", "diskshadow.exe", "schtasks.exe", "sc.exe", "wmic.exe", "VSSADMIN.EXE", "WBADMIN.EXE", "iCACLS.EXE", "sftp.exe", "scp.exe", "esentutl.exe", "InstallUtil.exe", "wevtutil.exe")
86+
) and
87+
process.command_line regex """.*[ʰ-˿ᴬ-ᶻ]+.*"""
88+
'''
89+
90+
91+
[[rule.threat]]
92+
framework = "MITRE ATT&CK"
93+
[[rule.threat.technique]]
94+
id = "T1027"
95+
name = "Obfuscated Files or Information"
96+
reference = "https://attack.mitre.org/techniques/T1027/"
97+
98+
[[rule.threat.technique.subtechnique]]
99+
id = "T1027.010"
100+
name = "Command Obfuscation"
101+
reference = "https://attack.mitre.org/techniques/T1027/010/"
102+
103+
[rule.threat.tactic]
104+
id = "TA0005"
105+
name = "Defense Evasion"
106+
reference = "https://attack.mitre.org/tactics/TA0005/"
107+
108+

0 commit comments

Comments
 (0)