{"id":"MAL-2026-6713","summary":"Malicious code in polymarket-toolkit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (65aa9243f492d222e1bb036c8ed55fb17268bd987a63ad2ea2aa1b28e44defc3)\nPackage is published as a Polymarket API client but its default export `getPlugin` performs unconditional remote code execution on use. On invocation it issues an HTTPS request to https://svganchordev.net/icons/109, takes the `data.credits` field from the JSON response, and passes it to `new Function('require','module',...,'Promise', data.credits)` with a context object exposing `require`, `process`, `Buffer`, and related Node primitives, then immediately invokes it. The fetched JavaScript runs with full Node privileges on the installer's machine. The surrounding code is dressed as an icon/CDN helper (variable names `IconProvider`, `iconDomain`, a map of cloudflare/fastly/akamai hosts, font-awesome path literals), but those strings are unused decoys; the live request path resolves to the hardcoded `svganchordev.net` host. Declared dependencies (`@primno/dpapi` for Windows DPAPI, `better-sqlite3`, `node-machine-id`) are consistent with browser-credential and machine-fingerprint extraction and are unrelated to a Polymarket API SDK. Package keywords (`react`, `helper`, `svg`) also do not match the advertised purpose. The shape is a brand-impersonating dropper targeting developers searching for a Polymarket toolkit.\n\n## Source: ghsa-malware (a4bf97d5bf46ca471f898d6b4d465215c327dcf42f4839929970de1556ec55de)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-w7x3-5xp7-6pw8"],"modified":"2026-08-06T01:21:12.162203643Z","published":"2026-07-01T20:37:33Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-01T20:37:33Z","sha256":"65aa9243f492d222e1bb036c8ed55fb17268bd987a63ad2ea2aa1b28e44defc3","source":"amazon-inspector","versions":["1.4.9"],"id":"IN-MAL-2026-007886","import_time":"2026-07-01T21:04:20.064393253Z"},{"sha256":"a4bf97d5bf46ca471f898d6b4d465215c327dcf42f4839929970de1556ec55de","source":"ghsa-malware","id":"GHSA-w7x3-5xp7-6pw8","import_time":"2026-08-06T00:58:53.467198543Z","modified_time":"2026-08-05T13:20:16Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/polymarket-toolkit/v/1.4.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w7x3-5xp7-6pw8"}],"affected":[{"package":{"name":"polymarket-toolkit","ecosystem":"npm","purl":"pkg:npm/polymarket-toolkit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.9"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-toolkit/MAL-2026-6713.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a29f4fd5a378767f105b022fac069d4d2a16744e9866865b5d8df964b2752cbc","tlsh":"59c1616546fa31a36a67e4edf30f100271a5e3133759e971f48e42902fca568e5f24e8"},{"sha256":"dd8fec230eeeb2d08ffb1abdb693f21e15b89253543f5a7f12a6d8c700cba8f3","tlsh":"57f04414ca31deb309e6159a9c39819aa161c91f5e50f80d338a879d0f4e87f62fe62c","path":"package.json"}],"package_integrity":[{"filename":"polymarket-toolkit-1.4.9.tgz","hashes":{"sha512_sri":"sha512-cK9tCp1SSXDfmf67G/ts/e2WiUqbrI/m49lmgIrkNFeBk3BAKfKXMScdytJKJbUrrb9qvEeJ40SNsxTY8W9wJw==","sha1":"d4f0614fa86d8f650ac372841af32fc51b28b540"}}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}