BPOI Banner
Solana Web3.js Library Compromised in Targeted Supply Chain Attack Solana Web3.js Library Compromised in Targeted Supply Chain Attack

Solana Web3.js Library Compromised in Targeted Supply Chain Attack

A significant supply chain attack has impacted the Solana ecosystem, targeting the @solana/web3.js JavaScript library, a critical tool that developers rely on to create decentralized applications (dApps) on the Solana blockchain.

On December 2, hackers gained access to the account of a developer maintaining the @solana/web3.js library. It’s a tool that’s been downloaded more than 350,000 times weekly by Solana app developers.

Hackers compromised versions 1.95.6 and 1.95.7, embedding malicious code that exfiltrated private keys and drained funds. The breach led to $160,000 in stolen assets, including SOL tokens and other crypto assets, according to Solscan data.

Solana-focused development team Anza disclosed the breach on Tuesday saying it occurred when a publish-access account for the library on npm was compromised.

The attackers introduced unauthorized updates containing a backdoor that transmitted private key data to a hardcoded address. These malicious versions were downloaded before they were removed from npm hours later.

The attack affected developers who updated the library between 3:20 PM UTC and 8:25 PM UTC on December 2, particularly those using backend systems or bots reliant on private keys.

Using this access, the attackers uploaded altered versions of the library (1.95.6 and 1.95.7) containing code that secretly sent private keys to a hacker-controlled address. These keys allowed the hackers to steal funds from applications that used the compromised library.

This type of incident is called a supply chain attack, where hackers tamper with software that developers depend on, spreading the malicious code widely.

Projects or systems that downloaded and integrated these versions of the library unknowingly became vulnerable to the exploit.

In a public statement, Phantom, one of the most widely-used Solana wallets, confirmed it never used the compromised versions of the library, ensuring its users were not impacted.

Similarly, Solflare and other key projects like Drift and Backpack reassured their communities that robust security measures prevented any compromise.

Developers relying on private key operations within the affected versions were the primary victims, but end-users were largely spared.

Prominent voices in the Solana community clarified the attack did not compromise the Solana blockchain itself.

In the wake of the breach, developers have been urged to immediately update to version 1.95.8 of the library, audit their projects for dependencies on the compromised versions, and rotate and regenerate private keys to mitigate further losses.

npm has since removed the affected versions, and tools like Socket have been recommended for developers to detect vulnerabilities in their repositories.

This breach is part of a worrying trend of supply chain attacks, where hackers target widely-used software tools to attack a larger group of people.

Hakan Unal, Senior Blockchain Scientist at Cyverse, told Decrypt that “the recent Solana library supply chain attack highlights a critical issue in modern software development: the security of third-party dependencies.”

“These dependencies—open-source libraries or components integrated into a larger project—are widely used to accelerate development,” Unal added. “However, if not managed carefully, they can become vectors for malicious actors, and especially in crypt, where capital gain is high, rigid standards are needed.”

A similar attack recently affected the Lottie Player JavaScript library, widely used for web animations. Hackers embedded malicious code into its npm package, causing crypto losses exceeding $723,000.

In that case, users visiting compromised websites unknowingly signed fake wallet connection prompts controlled by attackers, granting access to their funds.

Edited by Stacy Elliott.

Daily Debrief Newsletter

Start every day with the top news stories right now, plus original features, a podcast, videos and more.



Source link

Stacy Elliott

https://decrypt.co/294742/solana-web3-js-library-compromised-in-targeted-supply-chain-attack

2024-12-04 13:33:04

bitcoin
Bitcoin (BTC) $ 97,124.02 0.41%
ethereum
Ethereum (ETH) $ 3,389.68 0.43%
tether
Tether (USDT) $ 0.99972 0.07%
xrp
XRP (XRP) $ 2.26 0.73%
bnb
BNB (BNB) $ 667.61 0.01%
solana
Solana (SOL) $ 187.00 0.65%
dogecoin
Dogecoin (DOGE) $ 0.322387 1.87%
usd-coin
USDC (USDC) $ 1.00 0.07%
staked-ether
Lido Staked Ether (STETH) $ 3,385.30 0.56%
cardano
Cardano (ADA) $ 0.914461 1.82%
tron
TRON (TRX) $ 0.248307 0.52%
avalanche-2
Avalanche (AVAX) $ 38.20 3.32%
chainlink
Chainlink (LINK) $ 22.58 2.87%
wrapped-steth
Wrapped stETH (WSTETH) $ 4,017.55 1.15%
the-open-network
Toncoin (TON) $ 5.45 1.26%
sui
Sui (SUI) $ 4.49 3.97%
shiba-inu
Shiba Inu (SHIB) $ 0.000022 1.71%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 96,962.98 0.28%
hyperliquid
Hyperliquid (HYPE) $ 33.90 4.40%
stellar
Stellar (XLM) $ 0.366825 0.17%
polkadot
Polkadot (DOT) $ 7.11 1.71%
hedera-hashgraph
Hedera (HBAR) $ 0.263915 1.26%
weth
WETH (WETH) $ 3,392.43 0.23%
bitcoin-cash
Bitcoin Cash (BCH) $ 457.82 0.35%
leo-token
LEO Token (LEO) $ 9.36 0.66%
uniswap
Uniswap (UNI) $ 14.12 4.33%
litecoin
Litecoin (LTC) $ 103.28 1.70%
pepe
Pepe (PEPE) $ 0.000018 0.91%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,568.17 0.82%
near
NEAR Protocol (NEAR) $ 5.11 2.19%
ethena-usde
Ethena USDe (USDE) $ 1.00 0.14%
bitget-token
Bitget Token (BGB) $ 4.22 3.11%
aptos
Aptos (APT) $ 9.52 7.19%
usds
USDS (USDS) $ 0.999941 0.01%
internet-computer
Internet Computer (ICP) $ 10.20 3.34%
aave
Aave (AAVE) $ 310.20 0.96%
crypto-com-chain
Cronos (CRO) $ 0.160372 1.94%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.486562 1.04%
mantle
Mantle (MNT) $ 1.18 0.77%
ethereum-classic
Ethereum Classic (ETC) $ 26.50 0.73%
render-token
Render (RENDER) $ 7.31 1.34%
vechain
VeChain (VET) $ 0.046723 0.79%
mantra-dao
MANTRA (OM) $ 3.79 2.63%
monero
Monero (XMR) $ 190.65 0.83%
whitebit
WhiteBIT Coin (WBT) $ 24.41 0.21%
bittensor
Bittensor (TAO) $ 468.71 1.95%
dai
Dai (DAI) $ 1.00 0.09%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.30 1.82%
arbitrum
Arbitrum (ARB) $ 0.766214 2.25%
ethena
Ethena (ENA) $ 1.07 5.72%