Smart contract audit

A smart contract audit is a review of a smart contract's code by independent security specialists before or after launch. Auditors look for vulnerabilities and logic errors and publish a report; an audit lowers the risk of a hack but does not rule it out.

How an audit works

The team hands auditors a specific version of the code and a description of how it is supposed to work. The specialists read the code by hand, run automated analyzers, write tests for edge cases and sometimes prove certain properties mathematically, which is called formal verification. Findings are graded by severity: critical, high, medium, low and informational. The team fixes them, the auditors review the fixes, and a final report is published: what was checked, what was found, what was fixed and what the team left as is.

How to read the report

First, scope: which contracts and which code version were reviewed. If the report covers only some contracts, nobody looked at the rest. Second, the status of findings: were critical and high issues fixed, or marked as acknowledged but not fixed? Third, whether the deployed contract matches the audited code, since the code may have changed afterwards. Fourth, admin rights: can the team upgrade or pause the contract, mint tokens or withdraw funds? Auditors often describe these risks explicitly, and that section deserves the closest reading.

What an audit does not guarantee

An audit is a snapshot of one code version on one date. It does not protect against bugs in later upgrades, theft of admin keys, oracle manipulation or economic attacks that do not formally break the code. Many hacked protocols had passed one or more audits beforehand. An audit does not check the team's honesty either: a project with flawless code can still turn out to be a scam if its creators kept the right to pull liquidity. Fake reports exist too: a well-known firm's logo on the project's site, but no report from the auditor itself.

What else to check

It is more reassuring when there are several audits from different teams, a bug bounty program, and a long record of handling large sums without incidents. It helps if admin rights are limited by multisig and a time delay on changes. The code should be open and verified in a block explorer. Small new tokens often have no audit at all, which is a reason to invest only what you can afford to lose. This is not investment advice.

Example

Hypothetical example: a protocol attracted 50 million dollars and has an audit report with two critical findings, both fixed. Three months later the team added a new rewards contract and did not have it reviewed. It contained a bug, and an attacker drained 8 million dollars. The audit was genuine, but it covered the old version of the code, and the new part went unchecked.

Related terms

Smart ContractExploitRug PullMultisignatureToken Contract AddressBlockchain Oracle

On the site

Coin categoriesNew coinsMarket makers

This article was written by AI. Check specific rates, taxes and broker terms with primary sources.

↑ Top