Book a free call

8 Smart Contract Audit Tools Startups Can Shortlist

The smart contract audit tools startups use most: static analysers, fuzzers and test frameworks that catch bugs before an audit, with what each one is for.

Hertiv engineering teamReviewed by a senior engineer
9 min read
8 Smart Contract Audit Tools Startups Can Shortlist
On this page

Short answer

The smart contract audit tools worth shortlisting are Slither, Mythril, Echidna, Foundry, Hardhat, Aderyn, Certora Prover and OpenZeppelin Defender. Static analysers read the code for known bug patterns, fuzzers feed it random inputs to find edge cases, and test frameworks prove the behaviour you expect. Used together before a paid audit, they catch the cheap bugs early and make the audit itself shorter and cheaper.

Which smart contract audit tools are worth shortlisting?

The smart contract audit tools worth shortlisting are the ones that find bugs before a paid audit: static analysers that read the code, fuzzers that feed it random inputs, and test frameworks that prove the behaviour you expect.

Use this comparison to shortlist. No tool replaces a human audit; the tools make the audit shorter and cheaper by catching the easy bugs first.

ToolWhat it doesBest forCost
SlitherStatic analysis of SolidityFast checks during developmentOpen source
MythrilSymbolic analysis of bytecodeDeep checks on compiled codeOpen source
EchidnaProperty-based fuzzingBreaking invariants with random inputsOpen source
FoundryTest framework with fuzzingFast unit and fuzz tests in SolidityOpen source
HardhatDevelopment and test frameworkFull project workflow in JavaScriptOpen source
AderynStatic analysis of Solidity and RustFast checks across two languagesOpen source
Certora ProverFormal verificationProving rules that must always holdSee vendor site
OpenZeppelin DefenderMonitoring and operationsWatching a live contract for attacksSee vendor site

Start with one static analyser and one test framework, then add a fuzzer. That pair covers the two cheapest bug classes: patterns a machine can spot, and behaviour your own tests can prove. For the review that follows the tools, smart contract audit explains what a human audit covers.

1. Slither: best for fast static checks

1. Slither: best for fast static checks

Slither is a static analyser for Solidity that reads your source code and flags known bug patterns, such as re-entrancy, unchecked return values and functions that anyone can call. It runs in seconds and fits into a normal build, so developers run it after every change.

It is the tool most teams reach for first, because it needs no setup beyond pointing it at the contract. The output is a list of findings with severity levels, which makes it easy to fix the serious ones and ignore the noise.

Pros:

  • Runs in seconds and fits into continuous integration
  • Checks a long list of known bug patterns
  • Free and open source, with a large user base

Cons:

  • Only finds patterns it already knows; new bug types pass through
  • Can flag code that is safe, so findings need a human to triage them

2. Mythril: best for deep checks on compiled code

Mythril analyses compiled bytecode rather than source code, using symbolic execution to explore the paths a contract can take. That lets it find bugs that only appear when inputs combine in a particular way, which a simple pattern check would miss.

It is slower than Slither and harder to read, so teams usually run it before an audit rather than after every change. The extra depth is worth it for contracts that will hold real funds.

Pros:

  • Finds bugs that depend on specific input combinations
  • Works on compiled code, so it checks what actually deploys
  • Free and open source

Cons:

  • Slower than a static analyser and harder to interpret
  • Can time out on large contracts

3. Echidna: best for breaking invariants with random inputs

3. Echidna: best for breaking invariants with random inputs

Echidna is a fuzzer for smart contracts: you write down the rules that must always hold, such as "the total supply never changes" or "a user can never withdraw more than they deposited", and Echidna feeds the contract random calls until it breaks one.

Fuzzing finds the bugs that tests miss, because tests only check the cases the author thought of. A fuzzer tries the cases nobody thought of, including long sequences of calls that leave the contract in a state no single test reached.

Pros:

  • Finds bugs in sequences of calls, not just single calls
  • Forces the team to write down the rules that must hold
  • Free and open source

Cons:

  • Only as good as the invariants you write; a missing rule is never tested
  • Needs a test setup that takes time to write well

4. Foundry: best for fast tests written in Solidity

Foundry is a development and test framework for Solidity that lets you write tests in Solidity itself, run them in seconds, and fuzz them with random inputs. Teams that write tests in the same language as the contract tend to write more of them.

Its speed is the main draw: tests that took minutes in other frameworks run in seconds, so developers run the full suite after every change. It also includes a fuzzer and tools for forking a live chain to test against real state.

Pros:

  • Very fast tests, written in Solidity rather than JavaScript
  • Built-in fuzzing and chain forking for realistic tests
  • Free and open source

Cons:

  • Less suited to teams that prefer JavaScript tooling
  • Newer than Hardhat, so fewer plugins for some workflows

5. Hardhat: best for a full project workflow

5. Hardhat: best for a full project workflow

Hardhat is a development environment for Ethereum projects that covers compiling, testing, deploying and debugging in one place. Tests are written in JavaScript or TypeScript, which suits teams that already work in that stack.

It is the most widely used framework for Solidity projects, which means most tutorials, plugins and audit reports assume it. Its local network lets you test the whole flow, from deployment to user calls, before anything touches a real chain.

Pros:

  • One tool for compile, test, deploy and debug
  • Largest ecosystem of plugins and examples
  • Free and open source

Cons:

  • Tests run slower than in Foundry on large suites
  • JavaScript tests can drift from the Solidity code they test

6. Aderyn: best for fast checks across two languages

Aderyn is a static analyser that checks both Solidity and Rust contracts, which suits teams that build on more than one chain. It is written in Rust, so it runs fast, and it is built to be extended with custom checks for a team's own rules.

It is newer than Slither, so its list of built-in checks is shorter, but it covers the common bug classes and its speed makes it easy to run on every commit. Teams that work across EVM and Solana chains get one tool for both.

