Bitwarden CLI Compromised in Shai-Hulud Supply Chain Attack

Bitwarden CLI compromise Shai-Hulud malware npm supply chain attack cybersecurity news GitHub token theft developer security
N
Natalie Ferreira

Consumer Privacy & Identity Theft Prevention Writer

 
April 24, 2026
3 min read
Bitwarden CLI Compromised in Shai-Hulud Supply Chain Attack

TL;DR

This article covers the recent discovery of a backdoor in the @bitwarden/cli npm package, specifically version 2026.4.0, which deploys the Shai-Hulud worm. It details how the malware exfiltrates cloud credentials, exploits GitHub tokens for propagation, and implements persistence via shell profiles. Readers will find a technical breakdown of the payload and a step-by-step safety checklist for rotating keys and securing compromised environments.

Bitwarden CLI Compromised in Shai-Hulud Supply Chain Attack

Analysis from OX Security and Socket has confirmed that the @bitwarden/cli package on npm was backdoored. The malicious version, 2026.4.0, contains a self-propagating worm known as "Shai-Hulud." This attack targets developers and businesses by injecting a file named bw1.js into the package. While the Bitwarden desktop and browser extensions remain safe, the CLI tool used by over 10 million users is a major point of concern for those managing online security and privacy.

Shai Hulud news

Image courtesy of OX Security

Technical Analysis of the Malicious Payload

The malware executes during the preinstall phase via a script called bw_setup.js. It downloads Bun v1.3.13 to run the malicious bw1.js code. A notable feature is a "Russian locale kill switch"; the malware checks the host machine's language and exits if it is set to Russian. This indicates the creators likely want to avoid infecting systems in their own region. For those worried about such regional threats, using SquirrelVPN can help mask your digital footprint and enhance your internet security.

image

Image courtesy of OX Security

Data Exfiltration and GitHub Integration

Once active, the worm harvests a wide range of sensitive data. It targets GitHub tokens, AWS credentials, Azure tokens, and GCP information. The stolen data is encrypted using AES-256-GCM and then uploaded to a newly created public repository on the victim's own GitHub account. These repositories often use Dune-themed names like "Shai-Hulud: The Third Coming." Researchers at JFrog Security have also noted the use of TruffleHog to scan for hidden secrets within the infected system.

Shai-Hulud Infection Analysis

Image courtesy of OX Security

Supply Chain Propagation and Persistence

The malware does not just steal data; it attempts to spread. It uses stolen npm tokens to find other packages the developer has permission to edit. It then injects malicious code into those packages and republishes them, continuing the cycle. For persistence, it modifies shell profiles like ~/.bashrc and ~/.zshrc. This level of cybersecurity trend underscores why managing multi-factor authentication and rotating keys is vital for any technology enthusiast.

image

Image courtesy of OX Security

Recommended Safety Checklist

If you have used the Bitwarden CLI in the last 24 hours, follow these steps to secure your environment:

  • Downgrade Immediately: Change your npm package version to 2026.3.0 or lower.
  • Rotate All Keys: This includes GitHub personal access tokens, AWS access keys, and npm tokens.
  • Audit Repositories: Look for any unauthorized public repositories on your GitHub account with "Shai-Hulud" in the description.
  • Check for Persistence: Search for a lock file at /tmp/tmp.987654321.lock and inspect your shell configuration files for strange code.
  • Enable 2FA: Always use multi-factor authentication on all developer and cloud accounts to prevent unauthorized access even if a token is stolen.

image

Image courtesy of OX Security

Protect your digital life and stay ahead of the latest threats with expert insights at squirrelvpn.com.

N
Natalie Ferreira

Consumer Privacy & Identity Theft Prevention Writer

 

Natalie Ferreira is a consumer technology writer who specializes in identity theft prevention, online safety, and digital literacy. After experiencing identity theft firsthand, she dedicated her career to educating the public about personal data protection. Natalie has written for major consumer technology outlets and holds a degree in Journalism from Columbia University. She focuses on making cybersecurity approachable for families, seniors, and first-time internet users who may feel overwhelmed by the technical jargon.

Related News

Outdated OpenVPN Implementations Expose Commercial VPN Clients to Critical Vulnerabilities and Security Risks
OpenVPN vulnerabilities

Outdated OpenVPN Implementations Expose Commercial VPN Clients to Critical Vulnerabilities and Security Risks

A 2026 security audit reveals many commercial VPNs use outdated, vulnerable OpenVPN versions. See which providers are leaving your data exposed to RCE attacks.

By James Okoro August 5, 2026 4 min read
common.read_full_article
SonicWall VPN Vulnerabilities and AI-Powered Hacking Campaigns Pose New Risks to Enterprise Infrastructure
SonicWall VPN vulnerabilities

SonicWall VPN Vulnerabilities and AI-Powered Hacking Campaigns Pose New Risks to Enterprise Infrastructure

Hackers are exploiting SonicWall VPNs via CVE-2024-40766 and credential stuffing. Learn how to secure your enterprise infrastructure against these attacks.

By Viktor Sokolov August 4, 2026 4 min read
common.read_full_article
Amazon Threat Intelligence Links North Korean Hackers to Malicious npm Supply Chain Attack
npm supply chain attack

Amazon Threat Intelligence Links North Korean Hackers to Malicious npm Supply Chain Attack

Amazon threat intelligence links North Korean hackers to malicious npm supply chain attacks. Discover how popular libraries like axios were weaponized.

By Elena Voss August 3, 2026 4 min read
common.read_full_article
AWS Threat Intelligence Report Links North Korean Hackers to Open-Source Supply Chain Attacks
AWS threat intelligence

AWS Threat Intelligence Report Links North Korean Hackers to Open-Source Supply Chain Attacks

AWS threat report reveals North Korean hackers are poisoning open-source repositories to infiltrate cloud environments and harvest developer credentials.

By James Okoro August 2, 2026 5 min read
common.read_full_article