MacroPack-Generated Office Documents Deliver Havoc, Brute Ratel and PhantomCore Payloads

· Original article ↗

Summary

Cisco Talos analyzed MacroPack-generated Office documents that use obfuscated VBA and varied lures to deliver Havoc, Brute Ratel and PhantomCore payloads. Talos could not attribute the activity to a single actor and says some samples may be red-team exercises.

Key points

  • Talos found related malicious Office documents uploaded to VirusTotal from May to July 2024; samples came from several countries and used different lures.
  • The documents use obfuscated, multi-stage VBA macros generated by MacroPack, a framework intended for red-team use that Talos assesses is also being used by malicious actors.
  • Observed final payloads include Havoc and Brute Ratel implants, as well as a PhantomCore RAT variant.
  • Some samples used benign VBA routines and realistic-looking variable names; others used sandbox checks or attempted to download and execute additional payloads.
  • Talos could not attribute the activity to one actor, and says some samples were confirmed red-team activity; it reported no affected Talos customers.
  • Talos published indicators of compromise and describes Cisco product coverage and Snort SID 63942 for detection and blocking.

Article Details

Attack Vectors
  • Malicious Microsoft Office documents use MacroPack-generated, obfuscated VBA macros to execute multi-stage payloads after users enable macros.
  • A Russian-uploaded Excel workbook used a second VBA stage that attempted to download and execute a file from a URL; Talos had no indication this attempt succeeded.
  • The NMLS-themed document used multiple VBA stages and checked for analysis environments before attempting to launch a final payload with mshta.exe.
Defensive Notes
  • Keep Microsoft Office up to date; the article notes that users on older versions may remain vulnerable to macros in documents downloaded from the internet.
  • Talos recommends using its listed Cisco security products to detect or block associated malicious files, email, network activity, and domains, IPs, or URLs.
  • Snort SID 63942 is listed for this threat.

Indicators of compromise

TypeIndicatorContext
DOMAINapi[.]wilbderreis[.]ruPhantomCore C2 host using the rsocket protocol on port 80.
DOMAINdns1[.]s-logistics[.]netBrute Ratel C2 host used for DNS tunneling.
DOMAINdns2[.]s-logistics[.]netBrute Ratel C2 host used for DNS tunneling.
SHA2560cf1e59bae9dba7fbbf6ee6a36ca6bdb8fa0ac002b8cf824bd0888789a981c57Hash of a 64-bit Havoc demon payload.
SHA2562131de0cb705afa52f88ef70a87ee6c8662d38db0138efc4940218ee62d8a296Hash of a 32-bit Havoc demon payload.
SHA2562c0a66c6370b4aa88ab3805d520e868cbc513b43119958257a72c9ff58ef241cHash of an NMLS renewal-themed malicious document.
SHA25680731db97c33b50cd3d8727decec7e6a12bbf5f671527648c4cbb559fabc3074Hash of a PhantomCore RAT payload.
SHA25693df1d60edd6b656b08e0fc0d31b330fd275f5e1a9069dfbb769e7ba217fcb6eHash of a Brute Ratel loader.
SHA256b5608e73eb460944d9b523a940d94c95d3eb66d6a8efe82462e2589ccfaadb82Hash of a Pakistan military allotment-of-plots lure document.
SHA256cbafcf65b40d95e4699859a523ef4d300c57f93de6fbc6e194d1b922e9f3aba6Hash of a Pakistan Air Force Cyber Team lure document.
SHA256e1ee389b2af2d3a0eff4aa14f2ac3de6cdd4a73de80b5d450a44ec69cd332dbfHash of a malicious Excel workbook.

MITRE ATT&CK

People

Threat Actors

Malware

Vendors

Products

Adobe Experience Cloudis the inclusion of a base64-encoded blob containing a JSON object created to be used with the Adobe Experience Cloud ecosystem for tracking marketing activities. One possible reason for this is that the documentCisco DuoCisco Duo provides multi-factor authentication for users to ensure only those authorized are accessing your network. Cisco Secure EmailCisco Secure Email (formerly Cisco Email Security) can block malicious emails sent by threat actors as part of their campaign. You can try Secure Email for free here.Cisco Secure EndpointCisco Secure Endpoint (formerly AMP for Endpoints) is ideally suited to prevent the execution of the malware detailed in this post. Try Secure Endpoint for free here.Cisco Secure FirewallCisco Secure Firewall (formerly Next-Generation Firewall and Firepower NGFW) appliances such as Threat Defense Virtual, Adaptive Security Appliance and Meraki MX can detect malicious activity associated with this threat.Cisco Secure Malware AnalyticsCisco Secure Malware Analytics (formerly Threat Grid) identifies malicious binaries and builds protection into all Cisco Secure products.Cisco Secure Network/Cloud AnalyticsCisco Secure Network/Cloud Analytics (Stealthwatch/Stealthwatch Cloud) analyzes network traffic automatically and alerts users of potentially unwanted activity on every connected device.Cisco Secure Web ApplianceCisco Secure Web Appliance (formerly Web Security Appliance) automatically blocks potentially dangerous sites and tests suspicious sites before users access them. Microsoft OfficeCisco Talos recently discovered several related Microsoft Office documents uploaded to VirusTotal by various actors between May and July 2024 that were all generated by a version of a payload generator framework calledNMLSto VirusTotal much earlier than the previous examples (March 2023) and it purports to be an encrypted NMLS (U.S. Nationwide Multistate Licensing System & Registry) renewal form. We chose this document lure toSnortOpen-source Snort Subscriber Rule Set customers can stay up to date by downloading the latest rule pack available for purchase on Snort.org. Snort SIDs for this threat are 63942.UmbrellaUmbrella, Cisco’s secure internet gateway (SIG), blocks users from connecting to malicious domains, IPs and URLs, whether users are on or off the corporate network. Sign up for a free trial of Umbrella here.VirusTotalCisco Talos recently discovered several related Microsoft Office documents uploaded to VirusTotal by various actors between May and July 2024 that were all generated by a version of a payload generator framework called

Tools

Countries

Industries

Related Articles