MAL-2026-12107

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/web3-utils-crypto/MAL-2026-12107.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12107
Published
2026-08-05T06:24:32Z
Modified
2026-08-05T07:21:00.307725219Z
Summary
Malicious code in @wethenorth12/web3-utils-crypto (npm)
Details

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

Source: amazon-inspector (fc6591661338a325995ebe471f7d8157c1be9458f38336c4c11032033b150108)

On module load, index.js collects the host identifiers (os.hostname(), os.userInfo().username, home directory, platform, cwd) and the entire process.env, JSON-serializes and base64-encodes the payload, and sends it via HTTPS GET to the Telegram Bot API at api.telegram.org/bot<token>/sendMessage with a hardcoded bot token and chat_id (8969499041). A tempdir flag file gates single-shot execution. The package advertises itself as a 'Drop-in replacement for web3-utils' and attempts to require('web3-utils') to re-export it as a cover for the exfil payload; the author field is 'chainSafe', impersonating the ChainSafe organization, and the declared repository github.com/chainSafe/web3-utils-crypto does not exist. Any environment variables present in the installer or CI process (API keys, cloud credentials, CI tokens) leave to the attacker's Telegram channel the first time this module is required.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T06:24:32Z",
            "sha256": "fc6591661338a325995ebe471f7d8157c1be9458f38336c4c11032033b150108",
            "import_time": "2026-08-05T07:06:47.908127886Z",
            "source": "amazon-inspector",
            "versions": [
                "1.10.4"
            ],
            "id": "IN-MAL-2026-013447"
        }
    ]
}
References
Credits

Affected packages

npm / @wethenorth12/web3-utils-crypto

Package

Name
@wethenorth12/web3-utils-crypto
View open source insights on deps.dev
Purl
pkg:npm/%40wethenorth12/web3-utils-crypto

Affected ranges

Affected versions

1.*
1.10.4

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/web3-utils-crypto/MAL-2026-12107.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "0389798ca541ef95ca6ef2b0095231fe0f56ae259ed19bdc793aab2f0b47b017",
            "tlsh": "a421748827f2f84e17739481a92f6a0ab3fbcea1084ce760c694d5c75f740c8d959798",
            "path": "index.js"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "e89b51cef19f47ebaffed3f3507eed8c5317c9a1",
                "sha512_sri": "sha512-qZtJUZB4ayQLnsjAW2NDWRV8U3xvNRlTsht91yPEw3H9EFPG0bg/K7TyHKXfZiLX7RBaddf5FxTSvX3r+/XC5g=="
            },
            "filename": "web3-utils-crypto-1.10.4.tgz"
        }
    ]
}