Bitwarden CLI compromised in ongoing Checkmarx supply chain campaign
TL;DR Highlight
Bitwarden CLI npm 2026.4.0 was infected through an abused GitHub Action in its CI/CD pipeline.
Who Should Read
Backend/DevOps developers who auto-install npm packages in CI and locally while holding Claude/MCP configs and cloud credentials
Core Mechanics
- Only @bitwarden/cli 2026.4.0 is affected
- The malicious code sat in bw1.js inside the package contents.
- Socket says a compromised GitHub Action in Bitwarden's CI/CD pipeline appears to have been abused.
- Only the npm package is involved; the Chrome extension, MCP server and other distributions are not yet affected.
- The credential sweep is wide
- It collects GitHub tokens, AWS/Azure/GCP credentials, .npmrc, SSH keys and environment variables.
- Claude/MCP configuration files are also targeted.
- GitHub tokens are also taken via Runner.Worker memory scraping.
- Exfiltration goes through public GitHub repos
- It creates public repos under victim accounts named {word}-{word}-{3digits} with Dune-themed words.
- Encrypted results are committed, and tokens go into commit messages with the marker LongLiveTheResistanceAgainstMachines.
- C2 is audit.checkmarx[.]cx/v1/telemetry.
- It spreads to other packages
- Stolen npm tokens are used to find writable packages and republish them with preinstall hooks.
- It injects GitHub Actions workflows to capture repository secrets.
- Persistence via shell profiles
- The payload is injected into ~/.bashrc and ~/.zshrc.
- /tmp/tmp.987654321.lock prevents duplicate runs.
- It exits silently when the system locale starts with ru.
- Same tooling as yesterday's Checkmarx attack
- The C2 endpoint and obfuscation match Checkmarx's mcpAddon.js.
- This payload embeds ideological branding such as Shai-Hulud: The Third Coming.
- Socket says attribution is complicated and does not conclude it is the same operator.
Community Reactions
- Opinion that min-release-age would have helped
- A commenter said min-release-age=7 in .npmrc (npm 11.10+) would have protected the 334 people who downloaded the bad version.
- Equivalent settings for pnpm, bun and uv were shared.
- They noted axios and ua-parser-js bad versions were pulled within hours, but event-stream sat for 2+ months.
- Point that preinstall makes install itself the attack
- A commenter argued post-install inspection is too late, and agents, CI and ephemeral sandboxes install automatically and repeatedly.
- They also worried shell-profile tampering could poison what the next coding assistant reads into context.
- Experience with pinning and Actions hygiene
- A commenter said ^ ranges can pull in newer versions when the lockfile updates, so pin critical dependencies.
- Another said they stopped using even GitHub's checkout action and do the checkout manually.
- Another countered that hash pinning does not help against poisoned-at-origin uploads.
- Alternatives suggested
- Commenters mentioned rbw (a Rust client) and pass/gopass synced via a private git repo.
- One commenter confirmed Raycast's bundled bitwarden-cli is not the compromised version.
How to Apply
- Set a minimum release age in your package manager
- Today, add min-release-age=7 to ~/.npmrc (npm 11.10+).
- For pnpm use minimum-release-age=10080 (minutes), for bun minimumReleaseAge=604800 (seconds), for uv exclude-newer="7 days".
- Check install history and infection traces
- Find dev machines and CI runners that installed @bitwarden/cli 2026.4.0.
- Check for /tmp/tmp.987654321.lock and changes to ~/.bashrc and ~/.zshrc.
- Search logs for outbound connections to audit.checkmarx[.]cx and 94[.]154[.]172[.]43.
- Rotate every secret that may have been exposed
- Rotate GitHub and npm tokens, cloud credentials, SSH keys and CI secrets from affected environments.
- Check GitHub for new public repos with Dune-term names and unapproved files under .github/workflows/.
- Shrink GitHub Actions permissions and token scope
- Set workflow permissions to the minimum and pin third-party actions to commit hashes.
- Use short-lived credentials where possible and restrict who can publish packages.
Try It
# Paste into your terminal: quick check for infection traces (macOS/Linux)
npm ls -g @bitwarden/cli 2>/dev/null | grep 2026.4.0 && echo "[!] Infected version installed"
find . -path '*/node_modules/@bitwarden/cli/package.json' -exec grep -H '"version"' {} \; 2>/dev/null
[ -f /tmp/tmp.987654321.lock ] && echo "[!] Lock file found"
grep -nE 'bw1\.js|checkmarx\.cx' ~/.bashrc ~/.zshrc 2>/dev/null
ls -d /tmp/_tmp_* 2>/dev/null
# Set npm minimum release age (npm 11.10+)
npm config set min-release-age 7Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques