Obfuscated Files or Information: Junk Code Insertion
- ID
- T1027.016
- Tactics
- TA0005 Stealth
- Sub-technique of
- T1027 Obfuscated Files or Information
- Platforms
- Linux, macOS, Windows
- Data sources
- File Creation, Process Access, Process Creation, Process Modification
- Source
- attack.mitre.org
- MITRE last modified
- 12 May 2026
Adversaries may use junk code / dead code to obfuscate a malware’s functionality. Junk code is code that either does not execute, or if it does execute, does not change the functionality of the code. Junk code makes analysis more difficult and time-consuming, as the analyst steps through non-functional code instead of analyzing the main code. It also may hinder detections that rely on static code analysis due to the use of benign functionality, especially when combined with Compression or Software Packing.[1][2]
No-Operation (NOP) instructions are an example of dead code commonly used in x86 assembly language. They are commonly used as the 0x90 opcode. When NOPs are added to malware, the disassembler may show the NOP instructions, leading to the analyst needing to step through them.[1]
The use of junk / dead code insertion is distinct from Binary Padding because the purpose is to obfuscate the functionality of the code, rather than simply to change the malware’s signature.
Detection
- DET0322 Detection Strategy for Junk Code Obfuscation with Suspicious Execution Patterns
Data components: File Creation, Process Access, Process Creation, Process Modification
Mitigations (1)
- M1049 Antivirus/Antimalware
Anti-virus can be used to automatically detect and quarantine suspicious files. Behavior-based detections, rather than reliance on static code analysis, may help to identify malicious files that rely heavily on junk code.[1]
Groups (7)
Software (20)
- S0117 XTunnel
- S0137 CORESHELL
- S0182 FinFisher
- S0223 POWERSTATS
- S0230 ZeroT
- S0248 yty
- S0370 SamSam
- S0449 Maze
- S0453 Pony
- S0477 Goopy
- S0512 FatDuke
- S0612 WastedLocker
- S0666 Gelsemium
- S1183 StrelaStealer
- S9019 PureCrypter
- S9020 LODEINFO
- S9025 NOOPLDR
- S9027 ANELLDR
- S9053 MiniJunk
- S9062 MiniBrowse
