MAL-2026-10032: Malicious code in @wagni_bot/polygon-sdk (npm)
The npm package @wagni_bot/polygon-sdk is a malicious package impersonating the Polygon blockchain SDK. Its postinstall.js script runs automatically on installation and scans the user's directories for wallet keystores, private keys, seed phrases, and other sensitive credentials. It exfiltrates these secrets along with some environment variables to a hardcoded attacker-controlled IP address. The package exports no legitimate functionality and exists solely to steal credentials from developers working with blockchain wallets.
AI Analysis
Technical Summary
The @wagni_bot/polygon-sdk npm package contains malicious code that executes during installation. The postinstall.js script scans the installer's current working directory and home directory for sensitive files related to cryptocurrency wallets and private keys, including ~/.ssh, ~/.ethereum, ~/.config/ethereum, ~/.solana, ~/.bitcoin, and ~/Library/Ethereum. It looks for files matching patterns such as seed, mnemonic, keystore, wallet, secret, and private, and extracts up to 10,000 bytes of their content. Additionally, it collects environment variables containing keywords like PRIVATE, SECRET, TOKEN, KEY, PASSWORD, MNEMONIC, SEED, WALLET, or AWS. All this data, along with the host's OS hostname, username, and current working directory, is sent via HTTP POST to a hardcoded bare-IP endpoint (http://107.161.90.180:7777). The package exports an empty object and provides no legitimate functionality, indicating its sole purpose is credential theft. It masquerades as an unofficial Polygon SDK to target crypto developers likely to have valuable wallet credentials.
Potential Impact
Users who install this package risk having sensitive wallet credentials, private keys, seed phrases, and secret environment variables stolen and sent to an attacker-controlled server. This can lead to compromise of cryptocurrency wallets and other accounts relying on these secrets. The package does not provide legitimate functionality and is purely malicious.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing @wagni_bot/polygon-sdk entirely. Users who have installed this package should immediately remove it and investigate for potential credential compromise. Rotate any exposed keys, wallets, or secrets that may have been compromised. Use only trusted and verified packages from official sources. Monitor for suspicious activity related to any potentially leaked credentials.
MAL-2026-10032: Malicious code in @wagni_bot/polygon-sdk (npm)
Description
The npm package @wagni_bot/polygon-sdk is a malicious package impersonating the Polygon blockchain SDK. Its postinstall.js script runs automatically on installation and scans the user's directories for wallet keystores, private keys, seed phrases, and other sensitive credentials. It exfiltrates these secrets along with some environment variables to a hardcoded attacker-controlled IP address. The package exports no legitimate functionality and exists solely to steal credentials from developers working with blockchain wallets.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @wagni_bot/polygon-sdk npm package contains malicious code that executes during installation. The postinstall.js script scans the installer's current working directory and home directory for sensitive files related to cryptocurrency wallets and private keys, including ~/.ssh, ~/.ethereum, ~/.config/ethereum, ~/.solana, ~/.bitcoin, and ~/Library/Ethereum. It looks for files matching patterns such as seed, mnemonic, keystore, wallet, secret, and private, and extracts up to 10,000 bytes of their content. Additionally, it collects environment variables containing keywords like PRIVATE, SECRET, TOKEN, KEY, PASSWORD, MNEMONIC, SEED, WALLET, or AWS. All this data, along with the host's OS hostname, username, and current working directory, is sent via HTTP POST to a hardcoded bare-IP endpoint (http://107.161.90.180:7777). The package exports an empty object and provides no legitimate functionality, indicating its sole purpose is credential theft. It masquerades as an unofficial Polygon SDK to target crypto developers likely to have valuable wallet credentials.
Potential Impact
Users who install this package risk having sensitive wallet credentials, private keys, seed phrases, and secret environment variables stolen and sent to an attacker-controlled server. This can lead to compromise of cryptocurrency wallets and other accounts relying on these secrets. The package does not provide legitimate functionality and is purely malicious.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing @wagni_bot/polygon-sdk entirely. Users who have installed this package should immediately remove it and investigate for potential credential compromise. Rotate any exposed keys, wallets, or secrets that may have been compromised. Use only trusted and verified packages from official sources. Monitor for suspicious activity related to any potentially leaked credentials.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10032
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9f68715ace43584d0b
Added to database: 07/10/2026, 09:25:51 UTC
Last enriched: 07/10/2026, 10:12:48 UTC
Last updated: 07/10/2026, 10:12:48 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.