bee-js Supply-Chain Attack: Why Updating Isn't Enough
bee-js malware reached npm and Swarm Desktop through release automation; I'd investigate install hooks, rebuild exposed hosts, and rotate accessible secrets.
- Topic
- Security
- Reading time
- 8 min
- Length
- 1,706 words
- Published
- Nov 10, 2026
12:25 pm IST
In this article
- Which bee-js and Swarm Desktop versions are affected?
- Installation mattered more than application imports
- Tracing bee-js exposure across runners and laptops
- Checking whether Swarm Desktop launched
- Removing the package does not remove remote access
- Valid provenance did not enforce release review
- What a clean update cannot establish
The bee-js malware compromised @ethersphere/bee-js 13.3.0 and Swarm Desktop 0.56.2 through Ethersphere's release automation on November 10, 2026. Clean replacements are available. That's useful, but updating does not remove installed backdoors or recover stolen wallet credentials. I'd handle an affected installation as a host-recovery problem, not put it in the queue as another dependency upgrade.
The compromised releases downloaded code designed to steal Swarm node wallet files and install persistent remote access on Windows, macOS, and Linux. I'd start by asking what the installing user or CI job could read. That question matters even on a machine that has no Swarm wallet to steal.
Which bee-js and Swarm Desktop versions are affected?
The malicious npm release is @ethersphere/bee-js 13.3.0. It became npm's latest version at 00:09 UTC on November 10 and stayed there until 01:25 UTC. Version 13.2.0 was then restored as latest, and 13.3.0 was removed from the registry. Those are the versions I'd keep distinct while checking installation records.
The malicious desktop release is Swarm Desktop 0.56.2. It appeared on GitHub at about 00:36 UTC and was available for about 8.5 hours. Within about 10 minutes, the built-in updater could offer it to Windows x64 systems and Apple Silicon Macs. Intel Macs were not offered that desktop update. Linux installations do not update automatically, so the desktop update path wasn't the same on every platform.
The replacement-version discrepancy is worth spelling out rather than leaving readers to reconcile it during recovery. OX Security's table, reproduced in the Ethersphere recovery guidance, marks the desktop release as live and names 0.56.1 as the fix. That conflicts with the maintainer's incident note, where 0.56.3 is the clean replacement, and with The Hacker News reporting of 0.56.2's withdrawal. Version 0.56.3 contains the same code as 0.56.1, signed with a newly issued Developer ID certificate. I'd use 0.56.3. I wouldn't read that older table as the current recovery instruction.
Installation mattered more than application imports
The npm loader ran through a postinstall script. Installing the package was enough to trigger it unless installation scripts were disabled. No application import was necessary. The application did not have to call a bee-js function or start its service, either, which is why I'd begin with installation rather than application behavior.
Someone didn't have to choose the malicious version deliberately. Ethersphere's swarm-cli and bee-dashboard packages, along with Swarm Desktop's source, accepted dependency ranges that included 13.3.0. A fresh installation during the exposure window could therefore pull in that version through an indirect dependency. I'd check that path as carefully as a direct dependency.
For the Node.js services and editorial tooling I work on, I'd reach for installation records before searching application code for imports. The question I want answered is concrete: which machine resolved this package, and did its installation hook run? A repository search alone would leave that unanswered, however reassuring the search results might look.
The loader fetched code from api.frameworkmetrics[.]xyz and executed it with the user's permissions. It also suppressed network errors. A successful-looking installation is therefore not evidence of safety. Requests without supported platform information could receive a benign-looking decoy script, so I wouldn't let a harmless response to a manual request outweigh evidence from an actual installation. Those are different observations.
Tracing bee-js exposure across runners and laptops
I'd keep dependency discovery and execution evidence separate in my notes, while still following the advisory's conservative containment stance. Under the GitHub advisory, any computer with the package installed or running is treated as fully compromised. For npm, the specific automatic execution condition is narrower: the installation hook running with scripts enabled. I'd preserve that distinction without using it to put off containment.
- Find the resolution. I'd search lockfiles for @ethersphere/bee-js at 13.3.0, including indirect dependencies, then search package caches and internal registries as well. The lockfile isn't the only place I'd look.
- Trace the installation. I'd review CI installation logs to identify affected runners and establish whether installation scripts were enabled. Where the logs are missing, I'd record the uncertainty instead of treating the gap as proof that nothing happened.
- Identify accessible credentials. I'd inventory the passwords, tokens, and keys available to the installing user or job. That inventory would be my working list for credential rotation from a clean computer.
- Stop reinstalling the payload. I'd pin bee-js to 13.2.0 and clear cached copies of 13.3.0. Any internal npm mirror belongs in that cleanup too, not just the local package cache.
I'd rather contain a suspect runner than spend that time debating whether its downstream application used the library. That doesn't mean flattening every finding into the same claim. A lockfile entry and confirmed execution are different findings, and I'd label them that way in the investigation notes, even when both justify immediate caution.
Checking whether Swarm Desktop launched
Swarm Desktop takes a separate execution path. The affected app runs the loader whenever it starts. On every launch, version 0.56.2 writes Bee Desktop version: 0.56.2 (production) to bee-desktop.log, immediately before executing the malicious code. That's the launch marker I'd look for, rather than trying to infer a launch from installation alone.
On macOS, I'd use this command to search for that exact marker:
grep 'Bee Desktop version: 0.56.2 (production)' "$HOME/Library/Logs/Swarm Desktop/bee-desktop.log"
On Windows, the log directory is %LOCALAPPDATA%\Swarm Desktop\Log\. On Linux, it is ~/.local/state/Swarm Desktop/. I'd preserve the relevant logs before starting recovery work. A matching launch marker would be a reason to act on the compromise, not merely a reminder to install the replacement version.
Under SafeDep's guidance, any computer where Swarm Desktop 0.56.2 was installed is considered compromised. If it ran, I'd treat the node's key and password as stolen. I'd move the node's funds, chequebook, and stake to a new key from a clean computer, and install 0.56.3 as well. Linux packages require manual replacement; they won't replace themselves through an automatic update.
Removing the package does not remove remote access
The wallet theft targets config.yaml and data-dir/keys/swarm.key in Swarm Desktop's data directory. The key is an encrypted Ethereum keystore. The problem is that its unlocking password sits in plain text in config.yaml. With both files, attackers can access the node wallet's xDAI and xBZZ tokens, chequebook funds, and stake. I'd account for both files, not take reassurance from the encrypted key alone.
The payload also installs persistence that does not depend on those wallet files:
- Linux and macOS: a Go remote shell called evjawbreaker in ~/.solidity/. On Linux, persistence uses the solidity-langsupport-runner.service user service. On macOS, it uses the com.solidity.langsupport.runner LaunchAgent.
- Windows: a genuine, ConnectWise-signed ScreenConnect client. It runs as the ScreenConnect Client (5cbe79c9c25524df) service and connects to the attackers' relay.
Updating, reinstalling, or removing bee-js or Swarm Desktop leaves those backdoors in place. That's the part I wouldn't let an application upgrade obscure. I'd rebuild an affected machine from a trusted image where possible. If I couldn't avoid an in-place cleanup, I'd include the hidden directory and the applicable service or LaunchAgent, rather than stop once the original application was uninstalled.
This is the distinction I mean by restoring operation from restoring trust. A clean application installation addresses the application, and only that. Before calling the host recovered, I'd still need to account for persistent access and every credential the compromised user could read. Those questions don't disappear because the clean application starts.
I'd use network evidence too. The loader uses /v1/analytics for bee-js and /v1/electron for Swarm Desktop, with the header X-Ethersphere: 1. Wallet uploads use /v1/swarm/report. There is a limit to what I'd infer from a missing destination, though: evjawbreaker reads its control-server address from an Ethereum contract, allowing that destination to change. The absence of one observed control-server address would not be clearance in my investigation.
Valid provenance did not enforce release review
Both malicious releases came from bee-worker, Ethersphere's release-automation account. Neither malicious change was signed or submitted through a pull request. Publishing a bee-js GitHub release triggered an npm workflow without approval, and publication completed in 73 seconds. The release path did not require a reviewer to intervene.
The npm package had valid provenance because the real project workflow built it. That established where the build came from. It did not establish whether someone had reviewed its contents. The desktop workflow likewise required no approval and had access to Apple and Windows signing certificates. The resulting macOS application carried Ethersphere's Developer ID signature and Apple's notarization. I'd keep those properties separate from review.
I'd keep provenance, but I wouldn't ask it to stand in for a review boundary. My priority would be an approval gate before a release job can access publishing or signing authority, not an assumption that a valid build origin makes that gate unnecessary. Ethersphere has since restricted app-signing jobs to the main branch and added DevOps-team approval.
In my own release design, I'd examine who can start those privileged jobs and exactly where approval occurs. This is the same distinction I care about in security changes that still need verification: a trusted mechanism is useful within the boundary it actually checks. I'd want the review boundary visible, rather than infer it from a successful signed release.
What a clean update cannot establish
No theft of funds had been reported at the time of the incident reporting. I wouldn't read that as evidence that wallet files remained private. Download counts leave a different question unanswered: how many machines actually executed the payload? They don't establish that number, so I wouldn't use them to estimate whether an individual host was safe.
Disabling npm installation scripts addresses the automatic npm trigger. It does not address the separate desktop launch path. The reverse distinction matters too: Intel Macs being excluded from the desktop updater does not rule out npm exposure. I'd investigate each path independently instead of letting a negative finding on one settle the other.
For projects that can tolerate delayed dependency updates, I'd consider a minimum package-age policy. I'd be accepting slower access to fresh releases, and I wouldn't treat that delay as a substitute for host recovery or release approval. If neither affected version reached your environment, I wouldn't rebuild machines solely because you use Node.js. If one did execute, I'd recover the host and credentials first. Dependency maintenance can wait until that work is done.
Sources
https://bytemuni.com/cyber-security/malware-threats/bee-js-malware-and-swarm-desktop-recovery/
This is the source this article is based on. Many articles on this blog are drafted with AI and checked against their source automatically; the editorial policy explains how, and how to report a mistake.
Frequently asked
Which versions should replace the compromised releases?
Pin @ethersphere/bee-js to 13.2.0 and install Swarm Desktop 0.56.3. Replace Linux desktop packages manually. These changes do not remove a backdoor already installed.
Am I safe if my application never imported bee-js?
Not necessarily. The malicious npm release ran through a postinstall script, so installation with scripts enabled could execute it without an application import.
Does disabling npm installation scripts rule out this compromise?
It prevents the automatic bee-js installation-hook trigger, but it does not address Swarm Desktop 0.56.2 executing its loader when launched. Investigate that path separately.
Were Intel Macs exposed through the desktop auto-updater?
Intel Macs were not offered Swarm Desktop 0.56.2 through the built-in updater. That exclusion does not establish safety from the separate npm installation path.
Weekly newsletter
Liked this? Get the next one by email
One short email a week with new articles on React, Node.js, TypeScript and AI engineering. No spam. Unsubscribe in one click.
Further reading
Related tutorials from ByteMuni, my developer publication.
- Cyber SecurityWithdrawal recovery at Binance leaves networks pendingWithdrawal recovery at Binance remains network-specific after the hack, with reserve snapshots and frozen USDC answering different operational questions.
- Interview PreparationTop 25 Cybersecurity Interview Questions for Mid-Level Roles (2026)The 25 cybersecurity interview questions mid-level candidates face in 2026, from TLS 1.3 and OWASP Top 10:2025 to cloud incidents, supply chain and AI security, with answers that impress.
- SQL DatabasesWhat’s New in credcheck v6.0 for PostgreSQL UsersCredcheck v6.0's new features for enhanced PostgreSQL security, including integration with PgBouncer.