Ankr Hack

TOTAL LOST $24.0M
High Access Control Exploit / Access Control bsc

Summarize with AI

Affected Chain bsc Incident surface
Recovered - No recovery reported
All-Time Rank #204 By amount stolen
Auditors 1 Prior security audit

Incident Overview

Ankr protocol was exploited by private key compromisation. The attacker replaced contract implementation and was able to mint aBNBc tokens infinitely.

Ankr is a decentralized infrastructure with a rich ecosystem. The staking contract of the protocol on the Binance Smart Chain was exploited using access control vulnerability. The attacker replaced the implementation for the staking proxy with an unverified malicious contract. Consequently, the malicious contract was used to mint 10,000,000,000,000 $aBNBc which were exchanged for 5,500 $BNB and 5,340,000 $USDC. $aBNBc token price dropped nearly 99% and almost all the liquidity was drained from PancakeSwap and ApeSwap pools. The stolen amount almost completely was transferred through TornadoCash, AnySwap, and CelerBridge. There is just 100 $BNB left in the attacker's original address at the moment.

At this moment proxy implementation was replaced with the new unverified one.

Attacker address:

https://bscscan.com/address/0xf3a465C9…05c777

Malicious transaction:

https://bscscan.com/tx/0x61e0f3f0…506812

https://bscscan.com/tx/0xcbc5ff4a…3e282b

Incident Report

Protocol / Project Ankr
Date of Incident
Affected Chain(s) bsc
Attack Technique Access Control Exploit / Access Control
Classification Protocol Logic / Exchange (DEX)
Primary Source View Post-Mortem

Protocol Information

Protocol Type Liquid Staking
Affected Token ANKR
Smart Contract Language Solidity
Official Website www.ankr.com/
Team Public / Doxxed
Source Code Unverified

Market Context at Time of Hack

Token Categories
Platform Enterprise Solutions Distributed Computing DeFi Filesharing Staking Ethereum Ecosystem Substrate

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 Ankr'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? Likely — with a thorough Access Control Exploit / Access Control audit checklist and test coverage
Audited by Audit Report 1 — still lost $24.0M. Prior audits don't guarantee safety, especially after post-audit code changes.

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

  • Verify all logic paths related to Access Control Exploit / 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

Security Audit History

Post-Incident Timeline

  • 2023-03-03

    Gained $aBNBc was used as collateral on Helio Protocol, allowing two exploits with a funds loss of 15,500,000 $USD and 3,500,000 $USD respectively. The protocol's stablecoin $HAY lost its dollar peg and the token price dropped 0.62 $USD at the moment of the incident. After some period of time, $HAY token's peg was recovered.

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 Ankr

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