Technique with 18 sub-techniques.View on attack.mitre.org
Adversaries may attempt to make an executable or file difficult to discover or analyze by encrypting, encoding, or otherwise obfuscating its contents on the system or in transit. This is common behavior that can be used across different platforms and the network to evade defenses.
Payloads may be compressed, archived, or encrypted in order to avoid detection. These payloads may be used during Initial Access or later to mitigate detection. Sometimes a user's action may be required to open and Deobfuscate/Decode Files or Information for User Execution. The user may also be required to input a password to open a password protected compressed/encrypted file that was provided by the adversary. Adversaries may also use compressed or archived scripts, such as JavaScript.
Portions of files can also be encoded to hide the plain-text strings that would otherwise help defenders with discovery. Payloads may also be split into separate, seemingly benign files that only reveal malicious functionality when reassembled.
Adversaries may also abuse Command Obfuscation to obscure commands executed from payloads or directly via Command and Scripting Interpreter. Environment variables, aliases, characters, and other platform/language specific semantics can be used to evade signature based detections and application control mechanisms.
Rules on DetectionCode tagged with T1027 or one of its sub-techniques.
| Rule | Type | Risk | Data source | Technique |
|---|---|---|---|---|
| Cisco Secure Firewall - Lumma Stealer Activity | TTP | NULL | Cisco Secure Firewall Threat Defense Intrusion Event | T1027 |
| Cisco Secure Firewall - Repeated Malware Downloads | Anomaly | NULL | Cisco Secure Firewall Threat Defense File Event | T1027 |
| Cisco Secure Firewall - Snort Rule Triggered Across Multiple Hosts | Anomaly | NULL | Cisco Secure Firewall Threat Defense Intrusion Event | T1027 |
| CSC Net On The Fly Compilation | Hunting | NULL | Sysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2 | T1027.004 |
| Curl Execution with Percent Encoded URL | Anomaly | NULL | CrowdStrike ProcessRollup2, Sysmon EventID 1, Sysmon for Linux EventID 1, Windows Event Log Security 4688 | T1027 |
| Linux Decode Base64 to Shell | TTP | NULL | Sysmon for Linux EventID 1, Cisco Isovalent Process Exec | T1027 |
| Linux Obfuscated Files or Information Base64 Decode | Anomaly | NULL | Sysmon for Linux EventID 1 | T1027 |
| Linux Suspicious GCC Invocation Building Init Shared Object | TTP | NULL | Sysmon for Linux EventID 1 | T1027.004 |
| Malicious PowerShell Process - Encoded Command | Hunting | NULL | Sysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2 | T1027 |
| Powershell Creating Thread Mutex | TTP | NULL | Powershell Script Block Logging 4104 | T1027.005 |
| Powershell Enable SMB1Protocol Feature | TTP | NULL | Powershell Script Block Logging 4104 | T1027.005 |
| Powershell Fileless Script Contains Base64 Encoded Content | TTP | NULL | Powershell Script Block Logging 4104 | T1027 |
| PowerShell WebRequest Using Memory Stream | TTP | NULL | Powershell Script Block Logging 4104 | T1027.011 |
| Wermgr Process Create Executable File | TTP | NULL | Sysmon EventID 11 | T1027 |
| Windows Command Obfuscation with Environment Variable Substrings | Anomaly | NULL | Sysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2 | T1027.010 |
| Windows Njrat Fileless Storage via Registry | TTP | NULL | Sysmon EventID 13 | T1027.011 |
| Windows Obfuscated Files or Information via RAR SFX | Anomaly | NULL | Sysmon EventID 11 | T1027.013 |
| Windows PowerShell Process Implementing Manual Base64 Decoder | Anomaly | NULL | Sysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2 | T1027.010 |
| Windows Registry Payload Injection | TTP | NULL | Sysmon EventID 13 | T1027.011 |
| Windows Snake Malware File Modification Crmlog | TTP | NULL | Sysmon EventID 11 | T1027 |
| Windows TinyCC Shellcode Execution | TTP | NULL | Sysmon EventID 1, Windows Event Log Security 4688 | T1027 |
| ID | Name | Examples |
|---|---|---|
| T1027.001 | Binary Padding | 30 |
| T1027.002 | Software Packing | 103 |
| T1027.003 | Steganography | 31 |
| T1027.004 | Compile After Delivery | 10 |
| T1027.005 | Indicator Removal from Tools | 18 |
| T1027.006 | HTML Smuggling | 3 |
| T1027.007 | Dynamic API Resolution | 20 |
| T1027.008 | Stripped Payloads | 2 |
| T1027.009 | Embedded Payloads | 24 |
| T1027.010 | Command Obfuscation | 70 |
| T1027.011 | Fileless Storage | 31 |
| T1027.012 | LNK Icon Smuggling | 4 |
| T1027.013 | Encrypted/Encoded File | 248 |
| T1027.014 | Polymorphic Code | 1 |
| T1027.015 | Compression | 35 |
| T1027.016 | Junk Code Insertion | 24 |
| T1027.017 | SVG Smuggling | 0 |
| T1027.018 | Invisible Unicode | 1 |
| Used by | Procedure example |
|---|---|
| GroupAPT-C-36 | APT-C-36 has used ConfuserEx to obfuscate its variant of Imminent Monitor, compressed payloads and RAT packages, and password protected encrypted email attachments to avoid detection. APT-C-36 has also compressed initial droppers into ZIP, LHA and UUE formats. |
| GroupAPT3 | APT3 obfuscates files or information to help evade defensive measures. |
| GroupAPT37 | APT37 obfuscates strings and payloads. |
| GroupAPT41 | APT41 used VMProtected binaries in multiple intrusions. |
| GroupBackdoorDiplomacy | BackdoorDiplomacy has obfuscated tools and malware it uses with VMProtect. |
| GroupBlackOasis | BlackOasis's first stage shellcode contains a NOP sled with alternative instructions that was likely designed to bypass antivirus tools. |
| GroupEarth Lusca | Earth Lusca used Base64 to encode strings. |
| GroupGALLIUM | GALLIUM used a modified version of HTRAN in which they obfuscated strings such as debug messages in an apparent attempt to evade detection. |
| Used by | Procedure example |
|---|---|
| MalwareAction RAT | Action RAT's commands, strings, and domains can be Base64 encoded within the payload. |
| MalwareADVSTORESHELL | Most of the strings in ADVSTORESHELL are encrypted with an XOR-based algorithm; some strings are also encrypted with 3DES and reversed. API function names are also reversed, presumably to avoid detection in memory. |
| MalwareAgent Tesla | Agent Tesla has had its code obfuscated in an apparent attempt to make analysis difficult. Agent Tesla has used the Rijndael symmetric encryption algorithm to encrypt strings. |
| MalwareAmadey | Amadey has obfuscated strings such as antivirus vendor names, domains, files, and others. |
| MalwareAnchor | Anchor has obfuscated code with stack strings and string encryption. |
| MalwareANELLDR | ANELLDR code implements anti-analysis techniques including control flow flattening and Mixed Boolean Arithmetic (MBA). |
| MalwareAppleJeus | AppleJeus has XOR-encrypted collected system information prior to sending to a C2. AppleJeus has also used the open source ADVObfuscation library for its components. |
| MalwareAppleSeed | AppleSeed has the ability to Base64 encode its payload and custom encrypt API calls. |
View all 138 software examples
| Used by | Procedure example |
|---|---|
| Campaign2016 Ukraine Electric Power Attack | During the 2016 Ukraine Electric Power Attack, Sandworm Team used heavily obfuscated code with Industroyer in its Windows Notepad backdoor. |
| Campaign3CX Supply Chain Attack | During the 3CX Supply Chain Attack, AppleJeus payloads use AES-256 GCM cipher to encrypt data to include ICONICSTEALER and VEILEDSIGNAL. |
| CampaignC0015 | During C0015, the threat actors used Base64-encoded strings. |
| CampaignC0017 | During C0017, APT41 broke malicious binaries, including DEADEYE and KEYPLUG, into multiple sections on disk to evade detection. |
Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.