ethers-wallet-package
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-7pvf-g7jg-rxpj
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in ethers-wallet-package (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec)
Package name impersonates the official @ethersproject/wallet, and package.json spoofs the ethers.js maintainer identity (author 'Richard Moore <[email protected]>'). The compiled lib/index.js wraps the Wallet constructor with an obfuscated VM-based interpreter whose base64-encoded op-array contains the plaintext target URL https://api.telegram.org/bot<redacted>/sendMessage and chat_id 7959381237. On every new Wallet(privateKey) call, the constructor POSTs the private key as JSON to that Telegram bot, giving the attacker full control over the victim's Ethereum funds. The Wallet class is the package's only advertised API, so any caller that imports the package and constructs a wallet leaks the key on first use.
Source: ghsa-malware (220ce4e0be76da392304c8cfc16d134919d9a35c6925ea0a6df8c9e562ed0e62)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0