Finished reading?

Mark it as read & it’s ticked off across Cryptopedia, including the Crypto Tax & Regulations learning path.

Chris Shepley
Reviewed byChris Shepley

Founder & CEO of Shepley Capital, Adelaide. Cryptopedia guides are written by the Shepley Capital team & reviewed by Chris.

About Chris
Go deeper

Guides linked in this article.

guides across Cryptopedia, coloured by category.

Fresh from the category

Latest in Crypto Tax & Regulations.

Premium intelligence

Stay ahead of the digital asset economy.

Access deeper market intelligence, research, and premium guidance through the Shepley Capital membership ecosystem. Built for investors who want more than information.

WALLETS & SECURITY
Wallets and Security - Cryptopedia by Shepley Capital

How to Audit a Smart Contract: A Basic Guide

As an investor you do not need to audit code yourself, but you can check the basics of any smart contract in minutes. Confirm the source code is verified on a block explorer such as Etherscan, read who controls admin functions like minting, pausing and upgrades and whether a time lock applies, run new tokens through a scanner, and read the professional audit report: who wrote it, when, what was in scope, and whether critical and high findings were fixed. An audit reduces risk but never guarantees safety. The key points:

  • Unverified source code on a block explorer is an immediate red flag.
  • Check the audit covers the code that is actually deployed today.
  • Admin keys held by one wallet with no time lock mean the team can change the rules.
  • Limit what any contract can reach by keeping approvals small.

Moneysmart’s guide to investment scams warns that fake audit claims are common, and ASIC’s investor alert list names suspicious offers.

Why Smart Contract Auditing Matters for Investors

Every DeFi protocol, token contract, and smart contract-based application you interact with represents a piece of code that controls real assets. Unlike a traditional financial institution where regulatory oversight, legal recourse, and human judgment provide layers of protection, a smart contract executes exactly as written: without modification, without appeal, and without the ability to reverse a completed transaction.

This immutability is one of the great strengths of blockchain technology, but it also means that bugs, deliberate backdoors, or design flaws in smart contract code can result in permanent loss of funds. The history of crypto is filled with examples of exploited contracts resulting in hundreds of millions of dollars in losses: the DAO hack, the Ronin Bridge exploit, numerous smaller protocol hacks and rug pulls. In every case, the vulnerability existed in the code.

Smart contract auditing is the process of reviewing that code for vulnerabilities before or after it is deployed. Professional auditing is conducted by specialist security firms. But even as a non-developer investor, understanding the basics of what audits look for, how to read an audit report, and how to use available tools to assess a contract reduces your exposure to investing in protocols with known or discoverable flaws.

 

What a Smart Contract Audit Checks For

Professional smart contract audits follow a systematic methodology that covers several categories of vulnerability.

 

Reentrancy Attacks

A reentrancy vulnerability occurs when a contract makes an external call to another contract before updating its own state. The called contract can call back into the original contract before the first execution is complete, potentially withdrawing funds multiple times in a single transaction. The DAO hack in 2016 exploited precisely this vulnerability, resulting in the theft of approximately 3.6 million ETH. Auditors specifically check for reentrancy patterns and verify that contracts follow the “checks-effects-interactions” pattern to prevent them.

 

Integer Overflow and Underflow

Older Solidity code (before version 0.8.0) was vulnerable to arithmetic errors where calculations that exceeded the maximum or fell below the minimum value of an integer type would “wrap around,” producing incorrect results. An attacker could exploit this to manipulate token balances or other values. Auditors verify that arithmetic is handled correctly, either through SafeMath libraries or by using Solidity 0.8.0 and later, which includes automatic overflow and underflow protection.

 

Access Control Issues

Improperly implemented access controls can allow unauthorised addresses to call privileged functions: minting unlimited tokens, withdrawing contract funds, or modifying protocol parameters. Auditors verify that all privileged functions have appropriate access controls and that those controls cannot be bypassed.

 

Oracle Manipulation

Protocols that rely on external price oracles to determine asset values can be vulnerable to oracle manipulation attacks. If an attacker can temporarily manipulate the price reported by an oracle (for example, through a flash loan that moves a low-liquidity market), they can exploit the protocol. Auditors check oracle implementation and recommend manipulation-resistant approaches like time-weighted average prices (TWAPs).

 

Flash Loan Attacks

Flash loan attacks use loans of enormous amounts of capital that are borrowed and repaid within a single transaction. Protocols vulnerable to them can be exploited to manipulate prices, drain liquidity pools or trigger logic flaws that only appear at scale, so auditors specifically test for these attack paths.

 

Reading a Smart Contract on Etherscan

Even without a developer background, you can inspect the basic properties of a smart contract on Etherscan. Here is what to look for.

First, navigate to the contract address on Etherscan. If the developer has verified and published their source code (a sign of transparency), you will see a “Contract” tab with “Code” available. A contract whose source code is not verified and published on Etherscan is an immediate red flag: it means you cannot see what the code does, and neither can auditors or the community without additional effort.

Check the contract creation date and the deployer address. Very recently deployed contracts from anonymous deployers are higher risk. Check whether the deployer address has a history of other contracts and whether those contracts have been involved in any known exploits or rug pulls.

