Malicious package · npm
Malicious code in wallet-adapter-wallets (npm)
1.2.0No safe version. Remove it.What it does
The package declares a postinstall lifecycle script that fetches bytes from the hardcoded anonymous file-host URL https://peerbox.cloud/sd/gK8GnahTud4S4IY0byReRg, writes them to bin/chromedriver.exe, sets mode 0755 on non-Windows platforms, and spawns the downloaded file detached with --port=9515. The destination host is not an official ChromeDriver or Chromium distribution point, the URL path is an opaque token rather than a versioned release artifact, and the integrity check is bypassable through the PEERBOX_SHA256 environment variable or a --no-verify flag. The package name (wallet-adapter-wallets) is unrelated to the browser-test-automation purpose claimed in package.json and DISCLOSURE.md, which pre-emptively frames the install-time download-and-execute as comparable to Puppeteer or Playwright. Because the fetch and execution fire automatically on npm install, whoever controls that URL obtains arbitrary code execution on every installing developer machine or build agent, and the fetched bytes can be changed at any time without republishing the package.
Reported by ghsa-malware Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall wallet-adapter-walletsSources