RISC Zero Smart Contract Audit

A RISC Zero smart contract audit is a security review of code deployed to RISC Zero, carried out against the Chain-specific execution environment execution model and written in Rust (zkVM guest) — covering both the bug classes shared across Chain-specific runtime systems and the failure modes specific to RISC Zero.

A RISC Zero zkVM program proves that some code ran correctly. It does not prove that the code was the right code, that the inputs were legitimate, or that the verifier checked what it should — which is where the findings are.

Auditing on RISC Zero

zkVM applications shift the risk from the circuit to the boundary. The guest program is ordinary Rust, so ordinary Rust bugs apply; the interesting questions are what is committed to the journal, whether the verifier checks the image ID, and whether the on-chain verifier can be pointed at a different program.

We review the guest program logic, journal and commitment design, host/guest input trust, on-chain verifier integration and image ID handling, plus proof replay considerations.

What we test that is specific to RISC Zero

Image ID verification

Verifiers that accept a proof without binding it to the expected program, allowing a different guest to satisfy the check.

Journal and commitment design

Insufficient data committed to the journal, so the proof does not actually constrain what the consumer cares about.

Host/guest input trust

Guest programs trusting host-supplied input without validation inside the proven execution.

Proof replay and freshness

Valid proofs reused in a different context, or without a nonce binding them to one use.

Guest program correctness

Ordinary Rust bugs — panics, arithmetic, deserialisation — inside the proven program.

Shared Chain-specific runtime attack surface

RISC Zero runs on Chain-specific execution environment, so it inherits the bug classes below from every system in that family.

Runtime-specific authorisation model

Whatever this chain uses instead of msg.sender — and every check that assumes EVM semantics.

State model and storage assumptions

How state is keyed, who can write it, and what an attacker can cause to be stored.

Arithmetic and serialisation

Overflow behaviour, decoding of untrusted input, and type confusion at the boundary.

Upgrade and governance authority

Who can change the code, how fast, and what the change can reach.

Bridging and external messaging

Trust placed in cross-chain messages, and replay or ordering assumptions.

Liveness and congestion behaviour

What time-sensitive logic does when blocks are full or the network stalls.

Tooling we use on this runtime

RISC Zero contracts are written in Rust (zkVM guest). See our Rust audit methodology.

How the engagement runs

  1. Scoping and threat modelling

    We fix a commit hash, agree the in-scope contracts and read your architecture docs, then build a threat model: who the actors are, what the trust boundaries are, and which invariants must never break. Nothing is reviewed against assumptions we have not written down.

  2. Manual review

    Line-by-line review by at least two auditors working independently, focused on authorisation, accounting, upgrade paths, external integrations and the gap between what the code does and what the documentation claims it does. Most critical findings come from this phase, not from tooling.

  3. Static and dynamic analysis

    Static analysers appropriate to the language, plus property-based fuzzing and invariant testing to push the system into states no unit test covers. Tooling is used to widen coverage, never to replace the manual pass.

  4. Exploit-path simulation

    Candidate findings are proven on a forked network with a working proof of concept. We report what an attacker can actually do and what it costs them, not a theoretical severity label.

  5. Reporting

    Every finding gets a severity rating, reproduction steps, the affected code, the impact in concrete terms and a specific remediation. You get a draft for discussion before anything is finalised.

  6. Fix review and re-test

    We re-test every remediation against the original proof of concept and check that the fix has not opened a new path. The final report is yours to publish.

What you receive

RISC Zero audit: frequently asked questions

What does a zkVM proof actually guarantee?

That a specific program ran on some input and produced the committed output. It says nothing about whether the input was legitimate or the program was the intended one — which is why image ID binding and journal design are where the findings are.

Do you review the on-chain verifier integration?

Yes, and it is usually the highest-value part: image ID checks, journal decoding, and replay protection.

Is the guest program reviewed as normal Rust?

Yes, plus the constraint that everything it trusts must be validated inside the proven execution rather than by the host.

What do you need from us to start an audit?

A repository or contract address, a commit hash to freeze the scope, whatever architecture or spec documentation exists, and a point of contact who can answer design questions. If documentation is thin we will write our understanding of the system back to you and ask you to confirm it — that step alone catches design-level bugs.

How long does an audit take?

A single token contract is 24–48 hours. A typical dApp or mid-sized protocol runs one to two weeks. Large DeFi systems, L2s, bridges and ZK circuits are scoped per project after we have seen the code. We will give you a fixed timeline with the quote, not an estimate that moves.

Is a re-test included after we fix the issues?

Yes. Fix review is part of the engagement, not an upsell. We re-run the original proof of concept against your patched code and confirm the fix has not introduced a new path.

Audits on related chains

Get a fixed quote in 24 hours

Send the repository and a commit hash through the contact form, message @bugtester25 on Telegram, or book a 30-minute scoping call. 200+ protocols audited · $4B+ secured · 0 hacks post-audit. Prefer email? info@safeedges.in.