r/Malware • u/inkman97 • 1h ago
New DarkCore RAT Static Analysis
I did a fully static analysis of a sample of DarkCore, a newly emerged RAT (first advertised on forums in August, infections seen since late October according to BlackFog). This build is v3.8.0.
The chain has five stages:
- VBS: hundreds of junk lines; the real blob is split across four functions, then base64 + XOR decoded into a second VBS.
- Stage 2 VBS: reads its own original file and rebuilds a payload hidden in 1,900 comment lines (base93 + a custom Feistel cipher), producing a PowerShell script.
- PowerShell: decrypts a .NET loader and the final payload, and loads the DLL in memory, finding AppDomain.Load(byte[]) by its signature via reflection instead of calling it by name.
- .NET loader (Crypto Obfuscator, DES-encrypted string tables): process hollowing into RegSvcs.exe.
- Native x64 RAT.
Some highlights from the RAT:
- The config is XOR-encrypted in a custom .data2 section; I recovered the C2 (162.55.4[.]179:4869) and a 32-byte pre-shared key.
- The C2 channel is surprisingly solid: X25519 ephemeral handshake, BLAKE2s KDF mixing in the PSK, ChaCha20-Poly1305 packets, basically WireGuard’s crypto stack. Captured traffic can’t be decrypted even with the config.
- Plugins arrive as AES-GCM-encrypted PE modules.
- Strings point to HVNC, remote desktop, keylogging, DPAPI credential theft and ETW/AMSI tampering. HVNC lets the operator act inside the victim’s already-authenticated browser sessions, which defeats a lot of anti-fraud checks.
- Even though there isn't a geolocalization about the development of this malware, there’s a CIS geofence (Russia, Belarus, Kazakhstan, Uzbekistan, checked via GeoID, locale, time zone and keyboard layout) that makes the bot quit silently before contacting the C2. This can be an hint that the first development was made in Russia. It was disabled in this build.
Full analysis can be found here: https://inkman97.github.io/darkcore-analysis/
