MAL-2026-12509

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@shiftmarkets/shift-exchange-root/MAL-2026-12509.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12509
Published
2026-08-05T13:10:30Z
Modified
2026-08-05T14:35:11.245379545Z
Summary
Malicious code in @shiftmarkets/shift-exchange-root (npm)
Details

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

Source: amazon-inspector (de9a3ac8f48d96507de8b8495dfc844f6fb44ae7667ee571dab05fc7d8453551)

On npm install, the package's postinstall hook (scripts.postinstall: 'node dist/recon.js || true') automatically runs dist/recon.js, which collects the installer's hostname, username, SUDOUSER, home directory, current working directory, internal IPv4 addresses for each network interface, DNS domain (via execSync of dnsdomainname), the full sorted list of process.env variable names, CI indicators, and the npm user-agent/cache, and POSTs this JSON payload to http://138.68.108.20:80/cb over cleartext HTTP. The env-var name list is additionally filtered by a credential regex (AWS|GCP|GOOGLE|AZURE|NPM|NODEAUTH|DOCKER|KUBE|VAULT|TOKEN|SECRET|KEY|PASS|CRED|GITHUB|GITLAB|SSH) and shipped as a separate credential-shaped-name inventory. The destination is a bare IP unaffiliated with the @shiftmarkets scope's publisher, contacted over plain HTTP. The package's main entry (dist/index.js) exports only trivial math helpers (sum/subtract/multiply/divide) that do not match the @shiftmarkets/shift-exchange-root name, and a header comment in the recon script labels the collection as 'NON-SENSITIVE telemetry only... env var NAMES (never values)' — a cover story that contradicts the actual collection of host identity, internal network topology, sudo user, and credential-shaped env key inventory.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T13:10:30Z",
            "source": "amazon-inspector",
            "sha256": "052083bd22d8bc3cabb204fb84cc09e310a42f9619d34e6c82eb2effbc99c1ba",
            "import_time": "2026-08-05T14:19:42.330612833Z",
            "id": "IN-MAL-2026-014912",
            "versions": [
                "3.9.9"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T13:11:11Z",
            "id": "IN-MAL-2026-014916",
            "import_time": "2026-08-05T14:19:42.723708563Z",
            "sha256": "de9a3ac8f48d96507de8b8495dfc844f6fb44ae7667ee571dab05fc7d8453551",
            "versions": [
                "2.9.9"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T13:11:48Z",
            "id": "IN-MAL-2026-014920",
            "import_time": "2026-08-05T14:19:43.062372352Z",
            "sha256": "8cd23e448aa51d5a7ab60c7ce2a5ae55a98cee632e525589fd717c56ec10d833",
            "versions": [
                "1.9.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @shiftmarkets/shift-exchange-root

Package

Name
@shiftmarkets/shift-exchange-root
View open source insights on deps.dev
Purl
pkg:npm/%40shiftmarkets/shift-exchange-root

Affected ranges

Affected versions

1.*
1.9.9
2.*
2.9.9
3.*
3.9.9

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "shift-exchange-root-3.9.9.tgz",
            "hashes": {
                "sha512_sri": "sha512-2gdPJTIWs857suvvCQt96qkM2KTqWppHWiQMNSjknfsuFX1d7mVWksVkMZAcVTqvQPQZw63GZl7hCPiNrW2Haw==",
                "sha1": "8a1aad576a96794afe507d83dee91277adb64b2d"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "0c51845612b92532229256a9366b10013233f0273f85f9d8bddc13611fcd42d41f6bed",
            "sha256": "cf516a4fddaeeec18aa158b24503fb532cb928411b6720ee31516e9b00510057",
            "path": "dist/recon.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@shiftmarkets/shift-exchange-root/MAL-2026-12509.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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"
    }
]