Detailed Technical Analysis of a Recent Phishing Attack Leveraging Remote Access Trojans

Sarah Chen — Malware Reverse Engineer

Key Takeaways

  • A recent phishing campaign utilized a custom-built Remote Access Trojan (RAT), gaining initial access through credential harvesting.
  • The RAT employed sophisticated Command and Control (C2) techniques, including HTTPS traffic to obscure communication.
  • Lateral movement was achieved through Windows Admin Shares and exploitation of known vulnerabilities in network services.

Executive Summary

Our investigation into a sophisticated phishing campaign revealed a multifaceted attack chain characterized by the use of a custom-built Remote Access Trojan (RAT). The attack targeted various corporate entities, utilizing social engineering to harvest credentials and deliver the malware. This analysis delves into the attack’s phases, from initial access through to lateral movement and impact assessment, highlighting key observations and potential mitigations.

Initial Access

The initial phase of the attack was executed through a phishing email campaign, which we observed to leverage social engineering tactics effectively. The malicious email contained a link leading to a credential-harvesting site designed to resemble a legitimate corporate login page. Upon entering their credentials, victims unknowingly transmitted their information directly to the actor’s command infrastructure, enabling seamless access to the compromised accounts.

Execution & Persistence

Once initial access was obtained, the actor deployed their custom RAT, which we identified as GhostRAT. The sample we examined, hash: abc123def456ghi789jkl, exhibited characteristic behaviors including file system enumeration and the ability to capture keystrokes. Persistence mechanisms were employed through modifications to the registry, particularly under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, where the RAT was set to execute on user login as a method of maintaining access across system reboots.

Command and Control

Our analysis revealed that the GhostRAT utilized a robust C2 infrastructure, often employing HTTPS communication to obfuscate traffic patterns. The C2 server was identified as hosting multiple domains, with dynamic DNS capabilities, facilitating the actor’s ability to evade detection. A deep packet inspection indicated cyclic communication patterns indicative of periodic beaconing to the C2, approximately every 10 minutes, utilizing a blend of legitimate service requests to disguise malicious activity.

Lateral Movement & Discovery

During the investigation of lateral movement methods, we noted that the attacker exploited Windows Admin Shares to traverse the network. Through the use of valid credentials obtained during the initial access phase, the actor leveraged T1075 – Pass the Hash techniques to authenticate on target systems. The malware subsequently executed scripts that queried network shares and gathered user credentials, significantly expanding the attacker’s foothold within the network.

Impact & Objectives

The primary objective of the attack appeared to be data exfiltration and reconnaissance. Crucial data such as payment information, intellectual property, and confidential emails were targeted. The incident response team reported unusual data spiking to external servers, validating our hypothesis that the actor aimed for significant theft of sensitive information. Furthermore, there were indications of potential disruptiveness, with the actor deploying components designed to propagate further within the organization’s infrastructure.

MITRE ATT&CK Mapping

  • T1566 – Phishing: Use of phishing emails to harvest credentials.
  • T1203 – Exploitation for Client Execution: Leveraging known vulnerabilities to deploy the RAT.
  • T1075 – Pass the Hash: Utilizing captured credential hashes to facilitate lateral movement.
  • T1041 – Exfiltration Over Command and Control Channel: Exfiltrating data using the established C2 infrastructure.

Detection Opportunities

  • Monitor for unusual registry changes, particularly in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run key.
  • Implement behavioral detection for abnormal network traffic, specifically outgoing HTTPS requests with unusual patterns.
  • Employ endpoint detection solutions to identify known RAT signatures and suspicious file executions.

Analyst Notes

The investigation underscores the importance of a multi-layered security posture, particularly against phishing attempts that serve as precursors to more significant threat activities. Organizations are encouraged to adopt user training programs focused on recognizing phishing attempts and to implement stringent endpoint protection measures. Lastly, continuous monitoring and review of access logs are critical in detecting and responding to potential lateral movement early in the attack lifecycle.

Source: Original Report