Bitwarden CLI committed: the supply chain campaign that stole tokens and left in check CI / CD

Published 4 min de lectura 73 reading

A malicious package briefly published on npm compromised the distribution of Bitwarden's CLI and put at risk sensitive credentials from developers and CI / CD systems. Technical sources that investigated the incident identified the affected version as 2026.4.0 which was available for a short interval on 22 April 2026; Bitwarden confirmed that the problem was limited to its npm channel and to those who downloaded that specific package, and said that there is no evidence of access to user vault data or production systems, according to his public communication official.

The technical forensic analysis shows a supply chain attack pattern: the attackers would have manipulated the CI / CD process (possibly through a compromised GitHub Action) to inject a charger into the pre-installation scripts of the package. That charger downloads a runtime (Bun), runs an affuscated file and unfolds a infostealer that collects npm and GitHub tokens, SSH keys and public cloud credentials, encrypted the results with AES-256-GCM and exfiltrates the data by creating public repositories under the accounts of the victims - repositories that in several cases contain the chain "Shai-Hulud: The Third Coming" linked to previous campaigns - as documented by community analysis and response equipment independent and research providers technical.

Bitwarden CLI committed: the supply chain campaign that stole tokens and left in check CI / CD
Image generated with IA.

In addition to extraction, malware incorporates propagation mechanisms: you can use stolen tokens to identify packages that the victim can publish and modify those projects to insert additional malicious code, making an initial commitment to an self-replicating threat within the package ecosystem. The profile of the campaign and certain technical coincidences point to an actor linked to previous incidents against development packages and tools, which underlines that today developers are a strategic objective for actors seeking to pivote towards more valuable infrastructure.

If you downloaded the affected version, you must assume that the secrets of the environment were compromised: immediately broken all the tokens, keys and credentials exposed especially those used by pipelines, CI / CD integrations and cloud services. Revise npm and GitHub tokens, replace SSH keys and cloud services access keys, invalidate credentials stored in runners and review GitHub's action histories to detect public repository creations or unusual activities. Change secrets without purging side access or credentials stored in runners or persistent servers leaves the door open for reuse by the attacker.

Bitwarden CLI committed: the supply chain campaign that stole tokens and left in check CI / CD
Image generated with IA.

In the area of prevention and continuous mitigation, the development and supply chain should be strengthened: limiting the scope of tokens (the principle of less privilege), using short-term tokens and ephemeral credentials, activating multifactor authentication in developer accounts and in npm / GitHub, auditioning and setting versions in lockfiles, applying dependency scanning and detecting secrets in CI and adopting building integrity practices such as SLSA or artifacts signatures where possible. It is also recommended to review the GitHub Actions and other integration used in pipelines to detect unsafe or excessive third party components, and to implement policies to review changes in package publishing flows.

For researchers and response teams, the signals to be looked for include unusual pre-install scripts (for example references to bw _ setup.js in this case), downloads of unusual runtimes, processes that invoke binaries such as Bun from packages and the emergence of new public repositories with encrypted artifacts or names / strings already associated with previous campaigns. Organizations should combine log analysis, endpoint behavior detection and audit review in GitHub to rebuild the scope and confirm the breaking of secrets.

Bitwarden acted quickly to revoke committed accesses and depredate the affected publication, but this incident reinforces a recurring lesson: no unit for developers is inoculated by default. Equipment should treat development tools as risk speakers and apply controls similar to those that protect production environments: access control, active monitoring and automated response to commitment indicators. For more technical information and case tracking, see the public analyses and the Bitwarden note above.

Coverage

Related

More news on the same subject.