redeem-onchain-sdk@1.0.1
Malicious code in redeem-onchain-sdk (npm)
Analysis
redeem-onchain-sdk@1.0.1 is a credential-theft supply-chain attack disguised as a Polymarket redemption SDK. The main entry point (dist/index.js) requires dist/proxy.js via __exportStar, which executes immediately. proxy.js: (1) performs self-modifying cleanup — deletes a file and rewrites package.json to {"name":"example","version":"4.2.1"} to evade detection; (2) decrypts heavily obfuscated strings (AES-256-CTR + XOR) containing the C2 server address 52[.]50[.]248[.]137:9999; (3) collects hostname, username, and external IP via api[.]ipify[.]org; (4) reads credential files from the home directory including ~/.aws/credentials, ~/.docker/config.json, ~/.ssh/id_rsa, ~/.ssh/config, ~/.npmrc, ~/.netrc, and Chrome Login Data; (5) runs git log for activity history; (6) encrypts all stolen data with AES-256-GCM and exfiltrates to the C2 at 52[.]50[.]248[.]137:9999 over TCP. The legitimate-looking Polymarket allowancing/redemption code in allowances.js and redeem.js is a decoy facade.
- analyzed by
- Leitwacht
- first seen
- Jun 13, 2026, 02:38 AM
- analyzed
- Jun 13, 2026, 02:43 AM
Related advisories
- period-newline@0.1.0
- weight2loss@1.0.5
- gpt-terminal-cli@1.0.0
- system-performance-helper@1.0.1
- decimal-format-core@3.5.4
- mailconfirmer@3.3.11
- velocityfix@1.0.0
- node-core-libs@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.