A curated list of blockchain security Wargames, Challenges, and Capture the Flag (CTF) competitions and solution writeups.
-
- Ethernaut CTF Series - All Things Security - Solutions in Solidity and Foundry by Aditya Dixit
- Ethernaut Solutions by Aniket21mathur - Challenges 0-25
- Ethernaut Solutions by cmichel - Challenges 0-21
- Ethernaut Writeups by Macmod - Challenges 0-9
- Ethernaut Solutions by tsauvajon - Challenges 1-11
- Ethernaut Solutions by tinchoabbate
- The Ethernaut CTF Writeup by Arseny Reutov - Challenges 0-6
- Ethernaut Lvl 0 Walkthrough: ABIs, Web3, and how to abuse them by Nicole Zhu
- Ethernaut Lvl 1 Walkthrough: how to abuse the Fallback function by Nicole Zhu
- Ethernaut Lvl 2 Fallout Walkthrough: how simple developer errors become big mistakes by Nicole Zhu
- Ethernaut Lvl 3 Coin Flip Walkthrough: how to abuse psuedo randomness in smart contracts by Nicole Zhu
- Ethernaut Lvl 4 Telephone Walkthrough: how to abuse tx.origin & msg.sender by Nicole Zhu
- Ethernaut Lvl 5 Token Walkthrough: How to abuse arithmetic underflows and overflows by Nicole Zhu
- Ethernaut Lvl 6 Delegation Walkthrough: How to abuse the delicate delegatecall by Nicole Zhu
- Ethernaut Lvl 7 Force Walkthrough — How to selfdestruct and create an Ether blackhole by Nicole Zhu
- Ethernaut Lvl 8 Vault Walkthrough — How to read “private” variables in contract storage (with Truffle) by Nicole Zhu
- Ethernaut Lvl 9 King Walkthrough: How bad contracts can abuse withdrawals by Nicole Zhu
- Ethernaut Lvl 10 Re-entrancy Walkthrough: How to abuse execution ordering and reproduce the DAO hack by Nicole Zhu
- Ethernaut Lvl 11 Elevator Walkthrough: How to abuse Solidity interfaces and function state modifiers by Nicole Zhu
- Ethernaut Lvl 12 Privacy Walkthrough: How Ethereum optimizes storage to save space and be less gassy by Nicole Zhu
- Ethernaut Lvl 13 Gatekeeper 1 Walkthrough: How to calculate smart contract gas consumption (and byte masking) by Nicole Zhu
- Ethernaut Lvl 14 Gatekeeper 2 Walkthrough: How contracts initialize (and how to do bitwise operations) by Nicole Zhu
- Ethernaut Lvl 15 Naught Coin Walkthrough: How to abuse ERC20 tokens and bad ICOs by Nicole Zhu
- Ethernaut Lvl 16 Preservation Walkthrough: How to inject malicious contracts with delegatecall by Nicole Zhu
- Ethernaut Lvl 17 Locked Walkthrough: How to properly use (and abuse) structs in Solidity by Nicole Zhu
- Ethernaut Lvl 18 Recovery Walkthrough: How to retrieve lost contract addresses (in 2 ways) by Nicole Zhu
- Ethernaut Lvl 19 MagicNumber Walkthrough: How to deploy contracts using raw assembly opcodes by Nicole Zhu
- Ethernaut Challenges solutions by Asamartino - Challenges (0-21)
- Ethernaut Challenges solutions by Simon - Challenges (0-21)
- Ethernaut: Lvl 22 Dex - Writeups by thispost
- Ethernaut: Lvl 23 Dex Two - Writeups by Naveen
- Ethernaut: Lvl 24 Puzzle Wallet - Writeups by Lamby
- Ethernaut: Lvl 25 Motorbike - Writeups by Lamby
- Ethernaut: Lvl 26 DoubleEntryPoint - Writeups by D-Squared
- Ethernaut Lvl 27 Good Samaritan Walkthrough: Custom Errors in Solidity by Chirag Agarwal
- Ethernaut CTF Level 0 by D-Squared
- Ethernaut CTF Level 1 by D-Squared
- Ethernaut CTF Level 2 by D-Squared
- Ethernaut CTF Level 3 by D-Squared
- Ethernaut CTF Level 4 by D-Squared
- Ethernaut CTF Level 5 by D-Squared
- Ethernaut CTF Level 6 by D-Squared
- Ethernaut Brownie Solutions by ptisserand
- Ethernaut Truffle Solutions by tincho
- Ethernaut Hardhat Solutions by MrToph
- Ethernaut-x-Foundry Solutions by ciaranmcveigh5
- Ethernaut CTF - Foundry Edition by StErMi
- Ethernaut x Foundry - 0x0 Hello Ethernaut by 0xeval
-
Security Innovation Blockchain CTF
- Security Innovation Blockchain CTF Solutions by Narendra Patel
-
- Sherlock Writeup by Razzor
-
CTF Lending by MrToph
-
- List of all challenges and solutions
- List of challenges with solutions and writeups from beskay
- CTF Level 1: PrivateData - Writeup by Giovannidisiena.eth
- CTF Level 2: Wallet - Writeup by StErMi
- CTF Level 3: Car Market - Writeup by StErMi
- CTF Level 4: Vending Machine - Writeup by StErMi
- CTF Level 6: Hackable Contract - Writeup by StErMi
- CTF Level 8: VNFT - Writeup by beskay
- CTF Level 9: EtherWallet - Writeup by beskay
- CTF Level 10: Vault - Writeup by beskay
- CTF Level 11: Staking - Writeup by beskay
-
- Secureum A-MAZE-X Stanford CTF by patrickd
-
Immunefi Community Challenges by Immunefi
-
EVM puzzles by fvictorio
-
- Solutions - Part 1 by patrickd
- Solutions - Part 2 by patrickd
-
Solana Security Workshop by Neodyme
- Solution by Christoph Michel
-
Interview Contracts by Halborn
-
Pinball Challenge by samczsun
-
- Damn Vulnerable DeFi Solutions by cmichel
- Write-ups and lessons learned from Damn Vulnerable #DeFi by Damian Rusinek
- Damn Vulnerable DeFi — Setup and Challenge #1 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #2 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #3 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #4 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #5 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #6 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #7 Walkthrough by iphelix
- Damn Vulnerable DeFi — Challenge #8 Walkthrough by iphelix
- Damn Vulnerable DeFi Video Solutions by Smart Contract Programmer
- Damn Vulnerable DeFi v2 - part #1: Setup and Challenges 1 to 4 by patrickd
- Damn Vulnerable DeFi V2 - #5 The Rewarder by patrickd
- Damn Vulnerable DeFi V2 - #6 Selfie by patrickd
- Damn Vulnerable DeFi V2 - #7 Compromised by patrickd
- Damn Vulnerable DeFi V2 - #8 Puppet by patrickd
- Damn Vulnerable DeFi V2 - #9 Puppet V2 by patrickd
- Damn Vulnerable DeFi V2 - #10 Free Rider by patrickd
- Damn Vulnerable DeFi V2 - #11 Backdoor by patrickd
- Damn Vulnerable DeFi V2 - #12 Climber by patrickd
- Damn Vulnerable DeFi V2 - #13 Junior Miners by patrickd
-
Break My Contract, Steal My Money Challenges
-
Hacking smart contracts for fun and profit by István András Seres
-
Paradigm CTF 2022 - 2022
- Community Solutions:
- Paradigm CTF 2022 Write-up by The Duck (Theori)
- Statemind's solutions(11 solved)
- Paradigm CTF 2022 Writeup by Inspex
- minaminao solutions
- Kaiziron solutions
- Paradigm CTF 2022: Write-Up Collection
- Paradigm CTF 2022 - Electric Sheep by patrickd
- Paradigm CTF 2022 - Trapdooor & Trapdoooor by patrickd
- 0xMonaco writeup by brock
- 0xMonaco #1 place writeup by Oage
- 0xMonaco writeup by Abdulla
- 0xMonaco exploit by Brock Elmore
- Unlocking the Lockbox2 by Soham Zemse
- Vanity by Daniel Von Fange
- Merkledrop and Vanity by iFrostizz
- PARADIGM CTF 2022 Question Analysis 1 — RESUCE by Numen Cyber Labs
- PARADIGM CTF 2022 Question Analysis 2 — Source Code Analysis by Numen Cyber Labs
- PARADIGM CTF 2022 Question Analysis 3 - Lockbox2 Analysis by Numen Cyber Labs
- PARADIGM CTF 2022 Question Analysis 4 -MerkleDrop by Numen Cyber Labs
- Electric Sheep - Stealing gas tokens from the GSN-enabled MultiSig by Decurity
- Community Solutions:
-
Paradigm CTF - 2021
- Official Challenges and Solutions:
- Community Solutions:
- Paradigm CTF 2021 Solutions and Github repo by cmichel
- BabyRev and Upgrade Solutions by Ansgar Dietrichs
- [Paradigm JOP Solution on Twitch Part 1 and Part 2 by Ansgar Dietrichs
- Paradigm CTF 2021 Solutions by thegostep
- BabyCrypto, BabySandbox, and Lockbox writeups by roynalnaruto
- BabyCrypto Challenge by Team Dilicious (Sam Wilson)
- Broker Challenge by Team Dilicious (Sam Wilson)
- BabyRev Challenge by Team Dilicious (Sam Wilson)
- Bank Challenge by Team Dilicious (smarx)
- Vault Challenge by Team Dilicious (smarx)
- Paradigm CTF Solutions by Furucombo
- Swap Challenge by samczsun
- Solutions by patrickd
-
0xPOLAND - 2020
-
AnChain CTF - 2020
-
Sharky CTF - 2020
- Sharky CTF: Blockchain Level 0 to 4 Writeup by Nithilan Pugal
- Sharky CTF Blockchain Challenges by Imagin
-
Donjon CTF - 2020
-
Chain Heist - 2019
-
Capture the Coin - 2019
- “Capture the Coin” at Defcon and you could win big
- How the Coinbase Security team deployed CTFd to Power our First Capture the Flag contest at Defcon 27
- Congratulations Capture the Coin participants!
- Capture the Coin — Trivia Solutions
- Capture the Coin — Blockchain Category Solutions
- Capture the Coin — Cryptography Category Solutions
- Capture the Coin CTF write-up by Arpox
-
Code Blue PolySwarm Challenge - 2018
- PolySwarm Smart Contract Hacking Challenge Writeup by Arseny Reutov
-
Real World CTF (Acoraida Monica Challenge) - 2018
- Challenge files and Solution by LiveOverflow
- Ethereum Smart Contract Code Review #1 - Real World CTF 2018 by LiveOverflow
- Jump Oriented Programming: Ethereum Smart Contract #2 - Real World CTF 2018 by LiveOverflow
- Ethereum Smart Contract Backdoored Using Malicious Constructor by LiveOverflow
-
Authio Solidity CTF
- Challenges:
- Solidity CTF - Part 1: "Function Types
- Solidity CTF — Part 2: “Safe Execution”by Alexander Wade
- Solidity CTF — Part 3: “HoneyPot” by Alexander Wade
- Solidity CTF — Part 4: Read the Fine Print by Alex Towle
- Solidity CTF - Part 5: Mirror Madness by Paul Vienhage
-
ZeroNights ICO Hacking Contest - 2017
- ZeroNights ICO Hacking Contest Writeup by Arseny Reutov