Skip to content

Smart Contract Audits: What They Cost and What They Miss

By Vault Capital Team·Published on ·17 min read·Also available in Português

A smart contract audit is a time-boxed security review of code frozen at a specific version, carried out by a firm or a group of researchers hired by the project itself. The output is a report listing the problems found, ranked by severity, plus a check of the fixes. It is not a safety seal, and auditors say so in their own reports. This post explains, from firms' and platforms' documentation, a public report and dated press coverage, all read on 27/11/2026, what an audit looks like inside, what it costs according to the ranges the market publishes, what it leaves out and what the Euler, Nomad, Beanstalk, Cetus and Drift cases show about those limits.

In short

  • An audit reads one version of the code, identified by its commit, for a fixed period. In Trail of Bits' public report for Gemini, dated 15/08/2025, two consultants spent two weeks, "a total of four engineer-weeks of effort".
  • According to Sherlock, which sells audits, quotes from 2025 and early 2026 ran from about US$ 5,000 to US$ 250,000 per engagement, with most DeFi protocol audits between US$ 25,000 and US$ 100,000 (post dated 18/02/2026). That is a market range, not a price.
  • Open contests, such as those run by Code4rena and Cantina, pay prizes to researchers. Sherlock replaced its contests with a format that mixes AI and human researchers.
  • Under the platforms' own rules, abuse of an admin key counts as low severity at most, and code changed after the audited version is not covered.
  • According to CoinGecko (27/08/2026), about 60% of platforms attacked between January 2025 and July 2026 had been audited, but only about 11% of incidents at those platforms were in-scope contract failures.
Report section What it shows In Trail of Bits' report (15/08/2025)
Client Who commissioned and paid "Gemini engaged Trail of Bits"
Version (commit) Exactly which code was read Commit 40747ad1b918f4b7638f81fb90fc98ad752b85b5
Effort How many people, for how long Two consultants, 09 to 23/06/2025
Severity Severity and difficulty of each finding From Informational to High
Limits What was not covered "Time-boxed" work and out-of-scope packages
Fix review Whether the fix worked New commit; nine issues resolved

What a smart contract audit is

A smart contract is a program that runs on a blockchain and, as a rule, holds or moves money. What it is, and what has gone wrong with them, is covered in Smart Contracts Explained: What They Are and What Can Fail. An audit is specialists reading that code, before or after deployment, to find flaws.

Sherlock's glossary, updated in October 2026, defines an engagement's scope as "repositories, commit hashes/tags, deployed addresses, specific contracts/programs, and explicitly included integrations." Anything not on that list is outside. Time is part of the definition too: the Trail of Bits report says that "Because of the time-boxed nature of testing work, it is common to encounter coverage limitations."

ethereum.org, the Ethereum network's reference site, puts the audit in its place: "you should avoid treating audits as a silver bullet." It adds that "Smart contract audits won't catch every bug".

Anatomy of a report: the Trail of Bits example

Trail of Bits publishes some of its reports in a public repository. The final report of its review of the Gemini Smart Wallet, dated 15/08/2025, shows the fields that matter, without grading anyone:

  • Who hired the auditor. "Gemini engaged Trail of Bits to review the security of the Gemini Smart Wallet". The project under review commissions and pays.
  • Effort. "A team of two consultants conducted the review from June 9 to June 23, 2025, for a total of four engineer-weeks of effort."
  • Version. The report identifies the code by commit, a 40-character string pointing to an exact version in the repository. Any change after that is different code.
  • Scope and limits. Some packages were "considered out of scope", and the report warns that its findings "should not be considered a comprehensive list of security issues".
  • Findings. Each comes with a severity (Informational, Undetermined, Low, Medium, High) and an exploit difficulty (Undetermined, Low, Medium, High). The firm's service page describes the deliverable as "Severity, difficulty, and exploit scenario for every finding."
  • Fix review. Once the project fixes the issues, the auditor checks them at another identified commit. The report notes that this stage "involves a review of specific areas of the source code and system configuration, not comprehensive analysis of the system." In this case, "Gemini has resolved all of the nine issues described in this report."

Other firms use similar scales. CertiK ranks findings "from Critical to Informational", and acknowledged but unfixed items come with "the project team's justification", according to its product page read on 27/11/2026. That status column is where readers find the risk a project decided to keep.

Get the Seed backup checklist

The seed is the wallet. A bad backup only shows up on the day you need it. Check every item before moving meaningful value into self-custody. Along with it, Vault alerts on the Security and self-custody topic.

Private audits and open contests

There are two main formats. In a private audit, a firm assigns a small team for an agreed period. In a contest, a platform opens the code to many researchers at once and pays prizes for valid findings. Sherlock's glossary describes contests as analysis by "many independent researchers", where "The emphasis is breadth and throughput."

