Aztec Hack
Incident Overview
In 14th June 2026, the privacy-focused Layer 2 protocol Aztec Network suffered a smart contract exploit on Ethereum mainnet targeting its legacy RollupProcessorV3 contract, resulting in a loss of approximately $2.19 million.
The exploit targeted a logical mismatch inside the processRollup() function between the transaction batch verified by the zero-knowledge (ZK) rollup proof and the transaction loop executed by the Layer-1 (L1) settlement engine.
The attacker exploited this by manipulating the processed transaction parameter (numRealTxs) to 1, placing a dummy transaction in the first position, and an actual deposit transaction in the second slot. Because the ZK proof validated the entire data payload, the rollup internally credited the private funds to the attacker's state tree. However, because numRealTxs restricted the L1 loop to parse only the first slot, the contract skipped the corresponding L1 balance deduction logic (decreasePendingDepositBalance()). This allowed the attacker to generate completely unbacked private notes out of thin air, which they subsequently withdrew into real assets across seven different tokens.
Incident Report
Protocol Information
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.
What Auditors Should Check
If you're auditing a protocol with similar architecture to Aztec, these are the critical security checks that could have prevented this incident (June 2026).
- Verify all logic paths related to Other 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 TrialSources & References
Learn to Prevent the Next Aztec
The Aztec 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.