Has used binary padding to obfuscate payloads.1
Binary Padding T1027.001
- Tactic
- Stealth
- Platforms
- Linux, macOS, Windows
- Version
- 2.0
- Created
- 05 February 2020
- Last modified
- 12 May 2026
- Contributor
- Martin Jirkal, ESET
Adversaries may use binary padding to add junk data and change the on-disk representation of malware. This can be done without affecting the functionality or behavior of a binary, but can increase the size of the binary beyond what some security tools are capable of handling due to file size limitations.
Binary Padding MITRE reference T1027.001
8 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Performed padding with null bytes before calculating its hash.1
Has performed padding of PowerShell command line code with over 100 spaces.1
Has inserted garbage characters into code, presumably to avoid anti-virus detection.1
Downloader code has included "0" characters at the end of the file to inflate the file size in a likely attempt to evade anti-virus detection.12
Apparently altered NDiskMonitor samples by adding four bytes of random letters in a likely attempt to change the file hashes.1
All 8 groups for this technique · 6 newest in this preview
22 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can add several hundred thousand kilobytes of null padding to payloads before saving onto the file system.1
Can use junk code for obfuscation.1
LightSpy's configuration file is appended to the end of the binary. For example, the last 0x1d0 bytes of one sample is an AES encrypted configuration file with a static key of 3e2717e8b3873b29.1
Has been obfuscated with a 129 byte sequence of junk data prepended to the file.1
The CHIMNEYSWEEP installer has been padded with null bytes to inflate its size.1
All 22 software entries for this technique · 6 newest in this preview
Offense vs defense T1027.001
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Binary Padding detection strategy DET0553
MITRE names one behaviour worth catching for this technique and breaks it into 3 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection Strategy for Obfuscated Files or Information: Binary Padding
AN1528 · Windows
Detects the creation or execution of padded binary files (e.g., large size but minimal legitimate content) followed by process execution or lateral movement from the host.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| File CreationDC0039 | WinEventLog:Sysmon | EventCode=11 |
| File AccessDC0055 | WinEventLog:Security | EventCode=4663, 4670, 4656 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| FileSizeThresholdMB | Threshold size in MB to determine suspicious padding |
| TimeWindow | Correlation time window between file creation and execution |
| UserContext | Scope the detection to suspicious or non-standard user accounts |
AN1529 · Linux
Detects abnormal creation of binary files with significant size that are subsequently executed or accessed by non-standard users.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | auditd:SYSCALL | execve |
| File CreationDC0039 | linux:osquery | file_events |
| File AccessDC0055 | auditd:SYSCALL | open |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| FileSizeThresholdMB | Defines how large a file must be to consider it padded |
| UserContext | Target abnormal user behavior outside of expected automation |
| TimeWindow | Time window for correlating file creation and execution |
AN1530 · macOS
Monitors for anomalous binary files written to disk with padded size and subsequent execution by user or service context.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | macos:unifiedlog | process:spawn |
| File CreationDC0039 | fs:fsusage | file write |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| FileSizeThresholdMB | Padded binary threshold for file size |
| TimeWindow | Detection correlation window for execution after file creation |
| UserContext | Filters for specific users or groups such as admin or service accounts |
Tests from Atomic Red Team (MIT licence) · technique definition