ZKsync Hack

TOTAL LOST $5.0M
Medium Private Key Compromised (Unknown Method) / Access Control zksync era

Summarize with AI

Affected Chain zksync era Incident surface
Recovered - No recovery reported
All-Time Rank #422 By amount stolen
Protocol Type Exploit/Access control Target category

Incident Overview

On April 15, 2025, a compromised admin account exploited the ZKsync airdrop distribution contracts and stole approximately $5 million worth of unclaimed ZK tokens.

The attack stemmed from the compromise of the admin address 0x842822...587D, which had privileged access to three airdrop distribution contracts. Using this access, the attacker called the sweepUnclaimed() function and minted around 111 million unclaimed ZK tokens, representing roughly 0.45% of the total token supply. This unauthorized minting directly inflated the circulating supply and resulted in the attacker gaining control of tokens worth about $5 million.

Importantly, this was an isolated incident affecting only the airdrop contracts; the ZKsync protocol itself, the core ZK token contract, governance contracts, and capped minters were not compromised. The attacker still holds most of the stolen funds at 0xb1027e...05d3, and recovery efforts are ongoing in coordination with Seal and various exchanges. The ZKsync team has reached out to the attacker to encourage communication and possible fund return.

Incident Report

Protocol / Project ZKsync
Date of Incident
Affected Chain(s) zksync era
Attack Technique Private Key Compromised (Unknown Method) / Access Control
Classification Infrastructure / Other
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Access control
Smart Contract Language Vyper
Official Website www.zksync.io/
Protocol Twitter/X @zksync
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Price at Hack $0.0488
Market Cap at Hack $179.4M
% of Market Cap Stolen 2.79%
Token Categories
Privacy Zero Knowledge Proofs Ethereum Ecosystem Layer 2 Rollups Governance Blockchain Capital Portfolio a16z Portfolio

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 gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of ZKsync'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 ZKsync, these are the critical security checks that could have prevented this incident (April 2025).

  • 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 →

Proof-of-Concept Exploits

1 PoC available
poc-exploits - zksync

Sources & References

Learn to Prevent the Next ZKsync

The ZKsync 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