Look for the token ownership and admin control structure. Many token contracts include functions that allow the owner to mint unlimited tokens, pause transfers, or modify the tax rate on transactions. If these functions exist and are controlled by a single unverified address, the contract carries centralisation risk. An owner who can mint unlimited tokens can effectively rug pull at any time.

Check whether a time lock has been applied to admin functions. A time lock introduces a mandatory delay between when a privileged function is called and when it executes, giving the community time to react. Protocols with time locks on critical functions are meaningfully safer than those that allow immediate execution of admin actions.

 

Automated Audit Tools for Non-Developers

Several automated tools can analyse smart contract code for common vulnerability patterns without requiring programming expertise.

Token Sniffer (tokensniffer.com) analyses token contracts for common red flags including honeypot mechanics (contracts that prevent selling), unlimited mint functions, abnormal trading tax rates, and similarities to known scam contracts. For any new token you are considering, running the contract address through Token Sniffer takes 30 seconds and can identify obvious red flags immediately.

Slither, Mythril, and Echidna are professional-grade static analysis tools used by auditors. They can be run on publicly available contract source code to identify potential vulnerabilities automatically. These tools require more technical comfort than Token Sniffer but are available as open-source software.

Security dashboards from analytics providers aggregate data about protocols, including audit history, treasury control and past incidents, and some produce risk scores. These are useful starting points, but automated scores can miss new risks and should never be treated as a verdict on their own.

 

Interpreting Professional Audit Reports

When a protocol has been professionally audited, the audit report is one of the most valuable documents for any investor to review. Here is how to read one effectively.

Check the audit date and the version of code that was audited. An audit conducted on an earlier version of the code may not cover changes made since then. If the protocol has deployed a newer version or made significant upgrades after the audit, the report may not fully reflect the current contract’s security posture.

Review the findings severity levels. Audits typically classify issues as Critical, High, Medium, Low, or Informational. Critical and High findings are the most important: they represent vulnerabilities that could result in direct loss of funds if exploited. Check whether all Critical and High findings were acknowledged and remediated before deployment. Unresolved critical findings in a deployed protocol are a serious red flag.

Check the audit scope. Some audits cover only specific components of a protocol, not the entire codebase. An audit of the staking contract does not cover the bridge, the oracle, or the token contract. Understand what was and was not included in the scope before treating an audit as comprehensive.

Consider the auditing firm. Reputable auditing firms in the space include Certik, Trail of Bits, OpenZeppelin, ConsenSys Diligence, and Spearbit. The presence of an audit from a well-regarded firm does not guarantee safety (audited protocols have still been exploited), but it indicates that a genuine, professional review was conducted. Beware of self-audits or audits from unknown firms: these provide little assurance.

 

The Limits of Smart Contract Audits

Even the best smart contract audit does not guarantee a protocol is safe. Understanding these limitations is important for calibrating the weight you give to audit status in your investment decisions.

Audits are point-in-time reviews. If a protocol deploys new code, modifies existing contracts, or adds new integrations after an audit, those changes may introduce new vulnerabilities not covered by the audit. Always check whether the audit was conducted on the current deployment.

Complex systems have emergent risks. A protocol made of audited components can still be vulnerable through the way those components interact. The 2023 Euler Finance exploit, worth about US$197 million at the time, abused a function added in an upgrade that interacted badly with the existing lending logic; most of the funds were later returned, but it showed how a small change can undermine an otherwise reviewed system.

Economic design flaws can be exploitable even without code bugs. A protocol whose token economics create perverse incentives, or whose design is vulnerable to coordinated economic attacks, may be exploitable without any traditional code vulnerability. Economic analysis is separate from code review and equally important for higher-stakes investments.

Ultimately, smart contract auditing is one input into a broader DYOR process for identifying promising crypto projects. Combined with understanding the team, the tokenomics, the DeFi risks inherent in the protocol type, and the overall market context, it provides a more complete picture than any single data point alone.

 

What an Audit Cannot Tell You

The value of an audit is real and it is bounded in ways the word does not convey. Knowing the boundary is what stops “audited” from functioning as a substitute for judgement.

It covers a version, not the protocol. An audit examines specific code at a specific commit, which is why an upgradeable application can diverge from the reviewed code without anything visibly changing. Anything deployed afterwards, and any upgrade, is outside it. Where a contract is upgradeable, the audited code and the running code can diverge entirely, which is why the upgrade mechanism matters as much as the report.

It covers the code, not the design. A contract can be free of implementation bugs and still have economics that fail: a reward rate that is really token issuance rather than revenue, an oracle that can be moved by a flash loan, a governance threshold one holder can reach. Auditors increasingly examine this and it is a different discipline from finding a reentrancy bug, and the scope section will tell you whether it was in scope.

It does not cover the parts of the system that are not contracts. The front end, the deployment keys, the multisig holding admin rights and the team’s operational security all sit outside a typical audit, and losses frequently originate there rather than in the contract. A cloned front end serves malicious transactions from a perfectly sound contract.

