Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@solana-labs/ancornpm

@solana-labs/ancor is a confirmed malicious npm package (MAL-2026-5786) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.3…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @solana-labs/ancor (npm)

MAL-2026-5786
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @solana-labs/ancor

What this malware does

Package is published as @solana-labs/ancor — a name one character off from anchor, the well-known Solana smart-contract framework (published as @coral-xyz/anchor, formerly @project-serum/anchor). The @solana-labs scope and the near-miss spelling ancor together create high confusion potential for developers searching for the Anchor framework. The shipped bundles lib/index.cjs.js and lib/index.esm.js are large minified rollups (~11k+ lines) that include require('child_process'), fetch(...) POST calls, and references to curl / ping. Pattern matches on keyword co-occurrence in a minified bundle do not by themselves prove malicious intent — Anchor and similar frameworks legitimately bundle child_process and HTTP for build/CLI tooling — but the combination of a typosquat-shaped name, a vendor-impersonating scope, and a large opaque bundle warrants human review before this version is allowed into installer environments. A reviewer should verify scope ownership (is @solana-labs actually controlled by Solana Labs, or a squatted scope?), de-minify the flagged regions around lines 5016/5046 and 11336/11441 to confirm whether the POST/fetch destinations and child_process spawns are part of a documented build/CLI flow or an exfiltration path, and compare bundle behavior against legitimate @coral-xyz/anchor.

Malicious versions

18 flagged
1.0.01.0.11.0.31.0.41.0.51.0.61.0.71.0.81.0.91.0.111.98.1031.98.1051.98.1071.98.1081.98.1091.98.1101.98.1111.98.112

Indicators of compromise (SHA-256)

06e80dfe88b6d601c9312c9fc13275b703e5d05311232a3f1fa01b1c0a1f041b
4341f9b2c0176d9259176539e69a12bec21bd872733a220066f2af7e8c852012
a2dc1225b1e56ff04b029102d142b130bf7d9f65e2458034cd7ef630dcdaf5eb
e5786abeec93a264217ec9d4ca101ba0f491867bacf387dfd15e891fde36b634
0e572d1a61685cd04ccafca460d47a230f0306cca7692e3c1008f2b296592b22
3b513d317445b8431eda1751d82e7f50d2d7ef311a9891a7aa9a2fab706236c5
3c3f14460d22b93718d3fdf4337cc9b5f3a2526e4cb265a906a9c24d87671f98
42c4ffd55383e8703ce8de56e582e1e0eaa2b57d522edb4b4356febd4134e6a5
4d59b87155558b811b79a7d671f6dcd66bee47adff3a7022ab22d73f18d86369
5feff6d83078f902bd5e7eaa2dd81f78c95289d86ccfcde5f30325c7609278a7
8e001b6b18e1b0a1841b10d5e41b1403383d65f61e56f5363efcfc4102162892
c2e55c8cd359b7c45614d01f3d8f02bd9f27a9322c52decf65b1524500a0a396
70c0dda7b6c720ce80dd63fb61128fb18e31dbf5d8c6842fa193ac2390e90b0c
314cf23ddf6ccc41d2ef7db753d938cb43fa48d9831898121a2242de1bc02705
3265b293c8d6ebf4e866644687ab8bb9f03345c704acf7c885574886ad396b5b
3d9b7772c3a290a2df1dab3f463f81b7858eb46014bdf5894d87085300b27eaa
66b793954230a8961373ff13632dea3f9142617883313255138a279d18f135e5
c4eb809cfad458ca8ae6023a958903efc0280e4a262fe0494e079edc55ed1baa
2a6b346d7986ec82a886c6b717340b2431585bcb3e7d404ff79ffba00c6e664c
2aa229b377555123d264a04dcedb4380d56b34f88359704038d09d8cfabda744
49b37772a8993dfe253fc690b3d1805738bbfcc124faedd415e4b48c6518fee8
adb9cf699c9d3cdc61f5ce194874e12de5a8db37140b162a6c76bb83ee483db1
ddf942b3608ccb23c6d9fad14219183b15ded3594816b61046127c2c139893e7

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @solana-labs/ancor (18 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @solana-labs/ancor across your stack and pipelines.

  2. If you installed it — respond

    @solana-labs/ancor is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @solana-labs/ancor was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @solana-labs/ancor before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @solana-labs/ancor on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, and 10 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-006600IN-MAL-2026-006599IN-MAL-2026-006597IN-MAL-2026-006592IN-MAL-2026-006598IN-MAL-2026-006590IN-MAL-2026-006589IN-MAL-2026-006593IN-MAL-2026-006591IN-MAL-2026-006594IN-MAL-2026-006595IN-MAL-2026-006596RLMA-2026-05466IN-MAL-2026-012981IN-MAL-2026-012972IN-MAL-2026-012978IN-MAL-2026-012991IN-MAL-2026-012993IN-MAL-2026-012970IN-MAL-2026-012989IN-MAL-2026-012987IN-MAL-2026-013039IN-MAL-2026-012982

References

Credits

  • Amazon Inspector · finder
  • ReversingLabs · finder

Detect & block this

O3 blocks @solana-labs/ancor-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@solana-labs/ancor (npm) malicious package — MAL-2026-5786 | O3 Security