Rust smart contract audit: the tools alongside your audit

AI agents review your code, and OrCa fuzzes it against your specification.

Built by the Veridise auditors behind 150+ security audits.

Rust math.rs in AuditHub: Scout flags a fee that rounds to zero, OrCa returns the split withdrawals that pay no fee, and both checks run on the pull request.

What AI agents review in your Rust code

Scout learns your protocol, hunts for exploitable bugs in your Rust contracts, tests each one with OrCa where a property applies, and remembers what it learned for the next run.

// 001

Learn

Models your contracts, entry points and who may call them.

// 002

Hunt

Looks for missing checks, arithmetic errors and panics an attacker can trigger.

// 003

Test

Runs OrCa against the property at stake.

// 004

Remember

Keeps what it learned for the next run.

Rust smart contract fuzzing with OrCa

OrCa is the security tool for your Rust contracts: specification guided fuzzing, built on formal methods.

Specification guided fuzzing

OrCa tests your contracts against the behavior you specify in [V], or against the existing specification library. It generates thousands of test cases and returns exact inputs and traces for every violation.

Also shipping Solidity? Vanguard adds static analysis on your Solidity contracts.

Common Rust smart contract vulnerabilities

Well-known bug classes in Rust contracts. Scout reviews each one; OrCa tests the ones you can state as a property.

Common Rust smart contract vulnerabilities
VulnerabilityWhat happensCovered by
Integer overflow and underflowRelease builds wrap silently unless overflow checks are enabled.Scout, OrCa
Missing authorization checksEntry points that never verify who is calling.Scout, OrCa
Panics and unchecked unwrapsAn unwrap or out-of-bounds index aborts the call and can block a critical path.Scout, OrCa
Rounding errorsInteger division in fee and share math that leaks value over time.Scout, OrCa
State changes around external callsState read or written in the wrong order around a call to another contract.Scout
Broken invariantsAccounting, supply or collateral rules that stop holding.OrCa

From Rust finding to a fuzzing trace

Scout flags a fee calculation that rounds in the user’s favor. OrCa tests the property you specified and returns the evidence: the exact call sequence and inputs that break it.

Scout AI - Findings

MediumNeeds Review

Line 75

First depositor can inflate the share price

contract.rs:75
agent-findingcontracts/receipt-vault/src/contract.rs

OrCa - Evidence

Invariant violated

Share price manipulation reproduced

The exact inputs and the trace that break the expected behavior.

Victim deposit500assets
Shares minted0

// COUNTEREXAMPLE FOUND

View transaction trace

Fits your Rust toolchain, from cargo to GitHub Actions

Keep writing and building your contracts with cargo. Connect your GitHub repository and run checks in GitHub Actions on every commit, so findings arrive during development.

cargo

GitHub Actions

AuditHub MCP

Writing Rust with a coding agent? AuditHub MCP runs OrCa from your session.

Alongside your Rust smart contract audit

AuditHub checks your Rust code on every change, so your auditors start from a cleaner baseline and spend their time on design and logic. The audit still gives you a signed expert review.

Before audit

During audit

After audit

OrCa // EVERY CHANGE
OrCa task summary: steps, findings and artifacts.
AuditHub OrCa check on a pull request.
OrCa recent tasks across versions v1 to v3.

Built from real audit engagements

OrCa was shaped on real engagements by the Veridise auditors behind AuditHub.

Other languages AuditHub checks

Rust smart contract audit FAQ

What does a Rust smart contract audit cover?

An expert review of your contracts for flaws such as missing authorization checks, arithmetic errors and broken invariants before deployment. AuditHub keeps checking between audits: AI agents review the code and OrCa tests it against your specification.

Does AuditHub run static analysis on Rust contracts?

Vanguard’s static analysis covers Solidity. On Rust, AI agents review your code and OrCa fuzzes it against your specification.

Do I need to write specifications?

You can write your own in [V], or start from the existing specification library.

Does AuditHub replace a Rust smart contract audit?

No. It checks every change between audits, and the audit gives you a signed expert review.

Still have questions? Contact us

Learn more about Rust smart contract security

Test your Rust contracts against what they should do

Start fuzzing your Rust code with OrCa today.