T1027.009 Embedded Payloads
Adversaries may embed payloads within other files to conceal malicious content from defenses. Otherwise seemingly benign files (such as scripts and executables) may be abused to carry and obfuscate malicious payloads and content. In some cases, embedded payloads may also enable adversaries to Subvert Trust Controls by not impacting execution controls such as digital signatures and notarization tickets.7
Adversaries may embed payloads in various file formats to hide payloads.5 This is similar to Steganography, though does not involve weaving malicious content into specific bytes and patterns related to legitimate digital media formats.1
For example, adversaries have been observed embedding payloads within or as an overlay of an otherwise benign binary.4 Adversaries have also been observed nesting payloads (such as executables and run-only scripts) inside a file of the same format.6
Embedded content may also be used as Process Injection payloads used to infect benign system processes.3 These embedded then injected payloads may be used as part of the modules of malware designed to provide specific features such as encrypting C2 communications in support of an orchestrator module. For example, an embedded module may be injected into default browsers, allowing adversaries to then communicate via the network.2
| Item | Value |
|---|---|
| ID | T1027.009 |
| Sub-techniques | T1027.001, T1027.002, T1027.003, T1027.004, T1027.005, T1027.006, T1027.007, T1027.008, T1027.009, T1027.010, T1027.011, T1027.012, T1027.013, T1027.014, T1027.015, T1027.016, T1027.017 |
| Tactics | TA0005 |
| Platforms | Linux, Windows, macOS |
| Version | 1.2 |
| Created | 30 September 2022 |
| Last Modified | 15 April 2025 |
Procedure Examples
| ID | Name | Description |
|---|---|---|
| C0057 | 3CX Supply Chain Attack | During the 3CX Supply Chain Attack, AppleJeus uses embedded .dll as apart of a chained delivery mechanism to invoke the COM class factory.31 |
| S1081 | BADHATCH | BADHATCH has an embedded second stage DLL payload within the first stage of the malware.11 |
| C0021 | C0021 | For C0021, the threat actors embedded a base64-encoded payload within a LNK file.32 |
| S1149 | CHIMNEYSWEEP | CHIMNEYSWEEP can extract RC4 encrypted embedded payloads for privilege escalation.12 |
| S0126 | ComRAT | ComRAT has embedded a XOR encrypted communications module inside the orchestrator module.2423 |
| S1052 | DEADEYE | |
| The DEADEYE.EMBED variant of DEADEYE has the ability to embed payloads inside of a compiled binary.10 | ||
| S1134 | DEADWOOD | DEADWOOD contains an embedded, AES-encrypted payload labeled METADATA that provides configuration information for follow-on execution.13 |
| S0567 | Dtrack | Dtrack has used a dropper that embeds an encrypted payload as extra data.16 |
| S1158 | DUSTPAN | DUSTPAN decrypts and executes an embedded payload.2526 |
| S1159 | DUSTTRAP | DUSTTRAP contains additional embedded DLLs and configuration files that are loaded into memory during execution.25 |
| S0367 | Emotet | Emotet has dropped an embedded executable at %Temp%\setup.exe.14 Additionally, Emotet may embed entire code into other files.15 |
| S0483 | IcedID | IcedID has embedded malicious functionality in a legitimate DLL file.17 |
| S0231 | Invoke-PSImage | Invoke-PSImage can be used to embed payload data within a new image file.1 |
| G0032 | Lazarus Group | Lazarus Group has distributed malicious payloads embedded in PNG files.28 |
| S1048 | macOS.OSAMiner | macOS.OSAMiner has embedded Stripped Payloads within another run-only Stripped Payloads.6 |
| S1137 | Moneybird | Moneybird contains a configuration blob embedded in the malware itself.9 |
| G1036 | Moonstone Sleet | Moonstone Sleet embedded payloads in trojanized software for follow-on execution.30 |
| S1135 | MultiLayer Wiper | MultiLayer Wiper contains two binaries in its resources section, MultiList and MultiWip. MultiLayer Wiper drops and executes each of these items when run, then deletes them after execution.19 |
| S0457 | Netwalker | Netwalker’s DLL has been embedded within the PowerShell script in hex format.18 |
| S1145 | Pikabot | Pikabot further decrypts information embedded via steganography using AES-CBC with the same 32 bit key as initial XOR operations combined with the first 16 bytes of the encrypted data as an initialization vector.21 Other Pikabot variants include encrypted, chunked sections of the stage 2 payload in the initial loader .text section before decrypting and assembling these during execution.22 |
| S0649 | SMOKEDHAM | The SMOKEDHAM source code is embedded in the dropper as an encrypted string.20 |
| G1037 | TA577 | TA577 has used LNK files to execute embedded DLLs.29 |
| S0022 | Uroburos | The Uroburos Queue file contains embedded executable files along with key material, communication channels, and modes of operation.27 |
Mitigations
| ID | Mitigation | Description |
|---|---|---|
| M1049 | Antivirus/Antimalware | Anti-virus can be used to automatically detect and quarantine suspicious files. |
| M1040 | Behavior Prevention on Endpoint | On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated scripts.8 |
References
-
Barrett Adams . (n.d.). Invoke-PSImage . Retrieved September 30, 2022. ↩↩
-
CISA. (2020, October 29). Malware Analysis Report (AR20-303A) MAR-10310246-2.v1 – PowerShell Script: ComRAT. Retrieved September 30, 2022. ↩
-
Karen Victor. (2020, May 18). Reflective Loading Runs Netwalker Fileless Ransomware. Retrieved September 30, 2022. ↩
-
KONSTANTIN ZYKOV. (2019, September 23). Hello! My name is Dtrack. Retrieved September 30, 2022. ↩
-
Microsoft. (2021, April 6). 2.5 ExtraData. Retrieved September 30, 2022. ↩
-
Phil Stokes. (2021, January 11). FADE DEAD | Adventures in Reversing Malicious Run-Only AppleScripts. Retrieved September 29, 2022. ↩↩
-
Phil Stokes. (2021, January 11). FADE DEAD | Adventures in Reversing Malicious Run-Only AppleScripts. Retrieved September 30, 2022. ↩
-
Microsoft. (2021, July 2). Use attack surface reduction rules to prevent malware infection. Retrieved June 24, 2021. ↩
-
Marc Salinas Fernandez & Jiri Vinopal. (2023, May 23). AGRIUS DEPLOYS MONEYBIRD IN TARGETED ATTACKS AGAINST ISRAELI ORGANIZATIONS. Retrieved May 21, 2024. ↩
-
Rufus Brown, Van Ta, Douglas Bienstock, Geoff Ackerman, John Wolfram. (2022, March 8). Does This Look Infected? A Summary of APT41 Targeting U.S. State Governments. Retrieved July 8, 2022. ↩
-
Savelesky, K., et al. (2019, July 23). ABADBABE 8BADFOOD: Discovering BADHATCH and a Detailed Look at FIN8’s Tooling. Retrieved September 8, 2021. ↩
-
Jenkins, L. at al. (2022, August 4). ROADSWEEP Ransomware - Likely Iranian Threat Actor Conducts Politically Motivated Disruptive Activity Against Albanian Government Organizations. Retrieved August 6, 2024. ↩
-
Amitai Ben & Shushan Ehrlich. (2021, May). From Wiper to Ransomware: The Evolution of Agrius. Retrieved May 21, 2024. ↩
-
Binary Defense. (n.d.). Emotet Evolves With new Wi-Fi Spreader. Retrieved September 8, 2023. ↩
-
Office of Information Security, Health Sector Cybersecurity Coordination Center. (2023, November 16). Emotet Malware: The Enduring and Persistent Threat to the Health Sector. Retrieved June 19, 2024. ↩
-
Konstantin Zykov. (2019, September 23). Hello! My name is Dtrack. Retrieved January 20, 2021. ↩
-
Kenefick , I. (2022, December 23). IcedID Botnet Distributors Abuse Google PPC to Distribute Malware. Retrieved July 24, 2024. ↩
-
Victor, K.. (2020, May 18). Netwalker Fileless Ransomware Injected via Reflective Loading . Retrieved May 26, 2020. ↩
-
Or Chechik, Tom Fakterman, Daniel Frank & Assaf Dahan. (2023, November 6). Agonizing Serpens (Aka Agrius) Targeting the Israeli Higher Education and Tech Sectors. Retrieved May 22, 2024. ↩
-
FireEye. (2021, June 16). Smoking Out a DARKSIDE Affiliate’s Supply Chain Software Compromise. Retrieved September 22, 2021. ↩
-
Brett Stone-Gross & Nikolaos Pantazopoulos. (2023, May 24). Technical Analysis of Pikabot. Retrieved July 12, 2024. ↩
-
Daniel Stepanic & Salim Bitam. (2024, February 23). PIKABOT, I choose you!. Retrieved July 12, 2024. ↩
-
CISA. (2020, October 29). Malware Analysis Report (AR20-303A). Retrieved December 9, 2020. ↩
-
Faou, M. (2020, May). From Agent.btz to ComRAT v4: A ten-year journey. Retrieved June 15, 2020. ↩
-
Mike Stokkel et al. (2024, July 18). APT41 Has Arisen From the DUST. Retrieved September 16, 2024. ↩↩
-
Rufus Brown, Van Ta, Douglas Bienstock, Geoff Ackerman & John Wolfram. (2022, March 8). Does This Look Infected? A Summary of APT41 Targeting U.S. State Governments. Retrieved September 16, 2024. ↩
-
FBI et al. (2023, May 9). Hunting Russian Intelligence “Snake” Malware. Retrieved June 8, 2023. ↩
-
Microsoft Threat Intelligence. (2023, November 22). Diamond Sleet supply chain compromise distributes a modified CyberLink installer. Retrieved March 28, 2025. ↩
-
Proofpoint Threat Research and Team Cymru S2 Threat Research. (2024, April 4). Latrodectus: This Spider Bytes Like Ice . Retrieved May 31, 2024. ↩
-
Microsoft Threat Intelligence. (2024, May 28). Moonstone Sleet emerges as new North Korean threat actor with new bag of tricks. Retrieved August 26, 2024. ↩
-
Robert Falcone, Josh Grunzweig. (2023, March 30). Threat Brief: 3CXDesktopApp Supply Chain Attack. Retrieved September 15, 2025. ↩
-
Microsoft Defender Research Team. (2018, December 3). Analysis of cyberattack on U.S. think tanks, non-profits, public sector by unidentified attackers. Retrieved April 15, 2019. ↩