Skip to content
Glossary

Audit (smart-contract)

A smart-contract audit is a thorough review of a contract's code by security specialists to find bugs and vulnerabilities before it goes live and holds real money.

A smart-contract audit is a thorough review of a smart contract's code by security specialists, done before the contract goes live, to find bugs and vulnerabilities an attacker could exploit. Because a deployed contract is often immutable and holds real money, a flaw found after launch can be catastrophic - and public, since attackers can read the code too. The audit is the main defense against smart-contract risk.

A good audit combines several methods: a line-by-line manual review by experienced auditors, automated static analysis, and sometimes formal verification that mathematically proves certain properties hold. Reviewers hunt for known failure patterns - reentrancy, integer and access-control errors, flawed upgrade or admin paths, oracle manipulation - and for logic that does not match what the contract is supposed to do. Established firms include Trail of Bits, OpenZeppelin, and Certora, among others.

The output is a report that lists findings by severity, which the team is expected to fix and then have re-reviewed. Reputable issuers publish the final report so anyone can read what was found and confirm the fixes, often alongside the verified source on a block explorer.

For real-world assets, an audit is part of basic due diligence. Before trusting a contract to hold your tokenized shares, mint supply, or move funds, you want evidence that competent, independent reviewers examined it. An unaudited contract managing serious value is a red flag.

It is also not a guarantee. An audit is a point-in-time review of specific code and scope; it reduces risk but does not eliminate it, audited contracts have still been exploited, and it says nothing about the off-chain asset or legal wrapper. Treat a clean audit as necessary, not sufficient - and check what was actually in scope.

Source: OpenZeppelin docs (docs.openzeppelin.com), as of 2026.

Mentioned in

Educational content, not financial or legal advice.