Smart Contract Audits: A Research Guide
What audits catch and what they miss, using 293 exploits and $1.72B of losses from the last 12 months, plus how audit firms and bounty platforms differ.
Last verified
Table of contents
The useful question is not who audits well. It is what audits catch, what they miss, and what to do about the gap. The last 12 months of exploit data answers the first two directly.
What actually went wrong in the last 12 months
DeFiLlama recorded 293 exploits totalling roughly $1.72B in the 12 months to 31 August 2026. Grouped by cause:
| Classification | Incidents | Losses |
|---|---|---|
| Access Control | 57 | $387M |
| Token & Share Accounting | 46 | $211M |
| Oracle Manipulation | 40 | $151M |
| Protocol Logic | 37 | $28M |
| Key Compromise | 32 | $352M |
| Bridge & Cross-Chain | 26 | $373M |
Two readings matter, and they point in different directions.
By count, the leaders are mundane. Improper access control (30 incidents), spot price manipulation (29), and incorrect share accounting (19) are the three most common techniques. None are novel. All are the kind of thing a competent audit is specifically good at finding, which tells you these protocols either were not audited or shipped changes after the audit.
By loss, the picture shifts. Key compromise accounts for $352M, 20% of all value stolen, across 32 incidents, and rises to roughly 25% once API-key compromise is counted with it. No code audit prevents either. The largest single incident of the period, Drift Trade at $295M, was a proxy upgrade hijack: an operational and access-control failure rather than a subtle bug in reviewed logic. Coldcard's $116M came from weak key generation in a hardware device.
The uncomfortable summary: audits are aimed squarely at the failures that happen most often, and only partially at the failures that cost most.
The largest incidents, and what they teach
| Incident | Loss | Technique |
|---|---|---|
| Drift Trade | $295M | Proxy upgrade hijack |
| Kelp | $293M | Cross-chain message spoofing |
| Balancer V2 | $128M | Rounding error |
| COLDCARD | $116M | Weak key generation |
| Tectonic | $75M | Spot price manipulation |
| SwissBorg | $41.5M | API key compromised |
Balancer V2 is the instructive one. A rounding error in mature, heavily reviewed, widely forked code cost $128M. Maturity reduces risk; it does not remove it, and "battle-tested" is a weaker claim than it sounds.
Note also the target split: 213 of the 293 incidents hit DeFi protocols for $1.31B, while 9 wallet incidents accounted for $151M. Wallets are attacked far less often and far more expensively when they are.
Audit firms and contest platforms
They solve different problems and the good programmes use both.
Firms assign named researchers for a scoped engagement and deliver a report. You are buying depth, a relationship, and an artefact you can show an exchange, an insurer, or a DAO. Trail of Bits, OpenZeppelin, Consensys Diligence, Spearbit, Zellic and Cantina appear most often on large protocols. SlowMist, CertiK, Halborn, Quantstamp and Beosin are widely used, and SlowMist in particular is prominent in post-incident forensics, which is a different and valuable skill.
Contest platforms open the code to many competing researchers paid for what they find. Code4rena and Sherlock are the main venues. Breadth is the point: a contest surfaces the unusual finding a single team might miss, at the cost of variable depth and no ongoing relationship.
Bug bounties are the only control that remains live after launch. Immunefi is the standard venue. The economics are simple and frequently ignored: the top reward has to compete with what an attacker earns by taking the funds instead. A flat $50k bounty on a protocol holding $500M is not a security control.
What an audit does not cover

An audit reviews code, not the whole operating system around it. Key management, upgrade authority, oracle configuration, dependencies, API keys and post-audit changes remain live risk after the report lands.
Every item below appears in the loss data above, and none is a code-review finding.
- Key management. A fifth of losses, a quarter including API keys. Multisig thresholds, signer hygiene, and hardware. Out of scope for a contract audit by definition.
- Upgrade paths. Drift Trade's $295M was a proxy hijack. Who can upgrade, behind what timelock, is an operational question that the reviewed code often cannot answer.
- Oracle configuration. 40 incidents, $151M. Choosing a feed with a deviation threshold too loose for the collateral is a deployment decision. See Crypto Oracles in 2026.
- Everything after the audit. The report covers a commit. Anything merged since is unreviewed unless someone paid for that too.
- Dependencies and infrastructure. SwissBorg's $41.5M came through a compromised API key at a partner.
A practical checklist
If you are building:
- Audit late enough that the code is real, early enough to fix findings without shipping pressure.
- Use a firm for depth and a contest for breadth. They find different things.
- Fund a bounty that scales with value at risk, and keep it live.
- Publish the report, the commit hash, and the remediation status. An audit you cannot point at is worth little to a counterparty.
- Re-audit on material change. "We were audited" ages badly.
- Treat access control and upgrade authority as first-class, since they lead both the incident count and the loss table.
If you are a user:
- Does an audit exist, by whom, and against which commit?
- Has the protocol upgraded since, and is upgrade authority timelocked?
- Is there a live bug bounty, and is the top reward serious relative to TVL?
- How does it price collateral, and how thin is the thinnest market it accepts?
- Assume unaudited code is unreviewed, and audited code is reviewed once.
Frequently asked questions
Does an audit mean a protocol is safe?
No. An audit is a time-boxed review of specific code at a specific commit by a specific team. DeFiLlama recorded 293 exploits in the 12 months to August 2026 totalling roughly $1.72B, and audited protocols are well represented among them. Treat an audit as evidence that someone competent looked, not as a guarantee that nothing was missed.
What actually causes crypto losses?
Over the last 12 months, access control was the largest category by incident count at 57 exploits and about $387M. Key compromise caused 32 incidents but $352M, and bridge and cross-chain failures 26 incidents for $373M. Key compromise alone is 20% of all value stolen, and 25% once API-key compromise is counted with it. No code audit prevents either.
What is the difference between an audit firm and a contest platform?
A firm assigns named researchers for a fixed engagement and delivers a report you can show a counterparty. A contest platform such as Code4rena or Sherlock opens the code to many competing researchers who are paid for findings. Firms give depth, accountability, and a signed artefact; contests give breadth and many independent eyes. Serious protocols use both.
How much does an audit cost?
Broadly, tens of thousands of dollars for a small contract, and well into six figures for a large protocol or a repeat engagement with a top firm. Contests price by prize pool. Judge cost against value at risk: a $500k audit on a protocol holding $2B is cheap, and the same audit on a $2M protocol is not.
Is a bug bounty worth running?
Yes, and it is the only control that stays live after launch. Immunefi is the standard venue. The bounty must be large enough to beat the exploit's value to an attacker, which is why serious programmes scale the top reward with funds at risk rather than posting a flat number.
Which firms are best known?
Trail of Bits, OpenZeppelin, Consensys Diligence, Spearbit, Zellic and Cantina are the names most often seen on major protocols, with SlowMist, CertiK, Halborn, Quantstamp and Beosin also widely used, and SlowMist particularly strong on incident forensics. Reputation follows named researchers more than firm brands.
What should I check as a user rather than a builder?
Whether an audit exists, who did it, when, and against which commit. An audit of a version that no longer runs tells you little. Then check whether the protocol upgraded since, whether upgrades are behind a timelock, and whether a live bug bounty exists.
Sources & References
Figures in this guide are cross-referenced against the sources below.