Skip to content

Malicious actors exploit Solana's developer team by swapping out JavaScript libraries maliciously

Malicious hackers infiltrated a key JavaScript library, @solana/web3.js, which is indispensable for developers looking to create decentralized applications on the Solana blockchain.

Malicious actors leverage JavaScript library swapping to infiltrate Solana developers' projects
Malicious actors leverage JavaScript library swapping to infiltrate Solana developers' projects

Malicious actors exploit Solana's developer team by swapping out JavaScript libraries maliciously

On December 2, 2024, the account maintaining the JavaScript library @solana/web3.js was compromised, marking a significant event in the crypto industry. The attackers tampered with versions 1.95.6 and 1.95.7 of the library, embedding malicious code designed to extract private keys and drain funds from protocols.

The breach, reported by analysts Anza, has not disclosed the identities of the affected projects. However, it is crucial to note that any projects or systems that downloaded and implemented the tampered files unknowingly exposed themselves to potential exploitation.

The exploit did not target the Solana network itself but rather the developer library @solana/web3.js. The malicious code only affected applications that directly handle private keys, such as bots. Fortunately, Phantom user funds remain safe due to not using the exploited versions of @solana/web3.js, as confirmed on December 3, 2024. Solflare, Drift, and Backpack are also unaffected by the attack on the @solana/web3.js library.

The attack resulted in losses of approximately $160,000 in digital assets. This incident underscores the importance of vigilant library management in maintaining the security of blockchain ecosystems. Rapid response measures are crucial in mitigating such threats.

It is worth noting that the crypto industry has been plagued by vulnerabilities, as reflected by the recorded losses totalling $753 million across 155 incidents involving hacks, exploits, and scams in Q3 2024. A notable example is the theft of $1.7 million in assets from the XT exchange, although the exact date is not specified.

Experts urge all Solana developers to update their JavaScript libraries to the latest versions to ensure the security of their projects. This article discusses the breach of the @solana/web3.js library and its impact on various crypto projects, serving as a reminder of the ongoing need for vigilance in the crypto space.

Read also: