Zapier’s NPM Account Compromised, Multiple Packages Infected with Malware

A supply chain attack compromised Zapier’s NPM account, infecting 425 packages with the Shai Hulud malware.

This sophisticated threat represents one of the most consequential incidents in the npm ecosystem, affecting critical infrastructure and development tools that collectively receive approximately 132 million monthly downloads.

The Attack Scale and Impact

The compromised packages span multiple high-profile organizations, including Zapier, PostHog, AsyncAPI, Postman, and ENS Domains.

Widely used libraries such as @zapier/mcp-integration, @posthog/nextjs, @asyncapi/cli, and @postman/secret-scanner-wasm tools, commonly integrated into production environments and development pipelines worldwide, have been weaponized as distribution vectors.

The malware’s reach across these critical packages amplifies the severity of this incident, potentially affecting thousands of downstream applications and organizations.

The Shai Hulud malware operates as a self-propagating worm that uses a sophisticated staging mechanism embedded in the setup_bun.js file.

When executed during package installation, the malware writes initial staging code to the bundleAssets function, attempting to locate or download the Bun runtime environment.

Upon success, it executes the bun_environment.js payload, which serves as the primary malicious component.

This multi-platform approach affects Windows, Linux, and macOS systems by intelligently manipulating environment variables and detecting Bun installations across multiple system paths.

The attack extends beyond code execution into credential harvesting. The malware automatically publishes extracted secrets to GitHub repositories with randomized names and the consistent description: “Sha1-Hulud: The Second Coming.”

Analysis reveals approximately 26,300 exposed repositories containing leaked credentials, substantially increasing the attack’s impact by enabling threat actors to conduct further lateral movement, unauthorized access to cloud infrastructure, and the compromise of connected services.

Researchers discovered critical failures in the attack’s execution. Numerous compromised packages contain the initial staging code (setup_bun.js) but lack the corresponding worm payload (bun_environment.js), an inconsistency suggesting incomplete deployment or misconfiguration during the attack.

While this limitation temporarily reduces the overall impact, the staging code alone establishes persistence mechanisms that are vulnerable to remote payload updates.

Indicators of Compromise

Indicator TypeDetails
Staging Mechanismsetup_bun.js file embedded in packages
Payload Filebun_environment.js (primary malicious component)
Exfiltration TargetGitHub repos with “Sha1-Hulud: The Second Coming” description
Installation TriggerExecuted during npm package installation
Persistence MethodEnvironment variable manipulation
Runtime RequirementBun runtime environment detection and installation

Organizations utilizing affected Zapier packages must immediately audit their dependencies and implement detection measures.

Review package installations from the incident timeframe, rotate all compromised credentials, and monitor systems for indicators of compromise, including unexpected runtime downloads or GitHub repository creation.

This incident underscores the critical importance of supply chain security practices, dependency management, and continuous monitoring of package integrity within the npm ecosystem.

Find this Story Interesting! Follow us on Google News, LinkedIn and X to Get More Instant Updates

AnuPriya
AnuPriya
Any Priya is a cybersecurity reporter at Cyber Press, specializing in cyber attacks, dark web monitoring, data breaches, vulnerabilities, and malware. She delivers in-depth analysis on emerging threats and digital security trends.

Trending News

Related Stories