MAL-2026-6996

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ec-checker/MAL-2026-6996.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6996
Published
2026-07-08T16:35:42Z
Modified
2026-07-08T17:16:46Z
Summary
Malicious code in ec-checker (npm)
Details

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

Source: amazon-inspector (dc8245936c8beb04bdb2bfe31a8117133823e3ffd6ed3e165d89b822dfab4a9c)

package.json declares a preinstall script that runs npm install @sentry/node && node examples/verify.js. examples/verify.js initializes the package's Sentry client against a hardcoded author-owned DSN (https://bbdb73451ed2cd7e25e5529f78013624@o4510485815754752.ingest.us.sentry.io/4511621197856768) with sendDefaultPii enabled, calls setUserFromPublicIp() to resolve the installer's public IP, then deliberately throws a TypeError and flushes the Sentry event. As a result, simply running npm install ec-checker transmits the installer's public IP, hostname, OS, Node runtime info, and a stack trace to the author's Sentry project without the installer's consent. Separately, src/index.js hardcodes the same DSN as DEFAULT_DSN and falls back to it whenever a caller does not pass a dsn option or set SENTRY_DSN — and the README's quick-start invokes init() with no DSN — so consumers integrating the library per the documented usage silently upload their application's runtime exceptions (stack traces, file paths, user IPs, hostnames) to the author's Sentry tenant rather than their own. The install-time beacon gives the publisher an inventory of every machine that installs the package, and the library default turns the package into a silent relay of downstream application telemetry.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-008159",
            "import_time": "2026-07-08T17:01:35.393310496Z",
            "modified_time": "2026-07-08T16:35:42Z",
            "sha256": "dc8245936c8beb04bdb2bfe31a8117133823e3ffd6ed3e165d89b822dfab4a9c",
            "source": "amazon-inspector",
            "versions": [
                "0.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ec-checker

Package

Affected ranges

Affected versions

0.*
0.0.1

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "3c4c5101041cd32728249e3f1d172c94c9ff22bef84bacc71cc630298c090f7a",
            "tlsh": "53f022248d742f2315d4b7656caa0086a7208e4746a87e1876cb022d4f8c36f24ff29c"
        },
        {
            "path": "src/index.js",
            "sha256": "7995d6ea176fd0cd1467ff019cb0e865cdaa27eba2d9f2feb9a1aa23c1212c99",
            "tlsh": "6912969a74f6232301e650f0025f90d97365c67b3379a9e071594be92fc90b8d6b3ec9"
        }
    ],
    "package_integrity": [
        {
            "filename": "ec-checker-0.0.1.tgz",
            "hashes": {
                "sha1": "866b6e4f4a3a99af338f37935af8bbbf800f8790",
                "sha512_sri": "sha512-ED3nN30lZI05cI44lqOhjhFCwbs6qZ508hcXOI+H3Yqj3As0+B36BaUbD4mbI4gSfRfMFDu966KQEJ9OdpzFtg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ec-checker/MAL-2026-6996.json"