{
  "id": "kani",
  "name": "Kani Rust Verifier",
  "aka": [
    "Kani"
  ],
  "summary": "Write test-like proof harnesses for Rust code; Kani checks every input the harness allows, up to loop bounds, and gives a counterexample when a check fails.",
  "use_if": [
    "You want to check unsafe Rust for memory errors, overflow and panics without writing proofs.",
    "Your code has small or known loop bounds, such as parsers, encoders or data-structure operations.",
    "You want proofs that run in CI next to your tests."
  ],
  "avoid_if": [
    "Your code is concurrent or async; Kani treats threads as sequential code and does not support await.",
    "Your loops have no small bound and you are not ready to write (experimental) loop contracts; the result then only covers runs up to the bound.",
    "You need to catch violations of Rust's aliasing rules or data races; Kani does not check them."
  ],
  "effort": "push-button",
  "open": "open-source",
  "license": "MIT OR Apache-2.0",
  "maintainers": [
    "Amazon Web Services (model-checking team)"
  ],
  "links": {
    "homepage": "https://model-checking.github.io/kani/",
    "repo": "https://github.com/model-checking/kani",
    "docs": "https://model-checking.github.io/kani/",
    "paper": "https://arxiv.org/abs/2607.01504",
    "tutorial": "https://model-checking.github.io/kani/kani-tutorial.html"
  },
  "components": [
    {
      "role": "frontend",
      "name": "kani-compiler (rustc-based; translates MIR into a CBMC goto program)",
      "assurance": "trusted",
      "note": "Uses rustc to compile the code and its dependencies, then Kani's own code generator turns the MIR into CBMC's input format. Features it cannot translate become a failing check if reached."
    },
    {
      "role": "translation",
      "name": "CBMC loop unwinding and symbolic execution to a SAT formula",
      "ref": "cbmc",
      "ref_kind": "toolchain",
      "assurance": "trusted"
    },
    {
      "role": "checker",
      "name": "SAT solver (CaDiCaL by default; MiniSat, Kissat, Z3, Bitwuzla or cvc5 selectable)",
      "assurance": "trusted",
      "note": "The default may change between Kani versions."
    },
    {
      "role": "compiler",
      "name": "rustc / LLVM",
      "assurance": "trusted"
    }
  ],
  "verifies": [
    {
      "target": "rust",
      "note": "Checks proof harnesses (functions marked kani::proof); inputs come from kani::any() and are limited by the harness."
    }
  ],
  "properties": {
    "no-ub": {
      "status": "partial",
      "note": "Checks by default: arithmetic overflow, division by zero, invalid pointer dereference, out-of-bounds indexing, panics, bad shifts and memory leaks. Not checked: data races, Rust's aliasing rules (Stacked or Tree Borrows), mutation of immutable data, inline assembly. Invalid values and uninitialized memory are checked only with unstable flags.",
      "source": "https://model-checking.github.io/kani/soundness.html"
    },
    "functional": {
      "status": "partial",
      "note": "Assertions in a harness are checked for every input the harness allows, but only up to the loop bounds unless the (experimental) function or loop contracts are used.",
      "source": "https://model-checking.github.io/kani/reference/experimental/loop-contracts.html"
    },
    "equivalence": {
      "status": "partial",
      "note": "No dedicated mode; you write a harness that runs two implementations on the same symbolic inputs and asserts equal results, within the loop bounds.",
      "source": "https://model-checking.github.io/kani/tutorial-kinds-of-failure.html"
    },
    "info-flow": {
      "status": "none",
      "note": "No information-flow or constant-time checking."
    },
    "concurrency": {
      "status": "none",
      "note": "Concurrent code is out of scope; Kani emits a warning and compiles it as if it were sequential.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "termination": {
      "status": "partial",
      "note": "Passing unwinding checks show that every loop finishes within the bound for the harness's inputs. There are no general termination proofs.",
      "source": "https://model-checking.github.io/kani/tutorial-loop-unwinding.html"
    }
  },
  "features": {
    "core.integers": {
      "status": "full",
      "note": "Bit-precise machine integers with overflow checks.",
      "source": "https://model-checking.github.io/kani/soundness.html"
    },
    "core.floats": {
      "status": "full",
      "note": "Bit-precise IEEE 754 arithmetic. sin, cos and sqrt are over-approximated, which is sound but can report errors that cannot happen.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "core.heap": {
      "status": "full",
      "note": "Box, Rc and Arc are supported; null, dangling and out-of-bounds pointers are checked.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "core.arrays": {
      "status": "full",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "core.loops": {
      "status": "partial",
      "note": "Loops are unrolled up to a bound. Unwinding assertions fail if the bound is too small, so a passing run covers every execution of the harness. Without a bound Kani may not finish. Loop contracts (experimental) give unbounded proofs.",
      "source": "https://model-checking.github.io/kani/tutorial-loop-unwinding.html"
    },
    "core.recursion": {
      "status": "partial",
      "note": "Recursion is unrolled up to the bound like loops; function contracts (experimental) can replace recursive calls.",
      "source": "https://model-checking.github.io/kani/reference/experimental/contracts.html"
    },
    "core.higher-order": {
      "status": "partial",
      "note": "Closures and function pointer types are listed as partially supported. Unresolved function pointers are treated as a call to any function with a matching signature.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "core.concurrency": {
      "status": "none",
      "note": "Concurrent code is compiled as sequential code with a warning; data races are not detected.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "core.io": {
      "status": "unknown",
      "note": "Kani replaces print macros with its own versions; support for file, network and other system calls is not documented.",
      "source": "https://model-checking.github.io/kani/overrides.html"
    },
    "core.stdlib": {
      "status": "full",
      "note": "The real standard library is compiled into the model, except a few functions Kani replaces with its own models, which are then trusted.",
      "source": "https://model-checking.github.io/kani/soundness.html"
    },
    "rust.borrows": {
      "status": "full",
      "note": "References are handled like any other code, but Rust's aliasing rules are not checked.",
      "source": "https://model-checking.github.io/kani/undefined-behaviour.html"
    },
    "rust.traits": {
      "status": "full",
      "note": "Traits and implementations are listed as supported; type parameters as partial.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.closures": {
      "status": "partial",
      "note": "Closure types are listed as partially supported.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.unsafe": {
      "status": "partial",
      "note": "Raw pointer dereferences are checked, but aliasing violations and invalid values are not by default, and inline assembly is not supported.",
      "source": "https://model-checking.github.io/kani/soundness.html"
    },
    "rust.interior-mut": {
      "status": "partial",
      "note": "Interior mutability is listed as supported, but UnsafeCell, which it is built on, is listed as partial.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.dyn": {
      "status": "partial",
      "note": "Trait object types are listed as partially supported.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.iterators": {
      "status": "full",
      "note": "Iterator code is compiled like any other code; loops over iterators still need unwinding bounds.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.panics": {
      "status": "full",
      "note": "All panic paths are checked. Stack unwinding after a panic is not modeled.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    },
    "rust.async": {
      "status": "none",
      "note": "await expressions are listed as not supported.",
      "source": "https://model-checking.github.io/kani/rust-feature-support.html"
    }
  },
  "trust": {
    "checker": {
      "level": "amber",
      "summary": "CBMC and a SAT solver decide; no proof certificate. A proof only if unwinding checks pass.",
      "note": "A harness result is a proof for every input the harness allows only when all unwinding assertions pass (they are on by default). If a bound is too small Kani reports an unwinding-assertion failure and marks other checks UNDETERMINED. Unsupported features become failing checks when reached, but concurrent code is treated as sequential with only a warning, and the unstable --restrict-vtable flag is a known soundness issue.",
      "source": "https://model-checking.github.io/kani/soundness.html"
    },
    "semantics": {
      "level": "amber",
      "summary": "Rust model built into Kani's code generator; tested by its own regression suite.",
      "note": "Kani documents which kinds of undefined behavior it does not model, such as aliasing rules and data races.",
      "source": "https://model-checking.github.io/kani/undefined-behaviour.html"
    },
    "frontend": {
      "level": "amber",
      "summary": "rustc compiles the code; Kani's own unverified code generator translates MIR for CBMC.",
      "source": "https://arxiv.org/abs/2607.01504"
    },
    "binary_gap": {
      "level": "red",
      "summary": "The binary comes from rustc and LLVM, which are not verified."
    },
    "escape_hatches": {
      "level": "amber",
      "summary": "kani::assume, stubs and contracts can hide bugs; some vacuous checks show as UNREACHABLE.",
      "note": "Kani reports a check as UNREACHABLE for some assertion kinds when no execution reaches it, and kani::cover can test reachability. Over-constraining assumptions are otherwise found by reading the harness.",
      "source": "https://model-checking.github.io/kani/verification-results.html"
    }
  },
  "stage_evidence": {
    "public_artifact": {
      "met": true,
      "evidence": "https://github.com/model-checking/kani"
    },
    "published_use": {
      "met": true,
      "evidence": "https://arxiv.org/abs/2607.01504",
      "note": "Kani: A Model Checker for Rust (ASE 2026 industry track), with industrial case studies."
    },
    "installs_on_current": {
      "met": true,
      "evidence": "https://github.com/model-checking/kani/releases/tag/kani-0.68.0",
      "note": "Release binaries for Linux and macOS (x86-64 and Arm)."
    },
    "user_docs": {
      "met": true,
      "evidence": "https://model-checking.github.io/kani/"
    },
    "external_users": {
      "met": true,
      "evidence": "https://github.com/google/zerocopy/blob/main/zerocopy/README.md",
      "note": "Google's zerocopy crate applies Kani to prove parts of its implementation."
    },
    "soundness_channel": {
      "met": true,
      "evidence": "https://github.com/model-checking/kani/issues?q=label%3A%22%5BF%5D+Soundness%22",
      "note": "Public GitHub issues with a \"[F] Soundness\" label."
    }
  },
  "production_users": [
    {
      "org": "Amazon Web Services",
      "what": "Firecracker's I/O rate limiter and VirtIO transport checked with Kani harnesses in CI; Firecracker runs AWS Lambda and AWS Fargate.",
      "source": "https://model-checking.github.io/kani-verifier-blog/2023/08/31/using-kani-to-validate-security-boundaries-in-aws-firecracker.html"
    }
  ],
  "last_release": {
    "version": "0.68.0",
    "date": "2026-09-16",
    "source": "https://github.com/model-checking/kani/releases/tag/kani-0.68.0"
  },
  "used_for": [
    {
      "name": "Firecracker rate limiter and VirtIO transport",
      "url": "https://model-checking.github.io/kani-verifier-blog/2023/08/31/using-kani-to-validate-security-boundaries-in-aws-firecracker.html"
    },
    {
      "name": "Rust standard library verification campaign",
      "url": "https://arxiv.org/abs/2607.01504",
      "note": "The paper reports over 16000 harnesses checked on every change."
    },
    {
      "name": "Google zerocopy",
      "url": "https://github.com/google/zerocopy/blob/main/zerocopy/README.md"
    }
  ],
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://model-checking.github.io/kani/soundness.html",
      "title": "Kani soundness guarantees and limitations",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://model-checking.github.io/kani/rust-feature-support.html",
      "title": "Kani Rust feature support",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://model-checking.github.io/kani/verification-results.html",
      "title": "Kani verification results",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://model-checking.github.io/kani/tutorial-loop-unwinding.html",
      "title": "Loops, unwinding, and bounds",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://model-checking.github.io/kani/reference/attributes.html",
      "title": "Kani attributes (solver choice)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://arxiv.org/abs/2607.01504",
      "title": "Kani: A Model Checker for Rust (arXiv, 2026)",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "toolchains",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/toolchains/kani/",
      "json": "/toolchains/kani.json",
      "markdown": "/toolchains/kani.md"
    },
    "stage": {
      "stage": 1,
      "name": "Usable",
      "criteria": [
        {
          "key": "public_artifact",
          "stage": 0,
          "label": "Publicly available",
          "met": true,
          "evidence": "https://github.com/model-checking/kani",
          "computed": false
        },
        {
          "key": "published_use",
          "stage": 0,
          "label": "At least one published verification uses it",
          "met": true,
          "evidence": "https://arxiv.org/abs/2607.01504",
          "note": "Kani: A Model Checker for Rust (ASE 2026 industry track), with industrial case studies.",
          "computed": false
        },
        {
          "key": "recent_release",
          "stage": 1,
          "label": "Released or updated in the last 12 months",
          "met": true,
          "evidence": "https://github.com/model-checking/kani/releases/tag/kani-0.68.0",
          "note": "Latest release: 0.68.0, 2026-09-16.",
          "computed": true
        },
        {
          "key": "installs_on_current",
          "stage": 1,
          "label": "Installs and runs on current platforms",
          "met": true,
          "evidence": "https://github.com/model-checking/kani/releases/tag/kani-0.68.0",
          "note": "Release binaries for Linux and macOS (x86-64 and Arm).",
          "computed": false
        },
        {
          "key": "user_docs",
          "stage": 1,
          "label": "User documentation or tutorial",
          "met": true,
          "evidence": "https://model-checking.github.io/kani/",
          "computed": false
        },
        {
          "key": "external_users",
          "stage": 1,
          "label": "Used by a group other than its authors",
          "met": true,
          "evidence": "https://github.com/google/zerocopy/blob/main/zerocopy/README.md",
          "note": "Google's zerocopy crate applies Kani to prove parts of its implementation.",
          "computed": false
        },
        {
          "key": "production_users",
          "stage": 2,
          "label": "Verified code in production at two or more independent organizations",
          "met": false,
          "note": "1 recorded: Amazon Web Services.",
          "computed": true
        },
        {
          "key": "checker_not_red",
          "stage": 2,
          "label": "Checker axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "semantics_not_red",
          "stage": 2,
          "label": "Semantics axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "soundness_channel",
          "stage": 2,
          "label": "Public channel for soundness bugs",
          "met": true,
          "evidence": "https://github.com/model-checking/kani/issues?q=label%3A%22%5BF%5D+Soundness%22",
          "note": "Public GitHub issues with a \"[F] Soundness\" label.",
          "computed": false
        }
      ],
      "missing_for_next": [
        "production_users"
      ]
    }
  }
}