Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin CryptoTax DeFAI Chain SAFU AGI Claude Me Claude Skill Claude Cowork
Independent Media
Not affiliated with any project
DeFi Protocol Mechanics, Decoded
defi-bible.com
LATEST
Who Are Liquidators, and Why Do They Watch Other People's Positions 24/7 Waiting to Liquidate Them?  ·  Robinhood Launches Its Own Public Chain: Stock Tokens, 24/7 Trading — A Major Broker Puts Itself On-Chain  ·  Opening a DeFi Dashboard for the First Time: Which Numbers Should Beginners Look At First  ·  Get Apple Stock Exposure Without a Foreign Brokerage Account? What Synthetic Assets Can and Can't Do  ·  Five Common Smart Contract Vulnerability Types, Explained Without Requiring You to Code  ·  300% APY: Get Excited or Get Cautious? Decoding the Truth Behind Liquidity Mining Numbers
protocols

How Governance Attacks Happen: When Voting Power Can Be Borrowed for a Single Block

30-Second Version · For the impatient
A governance attack was never after the token itself — it's after the voting power that token temporarily grants. Borrow it for one block, pass a proposal, return it, walk away clean.

Full Explanation +
01 · Why did this happen?

If a protocol sets a very long voting delay period, does that make it completely safe?

A delay period effectively guards against 'pure flash-loan-style' instant attacks, since it prevents borrowed tokens from being returned before voting concludes, forcing an attacker to bear a longer period of locked capital and price volatility risk — substantially raising the attack's capital cost and complexity. But a delay period can't guard against every form of governance attack — if an attacker is willing to genuinely buy and hold enough governance tokens with their own capital (rather than a flash loan) to weather the entire delay period, or coordinates across multiple addresses to sidestep a per-address voting weight cap, the delay period alone can't stop this kind of 'patient, well-capitalized' attacker.

A more accurate framing of a delay period is 'substantially raising the barrier for flash-loan-style instant attacks,' not 'making the governance mechanism absolutely safe.' It's one layer within a multi-layered defense system, and typically needs to be paired with other mechanisms like snapshot timing design and quorum thresholds to build a relatively complete defensive structure.

02 · What is the mechanism?

How does the earlier snapshot timing design actually work, and can it completely prevent governance attacks?

The operating logic: before a proposal formally enters the voting phase, the protocol records a 'snapshot block' — the amount of tokens each address holds at that snapshot block becomes that address's voting weight for the entire subsequent voting period, and even if the address transfers tokens out or in after the snapshot, the voting weight doesn't change. This means if an attacker wants to use a flash loan to manipulate a vote outcome, the borrowed tokens would need to already be in the attacker's hands at exactly that snapshot block — but attackers usually can't accurately predict when a protocol will submit a new proposal and lock in a snapshot timing, making 'borrow temporarily and happen to land right at the snapshot moment' extremely difficult.

This mechanism effectively guards against the vast majority of spontaneously launched flash loan attacks, but it's not a silver bullet either: if an attacker can anticipate ahead of time that a protocol is about to submit a particular proposal (e.g., through community discussion or public information), they could theoretically still position in advance, ensuring they hold enough tokens at the expected snapshot timing. Attacking under this scenario is far more difficult than a pure instant flash loan attack, but not entirely impossible — it just requires significantly more information advantage and preparation time, substantially raising the attack barrier.

03 · How does it affect me?

The veToken (vote-escrowed token) model sounds like it's immune to flash loan attacks — does it have weaknesses of its own?

Indeed, the veToken model is inherently immune to the 'instant borrow, immediate return' flash loan attack pattern precisely because it requires tokens to be locked before voting power is granted — its biggest advantage relative to other models. But this model carries its own particular trade-offs: reduced capital efficiency, since locked tokens can't be freely used during the lockup period, a clear opportunity cost for holders that may reduce some users' willingness to participate in governance at all; and if the conversion mechanism between lockup duration and voting weight is poorly designed (e.g., longer lockups yielding proportionally more weight with no reasonable cap), governance power can end up concentrated among a small number of large holders willing to lock up massive sums long-term — a different form of power concentration, where the attack method shifts from 'borrowing tokens' to simply 'already having enough capital to hoard tokens.'

Additionally, if veTokens themselves can be wrapped into other derivative tokens tradeable on the market (some protocol ecosystems have indeed seen secondary markets for veToken derivatives emerge), the existence of such a derivatives market to some extent reintroduces the possibility of 'indirectly obtaining voting influence through financial engineering' — just shifting from directly borrowing tokens to exerting influence indirectly through a derivatives market instead.

04 · What should I do?

What can an everyday governance token holder do to reduce the chance of a governance attack happening to a protocol they're part of?

An individual holder can't do much alone to prevent a governance attack (this is primarily a protocol-level mechanism design issue), but a few things that help: actively participating in voting — healthy voting participation itself acts as a defense, since the more addresses participate and the more spread out they are, the harder it becomes for any single massive position (whether borrowed or owned) to unilaterally dominate an outcome; paying attention to proposal discussions in the protocol's governance forum, raising public concern about proposals with obvious red flags (vague content, demanding urgent fast-track passage, involving large-scale treasury fund transfers) — this kind of community-level real-time oversight is exactly the effect a delay period design is meant to achieve; and before deciding whether to put capital into a given protocol, specifically checking that protocol's governance mechanism design (is there a delay period, how is snapshot timing designed, how high is the quorum threshold), treating governance mechanism soundness as one criterion for assessing overall protocol safety.

