Bitwarden CLI malicious npm package exposed, encrypted wallets face risk of theft

MarketWhisper

Bitwarden security vulnerability

Misty’s Chief Information Security Officer 23pds forwards a Bitwarden security team warning. The Bitwarden CLI version 2026.4.0 that had been distributing malicious packages via npm within a 1.5-hour window from 5:57 to 7:30 p.m. Eastern Time on April 22 has been withdrawn. Bitwarden has officially confirmed that the password vault data and production systems were not affected.

Attack Details: Targeted Theft via bw1.js Malicious Payload

The malicious payload runs silently during npm package installation and collects the following types of data:

· GitHub and npm tokens

· SSH keys

· Environment variables

· Shell history

· Cloud credentials

· Encrypted wallet files (including MetaMask, Phantom, and Solana wallets)

The stolen data is exfiltrated to attacker-controlled domains and submitted to GitHub repositories via a persistence mechanism. Many cryptocurrency teams use the Bitwarden CLI in CI/CD automation workflows for key injection and deployment. Any workflow that ran an infiltrated version could leak high-value wallet private keys and exchange API credentials.

Emergency Response Steps for Affected Users

Only users who installed the 2026.4.0 version via npm within the April 22, 5:57 to 7:30 p.m. Eastern Time window need to take the following actions: immediately uninstall the 2026.4.0 version; clear the npm cache; rotate all sensitive credentials such as API tokens and SSH keys; check for abnormal activity in GitHub and CI/CD workflows; upgrade to the fixed 2026.4.1 version (or downgrade to 2026.3.0, or download the officially signed binary from the Bitwarden official website).

Attack Background: npm Trusted Publish Mechanism First Exploited

Security researcher Adnan Khan points out that this attack is a known first case of the npm trusted publish mechanism being used to compromise software packages. This attack is related to TeamPCP’s supply-chain attack activities. Since March 2026, TeamPCP has launched similar attacks against security tools Trivy, the code security platform Checkmarx, and the AI tool LiteLLM, aiming to embed developer tools within CI/CD build processes.

Frequently Asked Questions

How can I check whether I installed the affected 2026.4.0 version?

Run npm list -g @bitwarden/cli to see the installed version. If it shows 2026.4.0 and the installation time falls between 5:57 and 7:30 p.m. Eastern Time on April 22, you need to take immediate action. Even if you’re unsure of the installation time, it’s recommended to proactively rotate all related credentials.

Was Bitwarden vault data leaked?

No. Bitwarden has officially confirmed that user password vault data and production systems were not compromised. This attack only affected the CLI build process. The attack targets developer credentials and encrypted wallet files, not the Bitwarden platform’s user password database.

What is the broader context of TeamPCP supply-chain attack activities?

Since March 2026, TeamPCP has launched a series of supply-chain attacks targeting developer tools. Affected targets include Trivy, Checkmarx, and LiteLLM. The attack on the Bitwarden CLI is part of the same series of activities, aiming to steal high-value credentials in automated pipelines by embedding developer tools within CI/CD build processes.

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.

Related Articles

Lido Proposes Allocating 2,500 Staked ETH to Cover Kelp Exploit Shortfall

Gate News message, April 24 — Lido Labs is seeking DAO approval to allocate up to 2,500 staked Ethereum (approximately $5.8 million) to reduce the rsETH deficit caused by the recent Kelp exploit, according to a proposal posted Thursday. Kelp DAO's rsETH bridge suffered a LayerZero-based exploit tha

GateNews32m ago

Slow Mist Warns of MioLab, Malware-as-a-Service Platform Targeting Crypto Assets and Hardware Wallets on macOS

Gate News message, April 24 — Slow Mist Chief Information Security Officer 23pds disclosed on X that MioLab is a highly commercialized macOS malware-as-a-service (MaaS) platform actively promoted on Russian underground forums, offering C2 control, API integration, and customized attack

GateNews58m ago

U.S. Special Operations Forces Chief Warrant Officer Arrested: Used Classified Intelligence to Bet on Maduro on Polymarket, Profited $400k

The U.S. Department of Justice in the Southern District of New York has indicted U.S. Army Special Forces officer chief Gannon Ken Van Dyke, alleging that he used classified information to bet on Polymarket on the outcome of Maduro’s arrest, earning approximately $409,881 (13 transactions, 2025-12-27 to 2026-1-26). The charges include illegal use of confidential information, theft of nonpublic information, commodity transaction fraud, wire fraud, and illegal money transactions, among others. It is described as the first federal prosecution centered on insider trading and arbitrage with a prediction market, which may affect future regulatory directions.

ChainNewsAbmedia1h ago

Spanish Police Seize €400K in Crypto from Illegal Manga Piracy Platform, 3 Arrested

Gate News message, April 24 — Spanish police in Almería seized two cryptocurrency cold wallets containing approximately €400,000 during a raid on the country's largest illegal manga distribution platform. Three individuals were arrested in connection with the operation, which was initiated

GateNews3h ago

OFAC Sanctions Cambodian Senator Over Crypto Scam Network

OFAC Sanctions Cambodian Senator Over Crypto Scam Network The U.S. Treasury's Office of Foreign Assets Control (OFAC) has sanctioned Cambodian senator Kok An, who is accused of controlling "scam compounds" throughout Cambodia that have defrauded Americans. OFAC designated An and 28 other

CryptoFrontier3h ago
Comment
0/400
No comments