T1140
Deobfuscate/Decode Files or Information
ESXi · Linux · macOS · Windows2 pieces on this siteT1140 on attack.mitre.org
Adversaries may use Obfuscated Files or Information to hide artifacts of an intrusion from analysis. They may require separate mechanisms to decode or deobfuscate that information depending on how they intend to use it. Methods for doing that include built-in functionality of malware or by using utilities present on the system.
Read
Analyses, case studies, guides, references and interview questions.
A gzip-compressed, base64-encoded PowerShell stage
Two operations for the layer that sits inside most PowerShell loaders: base64 that decodes to binary starting with 1F 8B. Recognise it on sight, then read the script inside.
JavaScript String.fromCharCode, back to readable text
One operation for a common trick in malicious JavaScript and HTML attachments: a string written as a list of decimal character codes so that no readable word appears in the file.
how MITRE says to see it
Detect Adversary Deobfuscation or Decoding of Files and Payloads
- An adversary leverages built-in tools such as certutil.exe, powershell.exe, or copy.exe to decode, reassemble, or extract hidden malicious content from obfuscated containers or encoded formats.
- The adversary uses native utilities like base64, gzip, tar, or openssl to decode, decompress, or decrypt files that were previously staged or downloaded. These tools may be chained with curl/wget and executed via bash/zsh, often to extract an embedded payload or reverse shell script.
- The adversary invokes built-in scripting or decoding tools like base64, plutil, or AppleScript-based utilities to decode files embedded in staging artifacts. Decoding often occurs post-download or as part of post-exploitation payload deployment via zsh, python, or osascript.