MAL-2026-13343

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-signer/MAL-2026-13343.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13343
Published
2026-08-05T15:40:13Z
Modified
2026-08-05T16:51:01.862986248Z
Summary
Malicious code in ethers-signer (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (153163572a9fdf26e63ad50dd80b9fc3a28b22e89dea3e82acbd23a7ed7b265b)

The package is a typosquat of @ethersproject/abstract-signer. On require of the main module, index.js reads the full process.env plus hostname, username, homedir, platform, and cwd, base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org/bot<token>/sendMessage with a hardcoded bot token and chatid 8969499041. A flag file in the OS temp directory gates repeat sends. The code also attempts to require and re-export the legitimate @ethersproject/abstract-signer to mask the malicious behavior. Any environment variables the installer has exported at import time (AWS*, GITHUBTOKEN, NPMTOKEN, database URLs, etc.) leave the host to the attacker's Telegram chat.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "153163572a9fdf26e63ad50dd80b9fc3a28b22e89dea3e82acbd23a7ed7b265b",
            "id": "IN-MAL-2026-015787",
            "modified_time": "2026-08-05T15:40:13Z",
            "import_time": "2026-08-05T16:13:45.086845318Z",
            "source": "amazon-inspector",
            "versions": [
                "3.2.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ethers-signer

Package

Affected ranges

Affected versions

3.*
3.2.1

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "eac3d7e7d13f3aa71bec6ca6df0c24c72ec8682549968f79e3d6d6ab64741830",
            "path": "index.js",
            "tlsh": "c12154c827f1f98d23736a91e41f650ef3bbc9e10488fa50d1a8d5832f741c89969798"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-5GkjnHA1QdxDZKkjPSMycIc/O1jo9D3HO0kdHhbWtxi7/9mHmzfdG0pk6ekfeUV9ZLYdNUSIPJ07HbFlbxcMzQ==",
                "sha1": "3b6515902836436c15107ba30c719ca790aa9922"
            },
            "filename": "ethers-signer-3.2.1.tgz"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-signer/MAL-2026-13343.json"