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

How to Scale B2B Lead Generation on LinkedIn Successfully?

The landscape of professional networking has undergone a radical transformation, moving away from simple connection requests toward a centralized ecosystem for business growth. In the current market, the platform serves as the primary conduit for high-value transactions, where digital presence directly correlates with market share. Organizations that treat this space as a static directory find themselves falling behind competitors who

Ukraine’s E-Commerce Tax Bill Faces Critical Hurdles for EU Integration

The rapid evolution of the digital marketplace has forced governments worldwide to rethink fiscal boundaries, yet Ukraine’s attempt to legislate this boundary through Draft Law No. 15112-d reveals a profound friction between wartime survival and the strict requirements of European integration. As the country navigates its path into the European Union, the Verkhovna Rada faces a daunting task: creating a

Vietnam Strengthens Legal Compliance for E-commerce Growth

Behind the vibrant glow of smartphone screens across Hanoi and Ho Chi Minh City, a massive digital transformation is quietly reshaping the economic identity of the nation through an unprecedented surge in online transactions. This shift represents more than just a change in shopping habits; it signifies a structural evolution where the virtual marketplace is no longer an alternative to

How Agentic AI Is Transforming the B2B Buying Journey

Across the global enterprise landscape, a profound transformation is quietly unfolding as autonomous software agents begin to dominate the intricate process of corporate procurement and vendor selection. This evolution represents a departure from the days when human curiosity drove the early stages of the sales cycle. Today, the initial heavy lifting of market research, technical vetting, and vendor comparison is

10 Best Free or Low-Cost CRM Tools for Small Businesses

Many inexpensive CRM options provide unlimited file storage, making it easier for service-based businesses to manage client contracts and project documents. In the current landscape of 2026, small and midsize enterprises are increasingly moving away from antiquated manual tracking in favor of centralized digital hubs that unify customer interactions. The competitive pressure to deliver personalized experiences has made customer relationship