If you find a protocol discloses no technical details about its governance mechanism at all, or that voting participation has been persistently very low with decision-making power obviously concentrated among a small number of addresses, these signals themselves are worth factoring into how much capital you decide to commit.

Full Content +

Governance tokens were originally designed to let a protocol's decision-making power gradually shift from the team to a broader community, but this mechanism itself creates a specific attack surface: if voting power can be obtained briefly through some means without genuinely holding long-term, someone with bad intentions could theoretically assemble enough votes within an extremely short window to pass a proposal beneficial to themselves but harmful to the protocol. Understanding how this attack pattern happens is an important part of assessing whether a protocol's governance mechanism is sound.

The Core Logic of the Attack: Borrowed Voting Power

The core steps of most governance attacks are simple: an attacker borrows a large amount of governance tokens all at once through a flash loan or other short-term borrowing channel, uses those borrowed tokens to vote through a malicious proposal (such as transferring the protocol's treasury funds to an address the attacker controls) within the same transaction or an extremely short window, then immediately returns the borrowed tokens once the vote concludes. The entire process requires the attacker to hold no tokens long-term themselves and bear no token price volatility risk — what they want isn't the value of the tokens themselves, but the voting power those tokens temporarily grant.

Why Flash Loans Can Be Used to Launch Governance Attacks

The key reason governance attacks can exploit flash loans is that most protocols calculate voting power based on a snapshot of token holdings at the exact moment of voting, rather than requiring a holder to have held continuously over a period of time. If a protocol's voting mechanism is 'however many tokens are in your wallet this second, that's how many votes you get,' then the instant massive capital a flash loan provides perfectly matches what this attack requires — borrow, vote, return, an entire operation that can complete within a single block, leaving no long-term position exposing the attacker to risk.

A Real Case: The Beanstalk Protocol Governance Attack

In April 2022, the stablecoin protocol Beanstalk suffered a classic governance attack: the attacker borrowed a large amount of capital via flash loan, gaining majority voting power over the protocol's governance token within an extremely short window, and passed a malicious proposal disguised on the surface as a charitable donation but actually designed to transfer most of the protocol's treasury funds to the attacker's address. The entire attack completed within a single transaction, netting the attacker over $80 million, and nearly emptying the protocol's treasury. This incident is particularly representative because it clearly demonstrated the destructive potential when two otherwise reasonable designs — 'voting power snapshot mechanism' and 'flash loans' — get combined.

How Protocols Design to Guard Against This Kind of Attack

Facing this risk, more mature protocols adopt several mitigating mechanisms: a voting delay period, setting a waiting period (usually a few days) between a proposal being submitted and formally taking effect, giving the community a chance to spot anomalies and react before a malicious proposal activates; earlier snapshot timing, where voting weight isn't calculated using the instant balance at the moment of voting, but a historical snapshot at a fixed point in time before the proposal was submitted, making tokens borrowed afterward completely unusable for voting; a vote-escrowed token (veToken) model, requiring tokens to be locked for a period to gain voting power, with assets unable to move freely during the lockup — inherently immune to a flash-borrow-and-return attack like this; and setting a minimum quorum for proposal passage along with a maximum voting weight cap per single address, reducing the chance that a single massive position (whether owned or borrowed) can unilaterally dominate a vote outcome.

What This Means for Your Money

If you're a depositor or governance token holder in any protocol, understanding the mechanics of governance attacks helps you judge whether a protocol's governance design has obvious structural weaknesses — specific things worth checking include: whether voting weight is calculated from an instant balance or a locked snapshot, whether there's a delay period between a proposal's submission and its taking effect, and whether the protocol treasury can be directly transferred through a single vote. These questions might seem academic under normal conditions, but they're exactly the details that determine whether your deposited funds could one day be drained by a single flash-loan-powered vote.

Diagram
閃電貸治理攻擊解剖圖借入、投票、執行、歸還四步驟在同一區塊完成,下方列出四種常見防禦機制:投票延遲、快照提前、veToken 鎖倉、法定人數上限。Anatomy of a Flash-Loan Governance Attack1. Flash BorrowLarge governance tokens2. VotePass malicious proposal3. ExecuteTreasury drained4. RepaySame transactionAll within a single block — no long-term exposureDefenses: Voting Delay · Earlier Snapshot · veToken Lockup · Quorum CapEach raises the cost or removes the window for instant borrowed votesDeFi Bible · defi-bible.com
Feel free to share. Please credit the source.
Ask a Question
Please enter at least 10 characters
Related Articles
Who Are Liquidators, and Why Do They Watch Other People's Positions 24/7 Waiting to Liquidate Them?
protocols · Jul 24
How Does an AMM Know What Price to Charge? Pricing Without an Order Book
protocols · Jul 23
Opening a DeFi Dashboard for the First Time: Which Numbers Should Beginners Look At First
beginners · Jul 24
Get Apple Stock Exposure Without a Foreign Brokerage Account? What Synthetic Assets Can and Can't Do
beginners · Jul 24
More Related Topics