Malicious code in @solana-labs/ancor (npm)
Description
The npm package '@solana-labs/ancor' is a typosquatting malicious package impersonating the legitimate Solana Anchor framework '@coral-xyz/anchor'. It uses a vendor-impersonating scope and a near-identical name to confuse developers. The package contains large minified bundles that include suspicious use of child_process, fetch POST calls, and references to curl and ping, which warrant human review to confirm malicious intent. There is no confirmed exploit in the wild or official patch information available.
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 '@solana-labs/ancor' npm package is a typosquatting attempt targeting developers of the Solana Anchor framework by mimicking its name and scope. The package's large minified bundles include calls to child_process and network POST requests, raising suspicion of potential malicious behavior such as unauthorized command execution or data exfiltration. However, these behaviors require further manual analysis to confirm intent, as similar calls can be legitimate in build or CLI tooling. There is no vendor advisory or patch information available, and no known active exploitation has been reported.
Potential Impact
If installed, this package could potentially execute unauthorized system commands or send data externally due to its use of child_process and network POST calls, posing a risk of code execution or data exfiltration. The typosquatting nature increases the risk of accidental installation by developers expecting the legitimate Anchor framework, potentially leading to supply chain compromise. No confirmed exploitation or impact details are available.
Mitigation Recommendations
No official patch or remediation guidance is available. Users should avoid installing packages with suspicious or typosquatting names, verify package scope ownership, and prefer the legitimate '@coral-xyz/anchor' package for Solana development. Manual review of package contents is recommended before installation. Monitoring package sources and using trusted registries can reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5786
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-h2x5-cj9x-hvcc"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f31bacd9273b49e49937
Added to database: 09/01/2026, 15:45:31 UTC
Last enriched: 09/08/2026, 06:24:44 UTC
Last updated: 10/01/2026, 22:45:49 UTC
Views: 23
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.