{"id":"MAL-2026-12803","summary":"Malicious code in shiftmarkets-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b1628a8b4e8b6c4c117f2a38f7d69664950c1d5758772c64c2225f296f681c29)\nThe 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.\n","modified":"2026-08-05T14:37:20.731969517Z","published":"2026-08-05T13:13:06Z","database_specific":{"malicious-packages-origins":[{"versions":["2.1.0"],"id":"IN-MAL-2026-014929","import_time":"2026-08-05T14:19:43.942289565Z","modified_time":"2026-08-05T13:13:06Z","sha256":"b1628a8b4e8b6c4c117f2a38f7d69664950c1d5758772c64c2225f296f681c29","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/shiftmarkets-sdk/v/2.1.0"}],"affected":[{"package":{"name":"shiftmarkets-sdk","ecosystem":"npm","purl":"pkg:npm/shiftmarkets-sdk"},"versions":["2.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/shiftmarkets-sdk/MAL-2026-12803.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"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"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}