โ†
Previous Module
Multisig Treasury Approval

โš”๏ธ Governance Attacks: Defend Your DAO

Learn attack vectors and defense strategies for DAOs

โš”๏ธ When Governance Gets Hacked

DAO governance sounds democratic: one token = one vote. But this creates exploitable attack vectors. Flash loans let attackers borrow millions of tokens for a single transaction. Whales accumulate massive voting power. Proposal spam blocks legitimate governance. When billions are at stake, attackers will exploit every weakness.

๐Ÿ’€ Real Governance Exploits

  • โ€ข Beanstalk 2022: Attacker used $1B flash loan to pass malicious proposal, drained $182M in seconds (67% quorum reached)
  • โ€ข Build Finance 2021: Attacker bought 20% of tokens, passed proposal to mint 25M tokens to themselves
  • โ€ข Tornado Cash 2023: Attacker accumulated 1.2M votes via cheap token purchases, took over governance completely

๐ŸŽฎ Interactive: Flash Loan Attack Simulator

Model a governance attack using borrowed tokens. See how loan size, quorum requirements, and voting periods affect attack feasibility.

10M tokens
1M (small)50M (massive)
20% of supply
5% (low security)50% (high security)
3 days
1 day (fast)14 days (slow)
Attacker Voting Power
10.0%
Of total supply
Attack Status
โœ… BLOCKED
Holding Cost
$2160.00K
For 3 days
๐Ÿ›ก๏ธ DEFENSE HOLDS:

SECURE: Attacker only achieves 10.0% power, well below 20% quorum requirement. Even with 10M borrowed tokens, attack fails. Quorum requirement effective.

๐ŸŽฏ Why Governance is Vulnerable

Attack Vectors:
  • โ€ข Flash loans: Borrow millions of tokens for one block
  • โ€ข Whale accumulation: Buy voting power slowly
  • โ€ข Proposal spam: Flood governance with junk
  • โ€ข Vote buying: Pay holders to delegate power
Root Causes:
  • โ€ข Token = voting power (plutocracy, not democracy)
  • โ€ข Low quorums (easy to manipulate)
  • โ€ข Short voting periods (flash loan window)
  • โ€ข No identity verification (anonymous attackers)

๐Ÿ’ก Key Insight

Governance attacks aren't theoreticalโ€”they're proven and profitable. Beanstalk lost $182M in 2022 to a flash loan attack that took 13 seconds. The attacker borrowed $1B in tokens, voted through a malicious proposal, and drained the treasury before anyone could react. One token = one vote sounds fair until someone borrows a billion tokens. Understanding these attacks is the first step to defending against them.