Punk Protocol Hack

TOTAL LOST $8.9M
Medium Delegatecall Exploit / Other ethereum

Summarize with AI

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

Incident Overview

Punk Protocol suffered a loss due to a missing Modifier in the initialize() function of the CompoundModel code, allowing an attacker to manipulate the function and withdraw assets directly to their wallet.

The attacker exploited a vulnerability in the initialize() function of the CompoundModel code, which lacked an "initializer" Modifier. This allowed the attacker to manipulate the function, despite it being connected to an unknown contract. The attacker then updated the contract address and called withdrawToForge(), sending the assets controlled by the CompoundModel directly to their malicious contract and into their wallet.

The stolen funds were then swapped on ETH and deposited into the Tornado Cash mixer. A white-hat hacker managed to front run the attack and returned $5 million to the Punk Protocol deployer's address.

The attacker's address:

https://etherscan.io/address/0x1d5a5640…ccb72b

The attacker's smart contract:

https://etherscan.io/address/0x1695ce70…073ee6

The white-hat hacker address:

https://etherscan.io/address/0x3aa27ab2…2bc35a

white-hat hacker smart contract:

https://etherscan.io/address/0x00000000…c34c8f

Transaction of the attack:

https://etherscan.io/txs?a=0x1d5a5640…ccb72b

Transaction of the returned funds:

https://etherscan.io/tx/0x008dd92f…668147

https://etherscan.io/tx/0xace7c076…f83247

Incident Report

Protocol / Project Punk Protocol
Date of Incident
Affected Chain(s) ethereum
Attack Technique Delegatecall Exploit / Other
Classification Smart Contract Language / NFT
Primary Source View Post-Mortem

Protocol Information

Protocol Type Yield
Affected Token PUNK
Smart Contract Language Solidity
Official Website punk.finance/
Protocol Twitter/X @PunkProtocol
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
Platform Services DeFi Interoperability DAO Ethereum Ecosystem Governance YZi Labs 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 Deep understanding of delegatecall 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 ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Punk Protocol's contract logic - root cause: smart contract language / nft
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 Delegatecall Exploit / Other audit checklist and test coverage
Audited by Audit Report 1 — still lost $8.9M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Punk Protocol, these are the critical security checks that could have prevented this incident (August 2021).

  • Verify all logic paths related to Delegatecall Exploit / Other are guarded by proper access controls and input validation - see the Delegatecall & Call Injection 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

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Delegatecall & Call Injection Attacks examples →

Sources & References

Learn to Prevent the Next Punk Protocol

The Punk Protocol 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