Code4rena. Per its documentation read on 27/11/2026, "Sponsors establish prize pools to attract wardens to audit their project", wardens being the researchers. The submission phase "typically lasts 1-3 weeks". A judge decides "the severity, validity, and quality of findings", there is a 48-hour review period and prizes are paid out by an algorithm. The platform's scale has level 3 (high), level 2 (medium) and a quality report that gathers low-risk and governance or centralization issues. Code4rena says it has "a community of over 10,000 auditors" and an average of more than 100 researchers per audit.

Cantina, now home to Spearbit. Spearbit's site said on 27/11/2026: "Spearbit now lives on Cantina." Per Cantina's documentation, a contest's scope is set with "target repositories, commit hashes, and prize distribution", and contests last "from a few weeks to a couple of months". Severity comes from an impact and likelihood matrix, high and medium findings from researchers with a reputation below 80 require a coded proof of concept, and each participant receives "their share of the prize pool" according to the scoring.

Sherlock. Sherlock used to run contests and, per its documentation updated in October 2026, has replaced them with Audit Engine, described as "an audit orchestration platform that connects AI auditors, frontier models and skills, and human (often AI-assisted) security researchers". The company says you can run "a fast AI-only pass in as little as 2 days" or a contest-style engagement with human researchers alongside AI. Its main human-led product, per the same documentation, is the collaborative audit.

The formats are not exclusive: a project can hire a firm, then open a contest and then keep running a bug bounty programme.

What an audit costs

Large firms do not publish price lists. On 27/11/2026, Trail of Bits had a "Request a quote" button, OpenZeppelin, which says it launched its contracts library in 2015, had "Request a Security Audit", and CertiK described a "Scoping & quote" step. The cost comes from a case-by-case quote.

The most detailed public reference comes from a firm that sells audits. In a post published on 18/02/2026, Sherlock says its ranges come from "quotes collected in 2025 and early 2026":

  • "The audit market spans roughly $5,000 to $250,000 per engagement, with most DeFi protocol audits landing between $25,000 and $100,000."
  • A simple ERC-20 token typically costs US$ 5,000 to US$ 20,000, according to the same post.
  • "Enterprise multi-chain systems routinely exceed $150,000."
  • Each extra pass after fixes typically adds US$ 5,000 to US$ 20,000.
  • What moves the number: code size, language (Rust programs for Solana, the post says, carry a 25% to 40% premium), urgency (20% to 40% more) and the firm's reputation.
  • For protocols with meaningful value deposited, annual security budgets "routinely run $150,000 to $500,000."

The same post gives different DeFi figures in different passages, so the broader range is the one used here. And these are ranges published by a seller of the service, not list prices.

Contest prizes. Code4rena publishes each contest's prize pool. In the most recent contests on its list read on 27/11/2026, pools ran from US$ 4,000, for a fix review, to US$ 135,000, paid in USDC. The list does not show the year; another page, dated 13/10/2026, places these events between April and May 2026. The pool is what the sponsor sets aside for researchers; the project's total cost may include a platform fee, which the page does not publish.

Effort in weeks. Trail of Bits does not publish prices, but it does publish each review's effort, in person-weeks, in its reports repository. By our calculation on that repository, read on 27/11/2026, the 390 blockchain reviews with effort listed averaged 4.57 person-weeks, with a median of 4, ranging from 0.2 to 24. The 21 reviews dated 2026 had a median of 1.2 person-weeks, because many are short reviews of changes. We do not convert weeks to dollars: the firm does not publish that figure.

What an audit does not cover

The firms themselves state where the work stops. Sherlock's site footer says its services "do not constitute a guarantee against all security incidents or losses", and Audit Engine is "best-effort by default". The platforms' rules and the auditors' own texts point to six gaps:

  1. Admin keys and privileges. Code4rena assumes that "All roles assigned by the system are expected to be trustworthy and to invoke the relevant privileged functions of the system responsibly". Cantina says issues that require admin access "should at most be low severity", unless a protocol is designed to resist that. CertiK, in a case dated 26/04/2023, told Decrypt that "audits cannot prevent private key issues".
  2. Code changed after the audited version. Per Sherlock's glossary, "Changes after the freeze are not automatically covered unless explicitly re-reviewed."
  3. Out-of-scope libraries and dependencies. Code4rena treats as out of scope any finding whose root cause sits in an excluded contract: "If the root cause exists within the OOS contract itself, the finding is to be treated as OOS".
  4. Oracles, governance and integrations. Trail of Bits says on its service page that catastrophic failures live in "upgrade paths, access control, oracle integration, governance, and cross-chain message flow", not in a contract's inner logic, and that "failures often emerge between layers." Where a contract gets its price is covered in Blockchain Oracles: Where Smart Contracts Get Their Prices. The Mango case of 11/10/2022 is the example: according to the CFTC on 09/01/2023, the token's oracle price rose "over 13-fold during a 30-minute span".
  5. Economic design. Trail of Bits lists "Economic risk assessment, including price manipulation and liquidation paths" as part of its fuller service. In other words, it is scope that has to be bought.
  6. A malicious project. Andy Zhou of BlockSec, speaking to DL News on 27/04/2023: "One aspect that is usually ignored is: what if the protocol itself is malicious?"

