Version 13.3.0 of the npm package @ethersphere/bee-js and version 0.56.2 of Swarm Desktop were released in compromised form, according to analyses by software security firms on 9 November. The malicious code stole Swarm node wallet keys and installed a persistent backdoor that took commands through Ethereum. Researchers advise treating any machine that installed these versions as compromised and moving funds to a new key created on a clean system. bee-js 13.2.0 and Swarm Desktop 0.56.3 are considered safe.

What it means: This is yet another software supply-chain attack, where the intruder does not hit the end user but the package that user trusts. For Greek development teams, the lesson is not only for those working on Web3. Every JavaScript project installs hundreds of dependencies, and an automatic upgrade to a new version can bring malicious code onto a developer's laptop or a CI server. Using lockfiles, waiting a few days before adopting new releases and monitoring with package-scanning tools cut the risk significantly. The fact that the backdoor received commands through a blockchain makes it hard to block with simple address filtering. For businesses that keep crypto keys on development machines, losses can be immediate and irreversible. From 2027 the EU Cyber Resilience Act will require makers of products with digital elements to handle vulnerabilities throughout the product's life, and incidents like this show why. Keeping a software bill of materials helps teams find quickly which systems are affected when a package turns out to be malicious. Teams should also separate signing keys and wallet keys from everyday development environments, so that one infected tool cannot reach them.

Read the original on Socket

Related service: Custom software

Related stories