Gandalf The Grey Hack

TOTAL LOST $266K
Low Rugpull

Summarize with AI

Affected Chain 2023 Incident surface
Recovered - No recovery reported
All-Time Rank #1187 By amount stolen
Protocol Type Exit Scam/Rugpull Target category

Incident Overview

Gandalf the Grey project was rugpulled, with a loss of 141 $ETH, equating to 266,238 $USD, through liquidity removal.

GAN is an ERC20 token, trading on UniSwap. The project fell victim to an exit scam as the token deployer removed liquidity from the pool. This action resulted in a loss of 141 $ETH, which was worth around 266,238 $USD at the time of the incident.

The stolen funds were transferred through a couple of EOA addresses. In addition, part of the stolen funds was distributed via CoinTool, adding another layer of complexity to the scam.

Scammer Address:

https://etherscan.io/address/0xb221582a…fc7de8

Funds Holder Address:

https://etherscan.io/address/0x9c5f9de4…96cbeb

Liquidity Removal Transaction:

https://etherscan.io/tx/0x19e96c9c…9aac0b

Funds Transfer Transactions:

https://etherscan.io/tx/0x4d5ea3ed…c94671

https://etherscan.io/tx/0xc2f7beb7…b6656d

Incident Report

Protocol / Project Gandalf The Grey
Date of Incident
Attack Technique Rugpull
Classification Token
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exit Scam/Rugpull
Affected Token GAN
Team Anonymous
Source Code Verified On-Chain

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 Deep understanding of rugpull and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Gandalf The Grey's contract logic - root cause: token
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
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 Gandalf The Grey, these are the critical security checks that could have prevented this incident (July 2023).

  • Verify all logic paths related to Rugpull are guarded by proper access controls and input validation
  • 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

Sources & References

Learn to Prevent the Next Gandalf The Grey

The Gandalf The Grey 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