MITRE ATT&CK / Techniques / T1027.010

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

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)

Software (36)

References

  1. Microsoft ASR Obfuscation
  2. Akamai JS
  3. Malware Monday VBE
  4. RC PowerShell
  5. Microsoft PowerShellB64
  6. Bashfuscator Command Obfuscators
  7. FireEye Obfuscation June 2017
  8. Twitter Richard WMIC
  9. Invoke-DOSfuscation
  10. Invoke-Obfuscation