It cannot make the code safe. An audit is a probabilistic reduction in risk, in the same way checking whether a project has been audited is a filter rather than a verdict, by people working under time constraints against an adversary with unlimited time and a direct financial incentive. Audited protocols are exploited regularly, which is not an indictment of auditing; it is what the word actually means. What happens to depositors afterwards is covered in the risks of DeFi investing.

So the useful questions are narrower than “is it audited”. Who performed it and what is their record. What was in scope, and what was explicitly excluded. Which findings were raised, and were the critical and high severity ones actually fixed rather than acknowledged. How old is the report relative to the deployed code. And is the report published in full, since a project citing an audit without linking it is telling you something.

Treat the answer as one input into position sizing rather than as a gate. The practical protection remains spreading exposure across protocols and limiting what any contract can reach through token approvals, because the risks of DeFi are not eliminated by a report and the failure mode is rarely the one that was reviewed.

Building Audit Awareness into Your Investment Practice

Incorporating basic smart contract due diligence into your investment research process requires only a small time investment but significantly reduces exposure to the most preventable category of DeFi losses.

Before interacting with or investing in any new protocol: check whether the contract source code is verified on Etherscan, run the token address through Token Sniffer, check for a professional audit report from a reputable firm, and verify the audit covered the current deployment. These four steps take under ten minutes and filter out many of the most obvious risks.

For significant investments, read the actual audit report rather than just noting that one exists. Review the findings severity, what was fixed, and what remains as acknowledged risk. Check the on-chain access control structure for mint, pause, and upgrade functions. Look at whether a time lock is in place for critical admin functions. This level of diligence is appropriate for any DeFi allocation of meaningful size.

Putting Audit Checks Alongside Other Research

Audits are one part of a wider security check. Learning how to check whether a project has been audited, how DeFi protocol audits are scoped, and how bug bounties complement them gives you a fuller picture. The famous DeFi hacks and the wider list of the biggest crypto hacks show how smart contract exploits unfold in practice, often through a weak price oracle.

Scams often borrow the language of audits. Honeypot tokens stop you selling, malicious smart contracts drain approvals, and a rug pull can follow even a genuine audit if the team controls the liquidity. Learn the red flags in new projects, look at the holder distribution and whether you can verify the team, and keep your own exposure small with careful approval settings and tools to revoke approvals. A Safe multisig with a time lock on admin functions is a good sign when you see one.

Frequently Asked Questions

What is a smart contract audit?

A smart contract audit is a systematic security review of a smart contract's code by expert analysts who identify vulnerabilities, logic errors, and potential exploits before the contract is deployed or while it holds user funds. Audits are the primary security quality signal for DeFi protocols and NFT projects.

Why are smart contract audits important for crypto investors?

Unaudited smart contracts have been responsible for billions of dollars in losses through exploits. When you deposit funds into a DeFi protocol, you are trusting its code. An audit by a reputable firm provides evidence that the code has been independently reviewed for common vulnerabilities, though it cannot guarantee the absence of all risks.

What do smart contract auditors look for?

Auditors look for common vulnerability classes including reentrancy attacks (where a contract calls back into itself before state is updated), integer overflow and underflow, access control failures (functions that should be restricted are not), front-running vulnerabilities, oracle manipulation risks, and economic design flaws that could be exploited.

Which smart contract audit firms are most reputable?

The most respected audit firms include Certik, OpenZeppelin, Trail of Bits, Consensys Diligence, Hacken, and PeckShield. Tier 1 auditors like Trail of Bits and OpenZeppelin command significant fees and their reports carry the most weight. Checking the audit firm's reputation and whether they publish their reports publicly is important.

Where can investors find smart contract audit reports?

Most reputable projects publish their audit reports on their official GitHub repository, website, or through the auditor's website. Certik and Hacken maintain public databases of audited contracts. If a project cannot produce an audit report or claims it is coming soon, treat this as a significant red flag.

Does an audit guarantee a smart contract is safe?

No. Audits significantly reduce risk but cannot guarantee safety. Many protocols have been exploited despite having one or more audits. Audits are point-in-time reviews and do not cover code updated after the audit. New attack vectors are discovered continuously, and even the best auditors can miss subtle logic flaws in complex systems.

What is a bug bounty and how does it complement audits?

A bug bounty programme offers financial rewards to independent researchers who discover and responsibly disclose vulnerabilities. Projects with active bug bounties on platforms like Immunefi provide an ongoing incentive for security researchers to continuously review the code after formal audits are completed. Active bounty programmes are a positive security signal.

How should non-technical Australian investors use smart contract audit information?

Use audits as a screening tool rather than trying to judge the technical findings yourself. An audit from a well-regarded firm, covering the deployed code, with critical and high findings fixed, is a positive sign but not a guarantee. No audit at all for a protocol holding user funds is a strong reason to stay away.

WRITTEN & REVIEWED BY Chris Shepley

UPDATED: JULY 2026

Choose your next topic from our Cryptopedia​

Footer | Shepley Capital

Grow your crypto portfolio with the latest insights, straight to your inbox!

Join 10,150+ CEOs, Business Owners, Parents, Students, & more receiving actionable crypto insights to grow their portfolios.