{"id":2807,"date":"2026-04-23T20:31:33","date_gmt":"2026-04-23T20:31:33","guid":{"rendered":"https:\/\/www.serverspan.com\/blog\/"},"modified":"2026-04-23T20:37:43","modified_gmt":"2026-04-23T20:37:43","slug":"bitwarden-cli-compromised-in-supply-chain-attack-what-happened-and-what-to-do-right-now-april-23-2026","status":"publish","type":"post","link":"https:\/\/www.serverspan.com\/en\/blog\/bitwarden-cli-compromised-in-supply-chain-attack-what-happened-and-what-to-do-right-now-april-23-2026\/","title":{"rendered":"Bitwarden CLI Compromised in Supply Chain Attack &#8211; What Happened and What to Do Right Now (April 23, 2026)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On April 23, 2026, researchers at Socket confirmed that the npm package <strong><code>@bitwarden\/cli@2026.4.0<\/code><\/strong> was compromised as part of the Checkmarx supply chain campaign. Malicious code injected via a compromised GitHub Action in Bitwarden&#8217;s CI\/CD pipeline steals GitHub, npm, SSH, and cloud credentials (AWS, Azure, GCP) from any environment where the package was installed or executed. Regular Bitwarden vault data is not directly affected \u2014 the compromise targets development and automation environments that use the CLI through npm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you use Bitwarden through the browser extension, desktop app, or mobile app, your vault data is safe. If you have installed <code>@bitwarden\/cli<\/code> via npm in scripts, CI\/CD pipelines, servers, or automation workflows, treat this as a confirmed credential exposure and act immediately using the steps below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Happened<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The attack is part of a broader campaign attributed to a threat actor identified as TeamPCP, which compromised GitHub Actions across multiple open source repositories in the same period. The entry vector in Bitwarden&#8217;s case was a compromised GitHub Action in the official build pipeline, which allowed injection of a malicious file named <code>bw1.js<\/code> into the npm package published as version <code>2026.4.0<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The payload in <code>bw1.js<\/code> shares command-and-control infrastructure with the <code>mcpAddon.js<\/code> malware documented in the same Checkmarx campaign, including the same exfiltration endpoint <code>audit.checkmarx[.]cx\/v1\/telemetry<\/code> and the same obfuscation mechanism. The code runs via a Bun interpreter dynamically downloaded from GitHub releases, installs persistence by injecting into <code>~\/.bashrc<\/code> and <code>~\/.zshrc<\/code>, creates public repositories on GitHub under the victim&#8217;s account using Dune-themed names (pattern: <code>{word}-{word}-{3digits}<\/code>), and commits stolen credentials encrypted into those repositories with the marker commit message <code>LongLiveTheResistanceAgainstMachines<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One operationally significant detail: the payload contains a kill switch for Russian locales \u2014 it checks <code>Intl.DateTimeFormat().resolvedOptions().locale<\/code> and the <code>LC_ALL<\/code>, <code>LC_MESSAGES<\/code>, <code>LANGUAGE<\/code>, and <code>LANG<\/code> environment variables and stops silently if any begin with &#8220;ru&#8221;. This is an operational signature, not a definitive attribution statement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Credentials Are Targeted<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The payload actively collects the following credential categories from the environment where it runs: GitHub tokens via memory scraping from the GitHub Actions Runner.Worker process and environment variables; npm tokens and configurations from <code>.npmrc<\/code> files; AWS credentials from <code>~\/.aws\/credentials<\/code>, <code>~\/.aws\/config<\/code>, and environment variables; Azure tokens via <code>azd<\/code> and local configurations; GCP credentials via <code>gcloud config config-helper<\/code>; SSH private keys from <code>~\/.ssh\/<\/code>; <code>.env<\/code> files and general environment variables; and Claude\/MCP configurations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lateral propagation is also built in: after obtaining an npm token with write permissions, the code attempts to identify other npm packages the victim can publish and reinjects them with malicious <code>preinstall<\/code> hooks, extending the campaign to other projects in the victim&#8217;s ecosystem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is Not Affected<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The compromise is limited to the CLI&#8217;s npm package. Bitwarden has confirmed that the Chrome extension, desktop app, mobile app, and MCP server are not affected by this version of the attack. Bitwarden&#8217;s zero-knowledge architecture means user vaults are encrypted locally with the master password \u2014 even a fully compromised Bitwarden server cannot decrypt user data without the master password. If you have never installed <code>@bitwarden\/cli<\/code> via npm, you have no direct risk from this incident.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remediation Steps If You Installed the Affected Package<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>@bitwarden\/cli@2026.4.0<\/code> was installed on any system \u2014 your workstation, a server, a CI\/CD runner, or a container \u2014 treat all credentials that existed in that environment as exposed and act in the order below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Remove the compromised package immediately<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>npm uninstall -g @bitwarden\/cli\n# or, if installed locally in a project:\nnpm uninstall @bitwarden\/cli\nnpm cache clean --force<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Check for persistence in shell profiles<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -n \"bw1\\|checkmarx\\|butlerian\\|shai-hulud\\|tmp.987654321\" ~\/.bashrc ~\/.zshrc ~\/.profile 2&gt;\/dev\/null<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If this returns any results, the payload injected persistence. Open the listed files and manually remove the identified lines, then reload your shell.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Check for lock file and temporary artifacts<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ls \/tmp\/tmp.987654321.lock 2&gt;\/dev\/null &amp;&amp; echo \"WARNING: lock file present\" || echo \"OK\"\nls \/tmp\/_tmp_* 2&gt;\/dev\/null<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. Check GitHub for unauthorized repository activity<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to your GitHub account and audit recently created public repositories. Look for names matching the pattern <code>{word}-{word}-{3digits}<\/code> or any of the documented keywords: <code>atreides<\/code>, <code>harkonnen<\/code>, <code>fremen<\/code>, <code>sandworm<\/code>, <code>sardaukar<\/code>, <code>melange<\/code>, <code>stillsuit<\/code>, <code>sietch<\/code>. If you find repositories you did not create, delete them immediately and revoke all tokens under <strong>Settings \u2192 Developer settings \u2192 Personal access tokens<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Rotate all exposed credentials<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Credentials cannot be &#8220;un-exposed&#8221; \u2014 if they existed in the affected environment, they must be rotated regardless of whether observable exfiltration evidence exists:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GitHub:<\/strong> Revoke all Personal Access Tokens, regenerate deploy keys, rotate GitHub Actions secrets across all repositories that ran on the affected environment<\/li>\n\n\n\n<li><strong>npm:<\/strong> Revoke tokens from npmjs.com \u2192 Account Settings \u2192 Access Tokens<\/li>\n\n\n\n<li><strong>AWS:<\/strong> Disable and recreate Access Keys from IAM Console; review CloudTrail for unauthorized access<\/li>\n\n\n\n<li><strong>Azure:<\/strong> Revoke tokens from Azure Portal \u2192 Azure Active Directory \u2192 App registrations<\/li>\n\n\n\n<li><strong>GCP:<\/strong> Rotate Service Account Keys from Cloud Console \u2192 IAM &amp; Admin<\/li>\n\n\n\n<li><strong>SSH:<\/strong> If private keys in <code>~\/.ssh\/<\/code> were exposed, generate new pairs and update public keys on all servers<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. Check for suspicious outbound network connections<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Check logs for connections to the C2 endpoint\ngrep -r \"audit\\.checkmarx\" \/var\/log\/ 2&gt;\/dev\/null\ngrep -r \"94\\.154\\.172\\.43\" \/var\/log\/ 2&gt;\/dev\/null<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Broader Context: Why CI\/CD Pipelines Are the Preferred Target<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Checkmarx campaign that compromised Bitwarden CLI is part of a broader pattern that has accelerated significantly in 2025\u20132026: attackers no longer target servers or end users directly \u2014 they attack the junction points of the software supply chain: GitHub Actions, npm registries, Docker images. A single compromised GitHub Action from a popular repository can infect thousands of build environments within hours, before any detection system flags the anomaly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is precisely why proper <a href=\"https:\/\/www.serverspan.com\/en\/linux-administration\">Linux server administration<\/a> now includes not just OS hardening but also build environment isolation, least-privilege principles for CI\/CD tokens, and periodic dependency auditing. A VPS running build pipelines or automation scripts has a fundamentally different attack surface from a static web server \u2014 and must be treated accordingly. If you are running multiple workloads on the same host, the <a href=\"https:\/\/www.serverspan.com\/en\/linux-administration\">ServerSpan managed Linux administration service<\/a> covers workload isolation through containers and dedicated environments as part of its standard hardening baseline.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For operators running self-hosted Bitwarden on their own <a href=\"https:\/\/www.serverspan.com\/en\/virtual-servers\">VPS<\/a>, the current incident does not affect the self-hosted instance itself \u2014 but it underscores the importance of never mixing a credential-store service with a build or automation environment on the same host. A server running self-hosted Bitwarden and npm-based CI\/CD pipelines combines two distinct attack surfaces on a single machine. The correct architecture isolates each workload on a separate container or <a href=\"https:\/\/www.serverspan.com\/en\/virtual-servers\">dedicated VPS<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Indicators of Compromise (IOC)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Type<\/th><th>Value<\/th><\/tr><\/thead><tbody><tr><td>Malicious npm package<\/td><td><code>@bitwarden\/cli@2026.4.0<\/code><\/td><\/tr><tr><td>Payload file<\/td><td><code>bw1.js<\/code><\/td><\/tr><tr><td>C2 exfiltration endpoint<\/td><td><code>audit.checkmarx[.]cx\/v1\/telemetry<\/code><\/td><\/tr><tr><td>C2 IP<\/td><td><code>94[.]154[.]172[.]43<\/code><\/td><\/tr><tr><td>Lock file<\/td><td><code>\/tmp\/tmp.987654321.lock<\/code><\/td><\/tr><tr><td>Temp directory<\/td><td><code>\/tmp\/_tmp_&lt;Unix Epoch Timestamp&gt;\/<\/code><\/td><\/tr><tr><td>GitHub staging commit marker<\/td><td><code>LongLiveTheResistanceAgainstMachines<\/code><\/td><\/tr><tr><td>Staging repository pattern<\/td><td><code>{word}-{word}-{3digits}<\/code> with Dune terminology<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Bitwarden&#8217;s Response<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">At the time of publication (April 23, 2026), Socket has published its full technical analysis and notified Bitwarden. The investigation is active. Monitor the official Bitwarden status page and the project&#8217;s security blog for official updates. Package versions before and after <code>2026.4.0<\/code> are not affected by this specific compromise.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Immediate action summary:<\/strong> If you installed <code>@bitwarden\/cli@2026.4.0<\/code> via npm \u2014 on any system \u2014 remove the package, check shell profiles for persistence, audit GitHub for unauthorized repositories, and rotate all credentials that existed in that environment. Regular Bitwarden vault data is not affected. The browser extension, desktop app, and mobile app are not affected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On April 23, 2026, researchers at Socket confirmed that the npm package @bitwarden\/cli@2026.4.0 was compromised as part of the Checkmarx supply chain campaign. Malicious code injected via a compromised GitHub Action in Bitwarden&#8217;s CI\/CD pipeline steals GitHub, npm, SSH, and cloud credentials (AWS, Azure, GCP) from any environment where the package was installed or executed. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14461],"tags":[15768,15783,15767,15777,15765,15772,15786,15763,15774,15778,15770,15780,15766,15781,15775,15773,15764,15787,15769,15785,15771,15776,15784,15779,15782,15788],"class_list":["post-2807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-suites-apps","tag-audit-checkmarx-cx-c2-endpoint-ioc","tag-aws-credentials-stolen-ci-cd-build-server","tag-bitwarden-bitwarden-cli-2026-4-0-compromised","tag-bitwarden-browser-extension-safe-2026","tag-bitwarden-cli-compromised-supply-chain-2026","tag-bitwarden-cli-npm-malware-2026-4-0","tag-bitwarden-cli-remove-uninstall-compromised-version","tag-bitwarden-hack-april-2026","tag-bitwarden-self-hosted-vps-security","tag-bitwarden-vault-users-affected-no","tag-bw1-js-malware-bitwarden-npm","tag-checkmarx-malware-bw1-js-ioc-indicators-of-compromise","tag-checkmarx-supply-chain-campaign-github-actions","tag-ci-cd-pipeline-hardening-linux","tag-ci-cd-pipeline-workload-isolation-linux-server","tag-credential-theft-github-actions-runner-memory-scraping","tag-how-to-check-if-affected-bitwarden-cli","tag-linux-server-administration-managed-security","tag-npm-supply-chain-attack-ci-cd-2026","tag-npm-token-theft-github-actions","tag-remediation-bitwarden-cli-npm-compromised","tag-rotate-credentials-github-aws-azure-gcp-after-compromise","tag-ssh-keys-exposed-npm-package-malware","tag-supply-chain-attack-password-manager-npm","tag-teampcp-github-actions-compromised","tag-vps-workload-isolation-containers-docker-security"],"_links":{"self":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2807"}],"version-history":[{"count":2,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2807\/revisions"}],"predecessor-version":[{"id":2813,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2807\/revisions\/2813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2808"}],"wp:attachment":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}