Malicious code in @wagni_bot/bsc-sdk (npm)
@wagni_bot/bsc-sdk is a malicious npm package that impersonates legitimate BSC-SDK-family packages. It contains a postinstall script that steals sensitive credentials by scanning for private SSH keys, PEM certificates, and environment variables with secret-like names, then exfiltrates this data to a hardcoded IP address over plaintext HTTP. The package exports no legitimate functionality and is designed solely for credential theft during installation.
AI Analysis
Technical Summary
@wagni_bot/bsc-sdk versions 1.0.0, 1.1.0, 1.1.1, 1.1.3, 1.1.4, 1.1.5, and 1.2.0 are malicious typosquat packages targeting developers and CI environments. Upon installation, the package runs a postinstall lifecycle script that recursively scans the current working directory, the user's home directory, and ~/.ssh for files named id_rsa, id_ed25519, *.pem, *.key, *.cred, and .env. It also enumerates environment variables for keys containing sensitive keywords such as PRIVATE, SECRET, TOKEN, API_KEY, PASSWORD, MNEMONIC, SEED, WALLET, or AWS. The collected files and environment variables, along with hostname, username, and current working directory, are sent via HTTP POST to a hardcoded bare IP address (http://107.161.90.180:7777). The package exports an empty object and provides no legitimate BNB Smart Chain functionality, confirming its sole purpose is credential theft.
Potential Impact
Any developer or CI system that installs this package risks having private SSH keys, PEM certificates, credential files, and sensitive environment variables exfiltrated to an attacker-controlled server. This can lead to unauthorized access to source code repositories, cloud services, and other critical infrastructure. The use of plaintext HTTP for data exfiltration indicates a lack of stealth but does not reduce the severity of the credential compromise.
Mitigation Recommendations
No official patch or remediation is available since this is a malicious package rather than a vulnerability in legitimate software. The primary mitigation is to avoid installing @wagni_bot/bsc-sdk and to audit dependencies carefully to detect typosquatting. Remove any instances of this package from projects and CI pipelines immediately. Rotate any potentially compromised credentials, SSH keys, and certificates that may have been exposed. Use trusted package sources and enable package integrity verification where possible.
Malicious code in @wagni_bot/bsc-sdk (npm)
Description
@wagni_bot/bsc-sdk is a malicious npm package that impersonates legitimate BSC-SDK-family packages. It contains a postinstall script that steals sensitive credentials by scanning for private SSH keys, PEM certificates, and environment variables with secret-like names, then exfiltrates this data to a hardcoded IP address over plaintext HTTP. The package exports no legitimate functionality and is designed solely for credential theft during installation.
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
@wagni_bot/bsc-sdk versions 1.0.0, 1.1.0, 1.1.1, 1.1.3, 1.1.4, 1.1.5, and 1.2.0 are malicious typosquat packages targeting developers and CI environments. Upon installation, the package runs a postinstall lifecycle script that recursively scans the current working directory, the user's home directory, and ~/.ssh for files named id_rsa, id_ed25519, *.pem, *.key, *.cred, and .env. It also enumerates environment variables for keys containing sensitive keywords such as PRIVATE, SECRET, TOKEN, API_KEY, PASSWORD, MNEMONIC, SEED, WALLET, or AWS. The collected files and environment variables, along with hostname, username, and current working directory, are sent via HTTP POST to a hardcoded bare IP address (http://107.161.90.180:7777). The package exports an empty object and provides no legitimate BNB Smart Chain functionality, confirming its sole purpose is credential theft.
Potential Impact
Any developer or CI system that installs this package risks having private SSH keys, PEM certificates, credential files, and sensitive environment variables exfiltrated to an attacker-controlled server. This can lead to unauthorized access to source code repositories, cloud services, and other critical infrastructure. The use of plaintext HTTP for data exfiltration indicates a lack of stealth but does not reduce the severity of the credential compromise.
Mitigation Recommendations
No official patch or remediation is available since this is a malicious package rather than a vulnerability in legitimate software. The primary mitigation is to avoid installing @wagni_bot/bsc-sdk and to audit dependencies carefully to detect typosquatting. Remove any instances of this package from projects and CI pipelines immediately. Rotate any potentially compromised credentials, SSH keys, and certificates that may have been exposed. Use trusted package sources and enable package integrity verification where possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10023
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50baa368715ace43584e85
Added to database: 07/10/2026, 09:25:55 UTC
Last enriched: 07/10/2026, 10:14:12 UTC
Last updated: 07/26/2026, 14:19:15 UTC
Views: 33
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.