Drift Profile picture
Apr 2 8 tweets 3 min read Read on X
Earlier today, a malicious actor gained unauthorized access to Drift Protocol through a novel attack involving durable nonces, resulting in a rapid takeover of Drift’s Security Council administrative powers.

This was a highly sophisticated operation that appears to have involved multi-week preparation and staged execution, including the use of durable nonce accounts to pre-sign transactions that delayed execution.
Based on our investigation to date:

- This was not the result of a bug in Drift’s programs or smart contracts
- There is no evidence of compromised seed phrases
- The attack involved unauthorized or misrepresented transaction approvals obtained prior to execution, likely facilitated through durable nonce mechanisms and sophisticated social engineering

As a result, approximately $280M was withdrawn from the protocol.
The attacker was able to:

- Pre-position access using durable nonce accounts
- Obtain sufficient multisig approvals (2/5 multisig approval)
- Execute a malicious admin transfer within minutes, gaining control of protocol-level permissions
- Use that control to introduce a malicious asset and remove all pre-set withdrawal limits attacking existing funds
All deposits into borrow/lend, vault deposits and funds deposited for trading are affected.

Unaffected:
- DSOL not deposited in Drift (including assets staked to the Drift Validator)
- Insurance Fund assets which will be withdrawn from the protocol for safeguarding

As a precautionary measure, all remaining protocol functions have been frozen and the multisig has now been updated to remove the compromised wallet
Below is the timeline of events.

March 23: Initial Nonce Setup

Four durable nonce accounts were created:
- Two associated with Drift Security Council multisig members
- Two associated with attacker-controlled accounts

Relevant accounts:
a. 45cZ5Fj97Va5Abipr6NN8Zf1BqZqWneSek1hU5cQRvhw — multisig member
b. 39JyWrdbVdRqjzw9yyEjxNtTbTKcTPLdtdCgbz7C7Aq8 — multisig member
c. CZRBcHAvXU6TzzjGuG4rT98UuTR7PBUeSGPZRDW5mfYW — attacker-controlled
d. 48cV6Mw5Y5afT8ofukvtFaMtrsCohHhsv8MfbdW8agh3 — attacker-controlled

Implication:
At least 2/5 multisig signers had signed transactions tied to durable nonce accounts, enabling delayed execution.

March 27: Multisig Migration

- Drift executed a planned Security Council migration due to a council member change.

March 30: Additional Nonce Activity
- A new durable nonce account was created for a member of the updated multisig: 6UJbu9ut5VAsFYQFgPEa5xPfoyF5bB5oi4EknFPvu924

Implication:
The attacker again obtained effective access to 2/5 signers in the updated multisig.
April 1: Execution Phase

Step 1: Legitimate Test Transaction

Drift executed a test withdrawal from the insurance fund:

solscan.io/tx/BkUZ8nss1ap…

Step 2: Admin Takeover (~1 minute later)

The attacker executed two pre-signed durable nonce transactions (4 slots apart):

- Create + approve malicious admin transfer solscan.io/tx/2HvMSgDEfKh…
- Approve + execute malicious admin transfer solscan.io/tx/4BKBmAJn6Td…
This attack was enabled by a combination of:

- Pre-signed durable nonce transactions, allowing delayed execution
- Compromise of multiple multisig signers’ approvals, likely through targeted social engineering or transaction misrepresentation
Drift Protocol is coordinating with multiple security firms to determine the cause of the incident. Drift is also working with bridges, exchanges, and law enforcement to trace and freeze stolen assets. We would welcome any information or help pertaining to the investigation at hello@drift.trade.

A more detailed postmortem will be released in the coming days and as information becomes available to us.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Drift

Drift Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @DriftProtocol

Aug 19, 2024
Introducing BET: The First Capital-Efficient Prediction Markets on @solana

Bet bigger on the future.
Hedge on a unified platform.
Earn yield from your positions.
Prediction markets are DeFi’s next frontier, merging trading with real-world outcomes.

With today’s launch of BET, Drift transforms global sentiment shifts into tradeable, decentralised foresight.

This is the future of on-chain trading. Image
Discover a unique prediction market experience with BET:

⚡ Solana's speed and low-cost
⚡ Earn yield on your positions
⚡ Trade with all supported collateral
⚡ Unified liquidity from Drift's $500M+ pool of deposits
⚡ Incentivized markets via FUEL Image
Read 8 tweets
Jul 17, 2023
1/ Introducing Leveraged Swaps on Drift!

Using the power of flash loans and @JupiterExchange, Drift traders now have access to the best prices on Solana and up to 5x leverage with just one click! 👾 https://t.co/5iBenTXU5ttwitter.com/i/web/status/1…
Image
2/ With Leveraged Swaps on Drift users can:

- Swap between any supported pair with up to 5x leverage
- Get the best price/lowest slippage for your swap, powered by Jupiter
- All in your Drift account
3/ How do Leveraged Swaps work?

Leveraged Swaps utilise Drift’s borrow/lend program to allow access to “flash loans” that increase your swap power by up to 5x with just one click.

The swaps integrate with @JupiterExchange to ensure traders are receiving the best prices Image
Read 5 tweets
Aug 2, 2022
Yesterday @Fiskantes renewed his bullish thesis on DEXs for decentralised derivatives such as perpetual futures.

So, why do decentralised derivatives make sense?

The answer is simple 🧵
The main reason for decentralised derivatives such as perpetual futures are:

1️⃣ Self-custody

2️⃣ Permissionlessness (no KYC)

3️⃣ Self-sovereignty

➡️ DeFi rails (Drift) > CeFi rails (Binance, Coinbase, FTX & Kraken)

cc: @aeyakovenko

For more on this, read our Web2 vs. Web3 guide ⬇️

drift.trade/blog/web2-vs-w…
Read 14 tweets
Aug 17, 2021
1/ Drift Labs is excited to announce a new brand that mirrors the team's long-term vision of a lightning fast, decentralised derivatives protocol.

@DriftProtocol brings on-chain, cross-margined perpetual futures to @solana. Making futures DEXs the best way to trade. Image
2/ A brief history on derivatives -- the first modern derivatives exchange operated in 18th century Edo Japan, as the Dōjima Rice Exchange, where rice farmers, merchants and brokers traded the world's first cash-settled commodity futures through a central clearinghouse. Image
3/ Dōjima Rice Exchange is emblematic of an analogue world: traders yelling to fill orders, bookkeepers struggling to keep track of trades, and a clearinghouse struggling to track of each merchant's margin.
Read 16 tweets
Jun 16, 2021
👉 🧵 A Primer on Perpetual ♾️Swaps:

1/ A perpetual swap is a type of delta-one futures contract which has no expiry date. The contract has no intrinsic value and instead has a mark price, which is used to calculate PnL (Profit and Loss) and trigger liquidations. 💥
2/ Perpetual swaps make it intuitive for traders to use futures as they never need to be rolled. Since perpetuals are just contracts they can deviate from their underlying price so stay tethered to their spot prices in terms of their premiums with a funding rate mechanism. ⚙️
3/ Funding rates keep the mark price of the perpetual swap close to the asset’s spot index price (usually an average of spot TWAPs from multiple exchanges). In a zero-sum game, the OI (Open Interest) of long positions will always be equal to the OI of short positions. 🖇️
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(