Automation · API / MCP 中文

Technique note · T1027.013

Encrypted/Encoded File

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. 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). 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.

ATT&CK T1027.013 platforms — Status Active Version 20.1

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.1 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).2 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.

  1. File obfuscation
  2. SFX - Encrypted/Encoded File

Groups using this technique

GroupNameCountry
grp_g0107Whitefly—
grp_g0134Transparent TribePakistan
grp_g0043Group5—
grp_g0103Mofang—
grp_g0024Putter PandaChina
grp_g0100Inception—
grp_g1009Moses StaffIran
grp_g1018TA2541—
grp_g1013Metador—
grp_g0026APT18—
grp_g0012DarkhotelSouth Korea
grp_g0070Dark Caracal—
grp_g1054MirrorFace—
grp_g1031Saint BearRussia
grp_g0117Fox Kitten—
grp_g0108Blue Mockingbird—
grp_g0032Lazarus GroupDPRK
grp_g1026Malteiro—
grp_g0064APT33Iran
grp_g0066ElderwoodChina
grp_g0126Higaisa—
grp_g0049OilRigIran
grp_g1036Moonstone SleetDPRK
grp_g1052Contagious Interview—
grp_g0073APT19China
grp_g0081Tropic Trooper—
grp_g1046Storm-1811—
grp_g0065LeviathanChina
grp_g0087APT39—
grp_g0099APT-C-36—
grp_g0092TA505—
grp_g0094KimsukyDPRK
grp_g0059Magic HoundIran
grp_g0139TeamTNT—
grp_g0045menuPass—
grp_g0007APT28Russia
grp_g0121SidewinderIndia
grp_g0027Threat Group-3390China
grp_g0050APT32Vietnam
grp_g1002BITTERPakistan

Claims

No public claim points at this technique yet.

Auto-ingested and not human-reviewed; confidence and validity read by citation.