New NPM Attack Uses Steganography to Deliver Pulsar RAT

Article Highlights
Off On

A single command executed in a terminal can bridge the gap between a productive afternoon and a total corporate security collapse, especially when the malicious actor is hiding in plain sight. The simple command npm install is a routine part of a developer’s workflow, yet it has become a primary gateway for sophisticated supply chain compromises. A newly discovered malicious package, “buildrunner-dev,” demonstrates how attackers are moving beyond simple script injection to hide entire malware infrastructures within the tools meant to streamline development.

By exploiting the inherent trust in open-source ecosystems, this campaign turns a developer’s productivity against their own system’s security. The package mimics legitimate utilities to ensure it remains unnoticed during initial inspection. Once integrated into a project, it creates a silent foothold that provides attackers with persistent access to sensitive corporate environments.

The Growing Fragility of Open-Source Trust

Supply chain attacks are no longer a theoretical threat; they are a persistent reality for any organization relying on third-party repositories. The “buildrunner-dev” incident highlights a critical trend involving the weaponization of abandoned or legitimate-sounding package names through typosquatting. This technique relies on human error, targeting developers who might misspell a popular package name or overlook the subtle differences between a verified library and a malicious clone.

As developers rush to meet deadlines, the pressure to deliver functional code often leads to a relaxation of security scrutiny. This environment allows malicious actors to insert their code into the development pipeline, where it can spread horizontally through an organization. The erosion of trust in public registries necessitates a more skeptical approach to dependency management, as a single oversight now carries the risk of compromising an entire network.

Anatomy of the “buildrunner-dev” Infection Chain

The attack begins with a postinstall hook that initiates a multi-stage infection process designed to frustrate security analysts and automated sandboxes alike. Once the package is installed, it fetches a batch script bloated with over 1,600 lines of junk code to mask its true intent. This obfuscation makes manual review tedious, as the functional portion of the script is buried deep within thousands of characters of randomized, non-functional commands. To maintain control, the malware establishes persistence by nesting itself within the Windows Startup folder. It also employs a “fodhelper.exe” exploit to bypass User Account Control, granting the attacker administrative privileges without alerting the user. This level of access allows the malware to modify system settings and prepare the environment for the final, more destructive stage of the operation.

Hiding in Plain Pixels: The Steganographic Payload

At the heart of this campaign is a technique known as steganography, where malicious instructions are hidden within non-executable file formats. The attackers host seemingly harmless PNG images on public hosting services, but these files contain an AMSI bypass and a .NET loader encoded directly into the RGB pixel values. Because these files appear as standard visual data, traditional antivirus scanners often overlook them during routine file inspections. The final payload—the Pulsar Remote Access Trojan—is delivered via process hollowing, a stealthy method that injects the RAT into a legitimate Windows process to evade detection. By residing in the memory of a trusted application, the malware can bypass firewall rules and endpoint detection systems. This sophisticated delivery mechanism ensures that the malicious activity remains hidden from both the user and automated security tools.

Expert Insights on the Evolution of Obfuscation

Security analysts view this campaign as a significant shift in how threat actors bypass perimeter defenses. By merging typosquatting with steganographic delivery, the attackers created a blind spot in standard security stacks. Researchers emphasized that the use of public image-hosting services for command-and-control infrastructure made the traffic look like routine web browsing, further complicating the task of threat hunting.

The evolution of these tactics suggests that attackers are increasingly prioritizing stealth over immediate impact. By staying under the radar for longer periods, they can exfiltrate more data and maintain access to internal systems without triggering alarms. This shift toward long-term persistence requires defenders to adopt more advanced behavioral analysis techniques to identify the subtle signs of a compromised environment.

Strategies for Securing the Development Pipeline

Defending against sophisticated NPM attacks required a layered approach that moved beyond simple signature-based detection. Organizations implemented rigorous audits of all NPM dependencies and considered disabling automatic postinstall scripts for unverified packages. Furthermore, security teams prioritized behavioral monitoring, specifically looking for unusual PowerShell activity, unexpected escalations, and outbound connections to free image-hosting platforms. The implementation of zero-trust principles within the development environment became a necessity to mitigate these risks. By restricting the permissions of build processes and requiring manual approval for new dependencies, companies reduced their attack surface significantly. These proactive measures provided a stronger defense against the evolving landscape of supply chain threats, ensuring that developer productivity did not come at the cost of organizational security.

Explore more

Digital B2B Marketing Strategies Drive Success in Morocco

The traditional landscape of Moroccan commerce is undergoing a seismic transformation as procurement officers increasingly bypass the historical ritual of the handshake in favor of sophisticated digital screening. In the bustling business districts of Casablanca, the air is no longer just filled with the scent of coffee and the sound of verbal negotiations; it is charged with the silent data

Why Is a Physical Presence No Longer Enough for B2B Brands?

Walking onto a convention floor in Barcelona or Lisbon today feels like entering a multisensory battleground where billion-dollar brands compete for just a few seconds of fleeting attention from distracted decision-makers. In an industry where the annual calendar is punctuated by massive exhibitions, the traditional marketing playbook has reached a point of diminishing returns. Companies frequently pour substantial percentages of

Five Proven Strategies Drive B2B Corporate Growth

Modern business-to-business commerce has shed its traditional skin of handshake agreements and physical networking events to embrace a sophisticated digital architecture that dictates how global corporations interact and expand. This metamorphosis reflects a broader evolution where the procurement process is no longer confined to local territories or personal acquaintances but is instead driven by data, visibility, and seamless virtual connectivity.

How Can EDM Marketing Strategies Drive E-Commerce Growth?

Modern entrepreneurs are finding that the humble digital inbox remains the most potent tool for driving consistent revenue despite the relentless competition for consumer attention across fragmented social platforms and shifting search algorithms. While the digital landscape undergoes constant upheaval, the stability of direct communication provides a reliable anchor for brands seeking to establish a permanent presence in the lives

How Can Businesses Escape the AI Productivity Trap?

Corporate boardrooms across the globe are currently grappling with a confusing paradox where massive investments in generative artificial intelligence have yet to yield the explosive revenue growth that shareholders were initially promised. Companies have integrated sophisticated agents into every department, from customer support to software engineering, yet the expected surge in net profitability remains elusive for many. This stagnation is