A newly discovered remote access Trojan (RAT), which operated undetected for weeks on a compromised system, has been analyzed by security researchers. The malware was found running within a legitimate Windows process, employing sophisticated evasion techniques to complicate recovery and inspection efforts.
In-Memory Only Malware with Corrupted Headers
The RAT was identified operating inside the dllhost.exe process. Notably, its Portable Executable (PE) and DOS headers were intentionally corrupted, making standard analysis methods ineffective. In order to move forward, a complete 33 GB memory dump from the infected machine was utilized.
The analysis team reconstructed the compromised environment and loaded the malware into a debugged PLACEHOLDER200e1ee2e6a5f01a process. Locating the entry point was necessary since traditional header information was compromised, with the entry eventually identified at the memory address PLACEHOLDER0e1921c9880319a4.
API Mapping, Decryption, and Command-and-Control
The malware utilized over 250 Windows APIs distributed across 16 modules, necessitating manual relocation and correction for local execution. Libraries required for execution that were not automatically loaded were manually injected utilizing PLACEHOLDER96eaa572f34598d2 or PLACEHOLDERe9816957122f0386 functions.
Once operational, the malware decrypted its command-and-control (C2) server details, notably revealing the domain PLACEHOLDER08cd39328a89a483 and port PLACEHOLDER150a91f6cc55b84f. It employed the PLACEHOLDER822def65a1fdc98f and PLACEHOLDER7b30cc3d89a94dea methods for encrypting and decrypting data packets before and after TLS transmission. The decrypted payloads disclosed system information, such as "OS: Windows 10 / 64-bit (10.0.19045)".
The encrypted traffic utilized a customized XOR-based algorithm, employing a new randomly generated key for each transmission, thus enhancing its obfuscation.
Features Confirm Advanced RAT Capabilities
The malware demonstrates a range of advanced features:
- Screenshot Capture: The ability to periodically take JPEG images of the victim's screen while logging active window titles.
- Remote Server Mode: It can open a TCP port to receive incoming connections from attackers, managed through multi-threaded socket handling.
- Service Control: Functions to enumerate and control system services using native Windows APIs.
Through dynamic analysis in a monitored environment, the complete functionality of this RAT was confirmed, notwithstanding its stealthy deployment tactics and obfuscation techniques.
To effectively mitigate risks from sophisticated threats like this RAT, organizations are urged to implement targeted security measures. A suggestion includes enhancing the monitoring of legitimate processes to identify unusual behaviors. Tools for memory analysis should be utilized for detecting in-memory malware, while auditing API usage is essential for recognizing suspicious activities.
Additionally, deploying network traffic analysis tools can detect anomalies in outbound connections. Raising user awareness about social engineering tactics remains crucial in preventing initial infections.