Snyk has reported that there have been attempts or successful attacks targeting this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid using all malicious instances of the @ethersphere/bee-js package.
@ethersphere/bee-js is a Javascript client for Bee
Affected versions of this package are vulnerable to Embedded Malicious Code that acts as a loader where the malicious payload is fetched separately. A threat actor compromised the release pipeline for Ethersphere, using the project's own GitHub automation to publish a tampered version of @ethersphere/bee-js to npm and a trojanized Swarm Desktop (0.56.2) to GitHub releases.
The tampered package contains a small loader hidden within the scripts/generate-version.cjs file, which was promoted to run unconditionally as a postinstall hook. Upon installation, this loader reaches out to an external server (api[.]frameworkmetrics[.]xyz) to separately fetch a JavaScript payload. This secondary payload is then compiled and executed in-process with full Node.js privileges. The later stages of the malware utilize Ethereum smart contracts as dead drops to receive command-and-control (C2) addresses linked to the SleepyDuck/EtherDuck campaign.