Pros:

  • Checks both Solidity and Rust contracts
  • Fast, and easy to extend with custom checks
  • Free and open source

Cons:

  • Fewer built-in checks than the older analysers
  • Smaller community, so fewer examples and guides

7. Certora Prover: best for proving rules that must always hold

7. Certora Prover: best for proving rules that must always hold

Certora Prover is a formal verification tool: you write the rules a contract must obey, and it proves mathematically whether those rules can ever be broken, rather than testing a sample of inputs. That is stronger than fuzzing, but it takes more effort to set up.

It is the tool teams use for the highest-value contracts, such as lending protocols and bridges, where a single bug can drain everything the contract holds. The effort is high, so it is usually applied to the core contracts, not to every helper.

Pros:

  • Proves rules hold for all inputs, not just the ones tested
  • Suited to high-value contracts where a bug is costly
  • Used by major protocols, so its reports are familiar to auditors

Cons:

  • Paid; check the vendor's own pricing page, see vendor site
  • Writing the rules takes real time and skill

8. OpenZeppelin Defender: best for watching a live contract

OpenZeppelin Defender is an operations platform for contracts that are already live: it monitors transactions, alerts the team when something unusual happens, and can pause a contract or run an automated response. Most audit tools stop at deployment; Defender starts there.

Monitoring matters because bugs are often found after launch, by attackers rather than auditors. A contract that can be paused in minutes loses far less than one that nobody is watching.

Pros:

  • Alerts on unusual transactions in real time
  • Can pause a contract or trigger a response automatically
  • Built by the team behind the most-used contract libraries

Cons:

  • Paid plans for larger use; check the vendor's own pricing page, see vendor site
  • Monitoring is not a substitute for testing before launch

How to choose the right audit tools

You choose audit tools by matching them to the stage your contract is in: static analysis while you write, fuzzing while you test, and monitoring once it is live. No single tool covers all three stages.

  1. Start with one static analyser. Pick Slither or Aderyn and run it after every change, so new bugs are caught the day they are written.
  2. Add a test framework. Choose Foundry if your team writes Solidity, or Hardhat if it prefers JavaScript, and write tests for every function.
  3. Add a fuzzer before the audit. Use Echidna or Foundry's fuzzer to break the rules you wrote down, and fix what it finds.
  4. Reserve formal verification for the core. Use a prover such as Certora on the contracts that hold the most value, not on every helper contract.
  5. Plan monitoring before launch. Set up alerts and a pause path with a tool such as Defender, so a bug found after launch can be stopped quickly.

Run the tools in that order, and keep the findings in the repository so the auditors can see what was already checked. If you are unsure what an audit should cover after the tools have run, what a smart contract audit covers explains the review that follows.

What are the common mistakes?

The most common mistakes with audit tools are running them once and forgetting them, trusting a clean report too much, and treating monitoring as optional. Tools help only when they run often and their findings are read.

  • Running the tools once. A scan at the end of the project finds bugs that are expensive to fix; run the analyser after every change instead.
  • Trusting a clean report. A tool only finds the bug classes it knows; a clean report means no known patterns were found, not that the contract is safe.
  • Writing no invariants. A fuzzer without rules to break is just random noise; write down what must always hold first.
  • Skipping the human audit. Tools catch the cheap bugs so the auditors can spend their time on the logic only a person can judge.
  • No monitoring after launch. A contract nobody watches can be drained for hours before anyone notices.

For the bug patterns these tools are built to catch, common smart contract vulnerabilities lists the ones auditors find most often.

And if you are writing the contract itself, how to write a smart contract covers the build and test habits that make the tools useful.

Key takeaways

  • Static analysers such as Slither catch known bug patterns in seconds, so run one after every change
  • Fuzzers such as Echidna break the rules you write down, finding bugs tests never thought of
  • Foundry and Hardhat are the test frameworks; pick the one that matches your team's language
  • Formal verification is for the highest-value contracts, where a bug would be costly
  • No tool replaces a human audit, and monitoring after launch matters as much as testing before it

Frequently asked questions

Do audit tools replace a human audit?

No. Tools find known bug patterns and check the rules you wrote down, but they cannot judge whether the business logic is right. A human audit looks at the logic, the assumptions and the cases no tool was told to check. Use the tools to catch the cheap bugs so the auditors can spend their time on the rest.

Which audit tool should a startup start with?

Start with a static analyser such as Slither and a test framework such as Foundry or Hardhat. That pair is free, runs in seconds, and covers the two cheapest bug classes: patterns a machine can spot and behaviour your own tests can prove. Add a fuzzer before the audit.

Are these tools free to use?

Most of them are open source and free: Slither, Mythril, Echidna, Foundry, Hardhat and Aderyn. Certora Prover and OpenZeppelin Defender have paid plans, so check the vendor's own pricing page; see vendor site. The free tools cover most of what a startup needs before an audit.

What is the difference between static analysis and fuzzing?

Static analysis reads the code without running it and flags known bug patterns, such as re-entrancy or unchecked return values. Fuzzing runs the code with many random inputs and checks whether the rules you wrote down ever break. They find different bugs, so teams use both.

How long does it take to set up these tools?

A static analyser takes minutes to run on an existing project. A test framework takes a day or two to set up with a first set of tests. A fuzzer takes longer, because writing good invariants, the rules that must always hold, is real work and cannot be rushed.

Should we run audit tools on contracts we did not write?

Yes, especially then. Third-party contracts, libraries and forks can carry bugs your team never saw, and a static analyser plus a fuzzer is the fastest way to check them. Never deploy a contract you have not read and tested, even if it came from a well-known source.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Need a smart contract audit or a contract built for review? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Smart Contract Audit service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call