Malvertising Sends Malware in Pieces, Then Makes the Browser Build the Executable
Incidents: SourTrade malvertising campaign uses Bun runtime to dynamically build malicious executables in-browser, evading traditional detection.
Deep Analysis and Expert Commentary
The SourTrade campaign exemplifies advanced evasion techniques by fragmenting malicious payloads and leveraging legitimate tools like Bun runtime. Attackers use ServiceWorkers and SharedWorkers to fetch and assemble components dynamically, avoiding static URL-based detection. The campaign's targeting of cryptocurrency investors across multiple languages and regions underscores its broad impact. Mitigation requires holistic analysis of the delivery chain, including ad referrals, landing pages, and runtime fetches. Defenders should prioritize endpoint monitoring and user education to prevent installation of unauthorized software. The use of AES-CTR for payload obfuscation further complicates detection, necessitating behavioral analysis over signature-based methods.
Action Items
- Monitor network traffic for unusual ServiceWorker or SharedWorker activity.
- Educate users to download trading and wallet software only from official vendor sites.
- Implement behavioral detection mechanisms to identify dynamic payload assembly.
Original Article Brief Intro
The Hacker News Β· 2026-07-25 Β· Incidents: SourTrade malvertising campaign uses Bun runtime to dynamically build malicious executables in-browser, evading traditional detection.
Related Terms and Notes
Context Notes
- Bun runtime β A JavaScript runtime that compiles applications into standalone executables, leveraged here for malicious payload assembly.
- cryptocurrency
- cryptocurrency theft
- evasion
- malvertising
- ServiceWorker β A script that runs in the background, enabling offline functionality and dynamic content fetching, used here for payload delivery.
- SourTrade