T1027.016 Junk Code Insertion
Stealthon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0322 Detection Strategy for Junk Code Obfuscation with Suspicious Execution Patterns
AN0913 Windows
Detects the presence of executables with high NOP padding, unusually large binary size for their function, and follow-on execution or memory injection from such files, especially when originating from temp or user-space paths.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=10 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=1 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN0914 Linux
Detects ELF binaries written to disk that demonstrate anomalous file size or entropy, quickly followed by execution or memory region writes into remote processes (e.g., using ptrace).
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLwrite | Not mapped to Sentinel yet. |
auditd:SYSCALLexecve | Not mapped to Sentinel yet. |
auditd:SYSCALLSYSCALL ptrace/mprotect | Not mapped to Sentinel yet. |
AN0915 macOS
Identifies Mach-O binaries dropped into temporary directories with abnormally high binary size or padding patterns, followed by privilege escalation, `exec`, or memory mapping of other processes.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_EXEC | Not mapped to Sentinel yet. |
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_MMAP | Not mapped to Sentinel yet. |
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_OPEN | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.