T1027.010 · Command Obfuscation

Windows Command Obfuscation with Environment Variable Substrings

  • Windows
  • Behavioral Signal

About this detection

Detects command obfuscation by using a technique to build a target command using character indexes from environment variables. This hides the true intent of the command by building it on the fly. In Windows command prompt, you can use the :~ format to extract substrings from environment variable values. This behavior has been observed in various malware families, including Cobalt Strike and Meterpreter.

Sysmon event coverage

  • ProcessCreate

Sysmon XML

Download XML

Loading configuration…