Skip to content

This is a repo where you can find the most popular attacks on Smart Contracts alongside code examples and mitigations.

Notifications You must be signed in to change notification settings

kujen5/Smart_Contract_Attacks

Repository files navigation

Smart Contract Attacks

Smart Contract Attacks is a project created by myself in order to make people more aware regarding attacks that target Blockchain/Web3 and Smart Contracts. You will find a folder specific to each vulnerability or class of vulnerabilities alongside explanations, code examples and mitigations.

Getting Started

Requirements

  • foundry
    • You will know your installation is successful if you can run forge --version

Setup

Clone this repository:

git clone https://github.com/kujen5/Smart-Contract-Attacks

If more setup is required, you'll find details regarding that specific to each Vulnerability class.

Usage

  1. Compile your code:

Run:

forge compile
  1. Test the code:

Run:

forge test -vvvv

TODO

  • Implement more vulnerabilities.
  • Try to cover OWASP top 10 Smart Contract vulnerabilities
  • Discover my own vulnerabilities ;)

Thank you!

This project has been made with love as a learning experience. The best is yet to come. Please give the project a star if you like it!

About

This is a repo where you can find the most popular attacks on Smart Contracts alongside code examples and mitigations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published