There is also a common mix-up: a verified contract is not an audited contract. Etherscan says it "does not audit or guarantee the safety of contracts"; the verified label only confirms that the published source matches what runs on chain. Who controls code after deployment, and how upgrades happen, is covered in Open Source Crypto: What It Means and Who Controls the Code.

Dated cases: audited, then attacked

These cases show where an audit stops; they are not an accusation against whoever audited.

Project Date Loss (source) Where the audit did not reach
Beanstalk 17/04/2022 US$ 182 million (Cointelegraph) Governance seized with a flash loan
Nomad 01/08/2022 US$ 190 million (Immunefi) A routine upgrade made a zero root trusted
Euler Finance 13/03/2023 US$ 197 million (Nexus Mutual) The vulnerable code had been audited
Cetus 22/05/2025 About US$ 223 million (The Block) A library outside one audit's scope
Drift 01/04/2026 About US$ 285 million (Chainalysis) Admin control, with no timelock

Beanstalk. According to Cointelegraph (18/04/2022), the attacker took "$1 billion in flash loans from the Aave", passed 67% of governance votes and pushed through a proposal that drained the protocol. The report says it was technically not a hack, because the contracts and governance "functioned as designed." The Register, the same day, cited the post-mortem by Omniscia, Beanstalk's auditor, which said a design flaw compromised the governance mechanism. The lesson is about governance and economic design.

Nomad. Per Immunefi's analysis, published on 11/01/2023, the bridge was attacked on 01/08/2022 and lost US$ 190 million. A routine upgrade made on 21/04 that year "marked a zero hash value as a trusted root", and as a result messages were accepted as proven. The risk sat in the upgrade and initialisation, not in day-to-day code.

Euler Finance. According to Nexus Mutual, Euler was attacked on 13/03/2023 and lost US$ 197 million. Cointelegraph (17/03/2023) listed audits by Halborn, Solidified, ZK Labs, Certora, Sherlock and Omniscia between May 2021 and September 2022, and quoted Euler Labs CEO Michael Bentley: "The Euler smart contracts, including the vulnerable lines of code, were audited." Sherlock, which had reviewed that code, paid out US$ 4.5 million in cover (DL News, 17/04/2023), and its co-founder Jack Sanford said: "You can never prove that a smart contract is 100% safe." According to Nexus Mutual, Euler opened reimbursement claims on 11/04/2023, after the attacker returned the funds.

Cetus. On 22/05/2025, Cetus, on the Sui network, lost more than US$ 200 million according to Dedaub (23/05/2025), or about US$ 223 million according to The Block (27/05/2025), which reported about US$ 162 million frozen by validators. Per Dedaub's analysis, the code came from an earlier version on another network, and the migration introduced a flaw in a limit-checking function; audits of the migrated version did not find it. Cetus told The Block that the method "incorrectly validated inputs against a 256-bit limit instead of a 192-bit limit". Zellic, which audited the project in April 2025, told Rekt: "the integer-mate library was not included in the scope of our audit." The lesson is about out-of-scope dependencies and code ported between networks.

Drift. According to Chainalysis on 09/04/2026, "an attacker gained admin control of the Drift protocol" on 01/04/2026 and drained about US$ 285 million. Days earlier, on 26/03, Drift had moved to a 2-of-5 multisig security council with "zero timelock", meaning no waiting period before changes take effect. Chainalysis says it relies on Drift's post-mortem, not yet independently verified. This is key risk, which no code audit covers.

Four cases with post-mortems written by the auditor itself, in which CertiK concluded "out of scope", are in CertiK Explained: What the Skynet Score Measures and Misses.

What the numbers say

