DeFi Hacks Reproduce is a Foundry-based educational resource that recreates past decentralized finance security incidents as reproducible test cases.
The project addresses the need for hands-on learning about DeFi vulnerabilities by providing working proof-of-concept implementations of real hacking incidents. Each incident is reproduced using Foundry, Ethereum's testing framework, allowing developers to examine the exact mechanics of how attacks succeeded. This approach lets security researchers and developers study attack vectors in a controlled environment, understand root causes, and learn defensive patterns without requiring access to live networks or complex setup procedures.
Developers should use this resource for security education and incident analysis rather than as a reference for conducting attacks. The project suits teams building DeFi protocols who want to understand common vulnerability patterns, security auditors preparing for assessments, and blockchain developers strengthening their security knowledge. The repository includes transaction debugging tools and an Ethereum signature database alongside the incident reproductions, providing supplementary resources for investigation and analysis.
The project maintains an active collection of reproducible incidents with supporting documentation including root cause analysis. Development activity shows consistent expansion of the incident library and ongoing maintenance of test cases and supporting materials. The project provides structured contribution guidelines for community participation in adding new incident reproductions. Educational content is published alongside the code repository to help developers understand the technical details of each incident.