Alex Morgan — Threat Intelligence Analyst
Key Takeaways
- A custom-built dropper is utilized to deliver the payload after initial access via phishing.
- The malware establishes a persistent C2 communication channel, enabling remote command execution.
- Lateral movement tactics employed include the exploitation of Windows Management Instrumentation (WMI) to navigate the network.
Executive Summary
During our investigation into a recent sophisticated phishing attack, we observed a multi-stage infection process that leveraged a custom malware dropper to establish a foothold in the victim’s environment. The attack showcased adept use of social engineering to trick users into executing the payload, followed by extensive exfiltration tactics that targeted sensitive organizational data. This report delineates the attack chain from initial access through to command and control operations, culminating in the potential impact on affected organizations.
Initial Access
The initial access vector in this incident was rooted in a well-crafted phishing email that masqueraded as a legitimate document from a trusted vendor. Our analysis revealed that the email contained a malicious attachment disguised as a PDF file. When a recipient opened the file, it prompted them to enable macros to view the content. This action triggered the execution of a Visual Basic for Applications (VBA) script, which was responsible for downloading and executing the custom dropper. The dropper itself was obfuscated and specifically designed to evade detection by leading antivirus engines.
Execution & Persistence
The dropper executed a PowerShell command that downloaded a secondary payload from a remote server. According to our findings, this payload was a robust variant of the AgentTesla remote access Trojan (RAT), typically used for keylogging and screen capturing. Further analysis revealed that the malware was configured for persistence by creating a new registry entry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ named AdobeUpdate. This technique ensured the malware would automatically execute upon user logon, providing the threat actor continuous access to the victim’s environment.
Command and Control
As part of our deeper investigation into the command and control (C2) infrastructure, we identified that the malware established an outbound connection to a dynamic DNS service. This allowed the actor to frequently change their C2 domain, complicating detection efforts. Interestingly, the communication pattern followed a standard C2 beaconing method, with intervals of roughly 30 minutes to minimize suspicion. The payload transmitted collected data in encrypted form, utilizing Base64 encoding to obscure the content being exfiltrated from the infected machine.
Lateral Movement & Discovery
Post-exploitation activities revealed that the actor employed multiple techniques to move laterally across the network. The most prominent was the exploitation of Windows Management Instrumentation (WMI), which enabled the malware to issue remote commands on other machines without requiring additional credentials. This lateral movement allowed the adversary to enumerate network shares and access additional systems, further facilitating data theft. Additionally, we detected attempts to leverage PsExec and Windows Admin Shares for deploying additional payloads within the network.
Impact & Objectives
The primary objective of the threat actor appeared to be data exfiltration, specifically targeting sensitive documents and credentials stored within the compromised machines. During our investigation, we uncovered evidence of the malware performing extensive file operations aimed at harvesting documents from locations such as C:\Users\ and C:\Users\. The actor likely intended to use this data for further exploitation, possibly for financial gain or corporate espionage.
MITRE ATT&CK Mapping
- T1566 – Phishing: The use of fraudulent emails to deliver the malicious payload.
- T1059.001 – PowerShell: Execution of PowerShell commands to download and run additional malware.
- T1071.001 – Application Layer Protocol: Web Protocols: Use of HTTP/S for C2 communications.
- T1021.001 – Remote Services: Remote Administration Tools: Lateral movement using WMI and PsExec.
Detection Opportunities
- Implement detection rules for suspicious email attachments containing VBA scripts.
- Monitor registry changes on user machines, especially under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\for unknown entries. - Utilize network traffic analysis tools to identify anomalous outbound connections to dynamic DNS services related to known malicious actors.
Analyst Notes
This incident underscores the need for organizations to bolster their user awareness training regarding phishing tactics. Additionally, implementing robust endpoint protections and regular monitoring of system changes can significantly mitigate initial access vectors. Continuous threat hunting activities focusing on lateral movement techniques can help identify ongoing compromises before significant data exfiltration occurs. Given the evolving nature of these custom threats, staying informed about new malware strains and actor TTPs is crucial for effective defense.
Source: Original Report