Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add catalog compromise solana web3.js #1423

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions community/catalog/compromises/2024/solana_web3js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


# Solana Web3.js: Malicious Code Injection to Compromise private and secret cryptography keys

Malicious versions 1.95.6 and 1.95.7 were published on December 2, 2024, containing backdoor code designed to exfiltrate private keys and wallet addresses. A publish-access account was compromised by the malicious actors, giving them access to private keys and possibly enabling them to drain funds from crypto bots and other decentralized apps (dapps) that manage private keys directly during transactions.

## Impact

- The npm package @solana/web3.js is a Javascript API for use with the Solana blockchain platform. It ranks among the top 10,000 projects in the npm community with more than 3,000 dependent projects generating 400,000 weekly downloads and 51 million total recorded downloads.
- The biggest impact was on individuals or organizations running backend JavaScript bots with private keys on their servers who updated to the compromised library versions within the short timeframe (a few hours) before the patch was released.
- Financial damage was roughly around 130K according to Mert Mumtaz, CEO of Helius Labs (when the malicious code was undetected just for around 6 hours).


## Type of compromise

- Unauthorized access to a publish-access account(social engineering/ phishing attack)


## References

- [mert | helius.dev's Tweet](https://x.com/0xMert_/status/1864069157257613719)
- [ReversingLabs Blog](https://www.reversinglabs.com/blog/malware-found-in-solana-npm-library-with-50m-downloads)
- [HackerNews](https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html)
1 change: 1 addition & 0 deletions community/catalog/compromises/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ of compromise needs added, please include that as well.
<!-- cSpell:disable -->
| Name | Year | Type of compromise | Link |
| ----------------- | ------------------ | ------------------ | ----------- |
| [Solana Web3.js Code Injection](2024/solana_web3js.md) | 2024 | Social Engineering/Phishing Attack | [1](https://www.reversinglabs.com/blog/malware-found-in-solana-npm-library-with-50m-downloads) [2](https://x.com/0xMert_/status/1864069157257613719) |
| [Polyfill.io Infrastructure Takeover Leading to Malware Distribution](2024/polyfill.md) | 2024 | Publishing Infrastructure | [1](https://sansec.io/research/polyfill-supply-chain-attack) |
| [Malware Disguised as Installer used to target Korean Public Institution](2024/targeted-signed-endoor.md) | 2024 | Trust and Signing | [1](https://asec.ahnlab.com/en/63396/) |
| [3proxy signing incident](2024/laixi-3proxy.md) | 2024 | Trust and Signing | [1](https://news.sophos.com/en-us/2024/04/09/smoke-and-screen-mirrors-a-strange-signed-backdoor/) |
Expand Down
Loading