DeFi security
In 2026, DeFi lost more to keys than to code
- Published
- Updated
- Reading time
- 3 min
Summary
What we propose
Trackers disagree on the totals for 2026, but they agree on the shape. Smart contract bugs remain the most common kind of incident. Compromised keys, infrastructure and governance account for most of the money. Two incidents from April 2026 show why.
Two exploits, no contract bug
Drift Protocol, 1 April 2026. Attackers, attributed by TRM Labs to North Korean operators, socially engineered members of Drift's Security Council multisig into pre-signing transactions that looked routine but hid admin actions. Days earlier, the council had moved to a 2-of-5 threshold with no timelock. With admin rights, the attacker listed a worthless token as valid collateral, raised withdrawal limits to an absurd ceiling, deposited the token and borrowed out real assets: TRM counts 31 withdrawal transactions in roughly 12 minutes. Estimates of the loss run up to about $285 million. Most of the stolen funds were bridged to Ethereum within hours.
Kelp DAO, 18 April 2026. About 116,500 rsETH, roughly $292 million, was released on the strength of a forged cross-chain message. LayerZero's post-mortem says attackers poisoned RPC nodes used by its verifier and knocked clean nodes offline, and that Kelp's route was configured with a single verifier. Kelp replied that the single-verifier setting was the platform default, used by a large share of applications. LayerZero later apologised and moved to stricter multi-verifier defaults.
In both cases the contracts did what they were told. The failure was in who could tell them, and how quickly.
Why audits did not catch it
A typical audit scopes the Solidity or Rust. It rarely asks:
- how many signers there are, on what devices, and whether any of them are reachable by a fake recruiter or a poisoned dependency;
- whether a parameter change takes effect instantly or after a delay;
- what a single compromised oracle, RPC node or verifier can do;
- whether anyone is watching outflows at three in the morning, with the power to stop them.
The proposal: design as if a key is already stolen
- 01Split admin powers by blast radius. Listing collateral, changing limits, upgrading code and pausing are different roles held by different signer sets. The role that can pause should not be the role that can drain.
- 02Timelock everything that moves risk. New collateral, raised limits and upgrades wait 24 to 72 hours on chain, visible to users and monitors. Only pausing is instant.
- 03Rate-limit outflows. Per-block and per-hour withdrawal caps, per asset, turn a total loss into a bounded one. Drift's drain took minutes; a cap of a few percent per hour would have bought time.
- 04Make new collateral earn trust. A new asset starts with a tiny cap, an oracle with several sources and a minimum liquidity requirement before it can back meaningful borrowing.
- 05Never rely on one verifier. Cross-chain routes need several independent verifiers, run on independent infrastructure, with value caps per route. A verifier that reads from one provider's RPC is not independent.
- 06Harden the humans. Hardware keys, dedicated signing devices, transaction simulation before every signature and a rule that no signer approves what they cannot read.
- 07Monitor with authority. Alerts on admin actions, oracle deviations and unusual outflows, wired to a guardian that can pause, and an incident plan rehearsed before it is needed.
None of this is exotic. It is what banks call segregation of duties and limits, written into contracts.
What to measure
- Time to effect. For each privileged action, the delay between proposal and execution. Zero should appear only next to pause.
- Maximum hourly outflow. The most value that can leave the protocol in an hour under current caps, against total value locked.
- Signer independence. Signers per role, the devices and organisations they sit on, and how many share an attack surface.
- Time to pause. From the first anomalous transaction to a confirmed pause, measured in drills, not assumed.
How we would start
Write down every privileged action in your protocol, who can take it, and how long it takes to take effect. That one table usually shows the problem. We do this as part of every security review and build the controls into new DeFi protocols and cross-chain systems from the start. If you are evaluating someone else's contract, our research on what a contract can do to your money covers the code side.
Sources
- 01TRM Labs: North Korean hackers attack Drift Protocol in $285 million heist
- 02Nexus Mutual: Drift Protocol incident report
- 03Nexus Mutual: KelpDAO and LayerZero incident report
- 04The Block: LayerZero apologises for Kelp DAO response, admits fault in single-verifier setup
- 05CoinGecko: 2026 State of Crypto Security Report
More research
Keep reading.
- Agent reputation3 min read
Half of agent payment volume is fake. Reputation has to start from money that moved
Analysts found that roughly half of x402 transactions were wash trading or self-dealing, and star ratings are cheaper still to fake, so neither can safely gate money.Read article - Due diligence3 min read
What can this contract do to your money?
Answering whether an owner can mint, freeze, change fees or upgrade means reading dozens of files behind a proxy; scanners give unexplained yes or no flags and chatbots lose the context.Read article - Wallet security3 min read
One signature, every asset: the EIP-7702 delegation trap
A single EIP-7702 authorization routes every future call from an account to delegate code; phishing sites disguise it, and early analysis found most mainnet delegations pointed at copy-pasted sweeper contracts.Read article
Start a build
Seen this problem in your own system?
What happens next
- 01Tell us what you are buildingA short note or a 30-minute call: the product, the chain if you know it, and where the money sits.
- 02Hear back within 48 hoursEvery message is read by the team, not a filter.
- 03A first working sessionWe walk through the threat model and the admin powers with you, then propose a scope and a plan.