Deep Dive into a Recent Phishing Campaign Leveraging Loader Malware for Data Exfiltration

Daniel Osei — SOC Lead & Malware Analyst

Key Takeaways

  • Targeted phishing emails facilitated initial access, leading to the deployment of a sophisticated loader.
  • The loader utilized obfuscated PowerShell scripts for execution, demonstrating advanced evasion tactics.
  • Post-infection, the malware established persistent C2 communication for data exfiltration and lateral movement.

Executive Summary

In our latest investigation, we scrutinized a targeted phishing campaign that delivered a loader malware to corporate networks, ultimately aiming to exfiltrate sensitive data. The actor employed a blend of social engineering and advanced scripting techniques to ensure the implant’s success. The loader showcased innovative persistence mechanisms and utilized Command and Control (C2) infrastructure to maintain long-term access.

Initial Access

Our analysis revealed that the threat actor initiated the attack through carefully crafted phishing emails, mimicking legitimate communications from well-known suppliers. These emails contained embedded links redirecting users to a malicious website hosting a rogue document file. Upon interaction, the victim was prompted to enable macros in Microsoft Word, which significantly contributed to the malware’s successful execution. The document, when executed, utilized a combination of PowerShell commands to drop the loader executable, which we identified as LoaderXYZ.

Execution & Persistence

Once the loader was extracted, it executed an obfuscated PowerShell script, which initiated the payload’s execution. Our investigation particularly noted the use of base64 encoding to inject commands directly into the PowerShell environment, circumventing traditional defenses. The sample we examined created a scheduled task at C:\Windows\System32\Tasks\LoaderXYZ for persistence, ensuring that the loader would execute on each startup, establishing a robust foothold within the environment.

Command and Control

The loader maintained C2 communication through a series of DNS requests to a dynamically generated domain. During our analysis, we identified multiple C2 patterns, including beaconing intervals of approximately every 15 minutes, which matched previous attack signatures reflecting similar APT behaviors. The traffic exhibited characteristics typical of Domain Generation Algorithms (DGA), making detection challenging without proper monitoring of DNS queries.

Lateral Movement & Discovery

With ongoing access, the malware’s capability extended to lateral movement across the network. The actor employed Mimikatz-like techniques for credential dumping, enabling access to additional systems. We observed the use of Remote Desktop Protocol (RDP) connections, which allowed the attacker to pivot seamlessly from the initial compromised host into wider network assets, further enhancing their data collection efforts.

Impact & Objectives

Ultimately, the threat actor’s objectives centered around data exfiltration, targeting files containing sensitive information such as financial records and personally identifiable information (PII). Our investigation uncovered the presence of \C$ shared access attempts, which indicated the actor’s attempt to harvest data across various directories. The use of encrypted archives for transfer suggested a focus on stealth and concealment, evidencing a calculated approach to data theft.

MITRE ATT&CK Mapping

  • T1566 – Phishing: Utilization of phishing emails to induce interaction with malicious content.
  • T1059.001 – PowerShell: Execution of malicious PowerShell scripts to facilitate payload installation.
  • T1021.001 – Remote Services: RDP: Use of RDP for lateral movement within the network.

Detection Opportunities

  • Monitor for unusual PowerShell execution patterns, especially those invoking encoded commands.
  • Implement DNS logging to identify anomalous requests to known malicious domains.
  • Establish alerts for common persistence mechanisms like scheduled tasks that resemble those used by malware.

Analyst Notes

This investigation emphasizes the importance of User Awareness Training to bolster defenses against phishing attempts, as well as the necessity for robust endpoint monitoring solutions capable of detecting and mitigating complex attack patterns. Prioritizing network segmentation and employing rigorous firewall rules can also restrict lateral movement by such actors, thus enhancing overall incident response capabilities.

Source: Original Report