Three studies measure different things on different bases, and cannot be added together:

  • CoinGecko, 27/08/2026. Between January 2025 and July 2026, crypto platforms, exchanges included, lost US$ 3.63 billion in 245 incidents. About 60% of them (147 of 245) had completed independent audits, and those accounted for 88.44% of the value lost. But only about 11.0% of incidents at audited systems were in-scope contract failures, worth US$ 396.0 million. According to CoinGecko, most attacks came through external infrastructure, new unaudited code or governance.
  • Halborn, report on the top 100 DeFi hacks from 2014 to 2024. "Only 20% of hacked protocols were audited", and audited protocols accounted for 10.8% of the value lost. In 2024, off-chain incidents made up 56.5% of attacks and 80.5% of funds lost.
  • Study by ack3 and the Czech Technical University, via CryptoSlate (13/09/2026). Between 01/01 and 29/06/2026, 68 of 135 incidents involved a public audit identified before the attack. In that group, 67.6% of incidents and 94.4% of losses came from attacks entirely outside any identified scope. The report itself notes that "two authors are affiliated with ack3, which sells security reviews" and that the study "cannot establish whether audited protocols are safer overall". We did not read the original study.

Caveats: Halborn and ack3 sell audits; CoinGecko does not. "88% of losses were at audited protocols" does not prove audits are useless; it shows that most of the money left through places a code audit does not look.

How to read an audit report

  1. Note who hired the auditor, who audited and the date of the final report.
  2. Find the audited commit and addresses, and compare them with the contract live on chain.
  3. Read the scope: what was included and, above all, what was left out (libraries, integrations, oracles).
  4. Look at the effort: how many people, for how many weeks, against the size of the code.
  5. Count findings by severity and read each one's status: resolved, acknowledged or open.
  6. Read the project's justification for anything left "acknowledged".
  7. Check whether a fix review took place, and at which commit.
  8. Find who holds admin keys, what they can do and whether there is a waiting period before a change.
  9. Compare the audit date with the contract's last update.
  10. Read the limitations section and the legal disclaimer to the end.

For the token side rather than the code, the checklists are in Checking a Token Before Buying: Contract, Holders, Liquidity and How to Evaluate a Token: FDV, Unlocks and Who Profits.

Crypto assets carry high risk, including significant volatility and the possibility of losing the capital invested, and no form of custody changes that. Vault Capital is a securities consultancy authorized by the CVM under CVM Resolution 19/2021 and works on the principle of advice, never custody: assets stay on the client's own exchanges and wallets. If you want to set up your own wallet with hands-on guidance, the Self-Custody Immersion is built for that, and the FAQ explains how Vault works without custody of client assets.

What CertiK is, how the Skynet score works and what it does not guarantee are covered in CertiK Explained: What the Skynet Score Measures and Misses.

The audited contract library many projects reuse is covered in OpenZeppelin Explained: The Library Behind Smart Contracts.

Frequently asked questions

What is a smart contract audit?

It is a time-boxed security review of a smart contract at a version identified by its commit, carried out by a firm or by researchers the project hires. The report lists findings by severity, with recommendations, and records the check of the fixes.

How much does a smart contract audit cost?

Large firms quote case by case. According to Sherlock, which sells audits, quotes from 2025 and early 2026 ran from about US$ 5,000 to US$ 250,000 per engagement, with most DeFi audits between US$ 25,000 and US$ 100,000 (post dated 18/02/2026). That is a range, not a price.

How long does an audit take?

It depends on code size and format. In Trail of Bits' public report for Gemini, two consultants worked for two weeks. Code4rena contests typically run one to three weeks of submissions, Cantina's from a few weeks to a couple of months, and Sherlock says it can run an AI-only pass in two days.

Is an audited project safe?

An audit does not let you conclude that. It covers one version of the code for a limited time, and auditors themselves say their list of findings is not complete. Admin keys, new code, out-of-scope libraries, oracles and governance are left out, as Euler, Nomad, Beanstalk, Cetus and Drift show.

Which smart contract audit firm is best?

This post does not rank auditors or point to any of them. What you can compare is the report: scope, commit, effort, findings by severity, the status of each and the fix review. A report that is not published cannot be read by the people who will use the contract.

Is a contract verified on Etherscan audited?

No. Etherscan says it "does not audit or guarantee the safety of contracts". Verification only confirms that the published source code matches what runs on chain, which lets you read the code but says nothing about flaws.

Let's talk

No audit covers the key that moves the money; in your wallet, that key is yours. If you want to learn to set up and test your own wallet safely, Vault's Self-Custody Immersion teaches the process hands-on, in person, with the setup validated by a specialist.

Want to hold your crypto safely, on your own?

Vault's Self-Custody Immersion teaches wallets, seed backups and succession planning, hands on.

Learn about the Immersion

Path · Security and self-custody

Start the Security and self-custody path

Self-custody vs exchange: where to keep crypto in 2026

Self-custody vs exchange compared by counterparty risk, fees, Brazilian tax reporting and inheritance, with the FTX and Mt. Gox cases and a rule by amount.