GHSA-r5j4-rx22-c6q9
Malicious code in @wagni_bot/hyperliquid-sdk (npm)
Impact
## Source: amazon-inspector (ca6ec83c9621f8afc9616d49876cc451ca8d99397d99288889b81298eb410d7e) The package is scoped and named to impersonate the Hyperliquid exchange SDK (@wagni_bot/hyperliquid-sdk) but ships no SDK code — only a harvester in postinstall.js that is wired to run automatically on npm install via both preinstall and postinstall lifecycle hooks. On install, the script scans the installer's home directory, Desktop, Documents, Downloads, /root, and /tmp for wallet-related artifacts (id.json, wallet.json, keystore.json, metamask.json, phantom.json, seed.txt, mnemonic.txt,.env, credentials.json,.npmrc,.git-credentials,.netrc), reads Solana/Ethereum keystores, ~/.ssh/ private keys, ~/.aws/credentials, ~/.git-credentials, and Chrome/Brave/Edge MetaMask and Phantom extension Local Extension Settings directories. It additionally reads user.txt/.md/.rtf/.csv files, tokenizes their content, and if 10 or more tokens match a BIP39 wordlist, uploads the file. All collected contents, along with hostname, username, and cwd, are POSTed to hardcoded endpoint http://107.161.90.180:7777. The package name impersonation targets crypto developers looking for the legitimate Hyperliquid SDK. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/3c6fad08b581c1d6d685b8d2e907c85a41c04e51/osv/malicious/npm/@wagni_bot/hyperliquid-sdk/MAL-2026-10026.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.5 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.0.0 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.4 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.2.0 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.0 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.1 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.3 | none recorded |
| npm | @wagni_bot/hyperliquid-sdk | = 1.1.2 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-r5j4-rx22-c6q9
- https://github.com/ossf/malicious-packages/blob/3c6fad08b581c1d6d685b8d2e907c85a41c04e51/osv/malicious/npm/@wagni_bot/hyperliquid-sdk/MAL-2026-10026.json
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.0.0
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.1.0
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.1.1
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.1.3
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.1.4
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.1.5
- https://www.npmjs.com/package/@wagni_bot/hyperliquid-sdk/v/1.2.0
- https://github.com/ossf/malicious-packages/blob/ce43911580a6479187f9f75139ef07f7c0de1373/osv/malicious/npm/@wagni_bot/hyperliquid-sdk/MAL-2026-10026.json
- https://research.codelake.dev/advisories/clr-2026-3013-wagni-hyperliquid-sdk