Obfuscated Files or Information: Encrypted/Encoded File
- ID
- T1027.013
- Tactics
- TA0005 Stealth
- Sub-technique of
- T1027 Obfuscated Files or Information
- Platforms
- Linux, macOS, Windows
- Data sources
- Module Load, Process Access, Process Creation, Network Connection Creation, Command Execution, Process Modification
- Source
- attack.mitre.org
- MITRE last modified
- 12 Sep 2026
Adversaries may encrypt or encode files to obfuscate strings, bytes, and other specific patterns to impede detection. Encrypting and/or encoding file content aims to conceal malicious artifacts within a file used in an intrusion. Many other techniques, such as Software Packing, Steganography, and Embedded Payloads, share this same broad objective. Encrypting and/or encoding files could lead to a lapse in detection of static signatures, only for this malicious content to be revealed (i.e., Deobfuscate/Decode Files or Information) at the time of execution/use.
This type of file obfuscation can be applied to many file artifacts present on victim hosts, such as malware log/configuration and payload files.[2] Files can be encrypted with a hardcoded or user-supplied key, as well as otherwise obfuscated using standard encoding schemes such as Base64.
The entire content of a file may be obfuscated, or just specific functions or values (such as C2 addresses). Encryption and encoding may also be applied in redundant layers for additional protection.
For example, adversaries may abuse password-protected Word documents or self-extracting (SFX) archives as a method of encrypting/encoding a file such as a Phishing payload. These files typically function by attaching the intended archived content to a decompressor stub that is executed when the file is invoked (e.g., User Execution).[3]
Adversaries may also abuse file-specific as well as custom encoding schemes. For example, Byte Order Mark (BOM) headers in text files may be abused to manipulate and obfuscate file content until Command and Scripting Interpreter execution.
Detection
- DET0087 Encrypted or Encoded File Payload Detection Strategy
Data components: Module Load, Process Access, Process Creation, Network Connection Creation, Command Execution, Process Modification
Mitigations (2)
- M1040 Behavior Prevention on Endpoint
On Windows 10+, enable Attack Surface Reduction (ASR) rules to block execution of potentially obfuscated scripts.[1]
Security tools should be configured to analyze the encoding properties of files and detect anomalies that deviate from standard encoding practices.
- M1049 Antivirus/Antimalware
Anti-virus can be used to automatically detect and quarantine suspicious files, including those with high entropy measurements or with otherwise potentially malicious signs of obfuscation.
Groups (40)
- G0007 APT28
- G0012 Darkhotel
- G0024 Putter Panda
- G0026 APT18
- G0027 Threat Group-3390
- G0032 Lazarus Group
- G0043 Group5
- G0045 menuPass
- G0049 OilRig
- G0050 APT32
- G0059 Magic Hound
- G0064 APT33
- G0065 Leviathan
- G0066 Elderwood
- G0070 Dark Caracal
- G0073 APT19
- G0081 Tropic Trooper
- G0087 APT39
- G0092 TA505
- G0094 Kimsuky
- G0099 APT-C-36
- G0100 Inception
- G0103 Mofang
- G0107 Whitefly
- G0108 Blue Mockingbird
- G0117 Fox Kitten
- G0121 Sidewinder
- G0126 Higaisa
- G0134 Transparent Tribe
- G0139 TeamTNT
- G1002 BITTER
- G1009 Moses Staff
- G1013 Metador
- G1018 TA2541
- G1026 Malteiro
- G1031 Saint Bear
- G1036 Moonstone Sleet
- G1046 Storm-1811
- G1052 Contagious Interview
- G1054 MirrorFace
Software (202)
- S0011 Taidoor
- S0013 PlugX
- S0022 Uroburos
- S0044 JHUHUGIT
- S0046 CozyCar
- S0074 Sakula
- S0081 Elise
- S0082 Emissary
- S0087 Hi-Zor
- S0113 Prikormka
- S0125 Remsec
- S0131 TINYTYPHON
- S0136 USBStealer
- S0141 Winnti for Windows
- S0153 RedLeaves
- S0168 Gazer
- S0170 Helminth
- S0172 Reaver
- S0180 Volgmer
- S0213 DOGCALL
- S0226 Smoke Loader
- S0228 NanHaiShu
- S0230 ZeroT
- S0232 HOMEFRY
- S0236 Kwampirs
- S0237 GravityRAT
- S0256 Mosquito
- S0257 VERMIN
- S0263 TYPEFRAME
- S0266 TrickBot
- S0267 FELIXROOT
- S0268 Bisonal
- S0284 More_eggs
- S0330 Zeus Panda
- S0332 Remcos
- S0339 Micropsia
- S0342 GreyEnergy
- S0345 Seasalt
- S0347 AuditCred
- S0348 Cardinal RAT
- S0352 OSX_OCEANLOTUS.D
- S0356 KONNI
- S0367 Emotet
- S0370 SamSam
- S0373 Astaroth
- S0374 SpeakUp
- S0375 Remexi
- S0380 StoneDrill
- S0383 FlawedGrace
- S0385 njRAT
- S0386 Ursnif
- S0387 KeyBoy
- S0388 YAHOYAH
- S0391 HAWKBALL
- S0394 HiddenWasp
- S0395 LightNeuron
- S0398 HyperBro
- S0401 Exaramel for Linux
- S0410 Fysbis
- S0415 BOOSTWRITE
Showing 60 of 202. Full list on attack.mitre.org.
References
- Obfuscated scripts
- File obfuscation
- SFX - Encrypted/Encoded File
