MITRE ATT&CKsub-technique
T1036.008 Masquerade File Type
- Domain
- enterprise
- Tactics
- Stealth
- Platforms
- Linux, macOS, Windows
- Version
- 2.0
- Created
- 2023-03-08
Description
Adversaries may masquerade malicious payloads as legitimate files through changes to the payload's formatting, including the file’s signature, extension, icon, and contents. Various file types have a typical standard format, including how they are encoded and organized. For example, a file’s signature (also known as header or magic bytes) is the beginning bytes of a file and is often used to identify the file’s type. For example, the header of a JPEG file, is 0xFF 0xD8 and the file extension is either `.JPE`, `.JPEG` or `.JPG`.
Adversaries may edit the header’s hex code and/or the file extension of a malicious payload in order to bypass file validation checks and/or input sanitization. This behavior is commonly used when payload files are transferred (e.g., Ingress Tool Transfer) and stored (e.g., Upload Malware) so that adversaries may move their malware without triggering detections.
Common non-executable file types and extensions, such as text files (`.txt`) and image files (`.jpg`, `.gif`, etc.) may be typically treated as benign. Based on this, adversaries may use a file extension to disguise malware, such as naming a PHP backdoor code with a file name of test.gif. A user may not know that a file is malicious due to the benign appearance and file extension.
Polyglot files, which are files that have multiple different file types and that function differently based on the application that will execute them, may also be used to disguise malicious malware and capabilities.
Related
Subtechnique of · MITRE ATT&CK (1)
- T1036 Masquerading technique
Tactic · MITRE ATT&CK (1)
- TA0005 Stealth tactic
Referenced by MITRE ATT&CK · mitigates (3)
Referenced by MITRE ATT&CK · uses (21)
- C0060 Operation AkaiRyū campaign
- G1054 MirrorFace group
- S9018 HeartCrypt software (malware)
- S9019 PureCrypter software (malware)
- S1238 STATICPLUGIN software (malware)
- S1213 Lumma Stealer software (malware)
- S1190 Kapeka software (malware)
- S1183 StrelaStealer software (malware)
- S1182 MagicRAT software (malware)
- G1043 BlackByte group
- S1130 Raspberry Robin software (malware)
- G1017 Volt Typhoon group
- S1074 ANDROMEDA software (malware)
- C0025 2016 Ukraine Electric Power Attack campaign
- C0022 Operation Dream Job campaign
- S1063 Brute Ratel C4 software (tool)
- S1053 AvosLocker software (malware)
- S0650 QakBot software (malware)
- G0129 Mustang Panda group
- S0352 OSX_OCEANLOTUS.D software (malware)
- G0082 APT38 group
Referenced by Compliance · mitigates (7)
- CIS-13.7 Deploy a Host-Based Intrusion Prevention Solution CIS Safeguard v8.1
- CIS-9.7 Deploy and Maintain Email Server Anti-Malware Protections CIS Safeguard v8.1
- NIST-CM-7 Least Functionality NIST 800-53 control
- NIST-SC-7 Boundary Protection NIST 800-53 control
- NIST-SI-10 Information Input Validation NIST 800-53 control
- NIST-SI-3 Malicious Code Protection NIST 800-53 control
- NIST-SI-4 System Monitoring NIST 800-53 control