Blockchain & smart-contract security

Blockchain & smart-contract security

Smart-contract security as practised by auditors, bug-bounty hunters on Immunefi / Code4rena, and incident responders. EVM-first because EVM is where the money is.

Prereqs

  • Solid programming background.
  • Comfort with a stack-machine mental model (assembly background helps).
  • Foundry installed and working.

Stage 1 — chain mental model

Goal: read a transaction trace and explain what happened.

Stage 2 — classic bug classes

Goal: spot each on sight while reading Solidity.

  • reentrancy — checks-effects-interactions, transient storage in modern Solidity.
  • integer-overflow-solidity — relevant on legacy 0.7-and-below.
  • access-control-bugs — missing onlyOwner, tx.origin abuse, delegatecall-to-untrusted.
  • airdrop-abuse — eligibility logic and double-claim races.
  • Oracle manipulation — price-feed sandwich, flash-loan-driven oracle skew.
  • Slippage / front-running / MEV exposure.

Stage 3 — tooling and workflow

Stage 4 — competing for payouts

  • Read every public Code4rena and Spearbit report you can find — the bug-class distribution shifts every quarter.
  • Immunefi bug-bounty programs.
  • Code4rena contests — fixed-window audits.
  • Practice: Damn Vulnerable DeFi · Ethernaut.

References