Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Solidity Security Patterns

Common vulnerability patterns in Solidity smart contracts with fixes and best practices.

Patterns Covered

  • Reentrancy — CEI pattern and ReentrancyGuard
  • Integer Overflow/Underflow — SafeMath and Solidity 0.8+
  • Access Control — Ownable and role-based access
  • Flash Loan Attacks — Detection and prevention
  • Unchecked External Calls — Proper error handling
  • Front Running — Commit-reveal scheme

Structure

patterns/
├── reentrancy/
├── overflow/
├── access-control/
└── flash-loan/

Tools

  • Slither
  • Mythril
  • Hardhat
  • Foundry

Contact

  • LinkedIn: linkedin.com/in/ayatdev
  • GitHub: github.com/AyatDev

Releases

Packages

Contributors

Languages