Malicious Bitwarden CLI npm Package Stole Developer Credentials

· Original article ↗

Summary

Bitwarden confirmed attackers briefly published malicious @bitwarden/cli v2026.4.0 on npm, stealing developer and cloud credentials. Its investigation found no evidence of vault or production-data compromise; affected users should rotate exposed credentials.

Key points

  • The malicious @bitwarden/cli v2026.4.0 was available on npm from 5:57 to 7:30 PM ET on April 22, 2026; the incident affected users who downloaded that version.
  • Socket said attackers appear to have used a compromised GitHub Action in Bitwarden’s CI/CD pipeline to inject the malicious code.
  • A custom loader downloaded the Bun runtime and ran obfuscated bw1.js, which harvested npm and GitHub tokens, SSH keys, and AWS, Azure, and Google Cloud credentials.
  • The malware encrypted collected data with AES-256-GCM and exfiltrated it through public GitHub repositories created under victims’ accounts.
  • OX Security reported that the malware could use stolen npm credentials to inject malicious code into other packages the victim could modify.
  • Bitwarden revoked compromised access and deprecated the release. The company said it found no evidence that vault data, production data, or production systems were compromised; affected users should rotate exposed credentials.

Article Details

Victim Organization
Bitwarden
Incident Type
Software supply chain compromise of the Bitwarden CLI npm package to steal developer credentials and potentially spread to other packages.
Incident Date
2026-04-22
Data Types Exposed
  • npm tokens
  • GitHub authentication tokens
  • SSH keys
  • AWS credentials
  • Azure credentials
  • Google Cloud credentials
Operational Impact
The malicious @bitwarden/cli v2026.4.0 release was available on npm from 5:57 PM to 7:30 PM ET and affected users who downloaded it. Bitwarden revoked compromised access and deprecated the release. Bitwarden reported no evidence that end-user vault data, production data, or production systems were compromised.
Claim Status
confirmed

MITRE ATT&CK

Threat Actors

Vendors

Products

Related Articles