{"id":"MAL-2026-3182","summary":"Malicious code in redeem-onchain-sdk (npm)","details":"redeem-onchain-sdk is a malicious npm package impersonating a Polymarket on-chain SDK. It collects SSH keys, AWS credentials, .npmrc tokens, Docker auth, Chrome saved logins, .env files, and a month of git commit history, then ships everything over a raw TCP socket to an AWS-hosted C2. Two triggers fire it: a require() side effect in the package's main entry point (added in v1.0.1) and a postinstall hook (added in v1.0.5). The payload lives in dist/proxy.js, later renamed dist/index5_test.js.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (765d01eed7c5ad80c911fec6f2e1778fb2c14fa7165520416d85273858f7e3e3)\nThe package redeem-onchain-sdk was found to contain malicious code.\n","modified":"2026-04-30T23:10:54.513466Z","published":"2026-04-29T12:00:00Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.7"],"modified_time":"2026-04-30T21:59:18Z","source":"amazon-inspector","import_time":"2026-04-30T22:23:13.562263137Z","sha256":"765d01eed7c5ad80c911fec6f2e1778fb2c14fa7165520416d85273858f7e3e3"}]},"references":[{"type":"REPORT","url":"https://safedep.io/redeem-onchain-sdk-polymarket-npm-malware/"}],"affected":[{"package":{"name":"redeem-onchain-sdk","ecosystem":"npm","purl":"pkg:npm/redeem-onchain-sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/redeem-onchain-sdk/MAL-2026-3182.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}