Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin CryptoTax DeFAI Chain SAFU AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
DeFi Protocol Mechanics, Decoded
defi-bible.com
LATEST
An 'Emergency Multisig' Sounds Safe — But Not Without a Timelock. Check a Protocol's Security Council Config in Three Minutes  ·  A Few Thousand Dollars Can Make a Nobody Token 'Look' Worth $1: How Fake Collateral Fools a Price Oracle  ·  After North Korean Hackers Stole $285M, Drift Protocol Relaunched as Velocity DEX — Its Co-Founder Stepped Down the Same Day  ·  The Problem CertiK Audited Twice and Still Missed: One Private Key, $126 Million Gone Overnight  ·  You Might Have Clicked 'Approve' Two Years Ago and Never Revoked It: Find Out in Three Minutes Who Can Drain Your Wallet  ·  $320K Bought, $36 Million Liquidated: No Hack, No Depeg — How Morpho Got "Legally" Drained
risk

A Few Thousand Dollars Can Make a Nobody Token 'Look' Worth $1: How Fake Collateral Fools a Price Oracle

30-Second Version · For the impatient
A brand-new token and a few thousand dollars of liquidity can 'look' worth a dollar on-chain — wash trading is far cheaper than finding a code bug.

Full Explanation +
01 · Why did this happen?

Why are shallow liquidity pools especially easy to wash-trade? What's the fundamental difference from deep pools?

This comes down to how AMMs (automated market makers) price assets: the ratio of assets in the pool determines the quoted price, and the shallower the pool, the more a given trade size shifts that ratio — meaning higher Slippage. In a pool with tens of millions of dollars in liquidity, pushing the price up 50% might require millions of dollars in real capital, and the process would generate observably anomalous trading volume. In a pool with only a few thousand dollars, though, just a few hundred dollars moving back and forth can push the quote to any level the attacker wants, and the trading volume itself is small enough to avoid triggering monitoring alerts.

This is also why a Token's apparent market cap and its actual underlying liquidity depth are two metrics that must be examined separately — the paper market cap an attacker manufactures can be astronomical, while the underlying Liquidity Pool may be paper-thin.

02 · What is the mechanism?

If a protocol sets a minimum liquidity threshold, does that fully prevent this kind of attack?

A minimum liquidity threshold significantly raises the cost of an attack, but it isn't a silver bullet. How high to set that threshold is itself a parameter that needs continuous tuning — set it too low (say, requiring only $50,000 in liquidity) and it remains an affordable cost for an attacker; set it too high and it might shut out genuinely promising new projects, hurting the protocol's asset diversity and competitiveness.

The more fundamental problem is that a single threshold can't defend against a variant technique: building up a Liquidity Pool first, then draining it afterward. An attacker could legitimately build a pool that appears deep enough to pass the threshold review, wait until the Token gets accepted as collateral, then drain most of that liquidity through other means, turning the pool shallow again after the fact. This is exactly why most carefully designed Oracle systems layer a minimum liquidity threshold together with other mechanisms like TWAP and a whitelist review period, rather than relying on a single line of defense.

03 · How does it affect me?

How exactly does TWAP (time-weighted average price) raise the cost of manipulation?

TWAP's core logic is to not trust a single point-in-time quote, but instead average the price over a time window (say, the past 30 minutes). This means that if an attacker wants to push the TWAP quote to a target level, they can't just spike the price momentarily and execute the attack instantly — they must sustain that elevated price throughout the entire window. This means the capital and number of trades an attacker needs to commit increases significantly the longer the window is, because arbitrageurs or other market participants may step in during that period and pull the price back toward normal, forcing the attacker to continuously fight against that pull with more capital.

This is also why TWAP is often considered particularly effective against flash-loan-style attacks — Flash Loan capital must be borrowed and repaid within a single transaction, with no way to sustain price manipulation across a time window, so TWAP naturally neutralizes that attack pattern. But in Drift's case, the attacker used a staged approach spread across days, meaning that if a protocol's TWAP window isn't set long enough, there's still room to gradually push the price across multiple blocks and break through.

04 · What should I do?

As an ordinary depositor, how can I know which assets the protocol I've deposited into accepts as collateral, and whether those assets' Oracle designs are robust?

