Analyzing a Multi-Phase Attack: Exploiting Access via Phishing and Payload Delivery

Sarah Chen — Malware Reverse Engineer

Key Takeaways

  • Attackers leveraged a phishing campaign to gain initial access to corporate networks.
  • The malware employed sophisticated evasion techniques to bypass security controls.
  • Command and control communications were established via encrypted channels, complicating detection efforts.

Executive Summary

This analysis provides a detailed investigation into a multi-phase cyber attack observed in a corporate environment. This attack exemplifies a well-orchestrated blend of social engineering, payload delivery, and post-exploitation tactics. Through a series of coordinated actions, the threat actor was able to successfully breach the network defenses and establish a foothold, employing a variety of tactics, techniques, and procedures (TTPs) as outlined in the MITRE ATT&CK framework.

Initial Access

The initial vector for this attack was determined to be a phishing email that masqueraded as an invoice request. We observed that the email contained a malicious link that redirected users to a fake credentials page. Upon the victim entering their credentials, the actor captured them and subsequently delivered a malware dropper to the victim’s machine. The dropper file was identified as FakeDoc.exe, a simple executable residing in the user’s %TEMP% directory. This dropper contained additional payloads that would be executed once the initial access was verified.

Execution & Persistence

Our analysis revealed that once the dropper executed successfully, it extracted and executed the payload, which was a variant of the Remcos RAT. The RAT was particularly capable of establishing persistence through the use of the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run, where it added a start-up entry under the name `UpdaterService`. This allowed the malware to execute on system boot, ensuring that the threat actor maintained access even after the user logged off or rebooted the machine.

Command and Control

During the investigation, we discovered that the compromised machine began communicating with a command and control (C2) server hosted on a dynamically assigned domain, suggesting the use of domain generation algorithms (DGA). The traffic between the infected host and the C2 was encrypted using TLS, which significantly hindered our ability to inspect the payloads being sent and received. This use of encryption indicates a sophisticated level of operational security on behalf of the actor.

Lateral Movement & Discovery

We observed lateral movement attempts where the actor leveraged Windows Management Instrumentation (WMI) to propagate the malware across the network. Utilizing the T1069 technique, the threat actor executed queries to identify other machines on the network and attempted to execute commands remotely. The initial compromised account was used to harvest credentials of others in Active Directory, thus allowing the actor to access additional systems without triggering multi-factor authentication (MFA).

Impact & Objectives

The primary objective of the attack appeared to be data exfiltration, as we noted the establishment of additional C2 channels that were specifically tasked with gathering sensitive information. The data exfiltration process was obfuscated through split transfers where data was uploaded in small, encrypted packets to avoid detection. The actor also displayed interest in financial records, leveraging the organization’s accounting software and databases, all while attempting to remain undetected by using timing-based tactics to avoid generating alerts.

MITRE ATT&CK Mapping

  • T1566 – Phishing: The use of deceptive emails to gain credentials for initial access.
  • T1059 – Command and Scripting Interpreter: Use of PowerShell for executing commands remotely.
  • T1071 – Application Layer Protocol: The communication via HTTP/S to avoid detection.

Detection Opportunities

  • Monitor email gateways for indicators of phishing attempts, specifically URLs that are similar to legitimate domains.
  • Track processes spawned in the %TEMP% directory for unknown executables that exhibit unusual behavior.
  • Implement logging and monitoring of registry changes to alert on new entries in HKCU\Software\Microsoft\Windows\CurrentVersion\Run.

Analyst Notes

This case serves as a reminder of how effectively threat actors can exploit social engineering vulnerabilities within organizations. Continuous security awareness training and robust technical defenses, such as anti-phishing solutions, can significantly enhance an organization’s posture against such attacks. Engaging in proactive threat hunting and implementing the detection opportunities outlined above will also aid in identifying and neutralizing similar threats in the future.

Source: Original Report