Ethersphere releases compromised with malware targeting Swarm node keys
Malicious versions of bee-js and Swarm Desktop were published via Ethersphere's release automation, attempting to steal node wallet keys and install backdoors.
Attackers leveraged Ethersphere's release automation to distribute malicious versions of two tools for the Swarm decentralized storage network: bee-js 13.3.0 and Swarm Desktop 0.56.2. These tainted releases were designed to download and execute code that targets the wallet key associated with a Swarm Desktop node, alongside the stored password used to unlock that key.
According to supply chain security researchers, the malicious code installed a backdoor across Windows, macOS, and Linux systems. While Ethersphere maintainers have since withdrawn the compromised releases and issued a clean update (Swarm Desktop 0.56.3), these measures do not remove the backdoor from already-infected machines nor secure keys that may have already been exfiltrated to the attackers. As of the most recent reporting, no theft of funds had been confirmed.
The impact of the bee-js release was limited by platform-specific update mechanisms; Socket, a supply chain security company, noted that the built-in updater for the app could offer the release to Windows x64 computers and Apple Silicon Macs within roughly ten minutes, but did not target Intel Macs, while Linux installations do not update automatically. In the case of bee-js, the malicious code executed as a postinstall script during the npm installation process, meaning a project did not need to explicitly import the library for the code to run.
A fresh installation during the window when the malicious version was the latest on npm could have pulled in the compromised code. For projects using bee-js in CI jobs, the malicious code ran as a postinstall script, which npm executes during installation unless the user disables install scripts, posing a risk to any system that processed the package during the brief period it was available as the latest version.
Sources2
Reporting and evidence linked in this story.
Claim connections3
Attackers used Ethersphere's release automation to publish malicious versions of bee-js 13.3.0 and Swarm Desktop 0.56.2 that steal node wallet keys and passwords.
confirmedConnected sources2
The malicious code installed a backdoor on Windows, macOS, and Linux systems.
confirmedConnected sources1
Socket stated that the app's built-in updater could offer the release to Windows x64 and Apple Silicon Macs within about 10 minutes, but not Intel Macs, and Linux installs do not update automatically.
confirmed