REMCOS RAT is a commercially available remote access tool that has been weaponized for unauthorized access against enterprise targets. This incident response report examines a live deployment demonstrating sophisticated tactics including TLS-encrypted communication, clipboard monitoring, Windows Registry modifications, and memory injection techniques.
Detection Artifacts
Filesystem indicators:
- Directory: C:\ProgramData
emcos\ - Log file: C:\ProgramData
emcos\logs.dat - Dropper copy: C:\Users\%username%\AppData\Roaming\AppData\AppData.exe
Task Scheduler:
- Scheduled task named "Nano" configured for persistent execution
Registry artifacts:
- HKEY_CURRENT_USER\SOFTWARE\Rmc-* containing license, exepath, and time keys
Network communications:
- C2 domains on ports 1997 and 443
- Process injection targeting csc.exe (C# Compiler)
Malware Composition
The malware employs fileless execution via process injection into legitimate Windows binaries. It dynamically imports APIs using base64-encoded strings, creates suspended processes, and injects shellcode to evade traditional detection.
Second Stage: Injected Behaviour
Post-injection, the malware establishes persistence through scheduled tasks executing every 10 minutes. It monitors clipboard activity, logs data to files, queries running processes, and modifies system registries to ensure automatic execution upon restart.
Command and Control
The RAT communicates with remote servers using TLS encryption. Analysis revealed clipboard harvesting capabilities and systematic data exfiltration to attacker-controlled infrastructure.
Remediation Steps
- Delete persistence mechanisms (scheduled tasks, registry keys)
- Eliminate injected code through process restart
- Remove HKEY_CURRENT_USER\SOFTWARE\Rmc-* registry entries
- Block associated C2 domains at the perimeter firewall
- Reimage affected endpoints where process injection is confirmed
Originally published on cytomate.net
