@wagni_bot/polymarket-sdk@1.1.0
Malicious code in @wagni_bot/polymarket-sdk (npm)
Analysis
The postinstall hook (postinstall.js) runs on install and exfiltrates credentials to a remote server at 107[.]161[.]90[.]180:7777. It collects SSH private keys (id_rsa, id_ed25519) from ~/.ssh/ and the current directory, .pem/.key/.cred files, .env files, and environment variables containing PRIVATE, SECRET, TOKEN, API_KEY, PASSWORD, MNEMONIC, SEED, WALLET, or AWS. All stolen data is POSTed as JSON to hxxp://107[.]161[.]90[.]180:7777. The package contains no functional SDK code — index.js is 19 bytes and the sole purpose is the credential-harvesting postinstall script.
- analyzed by
- Leitwacht
- first seen
- Jul 9, 2026, 09:42 AM
- analyzed
- Jul 9, 2026, 09:44 AM
Related advisories
- @wagni_bot/polymarket-sdk@1.1.1 same package
- @wagni_bot/pumpfun-sdk@1.2.0
- @wagni_bot/jupiter-sdk@1.2.0
- @wagni_bot/solana-sdk@1.2.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.