Malicious code in @baanx/solana-lib (npm)
The npm package @baanx/solana-lib contains malicious code that executes automatically upon installation. It collects the installer's username, hostname, and current working directory, then sends this information via a DNS lookup to a suspicious external domain. This behavior is obfuscated and inconsistent with legitimate Solana library functionality. Installation of this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
AI Analysis
Technical Summary
The @baanx/solana-lib npm package declares an install script that runs 'node index.js' during installation. This script loads modules that gather the installer's system information—username, hostname, and current working directory basename—concatenates these with a timestamp and a static prefix, and performs a DNS resolve4 lookup to a hardcoded external domain 'oob.algamil7x.xyz'. The code uses obfuscation techniques such as reconstructing strings from character codes and indirect loading of Node.js built-in modules to conceal its behavior. This out-of-band DNS beacon leaks sensitive installer identity information to a non-first-party domain. The package is presented as a Solana library, but this malicious behavior is unrelated to legitimate Solana functionality. According to a malware source, any system with this package installed should be considered fully compromised.
Potential Impact
Installation of this package results in leakage of sensitive system information to an attacker-controlled domain and likely full system compromise. All secrets and keys stored on the affected system may be exposed and must be rotated immediately. The malicious code runs automatically during installation, increasing the risk of unnoticed compromise. Removal of the package alone may not eliminate all malicious software or backdoors installed as a result.
Mitigation Recommendations
Remove the @baanx/solana-lib package immediately if installed. Rotate all secrets and keys from a separate, trusted system. Because full system compromise is likely, conduct a thorough investigation and consider rebuilding the affected system. No official patch or fix is available; avoid using this package entirely.
Malicious code in @baanx/solana-lib (npm)
Description
The npm package @baanx/solana-lib contains malicious code that executes automatically upon installation. It collects the installer's username, hostname, and current working directory, then sends this information via a DNS lookup to a suspicious external domain. This behavior is obfuscated and inconsistent with legitimate Solana library functionality. Installation of this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
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 @baanx/solana-lib npm package declares an install script that runs 'node index.js' during installation. This script loads modules that gather the installer's system information—username, hostname, and current working directory basename—concatenates these with a timestamp and a static prefix, and performs a DNS resolve4 lookup to a hardcoded external domain 'oob.algamil7x.xyz'. The code uses obfuscation techniques such as reconstructing strings from character codes and indirect loading of Node.js built-in modules to conceal its behavior. This out-of-band DNS beacon leaks sensitive installer identity information to a non-first-party domain. The package is presented as a Solana library, but this malicious behavior is unrelated to legitimate Solana functionality. According to a malware source, any system with this package installed should be considered fully compromised.
Potential Impact
Installation of this package results in leakage of sensitive system information to an attacker-controlled domain and likely full system compromise. All secrets and keys stored on the affected system may be exposed and must be rotated immediately. The malicious code runs automatically during installation, increasing the risk of unnoticed compromise. Removal of the package alone may not eliminate all malicious software or backdoors installed as a result.
Mitigation Recommendations
Remove the @baanx/solana-lib package immediately if installed. Rotate all secrets and keys from a separate, trusted system. Because full system compromise is likely, conduct a thorough investigation and consider rebuilding the affected system. No official patch or fix is available; avoid using this package entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16300
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-5x34-3xqm-3r73"]
- Ecosystems
- ["npm"]
Threat ID: 6ab4be1df7a7c54106eee6b1
Added to database: 09/24/2026, 06:07:25 UTC
Last enriched: 09/24/2026, 06:15:34 UTC
Last updated: 09/24/2026, 08:01:43 UTC
Views: 3
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.
External Links
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.