From:
Kill Chain:
The root
package.jsonadvertises@bitwarden/cliversion2026.4.0, while the embedded application metadata inbuild/bw.jsstill references2026.3.0. That mismatch strongly suggests the malicious packaging layer was added on top of an older legitimate Bitwarden CLI release rather than being produced through the normal vendor build pipeline.Operationally, the infection flow is simple:
A victim installs or runs
@bitwarden/cliversion2026.4.0npm executes
preinstall, which runsbw_setup.jsThe loader downloads Bun from GitHub if needed
Bun runs the malicious payload
The payload steals local, CI, GitHub, and cloud secrets
The result set is encrypted and sent to
audit[.]checkmarx[.]cxIf that path fails, the malware pivots to GitHub-based fallback channels
Remediation:
If
@bitwarden/cliversion2026.4.0was installed, responders should assume developer and cloud credentials exposed on that host are compromised.Immediate containment:
npm uninstall -g @bitwarden/cli npm cache clean --force npm config set ignore-scripts trueSearch for loader artifacts and downloaded Bun runtime in working directories where the package may have executed:
rg -n "audit\\.checkmarx\\.cx|LongLiveTheResistanceAgainstMachines|beautifulcastle" . ls -la bun bun.exe bw1.js bw_setup.js 2>/dev/nullReview and rotate likely exposed secrets:
gh auth logout npm token list aws configure listAdditional response actions:
Revoke all GitHub PATs present on affected systems
Rotate npm tokens and invalidate CI publishing tokens
Rotate AWS access keys and review access to SSM and Secrets Manager
Review Azure Key Vault audit logs and rotate affected secrets
Review GCP Secret Manager access logs and rotate affected secrets
Inspect GitHub Actions workflows and repository artifacts for unauthorized runs or branches
Review shell history and AI tooling configuration files for sensitive data leakage
Block
audit[.]checkmarx[.]cxand94[.]154[.]172[.]43at network egress pointsEnforce npm script controls where possible, including
ignore-scriptsfor untrusted installsUse JFrog Xray and JFrog Curation to block malicious and hijacked packages before installation