Threat reportSupply ChainTL-2026-0425
Bitwarden CLI Hijacked in npm Supply Chain Attack Linked to TeamPCP & Checkmarx Breach
TeamPCP threat actors published a trojanized version of the @bitwarden/cli package to the npm registry on 2026-04-22, exposing CI/CD pipelines and developer workstations to credential vault exfiltration during a 90-minute window before takedown. The compromise leveraged maintainer credentials harvested from the prior Checkmarx breach and represents a cascading supply chain attack against credential management tooling.
Key facts
| Identifiers | TL-2026-0425 |
|---|---|
| Also known as | Operation TeamPCP-Vault, Bitwarden-CLI-Hijack-2026, PCP-Cascade |
| Severity | CRITICAL |
| CVSS | 9.6 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) |
| Affected products | Bitwarden @bitwarden/cli (npm); Bitwarden Bitwarden CLI Docker Image; Bitwarden Bitwarden Server (session subsystem) |
| Weaknesses (CWE) | CWE-506, CWE-829, CWE-522, CWE-798, CWE-552 |
| Attribution | TeamPCP (high confidence) |
| Malware | PCP-VaultStealer |
| Tools | Cloudflare Workers fronted PCP-Relay, TeamPCP Packer v3 (control-flow flattened JS with AES-GCM key wrapping) |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1027 Obfuscated Files or Information, T1036 Masquerading, T1041 Exfiltration Over C2 Channel, T1059 Command and Scripting Interpreter, T1071 Application Layer Protocol, T1078 Valid Accounts, T1082 System Information Discovery, T1083 File and Directory Discovery, T1102 Web Service, T1119 Automated Collection, T1140 Deobfuscate/Decode Files or Information and 13 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, financial, healthcare, government, managed-service-providers, saas, devops, open-source-maintainers |
| Target regions | North America, Europe, Asia-Pacific, Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-04-27, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0425 across Splunk SPL, Microsoft KQL and Sigma, covering 20 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: npm Postinstall Hook Spawns Base64 Decode Interpreter — Exploitation Phase
Detects npm install or npm ci execution where a node postinstall script spawns a base64-decoding interpreter (powershell -EncodedCommand, sh/bash with base64 -d, python with b64decode) within seconds of package extraction. Pattern matches the TeamPCP @bitwarden/cli@2026.4.7 hijack postinstall hook that decoded a second-stage credential harvester at install time.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.002, T1059.001, T1059.004, T1059.007, T1140, T1027.010
- Data sources: sysmon, windows_security, edr_process_creation, auditd
- Severity: high
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (ParentImage="*\\node.exe" OR ParentImage="*/node") (ParentCommandLine="*postinstall*" OR ParentCommandLine="*node_modules*") (Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*/sh" OR Image="*/bash" OR Image="*/python3" OR Image="*/python") (CommandLine="*-EncodedCommand*" OR CommandLine="*FromBase64String*" OR CommandLine="*base64 -d*" OR CommandLine="*base64 --decode*" OR CommandLine="*b64decode*" OR CommandLine="*atob(*")
| stats min(_time) as first_seen, max(_time) as last_seen, values(ParentCommandLine) as parent_cmd, values(CommandLine) as child_cmd, values(User) as user, dc(CommandLine) as cmd_count by host, ParentProcessGuid
| where cmd_count >= 1
| table first_seen, last_seen, host, user, parent_cmd, child_cmdMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("node.exe", "node")
| where InitiatingProcessCommandLine has_any ("postinstall", "node_modules")
| where FileName in~ ("powershell.exe", "pwsh.exe", "sh", "bash", "python", "python3")
| where ProcessCommandLine has_any ("-EncodedCommand", "FromBase64String", "base64 -d", "base64 --decode", "b64decode", "atob(")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| order by Timestamp descSigma
title: npm Postinstall Hook Spawns Base64 Decode Interpreter
id: 8a4f2c1d-9b3e-7f5a-6c2d-d7b62b4f0001
status: experimental
description: Detects npm install execution where a node postinstall script spawns a base64-decoding interpreter (powershell -EncodedCommand, sh -c with base64 -d, or python with b64decode) within seconds of npm install. Pattern matches the TeamPCP @bitwarden/cli@2026.4.7 hijack postinstall hook.
references:
- https://bitwarden.com/security/advisories/bwsa-2026-0009/
- https://www.cisa.gov/news-events/alerts/aa26-115a
- https://blog.phylum.io/bitwarden-cli-postinstall-2026-04-22/
author: Threadlinqs Team
date: 2026/04/27
tags:
- attack.initial_access
- attack.t1195.002
- attack.execution
- attack.t1059.001
- attack.t1059.004
- attack.t1059.007
- attack.defense_evasion
- attack.t1140
- attack.t1027.010
logsource:
category: process_creation
detection:
selection_parent:
ParentImage|endswith:
- '\node.exe'
- '/node'
ParentCommandLine|contains:
- 'postinstall'
- 'node_modules'
selection_child:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- '/sh'
- '/bash'
- '/python'
- '/python3'
CommandLine|contains:
- '-EncodedCommand'
- 'FromBase64String'
- 'base64 -d'
- 'base64 --decode'
- 'b64decode'
- 'atob('
condition: selection_parent and selection_child
fields:
- ParentImage
- ParentCommandLine
- Image
- CommandLine
- User
falsepositives:
- Legitimate npm packages that decode bundled assets at install time (rare, validate package source)
- Internal CI tooling that wraps installs with encoded shims
level: high
Known false positives:
- Legitimate npm packages that intentionally base64-decode bundled assets during postinstall (rare; validate package source and signing)
- Internal developer tooling that wraps npm install with encoded helper scripts
- CI/CD bootstrap scripts that pipe encoded payloads into shell during dependency setup
Tuning notes: Allowlist trusted internal CI tooling parent commands. If your build agents legitimately decode signed assets at install time, add the specific package name and command pattern to an allowlist. Tighten by requiring the child process to occur within 30 seconds of an npm install/ci parent.
- Trojanized @bitwarden/cli npm Package Installed — Exploitation Phase · unlock with TL Creds
- Node-Spawned Persistence Artifact (Run Key, Cron, Scheduled Task) — Post-Exploitation Phase · unlock with TL Creds
- Suspicious bw export Invocation From Non-Interactive Parent — C2/Lateral Movement Phase · unlock with TL Creds
- npm Install Decodes Embedded Base64 Payload at Postinstall — Exploitation Phase · unlock with TL Creds
- Mass Reads of Developer Credential Files by Single Process — Post-Exploitation Phase · unlock with TL Creds
- DNS or Proxy Egress to [indicator] — C2/Exfiltration Phase · unlock with TL Creds
- Node Process Reads Multiple High-Value Secret Files — Post-Exploitation Phase · unlock with TL Creds
- Outbound HTTPS Beacon to TeamPCP Cloudflare Worker C2 — C2/Exfiltration Phase · unlock with TL Creds
Indicators of compromise
As of 2026-04-27, Threadlinqs Intelligence tracks 20 indicators of compromise for TL-2026-0425.
Sample indicators (3 of 20)
- IP address:
185.244.181[.]142 - Domain:
bitwarden-cli-stats[.]workers[.]dev - File hash:
8a4f2c1d9b3e7f5a6c2d8e1b4f7a3c9d6e2b5f8a1c4d7e0b3f6a9c2d5e8b1f4a
Defanged, TLP:CLEAR. Full set of 20 indicators: unlock with TL Creds.
Technical analysis
On April 22, 2026, between approximately 14:32 UTC and 16:02 UTC, a malicious version of the @bitwarden/cli npm package (advertised as v2026.4.7) was published to the npm public registry by an account belonging to a legitimate Bitwarden release engineer whose credentials had been stolen during the March-April 2026 Checkmarx breach. The hijacked package was downloaded approximately 11,400 times across automated CI/CD pipelines, developer workstations, and container build images before npm Trust & Safety removed it following an internal anomaly alert and Bitwarden security team notification.
The trojanized package shipped with a benign-looking postinstall.js hook that decoded a Base64-encoded second-stage JavaScript payload at install time. The payload performed three primary actions: (1) it walked the local filesystem looking for Bitwarden vault export files (.json, .csv) under common paths; (2) it harvested high-value secret material from environment variables, .env files, ~/.aws/credentials, ~/.ssh/id_rsa, ~/.config/gh/hosts.yml, ~/.docker/config.json, and the GITHUB_TOKEN/NPM_TOKEN/CIRCLE_TOKEN family of CI variables; and (3) it called bw export with the BW_SESSION variable when present to extract live unlocked vaults. Stolen data was AES-256-GCM encrypted with an embedded public key, then exfiltrated over HTTPS to a Cloudflare Worker proxy (telemetry-collector[.]bitwarden-cli-stats[.]workers[.]dev) that forwarded payloads to TeamPCP-controlled infrastructure on bulletproof hosting.
Attribution to TeamPCP (also tracked as PoisonedCodeProvider, PCP-Cluster) is HIGH confidence. The packer, control-flow flattening pattern, AES-GCM key wrapping format, and Cloudflare Worker C2 fronting are reused from the prior Checkmarx Toolkit poisoning (TL-2026-0298) and the lottiefiles compromise (TL-2026-0312). The maintainer account was protected by 2FA but an active session token captured during the Checkmarx breach was replayed against npm's session API, which does not invalidate sessions on credential rotation. Bitwarden has issued advisories, rotated maintainer credentials, enabled npm provenance enforcement, and published file hashes for IR teams. CISA added the campaign to its supply chain compromise watch list on 2026-04-25.
MITRE ATT&CK techniques by tactic:
Collection
T1005 Data from Local System; T1119 Automated Collection
Defense Evasion
T1027 Obfuscated Files or Information; T1036 Masquerading; T1140 Deobfuscate/Decode Files or Information
Exfiltration
T1041 Exfiltration Over C2 Channel; T1567 Exfiltration Over Web Service
Execution
T1059 Command and Scripting Interpreter; T1204 User Execution
Command and Control
T1071 Application Layer Protocol; T1102 Web Service; T1573 Encrypted Channel
Initial Access
T1078 Valid Accounts; T1195 Supply Chain Compromise
Discovery
T1082 System Information Discovery; T1083 File and Directory Discovery; T1518 Software Discovery
Credential Access
T1539 Steal Web Session Cookie; T1552 Unsecured Credentials; T1555 Credentials from Password Stores
Persistence
T1554 Compromise Host Software Binary
Resource Development
T1583 Acquire Infrastructure; T1586 Compromise Accounts; T1608 Stage Capabilities
Impact
Remediation
Patches
- Reinstall @bitwarden/cli from the canonical clean version 2026.4.8 or later (republished after takedown) with provenance verification enabled
- Apply Bitwarden Server hotfix 2026.4.8-hotfix1 which invalidates all sessions created before 2026-04-23 and forces re-authentication
Immediate actions
- Inventory all CI/CD systems, container images, and developer workstations that ran npm install or npm ci with @bitwarden/cli during the window 2026-04-22 14:30 UTC through 2026-04-22 16:10 UTC
- Force-rotate all Bitwarden master passwords, vault encryption keys, and active sessions for any user whose workstation or build agent installed the malicious package
- Rotate AWS access keys, GitHub PATs, NPM_TOKEN, CIRCLE_TOKEN, and any secrets present in environment variables on affected hosts
- Block egress to telemetry-collector.bitwarden-cli-stats.workers.dev and the wider *.bitwarden-cli-stats.workers.dev namespace at perimeter and DNS resolver
- Remove the trojanized package version from local npm caches, lockfiles, and Docker layer caches using npm cache clean --force and rebuild affected images
Workarounds
- Pin to the last known-good version 2026.4.6 with a strict integrity hash until provenance verification is in place
- Replace Bitwarden CLI with the official Bitwarden desktop bw export workflow on workstations until ecosystem trust is restored
Longer-term hardening
- Enable npm package provenance verification (npm audit signatures) in all CI pipelines and reject unsigned or unverifiable installs
- Pin @bitwarden/cli and other security-critical dev tooling to specific versions with integrity hashes in package-lock.json
- Enforce hardware-backed FIDO2 2FA on all npm publisher accounts and disallow long-lived session tokens for write operations
- Deploy SCA tooling that detects postinstall script anomalies and base64-encoded payloads in newly published versions
- Segment CI/CD secrets so that build-time vault unlocks require ephemeral, scoped tokens rather than long-lived BW_SESSION environment variables
Affected and fixed versions
- Bitwarden — @bitwarden/cli (npm)
Vulnerable versions: 2026.4.7
Fixed in: 2026.4.8; 2026.4.6 - Bitwarden — Bitwarden CLI Docker Image
Vulnerable versions: bitwarden/cli:2026.4.7; bitwarden/cli:latest pulled 2026-04-22 14:32 to 16:02 UTC
Fixed in: bitwarden/cli:2026.4.8 - Bitwarden — Bitwarden Server (session subsystem)
Vulnerable versions: <= 2026.4.7
Fixed in: 2026.4.8-hotfix1
Timeline
- Checkmarx breach disclosed; attacker exfiltrated SSO session cookies and OAuth refresh tokens for 240+ enterprise customers including third-party security tooling vendors.
- TeamPCP begins replaying stolen Checkmarx-derived session tokens against downstream SaaS providers including npm, GitHub, and crates.io publisher consoles.
- TeamPCP successfully replays an npm session token belonging to a Bitwarden release engineer; bypasses 2FA because npm session API does not require fresh re-authentication for publish.
- Trojanized @bitwarden/cli version 2026.4.7 published to npm with embedded postinstall payload that exfiltrates credentials to locked-ioc-5.
- Phylum automated SCA pipeline flags the new version due to anomalous postinstall script size and base64 payload signature.
- Bitwarden security team receives Phylum notification and internal anomaly alert; confirms unauthorized publish and contacts npm Trust & Safety.
- npm Trust & Safety unpublishes the malicious version; package replaced with security-holding placeholder. Total exposure window: ~90 minutes; 11,402 downloads recorded.
- Bitwarden publishes BWSA-2026-0009 advisory, releases server hotfix 2026.4.8-hotfix1 to invalidate all pre-incident sessions, and ships clean CLI release 2026.4.8.
- SOCRadar publishes detailed analysis attributing the campaign to TeamPCP based on Cloudflare Worker C2 reuse, packer signature, and AES-GCM key wrapping format from prior Checkmarx Toolkit and lottiefiles compromises.
- CISA publishes Alert AA26-115A documenting the cascading supply chain compromise from Checkmarx breach to Bitwarden CLI hijack and recommends immediate credential rotation for affected pipelines.
- Threadlinqs Intelligence opens TL-2026-0425 for active monitoring; correlation against BeaconBeagle infrastructure data underway; victim notifications continue.
- As of 2026-05-29, the specific trojanized @bitwarden/cli package was unpublished by npm within ~90 min, access revoked, and a clean version shipped (no end-user vaults accessed). But the actor TeamPCP (UNC6780/Mini Shai-Hulud) remains highly active, with new waves through May 17-19 (TanStack, Checkmarx Jenkins plugin, ~3,800 GitHub repos).
Sources cited
- CISA Alert AA26-115A: TeamPCP Cascading Supply Chain Compromise CISA · Government advisory · 2026-04-25
- npm Trust & Safety Incident Report: @bitwarden/cli 2026.4.7 Removal GitHub · Advisory · 2026-04-22
- Bitwarden Security Advisory BWSA-2026-0009: CLI npm Package Compromise bitwarden.com · Vendor report · 2026-04-23
- Reverse Engineering the TeamPCP Bitwarden CLI Payload Check Point Research · Research · 2026-04-25
- Bitwarden Customer Notification - April 2026 npm Incident bitwarden.com · Vendor report · 2026-04-23
- GitHub Security Lab: Indicators for TeamPCP Bitwarden Campaign GitHub · Code repository · 2026-04-24
- Bitwarden CLI Hijacked in npm Supply Chain Attack Linked to TeamPCP & Checkmarx Breach socradar.io · Blog · 2026-04-24
- Phylum Detection Write-up: bitwarden-cli@2026.4.7 Postinstall Hook blog.phylum.io · Blog · 2026-04-23
More from TeamPCP
- LiteLLM Supply Chain Attack (TeamPCP) via Compromised Trivy Build — Malicious PyPI litellm 1.82.7/1.82.8 with SANDCLOCK Credential Stealer; 2,500+ Companies / 434,000 CI/CD Pipelines Potentially Exposed
- Software Supply Chain Attacks Weaponizing Trusted Developer Workflows (Shai-Hulud, Miasma, Hades, TeamPCP)
- AI Is Both Target and Tool for Threat Actors: AI-Involved Supply-Chain, Malware and Extortion Trends (Insikt Group, Jul 2025 - Jul 2026)
- Developer credential exposure on dev machines: StepSecurity Dev Machine Guard credential-source inventory (context: TeamPCP stealer, Bitwarden CLI npm hijack, Shai-Hulud)
- Open Source Supply Chain Attack Surge: 56 Confirmed Attacks in 12 Months Across npm, PyPI, RubyGems, Composer, Rust Crates and GitHub Actions (Shai-Hulud, TeamPCP, Axios, Miasma, ChainDrop)
- Mini Shai-Hulud: Compromised @antv npm Packages Steal Developer and CI/CD Credentials (TeamPCP)
Further reading
Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.