reth EIP-7928 report: see how a Hackerbane report is structured. Open the report → (opens in a new tab)

Rust

Rust smart contract audit

A Rust smart contract audit covers Solana programs, CosmWasm contracts, and node software. Hackerbane audits the on-chain programs, the clients, and any unsafe code next to keys.

What we review

We audit Rust on Solana, CosmWasm, and node software. The type system does not catch a missing signer check. The usual problems are a wrong account, a program-derived address (PDA) built from the wrong seeds, and a cross-program call that moves funds before state is written.

  1. Missing signer or owner checks on admin, withdraw, and authority updates.

  2. A caller passing the wrong account as the vault, mint, or a sysvar (a runtime-provided account).

  3. PDA seeds that collide, or a bump (the extra byte that makes the address) that is not the canonical one.

  4. Cross-program calls that move funds before state is written, or that skip the program ID check.

  5. Unsafe blocks and foreign function interface (FFI) calls next to deserialization or keys.

  6. An account initialized twice, or a closed account that comes back with old data.

  7. Remaining accounts, and a cross-program call aimed at a program the instruction never checked.

Advanced Threat Detection

We built our own advanced threat detection stack that is more performant and cheaper than our competitors. We use a state-of-the-art AI harness coupled with world-class senior security engineers with proven experience finding vulnerabilities in well-tested software.

How we review this language

A Rust review follows the same five-stage engagement as every Hackerbane audit. The difference is the runtime: Solana accounts, CosmWasm entry points, or a node client's parsers.

Two senior engineers read the crates in parallel. cargo and clippy run across the workspace. We add checks for signer and owner rules, and fuzz the arithmetic and account paths your unit tests never reach.

  1. Scope and threat model

    We lock the crates, the commit, the runtime, and who can sign or call what, including keepers and upgrade keys, before the review starts.

  2. Architecture and design review

    We read the account model, the entry points, and the process boundary against that model to find flaws a line-by-line pass would miss.

  3. Hybrid code and infrastructure review

    Two senior engineers read the Rust in parallel, backed by clippy, custom detectors, fuzzing, and property tests across the workspace.

  4. Exploitability and root-cause analysis

    High and Critical findings ship with a proof of concept on the target runtime and the root cause, so the class of bug gets fixed, not only the instance.

  5. Reporting and remediation

    A prioritized report, a live walkthrough, and verification of every in-scope fix within the remediation window.

Tools and practices

We work in the cargo workspace you already use. cargo test stays in place. We add detectors, fuzz harnesses, and property tests, then hand those artifacts back with the report.

What you get

  • Findings ordered by severity, each naming the function, the root cause, and a fix.

  • Verifiable proofs of concept for High and Critical issues on the target runtime.

  • The written report names the commit, each finding, and the retest result.

  • Remediation verification and a final report that reflects the fixed state of the program.

  • The fuzz harnesses and property tests written during the review.

How to prepare

What we need before the engagement starts.
#Before review starts
01Builds and tests run cleanly from a fresh checkout.
02The runtime is named: Solana, CosmWasm, Substrate, or a node client.
03Account models, PDA seeds, and admin keys are documented.
04Core fund flows are covered by tests, and unsafe blocks are called out.
05Scope is defined: which crates, which commit, and which deployment.

Questions

Do you check initialization and closed accounts?
Yes. A program that can be initialized twice, or a closed account that returns with old data, is in scope. So is a cross-program call that trusts a program id the caller supplied.
Does the runtime change how you audit Rust?
Yes. The language is the same, but the bugs are not. We name the runtime first, then look at Solana accounts, CosmWasm entry points, or a client's parsers.
Can you review a node client, not just on-chain programs?
We do. A parser that reads untrusted blocks or peer traffic can split a network. If the client can affect consensus or keys, we include it.
What about unsafe blocks and foreign function calls?
We read every unsafe block next to deserialization, keys, or FFI. We check the invariant it assumes and whether a caller can break it.

Next step

Request an audit

Share your repo, the runtime it targets, and your timeline. We reply with a written scope and a fixed quote. Anchor, CosmWasm, and node crates are ready as they are.