Raydium AMM Hack

TOTAL LOST $4.4M
Medium Private Key Compromised (Unknown Method) / Access Control solana

Summarize with AI

Affected Chain solana Incident surface
Recovered - No recovery reported
All-Time Rank #449 By amount stolen
Protocol Type Dexs Target category

Incident Overview

The private key of the Pool Owner account  was compromised.

The attacker drained nine Raydium’s constant product liquidity pools having stolen crypto worth around 4.4m USD.

The affected pools are ETH-USDC, RAY-SOL, RAY-USDC, RAY-USDT, SOL-USDT, SOL-USDC, stSOL-USDC, UXP-USDC, ZBC-USDC.

The funds draining was performed through repeatedly calling the  withdrawPNL function that allows to withdraw fees from the pools.  The expected fees to be withdrawn were increased with the SetParams and AmmParams::SyncNeedTake functionality.

The pool owner account:

https://solscan.io/account/HggGrUeg4R…jutwyv

Incident Report

Protocol / Project Raydium AMM
Date of Incident
Affected Chain(s) solana
Attack Technique Private Key Compromised (Unknown Method) / Access Control
Classification Infrastructure / Exchange (DEX)
Primary Source View Post-Mortem

Protocol Information

Protocol Type Dexs
Affected Token RAY
Smart Contract Language Rust
Official Website raydium.io/
Protocol Twitter/X @RaydiumProtocol
Team Anonymous
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Decentralized Exchange (DEX) Token DeFi AMM DEX Solana Ecosystem PetRock Capital Portfolio Binance Ecosystem Binance Listing

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover Solana network fees while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised stake accounts and treasury wallets, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of Raydium AMM's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Hard to catch — private key / OpSec failures are outside smart contract audit scope

If you're auditing a protocol with similar architecture to Raydium AMM, these are the critical security checks that could have prevented this incident (December 2022).

  • Verify all logic paths related to Private Key Compromised (Unknown Method) / Access Control are guarded by proper access controls and input validation - see the Access Control Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Access Control Attacks examples →

Sources & References

Learn to Prevent the Next Raydium AMM

The Raydium AMM hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial