Obfuscated Files or Information: Command Obfuscation
- ID
- T1027.010
- Tactics
- TA0005 Stealth
- Sub-technique of
- T1027 Obfuscated Files or Information
- Platforms
- Linux, macOS, Windows
- Data sources
- Process Creation, Command Execution
- Source
- attack.mitre.org
- MITRE last modified
- 12 May 2026
Adversaries may obfuscate content during command execution to impede detection. Command-line obfuscation is a method of making strings and patterns within commands and scripts more difficult to signature and analyze. This type of obfuscation can be included within commands executed by delivered payloads (e.g., Phishing and Drive-by Compromise) or interactively via Command and Scripting Interpreter.[2][3]
For example, adversaries may abuse syntax that utilizes various symbols and escape characters (such as spacing, ^, +. $, and %) to make commands difficult to analyze while maintaining the same intended functionality.[4] Many languages support built-in obfuscation in the form of base64 or URL encoding.[5] Adversaries may also manually implement command obfuscation via string splitting (“Wor”+“d.Application”), order and casing of characters (rev <<<'dwssap/cte/ tac'), globing (mkdir -p '/tmp/:&$NiA'), as well as various tricks involving passing strings through tokens/environment variables/input streams.[6][7]
Adversaries may also use tricks such as directory traversals to obfuscate references to the binary being invoked by a command (C:\voi\pcw\..\..\Windows\tei\qs\k\..\..\..\system32\erool\..\wbem\wg\je\..\..\wmic.exe shadowcopy delete).[8]
Tools such as Invoke-Obfuscation and Invoke-DOSfucation have also been used to obfuscate commands.[9][10]
Detection
- DET0505 Detection Strategy for Command Obfuscation
Data components: Process Creation, Command Execution
Mitigations (2)
- M1040 Behavior Prevention on Endpoint
On Windows 10+, enable Attack Surface Reduction (ASR) rules to block execution of potentially obfuscated scripts.[1]
- M1049 Antivirus/Antimalware
Consider utilizing the Antimalware Scan Interface (AMSI) on Windows 10+ to analyze commands after being processed/interpreted.
Groups (31)
- G0010 Turla
- G0034 Sandworm Team
- G0037 FIN6
- G0040 Patchwork
- G0046 FIN7
- G0047 Gamaredon Group
- G0050 APT32
- G0059 Magic Hound
- G0061 FIN8
- G0069 MuddyWater
- G0073 APT19
- G0077 Leafminer
- G0080 Cobalt Group
- G0082 APT38
- G0090 WIRTE
- G0091 Silence
- G0092 TA505
- G0094 Kimsuky
- G0102 Wizard Spider
- G0114 Chimera
- G0115 GOLD SOUTHFIELD
- G0117 Fox Kitten
- G0121 Sidewinder
- G0127 TA551
- G0140 LazyScripter
- G0143 Aquatic Panda
- G1001 HEXANE
- G1040 Play
- G1045 Salt Typhoon
- G1051 Medusa Group
- G1052 Contagious Interview
Software (36)
- S0126 ComRAT
- S0194 PowerSploit
- S0223 POWERSTATS
- S0269 QUADAGENT
- S0270 RogueRobin
- S0277 FruitFly
- S0330 Zeus Panda
- S0354 Denis
- S0363 Empire
- S0367 Emotet
- S0373 Astaroth
- S0386 Ursnif
- S0390 SQLRat
- S0409 Machete
- S0428 PoetRAT
- S0450 SHARPSTATS
- S0451 LoudMiner
- S0457 Netwalker
- S0462 CARROTBAT
- S0475 BackConfig
- S0492 CookieMiner
- S0589 Sibot
- S0650 QakBot
- S0669 KOCTOPUS
- S0673 DarkWatchman
- S0685 PowerPunch
- S1022 IceApple
- S1081 BADHATCH
- S1085 Sardonic
- S1229 Havoc
- S1240 RedLine Stealer
- S1248 XORIndex Loader
- S9014 PHASEJAM
- S9029 IronWind
- S9034 Tsundere Botnet
- S9051 The Gentlemen Ransomware
