FraudCodex FraudCodex
Market Abuse Crypto & Digital Assets

Governance Attacks

How attackers capture DAO votes with borrowed tokens or malicious proposals to drain treasuries, and how to spot it.

Last reviewed

1 Introduction

Many DeFi protocols are run by decentralised autonomous organisations (DAOs) in which holders of a governance token vote on proposals, and approved proposals execute code automatically. A governance attack abuses that process: an actor acquires enough voting power, by buying, borrowing or flash-loaning tokens, or slips a malicious payload past voters, and uses the passed proposal to move treasury funds or take control of the protocol.

The common thread is that the attacker uses the protocol's own rules. Variants range from flash-loan vote capture, where voting power exists only for one transaction, to hidden code in proposals, takeovers of low-turnout DAOs and open capture by large holders who outvote everyone else. Because the votes are recorded on-chain, each variant leaves a detectable trail.

$182M

Lost by Beanstalk in a flash-loan governance attack in April 2022

1.2M

Votes the attacker granted itself in the May 2023 Tornado Cash takeover

499,000 COMP

Directed to a whale-controlled vault by Compound Proposal 289 (2024)

2 Interactive Governance Attack Walkthrough

Phase: Proposal Filed

Flash-Loan Vote Capture

Voting Power vs. Treasury (illustrative, %)

Step 1 - Proposal Filed: The attacker files a proposal that looks routine but contains code to transfer the treasury to an address they control. The protocol allows execution once a two-thirds supermajority is reached.

3 Detailed Analysis

Types of Governance Attack

Flash-loan vote capture

Voting power borrowed and returned in one transaction, possible when votes are counted at the current block and proposals can execute immediately (Beanstalk).

Malicious proposal code

A proposal whose description differs from what its code does, for example hidden self-destruct and redeploy logic (Tornado Cash).

Low-turnout takeover

An actor accumulates enough tokens to pass proposals in a DAO where few holders vote or monitor (Build Finance).

Whale or cartel capture

A large holder or coordinated group openly outvotes the community to direct treasury funds to itself (Compound Proposal 289).

Legal & Regulatory Framework

No jurisdiction has an offence specific to governance attacks, so the legal analysis turns on deception. A proposal that hides what its code does can be pursued as fraud, for example wire fraud under 18 U.S.C. §1343 in the US or escroquerie under article 313-1 of the French Code pénal. Where voting power is acquired openly and used according to the protocol's rules, liability is far less certain: in the Mango Markets case a US judge vacated fraud and manipulation convictions in 2025 after finding the evidence did not show material misrepresentations to the protocol.

Where the governance token is admitted to trading on an EU crypto-asset platform, trading designed to secure voting control or move its price can also fall under MiCA's prohibition of market manipulation (Regulation (EU) 2023/1114, Art. 91). DAO treasuries that hold client assets or behave like an issuer may also attract securities or commodities regulation, depending on the jurisdiction.

Detection Methodology

Governance monitoring tracks delegation and token balances in the blocks before a vote: sudden concentration of voting power in new addresses, large borrows of governance tokens from lending markets and votes cast from wallets funded minutes earlier are strong warning signs. Every proposal's executable code should be decompiled and compared against its description, with special attention to upgradeable or self-destructing contracts and to calls that move treasury assets.

Protocol design closes most of these gaps: voting power measured at a snapshot taken before the proposal, timelocks between approval and execution, quorum rules that resist low turnout, guardian or veto roles for emergencies and caps on how much of the treasury one proposal can move.

Notable Cases

Beanstalk Farms (2022) - DeFi exploit, Ethereum

On 17 April 2022 an attacker took a flash loan of close to $1 billion in assets from Aave, converted it into a roughly 67% voting stake and executed a malicious proposal through Beanstalk's emergency path, draining about $182 million of protocol assets and keeping roughly $76-80 million. Beanstalk paused and relaunched in August 2022.

Tornado Cash governance takeover (2023) - DAO governance, Ethereum

In May 2023 an attacker submitted a proposal that claimed to mirror an earlier approved one but contained self-destruct logic, letting new code be deployed at the same address after approval. The attacker granted itself about 1.2 million votes against roughly 700,000 legitimate ones and drained TORN from governance vaults, and TORN fell as much as 40%. A proposal returning control passed on 26 May 2023.

Build Finance DAO (2022) - DAO governance, Ethereum

In February 2022 a holder passed a proposal, on a second attempt that went largely unnoticed, giving them control of the governance contract, minting keys and treasury. The attacker minted and sold tokens and took about 160 ETH, around $470,000, according to The Block.

Compound Proposal 289 (2024) - DAO governance, Ethereum

On 28 July 2024 a proposal backed by a whale group known as the Golden Boys passed 682,191 to 633,636 votes, directing 499,000 COMP, about $24 million, to a vault the group controlled. Security researchers called it a governance attack, and within days the parties reached a truce under which the proposal would be withdrawn in favour of a staking product.

Red Flags

  • A sharp rise in voting power held by new or recently funded addresses just before a vote
  • Proposals whose deployed code is unverified, upgradeable or able to self-destruct
  • Large borrows of the governance token on lending markets ahead of a proposal deadline
  • Proposals that move a large share of the treasury to a single address or multisig
  • Votes and execution happening in the same block or without any timelock
  • Low turnout combined with a proposal that was not announced in the usual community channels

4 Sources & Further Reading

Related Fraud Types