MAL-2026-12803

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/shiftmarkets-sdk/MAL-2026-12803.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12803
Published
2026-08-05T13:13:06Z
Modified
2026-08-05T14:37:20.731969517Z
Summary
Malicious code in shiftmarkets-sdk (npm)
Details

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

Source: amazon-inspector (b1628a8b4e8b6c4c117f2a38f7d69664950c1d5758772c64c2225f296f681c29)

The package declares a postinstall hook that runs dist/recon.js on npm install. The script collects hostname, username, sudo_user, homedir, cwd, internal IPv4 addresses of all network interfaces, DNS domain, CI indicators, and the full list of process.env variable names — including a subset filtered against a regex matching AWS/GCP/AZURE/NPM/TOKEN/SECRET/KEY/PASS/CRED/GITHUB/SSH keywords — and POSTs the JSON payload over plain HTTP to http://138.68.108.20/cb, a hardcoded bare IP unrelated to the package's stated SDK purpose. A docstring header labels the collection as 'NON-SENSITIVE telemetry only' while the code simultaneously enumerates and filters environment variable names for credential-shaped keywords, indicating deliberate mislabeling of pre-attack reconnaissance as benign telemetry.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "b1628a8b4e8b6c4c117f2a38f7d69664950c1d5758772c64c2225f296f681c29",
            "source": "amazon-inspector",
            "import_time": "2026-08-05T14:19:43.942289565Z",
            "modified_time": "2026-08-05T13:13:06Z",
            "versions": [
                "2.1.0"
            ],
            "id": "IN-MAL-2026-014929"
        }
    ]
}
References
Credits

Affected packages

npm / shiftmarkets-sdk

Package

Affected ranges

Affected versions

2.*
2.1.0

Database specific

indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha1": "fc6d5040c53b343da743321dcfb30aec2a5db3f5",
                "sha512_sri": "sha512-9i1eTCI7wdessKbFsEMcesvVuJbTX/Ihh524jYUB+l6lEDkobzQehciDJxQAShIESWB62R//cRKzJ5OGNFSekA=="
            },
            "filename": "shiftmarkets-sdk-2.1.0.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "dist/recon.js",
            "sha256": "cf516a4fddaeeec18aa158b24503fb532cb928411b6720ee31516e9b00510057",
            "tlsh": "0c51845612b92532229256a9366b10013233f0273f85f9d8bddc13611fcd42d41f6bed"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/shiftmarkets-sdk/MAL-2026-12803.json"