Governance Attack

Acquiring enough voting power to pass a proposal that drains a treasury or changes rules in the attacker's favour.

Basically

An attacker buys or borrows enough voting tokens to take control of a DAO. They can then vote to steal its funds or change its rules.

Key Takeaways

  • A governance attack turns a DAO's voting mechanism against it. The attacker acquires enough governance tokens to pass malicious proposals that drain the treasury or rewrite protocol rules.
  • Attack vectors include flash loan voting, where tokens are borrowed, used and repaid in one transaction, gradual token accumulation and outright vote buying through bribery platforms.
  • Defences include time-locked voting, vote escrow mechanisms that require long-term token lockups, snapshot-based voting weight and quorum requirements. No solution fully eliminates the tension between token-weighted governance and security.

What Is a Governance Attack?

A governance attack targets the legitimate voting process of a decentralised autonomous organisation (DAO) rather than its smart contract code. Instead of finding a bug, the attacker uses the governance system as designed, acquiring enough voting power to pass proposals that benefit themselves at the expense of all other participants.

Governance attacks are particularly insidious because a malicious actor buying governance tokens looks identical to a legitimate large investor from the protocol's perspective. Both acquire tokens through normal market activity and submit proposals through the standard governance process. The system cannot distinguish between a genuine community member proposing a treasury allocation and an attacker proposing to drain funds.

Governance attacks have caused hundreds of millions of dollars in losses across DeFi protocols. Incidents range from the $181 million Beanstalk exploit in 2022 to the $20 million BonkDAO attack in 2026.

How It Works

Most governance attacks follow a common pattern. The specific variant may differ, but the sequence stays broadly the same:

The simplest version of a governance proposal that drains a treasury has a basic structure. It might look like this:

Protocols without proper safeguards can process the entire attack in minutes or even within a single transaction. The proposal can be submitted, voted on and executed within that window.

Flash Loan Voting

The most capital-efficient attack vector uses flash loans to borrow massive quantities of governance tokens. The attacker votes on a malicious proposal, executes it and repays the loan within a single transaction in a single block. Their cost is limited to the near-zero flash loan fee and gas costs.

The variant works only against protocols that allow same-block voting and execution. Voting power must also be calculated at the time of the vote rather than from a historical snapshot.

Gradual Accumulation

Rather than borrowing tokens temporarily, the attacker slowly buys governance tokens across multiple pseudonymous wallets to avoid detection. Once enough voting power is assembled, the attacker coordinates a vote during a period of low community participation. The approach requires real capital but is harder to defend against because each individual purchase appears legitimate.

Vote Buying and Bribes

Bribery platforms let attackers rent governance votes from token holders without buying the underlying tokens. Holders stake their governance tokens and sell their voting rights to the highest bidder, a practice already operating in DeFi, particularly around Curve gauge voting and the so-called "Curve Wars". Some bribery serves legitimate competitive governance, but attackers can weaponise the same infrastructure.

Social Engineering

Some attacks exploit voter trust rather than raw voting power. The attacker disguises a proposal as routine maintenance or a replication of a previously approved proposal, and voters approve it without reviewing the underlying code or realising it contains hidden malicious logic. The variant relies on voter apathy and trust rather than token accumulation.

Beanstalk: $181 Million (April 2022)

The most infamous governance attack exploited Beanstalk's emergencyCommit function, which allowed immediate execution of any proposal that achieved two-thirds support. The attacker took the following steps:

The attacker profited approximately $76 million (24,930 ETH). The root cause was straightforward: Beanstalk had no time-lock on voting power, no snapshot mechanism and allowed same-block proposal execution.

Build Finance DAO: $470K (February 2022)

Unlike Beanstalk, the Build Finance DAO attack used gradual accumulation: the attacker acquired BUILD tokens over time across multiple wallets, then submitted a proposal granting control of the BUILD token contract. To avoid counter-votes, the attacker kept the proposal quiet and did not announce it on Discord; after it passed, they minted over 1.1 million new BUILD tokens, drained liquidity pools and seized 130,000 METRIC tokens from the treasury. BUILD's price collapsed from roughly $1.50 to near zero.

Tornado Cash: $2.1 Million (May 2023)

The Tornado Cash attack used social engineering rather than brute-force token accumulation: the attacker submitted a proposal claiming to replicate a previously approved, legitimate proposal, and voters trusted and approved it. Hidden logic in the proposal used a selfdestruct function that let the attacker deploy entirely new code to the same contract address; once executed, it assigned 10,000 governance tokens to each attacker-controlled address, totalling 1.2 million votes against only roughly 70,000 legitimate votes. The attacker gained total governance control and extracted 483,000 TORN tokens.

