{"investigation":{"slug":"solana-web3-js-supply-chain-attack-december-2024","entity_name":"@solana/web3.js Supply-Chain Attack (December 2024)","trust_score":40,"severity_base":null,"score_modifier":0,"confidence":0.8,"status":"published","content_type":"investigation","summary":"In early December 2024, two malicious versions (1.95.6 and 1.95.7) of the widely used @solana/web3.js npm library were published after an account with publish rights was reportedly phished. The injected backdoor sent private keys to an attacker-controlled server; reported losses vary by source, from roughly $130K to over $190K. Affected versions were removed and 1.95.8 was released. This page covers only the incident; see /solana for the related ecosystem page.","sections":[{"content":"According to Anza's root cause analysis, a member of the @solana npm organization with publish access clicked a spear-phishing email on December 3, 2024, around 3:20pm UTC. The email invited the recipient to a private package and appeared to come from a teammate; the link led to a cloned npm login page where the victim entered credentials and a 2FA code. Malicious versions 1.95.6 and 1.95.7 were then published. Reporting by The Hacker News and The Register states that version 1.95.7 added an 'addToQueue' function that exfiltrated private keys disguised as Cloudflare headers, as analyzed by Datadog's Christophe Tafani-Dereeper. The command-and-control domain was reported as sol-rpc[.]xyz, registered on November 22, 2024 (per The Hacker News). The vulnerability was assigned CVE-2024-54134 (CVSS 8.3) according to The Hacker News and The Register. The identity of the attacker is unknown; Wiz lists the threat actor as unknown.","heading":"Incident overview and mechanism","sources":[{"url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","name":"Anza: web3.js exploit root cause analysis","type":"official","credibility":1},{"url":"https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","name":"The Hacker News: Researchers uncover backdoor in Solana's web3.js","type":"news_article","credibility":2},{"url":"https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/","name":"The Register: Solana JavaScript SDK compromised","type":"news_article","credibility":1},{"url":"https://threats.wiz.io/all-incidents/solana-web3js-supply-chain-attack","name":"Wiz Threats: Solana web3.js supply chain attack","type":"research","credibility":2}],"severity":"critical"},{"content":"The library was reported to receive roughly 400,000 to 450,000 weekly downloads. Exposure was limited to projects that handled private keys directly (for example backend JavaScript bots) and installed the malicious versions; maintainers and press reports stated non-custodial wallets should not be affected. Loss figures differ between sources and are not independently reconciled here: The Register quotes Helius Labs CEO Mert Mumtaz estimating 'roughly 130K USD so far' (a single-source estimate); The Hacker News reports unauthorized transfers of $164,100 (674.86 SOL) to an attacker-controlled wallet citing Solscan and Solana Explorer; Wiz reports over $190,000. Infosecurity Magazine reportedly gave a $130,000 to $160,000 range per a search summary, not directly fetched. Sources also disagree on the exposure window date: The Register states 3:20pm to 8:25pm UTC on December 3, 2024, consistent with Anza's timeline, while The Hacker News gives December 2, 2024. The Anza primary source is treated as authoritative for December 3.","heading":"Scope, exposure and reported losses","sources":[{"url":"https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/","name":"The Register: Solana JavaScript SDK compromised","type":"news_article","credibility":1},{"url":"https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","name":"The Hacker News: Researchers uncover backdoor in Solana's web3.js","type":"news_article","credibility":2},{"url":"https://threats.wiz.io/all-incidents/solana-web3js-supply-chain-attack","name":"Wiz Threats: Solana web3.js supply chain attack","type":"research","credibility":2},{"url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","name":"Anza: web3.js exploit root cause analysis","type":"official","credibility":1}],"severity":"high"},{"content":"Per Anza, the publishing account's npm credentials were revoked at 7:30pm UTC on December 3 after an engineer began investigating a report of a malicious install. Version 1.95.5 was restored as latest, clean version 1.95.8 was published at 8:25pm UTC, and 1.95.6 and 1.95.7 were deprecated and later removed from the npm registry around 12:22am UTC on December 4. A GitHub security advisory was published and npm access was reissued through revocable, granular tokens. Users who may have installed the affected versions were advised to upgrade to 1.95.8 and rotate any suspect authority keys. Wiz and The Hacker News report the C2 server was taken down.","heading":"Response and remediation","sources":[{"url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","name":"Anza: web3.js exploit root cause analysis","type":"official","credibility":1},{"url":"https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","name":"The Hacker News: Researchers uncover backdoor in Solana's web3.js","type":"news_article","credibility":2}],"severity":"medium"},{"content":"No attribution to a named actor was found in the sources reviewed. A formal Helius post-mortem with a loss breakdown was not located. The CVE identifier appears in The Hacker News and The Register but is not listed by Wiz. The GitHub advisory ID differs between secondary mentions, so it is not cited here.","heading":"Limitations of available information","sources":[{"url":"https://threats.wiz.io/all-incidents/solana-web3js-supply-chain-attack","name":"Wiz Threats: Solana web3.js supply chain attack","type":"research","credibility":2}],"severity":"low"}],"timeline":[{"date":"2024-11-22","event":"Alleged attacker command-and-control domain sol-rpc[.]xyz registered via NameSilo.","source":"The Hacker News","source_url":"https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","date_evidence":"The C2 domain, sol-rpc[.]xyz, was registered on November 22, 2024"},{"date":"2024-12-03","event":"A @solana npm org member with publish access was phished; malicious versions 1.95.6 and 1.95.7 were published shortly after.","source":"Anza root cause analysis","source_url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","date_evidence":"\"December 3, 2024\" / \"3:20pm UTC\""},{"date":"2024-12-03","event":"Compromised account credentials revoked; clean version 1.95.8 published at 8:25pm UTC.","source":"Anza root cause analysis","source_url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","date_evidence":"7:30pm - The publishing account's npm credentials were revoked (Anza timeline, December 3, 2024)"},{"date":"2024-12-04","event":"Versions 1.95.6 and 1.95.7 removed from the npm registry; GitHub security advisory published later that day.","source":"Anza root cause analysis","source_url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","date_evidence":"\"December 4, 2024\" / \"~12:22 am UTC\""},{"date":"2024-12-05","event":"The Register reports the compromise, quoting Helius estimate of roughly $130K in losses.","source":"The Register","source_url":"https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/","date_evidence":"Thu 5 Dec 2024 // 23:13 UTC"}],"sources_used":[{"url":"https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","name":"Anza: web3.js exploit root cause analysis","type":"official","archive_url":"http://web.archive.org/web/20260613023705/https://www.anza.xyz/blog/web3-js-exploit-root-cause-analysis","credibility":1,"archive_timestamp":"2026-06-13T02:37:05+00:00"},{"url":"https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/","name":"The Register: Solana JavaScript SDK compromised","type":"news_article","archive_url":"http://web.archive.org/web/20260430083120/https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/","credibility":1,"archive_timestamp":"2026-04-30T08:31:20+00:00"},{"url":"https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","name":"The Hacker News: Researchers uncover backdoor in Solana's web3.js","type":"news_article","archive_url":"http://web.archive.org/web/20261007205813/https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html","credibility":2,"archive_timestamp":"2026-10-07T20:58:13+00:00"},{"url":"https://threats.wiz.io/all-incidents/solana-web3js-supply-chain-attack","name":"Wiz Threats: Solana web3.js supply chain attack","type":"research","archive_url":"http://web.archive.org/web/20260523211118/https://threats.wiz.io/all-incidents/solana-web3js-supply-chain-attack","credibility":2,"archive_timestamp":"2026-05-23T21:11:18+00:00"}],"source_tags":[],"addresses":[],"reviewed":false,"reviewed_by":null,"model_used":"claude-code-investigator","created_at":"2026-10-13T05:05:42.553346+00:00","updated_at":"2026-10-13T13:18:25.817479+00:00"},"source_quality":{"total":4,"tier1":0,"tier2":0,"tier3":0,"unrated":4},"follower_count":null,"content_updated_at":"2026-10-13T05:05:42.791Z","last_fact_checked_at":null,"fact_check_next_allowed_at":null,"update_next_allowed_at":null}