Academy
TermTechnique

Obfuscation

Making malware code, strings or configuration unreadable to make analysis and detection harder.

Flow

  1. 1Strings encrypted
  2. 2Flow scrambled
  3. 3Decoded at runtime
Related families
Vidar, Rhadamanthys
MITRE ATT&CK
T1027 · Obfuscated Files or Information
Sources
5 sources
01

Overview

Obfuscation includes encrypting strings, padding code with meaningless instructions, hiding function names and splitting the payload into layers. The aim is to slow the analyst down and break signatures. MITRE ATT&CK

Because the code has to decode itself while running, obfuscation does not hide behavior; code unpacked in memory becomes visible. MITRE ATT&CK

02

How it works

  1. 1

    Strings encrypted

    Server addresses and target file paths are not kept in plain text. MITRE ATT&CK

  2. 2

    Flow scrambled

    The code is wrapped in meaningless branches and virtual-machine-like interpreters.

  3. 3

    Decoded at runtime

    The needed part is unpacked in memory at the moment it is used. MITRE ATT&CK

03

Real-world examples

Vidar: virtual-machine-based obfuscation

Vidar profile

Zscaler documented that Vidar started hiding its strings with a method based on a virtual machine and a custom stream cipher. Zscaler

Rhadamanthys: layered obfuscation

Rhadamanthys profile

Zscaler published a detailed technical analysis of Rhadamanthys’ obfuscation techniques. Zscaler

04

How to detect it

  • High-entropy data sections and code written to memory and executed at runtime. MITRE ATT&CK
05

What to do

  • Use endpoint protection that looks at behavior rather than signatures. MITRE ATT&CK
06

MITRE ATT&CK

07

Related families and terms

08

Sources

  1. 1Obfuscated Files or Information (T1027) · MITRE ATT&CK
  2. 2Deobfuscate/Decode Files or Information (T1140) · MITRE ATT&CK
  3. 3Vidar adds virtual machine and custom stream cipher string obfuscation · Zscaler
  4. 4Technical analysis of Rhadamanthys obfuscation techniques · Zscaler
  5. 5Behavior Prevention on Endpoint (M1040) · MITRE ATT&CK
From the Essential plan

Infostealer Detection

See your firm's attack surface on one screen: how many findings, at which severity, on which domain.