@solana-labs/ancor
This report shows the evidence for @solana-labs/ancor@1.0.9. 6 of 6 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5786 confirms this npm version as malicious.
Advisory
MAL-2026-5786
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @solana-labs/ancor (npm)
Details
Package name `@solana-labs/ancor` is a one-character typosquat of the legitimate `@coral-xyz/anchor` / `@project-serum/anchor` Solana framework, published under the `@solana-labs` scope to impersonate official Solana Labs tooling. `package.json` declares `"postinstall": "node install.js"`, which fires automatically on `npm install`. install.js reads host identifiers via `os.hostname()` and `process.platform`, invokes `child_process.execSync`, issues outbound HTTP/HTTPS traffic (including a `POST` at line 113 and a `curl` shell-out at line 173), and references `https://api.mainnet-beta.solana.com` as cover traffic. The combination of (a) impersonating-scope name targeting a top-tier ecosystem package, (b) a postinstall lifecycle hook executing a script that reads host identity and shells out to network primitives, and (c) execSync of arbitrary commands during install constitutes an install-time host reconnaissance / command-execution payload against any developer or build system that installs this package.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to @solana-labs/ancor@1.0.9.
The versions list below shows the verdict for each recorded version.
- Avoid installing @solana-labs/ancor@1.0.9. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.