Skip to content

AyatDev/solidity-security-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

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