Press Enter to search · ESC to close

Crypto

Swarm Supply Chain Attack: Malicious npm Package and Desktop Update Compromise Node Wallets

Ethersphere, the team behind Swarm, suffered a supply chain attack via a malicious bee-js npm package and a trojanized desktop update. The malware exfiltrated node configuration files and wallet keystores, potentially exposing node wallets. Both malicious versions have been removed, with no confirmed losses yet.

Swarm Supply Chain Attack Targets Node Wallets via Malicious npm Package

Ethersphere, the development team behind decentralized storage project Swarm, has suffered a supply chain attack that exposed node wallets to potential theft. On November 9, attackers published a malicious version of the bee-js library (13.3.0) to npm and pushed a trojanized Swarm Desktop 0.56.2 through automatic updates. The malicious code reads Bee node configuration files and encrypted wallet keystores, exfiltrating them to the attacker. Because configuration files store keystore passwords in plaintext, node wallets could be fully compromised. The malware also installs a remote-control backdoor. Both the npm package and desktop version have been removed, and no confirmed fund losses have been reported.

Anatomy of the Attack

The attack exploited trust in the software supply chain. By compromising the official bee-js package and the desktop auto-update mechanism, attackers reached users who believed they were running legitimate software. The bee-js library is a JavaScript client for interacting with Bee nodes, and Swarm Desktop provides a user-friendly interface for running a node. The malicious version was live for less than a day but may have been downloaded by node operators who auto-updated.

This incident highlights a growing trend: attackers target the development and distribution layers rather than the blockchain itself. Smart contracts may be audited, but the tooling that users rely on to interact with them often receives less scrutiny. The plaintext storage of keystore passwords in configuration files is a particularly dangerous design choice, as it turns a simple file read into a full wallet compromise.

Industry Implications

Supply chain attacks are becoming more frequent in crypto. In recent months, several projects have faced similar threats through compromised dependencies, malicious browser extensions, and fake app updates. For node operators, the incident underscores the need for strict update policies, signature verification, and isolation of wallet keys from node infrastructure.

  • Verify before updating: Node operators should manually verify package signatures and checksums before applying updates.
  • Separate keys from nodes: Avoid storing keystore passwords in plaintext; use hardware wallets or secure enclaves for node funds.
  • Monitor dependencies: Development teams should implement software bill of materials (SBOM) and automated dependency scanning.
  • Incident response: Ethersphere acted quickly to remove the malicious versions, but users who downloaded them should assume compromise and rotate keys.

Forward-Looking Perspective

As decentralized storage and infrastructure projects mature, security must extend beyond consensus mechanisms to the entire software lifecycle. The Swarm incident is a wake-up call for the crypto industry to adopt DevSecOps practices and for users to treat node software as critical infrastructure. While no losses have been confirmed, the attack demonstrates that the weakest link is often the update channel. Projects should consider implementing signed releases, reproducible builds, and mandatory multi-factor verification for auto-updates. Regulators and auditors may also begin to scrutinize software supply chain security as part of broader crypto compliance. For now, Swarm node operators should immediately check their systems for indicators of compromise and move funds to safe wallets.

View original

Share
Risk notice This site provides news and information on the crypto, blockchain and Web3 industry for reference only and does not constitute investment advice or any promise of returns. Virtual currency-related activities are illegal financial activities in mainland China; digital asset prices are highly volatile; use at your own risk. This site does not provide trading, token issuance or related referral services.

Related Reading

Latest News

TREE NEWS share card
Long-press image above → Save to Photos / Share
Pitch us Feedback