MAL-2026-4553

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-wallet-package/MAL-2026-4553.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4553
Published
2026-05-20T18:24:59Z
Modified
2026-05-26T06:02:31.255987997Z
Summary
Malicious code in ethers-wallet-package (npm)
Details

-= 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 me@ricmoo.com'). 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "5.8.0"
            ],
            "sha256": "c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec",
            "import_time": "2026-05-26T05:50:54.450531163Z",
            "modified_time": "2026-05-20T18:24:59Z",
            "id": "IN-MAL-2026-003584",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / ethers-wallet-package

Package

Name
ethers-wallet-package
View open source insights on deps.dev
Purl
pkg:npm/ethers-wallet-package

Affected ranges

Affected versions

5.*
5.8.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "ethers-wallet-package-5.8.0.tgz",
            "hashes": {
                "sha1": "e3cd06a43482b9f48fe222129d551d032fa1e30f",
                "sha512_sri": "sha512-z3a4ECBBTeWN6UcdO8zzp3d527LW1CBEuTYs3qiPHGu7SqCpMvmx8Qi+urBmqYDV8hL7HTSup2KbZ//b0ylVdw=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "e9d3b8029386747b0176d1b44bebece5f27a9c53121434eef50d8ea07f813a9067aadc",
            "sha256": "e55dc8e38a487b0cbfb8a526c07240f04070062a26a459a604195b81317a456a",
            "path": "lib/index.js"
        },
        {
            "tlsh": "5d315981c93dcee757cc1a94441d68cab13a48174844b85d339a492a4f8f32f2efd94f",
            "sha256": "e044635eb121d847ec7212b5f1445692843fa75b52eb3afd25f75bb9c8a160e5",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-wallet-package/MAL-2026-4553.json"