smart-contract-audit

Installation
SKILL.md

Smart Contract Audit

Authorization Boundary

  • Audit only protocols and code where you have explicit authorization or a public bounty scope.
  • Treat private keys and seed phrases as untouchable; never request, store, or use them.
  • Distinguish lab/testnet from mainnet; never simulate exploits against live user funds.

Audit Workflow

  1. Architecture: contract map, upgrade pattern, proxy admin, roles, external calls, oracles, AMMs, bridges, governance.
  2. Threat model: trust assumptions, economic invariants, privileged actors, off-chain dependencies, MEV exposure.
  3. Static and semantic: slither, aderyn, semgrep, mythril, Solidity compiler warnings; review storage layout for upgradeable contracts.
  4. Property tests: write invariants in Foundry/Echidna/Halmo; fuzz with state-machine harnesses; run differential tests vs reference.
  5. Manual review: reentrancy (CEI), unchecked external calls, signature replay, frontrunning, slippage, rounding, oracle freshness/TWAP, ERC-20 fee-on-transfer and rebasing edge cases, ERC-721/1155 callbacks.
  6. Economic: invariant set on liquidity, fees, debt, collateral; simulate MEV (mev-share, cannon, tenderly).
  7. Report: severity, likelihood, impact, fix, regression test.

High-Risk Patterns Checklist

Installs
1
GitHub Stars
3
First Seen
Aug 26, 2026
smart-contract-audit — masriyan/gemini-security-skills