Map of Content — Web3 Security Mastery

See Roadmap for the 16-week journey. See References for primary sources, audit reports, post-mortems, and academic papers organized by topic. This course trains auditors — not DeFi traders, not pure Solidity developers. Every lesson contains a lab that reproduces a real exploit, not just reads about one.


Phase 1: Foundations — Blockchain, EVM, Solidity

Before auditing a system, you must understand it at the byte and opcode level.

Phase 2: Smart Contract Security Core

80% of bugs auditors find belong to ~20 vulnerability classes. Master those before touching DeFi.

Phase 3: Protocol & Economic Security

The best auditors don’t find bugs in lines of code — they find them in economic models.

  • Tuan-08-DeFi-Security-AMM-Lending-Vault — AMM math, lending invariants, liquidation flow, vault accounting, stablecoin design, staking/restaking, perps/derivatives
  • Tuan-09-Oracle-MEV-Economic-Attack — Chainlink trust model, TWAP design, sandwich/back-running, priority-gas auctions, private mempools, flash-loan economic attack modeling
  • Tuan-10-Bridge-Cross-Chain-Security — Lock-and-mint vs burn-and-mint vs liquidity network, light-client vs multisig bridges, message validation, finality assumptions, replay protection
  • Tuan-11-L2-Rollup-Modular-Security — Optimistic vs ZK rollups, sequencer trust, fraud/validity proofs, data availability, escape hatches, L1↔L2 messaging hazards, shared sequencers

Phase 4: Adjacent Attack Surfaces

Smart contracts are one slice. Wallets, frontends, RPC nodes, and governance are equally attackable.

  • Tuan-12-Wallet-AA-Key-Management — EOA vs smart wallet, multisig (Safe), MPC, hardware wallets, session keys, ERC-4337 stack, signature phishing, transaction simulation
  • Tuan-13-Frontend-dApp-Infrastructure — Wallet connection flow, approval drainers, frontend supply-chain (npm/CDN/DNS), RPC trust, indexer/relayer/keeper risk, monitoring
  • Tuan-14-Governance-DAO-Security — Token voting, delegation, timelocks, flash-loan governance attacks, multisig governance, emergency powers, parameter risk

Phase 5: Professional Practice

Knowing bugs is not enough. Auditing is a service — it needs methodology, reports, and communication.

  • Tuan-15-Audit-Methodology-Tooling — Scoping, threat modeling, trust boundaries, invariant identification, Slither/Echidna/Medusa/Halmos/Certora, manual review checklist, severity classification
  • Tuan-16-Report-Writing-Capstone — Audit report structure, finding template, severity matrix, remediation review, capstone audit project

Bonus Chapters — depth & emerging topics

Read when needed. Not required in order.


Case Studies — Real-World Exploit Reproduction

Every case study is a Foundry/Hardhat project that reproduces the exploit — not just a post-mortem read. Auditors are paid to recognize patterns, and patterns burn into the brain only when you write the PoC yourself.

Smart-contract era (2016–2020)

DeFi-summer aftermath (2020–2022)

Modern era (2023–2025)


Attachments — Cheatsheets & Templates


Maps & Index

  • Roadmap — 16-week plan, bonus chapters, case studies, dependency map
  • References — Primary-source library: official docs, audit firm publications, exploit post-mortems, academic papers, tooling docs

Tag System

  • #web3-security — Catch-all
  • #solidity, #evm, #yul, #assembly
  • #defi, #amm, #lending, #vault, #stablecoin, #perp, #staking
  • #bridge, #l2, #rollup, #cross-chain
  • #wallet, #aa, #erc4337, #multisig
  • #oracle, #mev, #flash-loan, #economic-attack
  • #governance, #dao, #timelock
  • #frontend, #dapp, #supply-chain, #infrastructure
  • #vulnerability — Specific: #reentrancy, #access-control, #delegatecall, #proxy, #signature, #rounding
  • #tool#foundry, #slither, #echidna, #medusa, #halmos, #certora, #tenderly
  • #non-evm#solana, #anchor, #cosmwasm, #move, #sui, #aptos
  • #case-study — Real exploit reproduction
  • #methodology — Audit process, threat modeling, reporting
  • #anti-pattern — Code/design to avoid

Last updated: 2026-05-16