Step 1: DLL Order Hijacking
A red team developed a custom implant that uses DLL order hijacking, RC4 encryption, phantom DLL hollowing, and Google Apps Script as a proxy to bypass EDR and network restrictions, enabling command and control and post-exploitation actions.
blackarrow.net
Published on blackarrow.net
It is both common and important for the development of a Red Teaming service to obtain information about the technologies and restrictions of the environment where our TTPs are going to be executed. This information mainly implies substantial changes in our modus operandi.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the combination of DLL order hijacking in a signed binary, encryption of the payload with a key from the host process, and abuse of a trusted cloud service for command and control allowed evasion of endpoint and network defences.
Impact
The implant could bypass EDR and network filtering to establish command and control and perform post-exploitation actions without detection.
What the attacker needed
Access to a signed vulnerable binary; ability to place a malicious DLL; outbound access to Google domains; Google Apps Script account
How it was found
- Obtain information about the EDR and network restrictions.
- Develop a custom implant using DLL order hijacking with a signed Toshiba binary.
- Encrypt the implant with RC4 using the binary's TimeDateStamp as key.
- Use phantom DLL hollowing to execute the implant in an RX section.
- Configure Google Apps Script as a proxy to reach the C&C server.
- The implant communicates via HTTPS GET/POST through the proxy to receive jobs and send results.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a red team exercise where attackers simulate breaking into a network. They used a legitimate Windows program that loads a malicious DLL file to run their code, then hid it in memory and used Google's script service to communicate with their server without being blocked.