MAL-2026-11534

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/xrp-lib/MAL-2026-11534.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11534
Published
2026-08-04T22:07:35Z
Modified
2026-08-04T23:04:48.687802950Z
Summary
Malicious code in @zzzgenesis00/xrp-lib (npm)
Details

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

Source: amazon-inspector (49ad59aa1c004d723d6e24f8113d8f3d45728c0b26fc41531ec00c0f91d2ddef)

The package impersonates XRPLF's xrp-lib (author metadata and homepage point at github.com/XRPLF/xrp-lib) while being published under an unrelated scope. Its postinstall.js runs automatically on npm install and collects host metadata, iterates ~40 credential-shaped environment variables (NPMTOKEN, NODEAUTHTOKEN, GITHUBTOKEN, AWS_*, MNEMONIC, SEEDPHRASE, ETHEREUMPRIVATE_KEY, and similar), reads ~/.ssh, ~/.npmrc, and ~/.gitconfig, indexes Chrome/Firefox profile stores, runs npm whoami and git config, and enumerates wallet directories. The harvested profile is exfiltrated via two hardcoded non-first-party destinations: api.telegram.org using a hardcoded bot token and chat id, and https://40f955f39128bd79-178-249-214-24.serveousercontent.com/collect via POST. Identifiers are mangled (_uzy/_cod/_ndz/_cp/_ht/_tk/_ch), the payload is disguised with a 'postinstall environment verification' comment, and exfil is delayed via setTimeout with a 1.5–3.5s random jitter to hide from install traces.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-04T22:07:35Z",
            "source": "amazon-inspector",
            "sha256": "49ad59aa1c004d723d6e24f8113d8f3d45728c0b26fc41531ec00c0f91d2ddef",
            "import_time": "2026-08-04T22:30:11.768657804Z",
            "id": "IN-MAL-2026-011341",
            "versions": [
                "2.14.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @zzzgenesis00/xrp-lib

Package

Name
@zzzgenesis00/xrp-lib
View open source insights on deps.dev
Purl
pkg:npm/%40zzzgenesis00/xrp-lib

Affected ranges

Affected versions

2.*
2.14.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": "xrp-lib-2.14.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-WpF15k2SCyqE9Rg949fUDCOq5uo/Pvt83dOiQC8K66fu71QkAUcMoaAKAgM9VGYeKatP1M0EK0i1WRz8lgF7JA==",
                "sha1": "8ec99e004cffc482d1c76ac614d4ff9b10246edd"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "5ad1729622e6031c6892a9ad878f10241676e0433818fbf8bedd5f510f4e52cdaf57ac",
            "sha256": "263baeab3406bce9899e462ba25c6ce0f74bf926df42d49ea629971c3bbb78c2",
            "path": "postinstall.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/xrp-lib/MAL-2026-11534.json"