Advanced Threat Analysis: Unpacking the Latest Deployment of the Raccoon Stealer Malware

Mike Torres — Incident Response Specialist

Key Takeaways

  • The Raccoon Stealer malware demonstrates sophisticated delivery methods, typically leveraging credential phishing.
  • Evidence of extensive obfuscation tactics was observed, aiming to evade detection by traditional security measures.
  • The actor utilized unique command and control infrastructure with the capacity to exfiltrate sensitive data effectively.

Executive Summary

During our investigation into the Raccoon Stealer malware, we identified a well-coordinated attack chain that begins with initial access facilitated by phishing campaigns. The actor targets credentials and sensitive information using a combination of social engineering and sophisticated malware deployment methods.

Our analysis revealed that the actor employs a multi-stage payload delivery mechanism, leveraging malicious attachments that are delivered via email. The embedment of the payload is designed to create a stealthy execution environment while the malware beacon continuously communicates with command and control (C2) servers, indicating an active data exfiltration process.

Initial Access

The entry point of the attack leveraged spear-phishing emails containing a malicious attachment disguised as a legitimate document. The emails we examined were crafted to mimic trusted brands, enhancing their chances of successful execution. Upon opening the document, the user is prompted to enable macros, which, when activated, downloads the Raccoon Stealer executable from a designated URL.

The specific file path used for the malware drop was C:\Users\Public\Documents\update.exe, which is a common technique employed by threat actors to disguise malicious executables in accessible locations.

Execution & Persistence

We observed that Raccoon Stealer employs several persistence mechanisms. Our analysis showed that the malware makes modifications to the registry, specifically writing to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run to ensure execution upon user login.

The executable also utilized process hollowing techniques to inject itself into legitimate processes, allowing it to blend with normal system activities, making detection exceedingly difficult for endpoint security solutions.

Command and Control

The command and control communication was established through a series of HTTPS requests to an IP address that was registered mere days before the attack. We identified the domain used for C2 communications as raccoon-data.org, which quickly shifted to new domains as the campaign progressed.

Our investigation revealed that the malware regularly beacons to the C2 server to retrieve further instructions and exfiltrate stolen data. The encoded data payloads were transmitted in small, periodic chunks to avoid detection by network monitoring tools.

Lateral Movement & Discovery

Raccoon Stealer has the capability to discover additional targets within the compromised network. During our analysis, we noted instances where the malware attempted to enumerate network shares and user sessions, leveraging the credentials it captured. Techniques employed here aligned with the T1078 – Valid Accounts technique from the MITRE ATT&CK framework, allowing the actor to increase their foothold.

By utilizing these valid accounts, the malware expanded its reach across the network, aiming to gather more credentials from other users and systems.

Impact & Objectives

The primary objective of the Raccoon Stealer campaign appears to be the exfiltration of sensitive data, particularly login credentials, financial information, and personal identification details. The data collected is often sold on dark web marketplaces, making the impact of these attacks significant for impacted organizations.

During our analysis, some of the stolen data was verified to include credentials from popular web applications and financial platforms, indicating the actor’s intent to monetize the breach effectively.

MITRE ATT&CK Mapping

  • T1566 – Phishing: The attack primarily leveraged phishing emails to gain initial access.
  • T1059 – Command-Line Interface: Malicious commands were executed through script files triggered by macro activation.
  • T1070 – Indicator Removal on Host: The malware implemented various methods to hide its presence and evade detection.
  • T1086 – PowerShell: Executed scripts utilized PowerShell to perform additional tasks post-compromise.

Detection Opportunities

  • Monitor for suspicious email attachments and macros, particularly documents that request macro execution.
  • Implement behavioral detection capabilities for changes made to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run registry key.
  • Analyze outbound traffic for known C2 domain patterns associated with Raccoon Stealer, particularly unusual HTTP/S requests to newly registered domains.

Analyst Notes

This analysis underscores the importance of employing multi-layered security strategies to defend against evolving threats like Raccoon Stealer. By detecting the initial entry vector through email security measures, and implementing strict monitoring of endpoint behaviors, organizations can reduce their risk exposure significantly. Continuous threat hunting activities focusing on known malicious TTPs will also enhance the overall security posture against similar campaigns.

Source: Original Report