Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 733 Bytes

File metadata and controls

32 lines (23 loc) · 733 Bytes

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