zkLend Hack

TOTAL LOST $9.6M
Medium Empty Market Exploit / Other starknet

Summarize with AI

Affected Chain starknet Incident surface
Recovered - No recovery reported
All-Time Rank #317 By amount stolen
Protocol Type Lending Target category

Incident Overview

On February 12, 2025, zkLend, a lending protocol on Starknet, suffered an exploit due to a rounding error in the mint() function. The attacker manipulated the lending_accumulator to artificially inflate their balance, leading to a loss of $9.5M (3,600 ETH).

The attack exploited a rounding error in zkLend’s mint() function, where improper integer division (div(amount, accumulator)) caused downward rounding and balance inflation. By artificially increasing the lending_accumulator, the attacker repeatedly deposited and withdrew wstETH, gaining additional wei due to rounding inconsistencies. This cycle exponentially increased their holdings, allowing them to extract wstETH without proportional cost deductions.

The stolen funds were then bridged to Ethereum and laundered through Railgun, though Railgun’s protocol policies returned the funds to the attacker’s original address.

Attacker’s Address:

https://etherscan.io/address/0x645c7783…0a9109

Incident Report

Protocol / Project zkLend
Date of Incident
Affected Chain(s) starknet
Attack Technique Empty Market Exploit / Other
Classification Protocol Logic / Borrowing and Lending
Primary Source View Post-Mortem

Protocol Information

Protocol Type Lending
Smart Contract Language Cairo
Official Website zklend.com/
Protocol Twitter/X @zkLend
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
BNB Chain Ecosystem

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 empty market exploit / other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with starknet smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in zkLend's contract logic - root cause: protocol logic / borrowing and lending
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? Likely — with a thorough Empty Market Exploit / Other audit checklist and test coverage

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

  • Verify all logic paths related to Empty Market Exploit / 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 Trial

Sources & References

Learn to Prevent the Next zkLend

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