Most lending protocols publicly list their "approved collateral assets" in official documentation or the interface — that's the first place to check. If the list includes tokens you've never heard of with murky market cap origins, it's worth digging further. Second, check that asset's oracle price source — protocol technical documentation or GitHub usually notes which oracle service is used (a third-party Oracle Network like Chainlink or Pyth, or the protocol's own internally built pricing mechanism). Third-party oracle networks typically aggregate data across multiple exchanges and apply TWAP, making them generally more robust than a protocol-built mechanism that only reads a single shallow pool's quote.

Third, if the protocol has public risk parameter documentation, check whether that asset has a supply cap set. Even if an asset's oracle design has concerns, as long as the protocol caps how much of it can be borrowed against or used as collateral, the maximum loss from that single asset going wrong stays bounded within a manageable range — a mitigating mechanism worth factoring into your overall risk assessment.

Full Content +

If someone told you that spending just a few thousand dollars could get a newly created Token with no real use case recognized as valid collateral by a lending protocol managing hundreds of millions of dollars, it would sound implausible. But this is exactly one of the key steps in the Drift Protocol attack that caused roughly $285 million in losses in April 2026 — the attacker minted a fake token called "CarbonVote Token," manipulated its on-chain price with minimal capital, and ultimately got the protocol's price oracle to treat the token as a legitimate asset worth roughly $1. Understanding how this technique works can help you judge whether a protocol's Oracle design can actually withstand it.

Step One: Create a Token With No History and No Resistance

An attacker won't bother manipulating a deeply liquid asset like SOL or USDC, since that requires enormous capital and is highly likely to trigger market anomaly monitoring. A smarter — and cheaper — move is to create an entirely new token: no past trading history, no existing holders who'd sell into a pumped price to take profit, and no established market "fair price" to compare against. The token is a blank slate, and the attacker can write whatever number they want on it.

Step Two: Wash the Price to Whatever Level You Want Using a Shallow Liquidity Pool

Next, the attacker only needs to set up a tiny liquidity pool on a decentralized exchange (like Raydium on Solana), possibly just a few thousand dollars. The key principle at work here is slippage: in an extremely shallow pool, even a small trade dramatically moves the quoted price. By repeatedly buying and selling with their own capital — a technique known as Wash Trading, connected to MEV mechanics — the attacker can push the on-chain displayed price to whatever level they want. In Drift's case, the attacker minted 750 million tokens and used only a few thousand dollars of liquidity to wash the unit price up to roughly $1, instantly inflating the token's theoretical market cap to hundreds of millions of dollars on paper, even though nowhere near that much actual capital had flowed in.

Step Three: Get the Oracle to Treat the Washed Price as Real

Washing a price doesn't cause losses on its own — the real risk materializes the moment a protocol's oracle system treats that manipulated quote as a trustworthy data source. If a lending or derivatives protocol's oracle design fails to do the following, it can be breached by this technique: no minimum liquidity threshold (meaning quotes from a pool below a certain size are automatically distrusted and rejected); no time-weighted average price mechanism (a single-point-in-time quote is easily manipulated instantaneously, while averaging across a time window sharply raises the cost of manipulation); no observation period or whitelist review process for newly listed assets (any token can be accepted as collateral the moment it's created, meaning there's no review gate at all); and no cross-validation across multiple data sources (relying on a single exchange or a single liquidity pool for pricing means betting the entire system's trust on one easily-manipulated source).

Why This Is Harder to Guard Against Than Finding a Code Bug

Traditional Smart Contract vulnerabilities (like reentrancy) can be caught through code audits, because the problem lies in the logic itself. But Oracle Manipulation exploits a more fundamental problem — that market data itself can be forged. The code logic might execute the process of "read the on-chain price, calculate collateral value from it" completely correctly; it's just that the price it read was fake from the start. This is exactly why multiple analyses of the Drift incident stress that a code audit alone isn't sufficient to guarantee oracle system safety — audits typically focus on whether contract logic has flaws, and don't necessarily cover whether the oracle's price-source design is robust enough.

What This Means for Your Money

If you deposit funds into a lending protocol's liquidity pool, your funds' safety partly depends on whether other users' deposited collateral is actually worth what it claims. If a protocol accepts a batch of collateral priced through manipulated quotes, once the truth comes out and those tokens' real value collapses to zero, the protocol can end up with bad debt — and Bad Debt is ultimately shouldered collectively by depositors. Next time you evaluate a protocol, beyond checking which assets it accepts as collateral, it's worth checking whether those assets' oracle price sources come from a single shallow pool, or are protected by multiple data sources and a time-weighted mechanism.

Sources: North Korean Hackers Attack Drift Protocol in $285 Million Heist — TRM Labs, Drift Loses $285 Million in Durable Nonce Social Engineering Attack — The Hacker News
Diagram
假抵押品攻擊三步驟從鑄造無歷史代幣、用淺池洗價,到讓預言機採信洗出來的報價,每一步都有對應的防禦機制可以打斷這條攻擊鏈Fake Collateral Attack: Three Steps1. Mint TokenNo historyNo existing holders750M supply, ~$0 cost2. Wash TradeShallow pool, ~$3-5KHigh slippagePrice pushed to ~$13. Oracle Reads ItNo min liquidity checkNo TWAPAccepted as collateralDefenses that break this chainMinimum liquidity threshold · TWAP pricingAsset whitelist review · Multi-source validationDeFi Bible · defi-bible.com
Feel free to share. Please credit the source.
Ask a Question
Please enter at least 10 characters
Related Articles
Why 'Waiting to Check the Price' Is Actually Safer: How TWAP Neutralizes Flash Loan Attacks
risk · Jul 25
Aave's Risk Team Quit 12 Days Before the Exploit: Why Being Audited Never Guaranteed Collateral Safety
risk · Sep 10
A Protocol You Never Touched Got Hacked — Why Did Your Deposit Still Shrink: Breaking Down the Kelp-to-Aave Bad Debt Chain
risk · Jul 30
Someone Bought $8 Million Worth of Ether for $1: Breaking Down Black Thursday's Liquidation Cascade Frame by Frame
risk · Jul 29
Related News
More Related Topics