Compound: $24 Million Attempted (July 2024)

A DeFi whale known as "Humpy" withdrew 230,333 COMP from exchanges using five wallets, delegated voting power and narrowly passed Proposal 289, a $24 million allocation to a yield strategy the whale controlled. The vote passed 682,191 to 633,636. Unlike other attacks, the dispute was resolved through negotiation: Humpy agreed to rescind the proposal in exchange for development of a legitimate COMP staking product.

BonkDAO: $20 Million (July 2026)

The most recent high-profile governance attack demonstrated that no technical sophistication is required. The attacker spent roughly $4 million buying BONK tokens across multiple anonymous wallets over several days, and only seven wallet addresses voted on the proposal, with the attacker's wallets controlling 99.878% of total voting weight. The attack succeeded because of extremely low governance participation.

Time-Locked Voting

Requiring tokens to be held for a minimum duration before they confer voting power eliminates flash loan attacks entirely. Combined with execution timelocks, which delay execution after a proposal passes, the requirement gives the community time to identify and respond to malicious proposals.

Vote Escrow

Pioneered by Curve's veCRV model, vote escrow requires users to lock tokens for a chosen duration, up to four years for Curve. Voting power scales with lock duration, so longer lockups grant more votes. The model aligns governance power with long-term commitment and makes short-term manipulation prohibitively expensive.

Snapshot-Based Voting Weight

Voting power is calculated from a historical snapshot taken at a specific block height before the proposal was submitted. Tokens acquired after the snapshot block carry zero voting weight. The mechanism prevents flash loan attacks because the attacker would need to hold tokens before the snapshot is taken.

Quorum Requirements

Minimum participation thresholds invalidate low-turnout votes. BonkDAO's 7-wallet vote would have failed with meaningful quorum requirements. Quorum must be calibrated carefully: set too high, legitimate governance stalls; set too low, attacks become trivial.

Delegation

Inactive token holders can delegate voting rights to trusted, active representatives. Delegation increases effective participation without requiring every holder to vote actively, and higher participation makes accumulation attacks more expensive. Protocols like Compound, ENS and Aave all implement delegation systems.

Conviction Voting

Rather than using discrete voting windows, conviction voting lets token holders continuously signal their preferences. The longer a holder supports a proposal, the more "conviction" accumulates, and proposals must reach a minimum conviction threshold to pass. The system rewards sustained commitment and makes last-minute vote manipulation extremely costly.

The Fundamental Tension

Token-weighted voting, or one token, one vote, is the dominant governance model in DAOs because it is Sybil-resistant on permissionless blockchains. On-chain identities cannot be verified, so tying votes to economic stake makes manipulation expensive. The trade-off is inherent plutocracy, where those with more capital hold more governance power.

The model leads to several structural problems: early adopters who acquired tokens at low prices hold disproportionate influence, and wealthy participants can buy governance outcomes. Small holders face rational apathy because their votes are economically insignificant, which lowers participation and makes attacks cheaper. As large holders shape governance to benefit themselves, token concentration increases in a reinforcing cycle.

Academic research has shown that no voting rule deriving power solely from wallet balances can be simultaneously anti-plutocratic, Sybil-resistant and permissionless. Alternatives like quadratic voting reduce plutocracy but introduce Sybil vulnerability, where one person creates many wallets. The tension is fundamental and has no known complete solution.

Why It Matters

Governance attacks highlight a core trade-off in decentralised protocol design: the more power you give token holders, the more vulnerable the system becomes to actors who accumulate tokens purely to extract value. Protocols that manage significant treasuries or control critical infrastructure must treat governance security as seriously as smart contract security.

Bitcoin-native protocols handle this risk differently. Bitcoin's governance operates through social consensus and miner signalling rather than token-weighted voting, making it resistant to these specific attack vectors. Layer 2 protocols like Spark inherit this property: Spark does not rely on a governance token for protocol decisions and instead uses cryptographic mechanisms such as FROST threshold signatures for operational security.

You need to understand governance attacks if you participate in DAO governance, evaluate DeFi protocol risk or design new decentralised systems. The history of these attacks shows that technical defences must be paired with thoughtful governance design to protect community-managed treasuries. For a deeper look at how protocol risk propagates through decentralised systems, see the research article on DeFi protocol risk.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms