MAL-2026-12068

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ledger-lib/MAL-2026-12068.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12068
Published
2026-08-05T01:47:38Z
Modified
2026-08-05T07:21:17.721566053Z
Summary
Malicious code in ledger-lib (npm)
Details

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

Source: amazon-inspector (440db517e7261bf345aa374ab2afb8d91698929115a8d3d67abd9fbf7018362e)

The npm package ledger-lib@1.0.0 presents itself as a Ledger hardware wallet library but ships no wallet functionality (index.js is empty). Its package.json declares a postinstall hook that runs postinstall.js on every npm install. postinstall.js reads a hardcoded list of installer-owned secret files including ~/.env variants, ~/.npmrc, ~/.aws/credentials, ~/.ssh/idrsa, and ~/.ssh/ided25519, then enumerates dotdirectories under the user's home and reads any file whose name matches wallet, key, secret, seed, mnemonic, keystore, or private, truncating each to 8KB. The collected contents are POSTed via https.request to the hardcoded host enxhcjpo5ev.x.pipedream.net at path /c, a Pipedream request bin acting as the attacker's collection endpoint. The stated Ledger purpose is cover for credential and wallet-seed theft executed automatically at install time.

Source: ossf-package-analysis (5b623fc6d2442970b8576d251252a68520b6b027d42fd9357051f8405769cc9d)

The OpenSSF Package Analysis project identified 'ledger-lib' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-05T03:11:11.344733391Z",
            "modified_time": "2026-08-05T01:47:38Z",
            "sha256": "5b623fc6d2442970b8576d251252a68520b6b027d42fd9357051f8405769cc9d",
            "source": "ossf-package-analysis",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T07:06:46.550541623Z",
            "sha256": "3df67fb31684dc6802cbe046ba5e34767ecddc648e0f0954fb5f1c2876c92b14",
            "modified_time": "2026-08-05T06:20:01Z",
            "id": "IN-MAL-2026-013416",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "import_time": "2026-08-05T07:06:46.989052467Z",
            "modified_time": "2026-08-05T06:21:19Z",
            "sha256": "440db517e7261bf345aa374ab2afb8d91698929115a8d3d67abd9fbf7018362e",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013425",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "import_time": "2026-08-05T07:06:45.600647226Z",
            "modified_time": "2026-08-05T06:17:32Z",
            "sha256": "8d7d2eec38e7a938c95279befcdb7cbef97e5b141873ccc50c9ed1921121fd02",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013399",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "modified_time": "2026-08-05T06:17:42Z",
            "source": "amazon-inspector",
            "sha256": "a999337fcc7050a79eb806c8bfde421fb7147508ceacce03ce7ad597dabbda36",
            "import_time": "2026-08-05T07:06:45.639685584Z",
            "id": "IN-MAL-2026-013400",
            "versions": [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ledger-lib

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "ledger-lib-1.0.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-+TVbxhRq8venXoqlyI20Bd+MtZmZKdpFt38Tydwe67q04Fs3XBGnfJ2926mTsU2gQ2vu+/3RkHY4QAkLhq9Wrw==",
                "sha1": "348d871d9cb5a05d09df13cf8620237e88a76302"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "f54134d505df162154476bd8862b31107277e2d7344aa9c43e9c6b198f1d8384a5affc",
            "sha256": "cb89d25cb941a6c4f7b12d049518b8756e9a4ce84ddaedb89c225795487ca171",
            "path": "postinstall.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ledger-lib/MAL-2026-12068.json"