Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 961 Bytes

T1009.md

File metadata and controls

27 lines (18 loc) · 961 Bytes

T1009 - Binary Padding

Some security tools inspect files with static signatures to determine if they are known malicious. Adversaries may add data to files to increase the size beyond what security tools are capable of handling or to change the file hash to avoid hash-based blacklists.

Atomic Tests


Atomic Test #1 - Pad Binary to Change Hash - Linux/macOS dd

Uses dd to add a zero to the binary to change the hash

Supported Platforms: macOS, Linux

Inputs

Name Description Type Default Value
file_to_pad Path of binary to be padded Path /tmp/evil-binary

Run it with sh!

dd if=/dev/zero bs=1 count=1 >> #{file_to_pad}