Phishing Campaign Uses JavaScript and Process Hollowing to Deploy PureLogs Data Stealer

PureLogs Malware Variant Delivered via Multi-Stage Phishing Attack

HIGH
May 27, 2026
5m read
PhishingMalwareData Breach

Related Entities

Products & Tech

PowerShell MsBuild.exeMicrosoft Windows

Other

PureLogs

Full Report

Executive Summary

A sophisticated phishing campaign is actively distributing a variant of the PureLogs data-stealing malware. The attack, analyzed by FortiGuard Labs, employs a multi-stage infection process to bypass security controls and achieve execution on target systems. The campaign starts with a classic social engineering lure—a fake purchase order email—and escalates through a chain of obfuscated scripts and advanced evasion techniques, including process hollowing. The ultimate goal of the campaign is to collect and exfiltrate sensitive data from victims using the modular capabilities of the PureLogs malware.


Threat Overview

The campaign targets Microsoft Windows users through phishing emails. These emails are crafted to appear as legitimate business communications, such as a purchase order, to entice the user to open a malicious attachment. The attachment is a RAR archive containing a malicious JavaScript file. The use of multiple stages and legitimate system tools like PowerShell and MsBuild.exe is a deliberate tactic to make the attack look like normal system activity and to evade signature-based detection tools. The modular nature of the final payload allows the attackers to dynamically extend its functionality post-compromise.


Technical Analysis

The attack chain is a well-orchestrated sequence of events designed for stealth and effectiveness:

  1. Initial Delivery: The victim receives a phishing email with a RAR archive attachment (e.g., PO 2026-P0803.rar). This is a form of T1566.001 - Spearphishing Attachment.
  2. JavaScript Execution: Inside the archive is a malicious JavaScript file. When the user executes this file, it runs an obfuscated script (T1059.007 - JavaScript).
  3. PowerShell Invocation: The JavaScript decrypts and executes a PowerShell script. This script acts as the second-stage loader (T1059.001 - PowerShell).
  4. Process Hollowing: The PowerShell script uses a technique known as process hollowing (T1055.012 - Process Hollowing). It starts a legitimate, trusted Windows process, MsBuild.exe, in a suspended state. It then carves out the memory of this legitimate process and injects a malicious .NET downloader module into it.
  5. Payload Fetching: The injected downloader, now running under the guise of MsBuild.exe, communicates with a remote command-and-control (C2) server.
  6. Modular Execution: The C2 server delivers additional plugins and the main PureLogs data-stealing payload, which are then executed by the compromised MsBuild.exe process. This modularity allows for flexible post-exploitation activities, including keylogging, credential theft, and file exfiltration.

Impact Assessment

The PureLogs malware is designed for data theft, posing a significant risk to both individuals and organizations. A successful infection could lead to:

  • Credential Compromise: Theft of usernames, passwords, and session tokens for web browsers, email clients, and other applications.
  • Financial Data Theft: Exfiltration of credit card numbers, banking information, and cryptocurrency wallet data.
  • Data Breach: Loss of sensitive corporate or personal files.
  • Further Compromise: The stolen credentials can be used to facilitate lateral movement, further network intrusion, or be sold on dark web marketplaces.

IOCs — Directly from Articles

The source articles mentioned the filename pattern PO 2026-P0803.rar as an example, but did not provide specific, actionable IOCs.


Cyber Observables — Hunting Hints

Security teams can hunt for this activity by looking for the following patterns:

Type
Process Anomaly
Value
wscript.exe or cscript.exe spawning powershell.exe
Description
The initial JavaScript execution often leads to PowerShell being launched. This parent-child relationship can be a strong indicator.
Type
Process Anomaly
Value
powershell.exe spawning MsBuild.exe
Description
The PowerShell script launching the target for process hollowing is another suspicious event.
Type
Network Traffic
Value
MsBuild.exe making outbound network connections
Description
MsBuild.exe is a build tool and should not typically make direct connections to the internet, especially to unknown IPs. This is a high-confidence indicator of compromise.
Type
File Creation
Value
.rar files in email attachments
Description
While common, this can be correlated with other heuristics as part of an initial filter for malicious emails.

Detection & Response

  • Email Security: Use advanced email security gateways (like the mentioned FortiMail) to block emails with malicious attachments. Configure policies to scan inside archives like RAR and ZIP.
  • Script Execution Policies: Restrict the execution of JavaScript and PowerShell scripts. Use PowerShell Constrained Language Mode and enable script block logging.
  • EDR and Behavioral Monitoring: Deploy an EDR solution that can detect process hollowing by monitoring for suspicious API calls like CreateProcess, WriteProcessMemory, and ResumeThread being used in an unusual sequence. Alert on legitimate system utilities like MsBuild.exe making external network connections.
  • D3FEND: Utilize D3-PA - Process Analysis to detect the abnormal behavior of MsBuild.exe and the process hollowing technique.

Mitigation

  • User Training: Educate users to be suspicious of unsolicited emails, especially those with attachments that require them to extract files. Reinforce that purchase orders and other business documents are typically sent as PDFs, not scripts in RAR files.
  • Attachment Blocking: Configure email servers to block or quarantine potentially dangerous file types, including .js, .vbs, and executables within archives.
  • Attack Surface Reduction (ASR): Enable ASR rules on Windows endpoints, such as "Block JavaScript or VBScript from launching downloaded executable content" and "Block process creations originating from PSExec and WMI commands."
  • D3FEND: Implement D3-EAL - Executable Allowlisting to prevent the initial JavaScript file from being executed by the script host.

Timeline of Events

1
May 27, 2026
This article was published

MITRE ATT&CK Mitigations

Train users to recognize and report phishing emails and to be wary of unexpected attachments, especially archives containing scripts.

Use application control and script execution policies to prevent the initial JavaScript and subsequent PowerShell scripts from running.

Mapped D3FEND Techniques:

Use an EDR to detect and block malicious behaviors like process hollowing and unusual network connections from system utilities.

D3FEND Defensive Countermeasures

To detect the PureLogs campaign, security teams must leverage process analysis capabilities within their EDR solution. Specifically, create detection rules that focus on the anomalous behavior of MsBuild.exe. A high-fidelity alert should be generated whenever MsBuild.exe initiates an outbound network connection, as this is highly uncharacteristic of its normal function. Additionally, monitor process ancestry. An alert should trigger if powershell.exe is observed spawning MsBuild.exe, or if a script host like wscript.exe spawns powershell.exe. These chains of events are strong indicators of the attack sequence. By analyzing these process-level behaviors, defenders can identify the process hollowing technique and the subsequent C2 communication, even if the file-based components of the malware are heavily obfuscated.

Implement robust file analysis at the email gateway to proactively block the initial PureLogs delivery vector. Configure email security solutions to perform deep analysis of attachments, including de-archiving .rar files. The system should be capable of identifying and blocking obfuscated JavaScript files. This involves more than just signature matching; it requires heuristic analysis to detect suspicious script characteristics, such as large encoded strings or calls to eval(). By analyzing and blocking the malicious JavaScript dropper before it reaches the user's inbox, the entire attack chain is prevented. This is a critical first line of defense against this type of multi-stage phishing attack.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Tags

purelogsphishingmalwareinfostealerprocess hollowingpowershellfortiguard

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.