DEV Community

Cover image for Drift lost $285M to a transaction signed two weeks earlier
qanzhi111
qanzhi111

Posted on

Drift lost $285M to a transaction signed two weeks earlier

On 1 April 2026, Drift Protocol — the largest perpetual futures exchange on Solana — lost about $285M in roughly twelve minutes.

It was not a contract bug. Nobody found a reentrancy, a price manipulation, or a broken commitment scheme. The attacker signed a transaction weeks earlier, and the protocol executed it on time.

The mechanism nobody audits: a signature with no deadline

Solana has a feature called durable nonce. It lets a transaction be signed once and submitted later — at any point, from any device, indefinitely — as long as the nonce account still exists.

That is a useful feature. It exists so a wallet with spotty connectivity can prepare a payment now and send it when it gets online. It also means a signature is not an event. It is a standing instruction.

On 23 March, four nonce accounts were created. Two belonged to Security Council members, two were controlled by the attacker. On 1 April at 16:06:09 UTC, a sequence of pre-signed transactions was submitted. By 16:18 the treasury was empty.

Between those two dates, nothing in the protocol looked wrong. Nothing was pending in a mempool. No dashboard showed an anomaly, because nothing had happened yet.

What the transactions did when they landed

The sequence, according to the case file:

  • introduce a worthless token as collateral (a fabricated asset, "CVT")
  • wash-trade it on DEX venues so its displayed price looked meaningful
  • disable the circuit breaker
  • remove withdrawal limits
  • raise the USDC withdrawal cap to an absurd ceiling
  • post the entire treasury against the fake collateral and withdraw

Every individual step was a legitimate function. Each was authorised by a key that the protocol's own rules accepted. The attack was not a broken check; it was a valid set of actions fired in the worst possible order, all at once, with no pause in between.

Two keys, no delay

The governance structure was 2-of-5. Two signatures could execute. And on 27 March — five days before the drain — the Security Council migrated to a zero-second timelock, removing the buffer that would have given someone time to see the transaction before it settled.

That detail is the one worth sitting with. A timelock is not a technical control; it is a human control. It converts "someone did something irreversible" into "someone proposed something irreversible, and everyone else has a window to object."

At zero seconds, the window is closed. Whatever the multisig approves, happens. In that configuration, 2-of-5 is not decentralised governance — it is a shared key with a nicer name, and it is exactly as safe as the two weakest signers.

How the keys were obtained

Mandiant attributed the intrusion to UNC6862, a group it links to North Korean operations.

The reported path was months, not minutes: a fake trading firm, in-person attendance at industry conferences, Telegram groups where "partners" discussed strategy, a fabricated company that deposited over $1M into Drift to build credibility, and eventually repository access to contributor machines. Malicious repositories and a TestFlight build dressed up as a wallet product did the rest.

That is a distinct threat model from the one most protocols plan for. It does not attack the contract. It attacks the people who hold the keys, over a time horizon long enough that vigilance relaxes.

What actually failed

Three things, none of them code:

  1. Signature expiry was assumed, not enforced. The protocol treated a signature as valid at the moment of signing. It was valid at the moment of execution, weeks later.
  2. The safety buffer was removed. A timelock that exists can be voted down to zero. Once it was zero, the last human checkpoint was gone.
  3. Privilege was concentrated where audits don't look. Audits review logic. They rarely review who holds the signer set, how that set changes, or what the timelock is currently configured to.

Six questions worth answering this week

1. Can a transaction signed today execute in a month?
If you use durable nonces or any deferred execution, list the nonce accounts that exist right now, who owns them, and whether you would notice a new one.

2. What is your timelock set to — today, not at launch?
Configuration drifts. Check the live value, and check who can change it.

3. If your threshold is 2-of-5, who are the two?
Not "the council". Names, and how their machines are hardened. The threshold only holds if the signers hold.

4. Is signing done on a machine that opens third-party repositories?
Most key compromise starts in a dev environment, not on-chain.

5. Does your circuit breaker survive a legitimate-looking sequence?
A breaker that can be disabled in the same batch as the withdrawal was never a breaker.

6. Have you removed your own safety limits, and when?
Any asymmetric power — raise a cap, disable a check — should require more signatures than the action it enables.

The line worth keeping

Verification asks whether a signature is real. Almost nothing asks whether it is current.

Drift's signers were real. The transaction was authorised. The only thing missing was a question nobody had written down: this signature was made in March — should we still accept it in April?


This is one of 61 on-chain case investigations, indexed at qanzhi111.github.io/intel. Incident attribution to UNC6862 is Mandiant's, not this author's; figures come from public reporting and on-chain data.

Top comments (0)