BOF Cocktails in Cobalt Strike
Rastamouse documents how to use the new BEACON_INLINE_EXECUTE hook introduced in Cobalt Strike 4.13 to instrument and modify BOFs (Beacon Object Files) before execution. The approach leverages Crystal Palace to transform BOFs through a specification file, enabling operators to inject hooks into system calls (e.g., ADVAPI32$OpenProcessToken) without modifying the original agent/loader. This allows merging evasion tradecraft directly into postex BOFs, improving their ability to evade detection by instrumenting API calls and monitoring activity in real-time before Beacon receives the modified code.
This post is licensed under CC BY 4.0 by the author.