Post

COFF Mixing - Hiding in Plain Sight

COFF mixing is an evasion technique that combines malicious capabilities (COFF/BOF payloads) with benign code at link-time to create legitimate-looking Windows PE executables. Unlike memory-injected content, which generates indicators of compromise (unbacked RX memory, call stack anomalies, memory allocation patterns), COFF-mixed payloads reside in image-backed memory with normal call stacks and symbol tables. The technique uses specification files and the cpl utility to merge capability objects into PE-ready COFF files with proper stack unwinding (.xdata/.pdata sections), then employs symbol stripping and code shuffling (+disco) to obfuscate payload execution within benign functions. This approach trades flexibility for reduced forensic artifacts and improved evasion against EDR/memory analysis.

Read original article

This post is licensed under CC BY 4.0 by the author.