zkDTVM's circuits, runtime, prover, and verifiers have not undergone a formal third-party security audit. Do not use zkDTVM in production without an independent security audit.
For protocol parameters, soundcalc soundness bounds, and reproduction commands, see the Security Analysis.
zkDTVM is in alpha. Security fixes are applied only to the latest release and the default branch.
Report vulnerabilities through GitHub private vulnerability reporting. Do not open a public issue or publish exploit details before the report has been addressed.
Please include:
- the affected commit SHA or release tag;
- the affected component (
runtime,rv32-air,recursion,prover-core,whir-pcs,verifier,cuda, orguest); - minimal reproduction steps and the observed security impact (soundness, completeness, memory safety, or denial of service).
Do not include private keys, credentials, or sensitive third-party data in reports.
- Authenticate every proof against an externally trusted 32-byte
SealKey. Derive theSealKeyfrom the trusted guest ELF andOutputHashchoice (zkdtvm key --elf ...orzkdtvm::derive_seal_key) and distribute it through a trusted configuration channel. Never derive trust from key material carried inside an untrusted receipt or proof envelope. - Loading or proving does not establish trust.
Receipt::from_bytesonly parses wire bytes, andApp::provereturns an unverifiedReceipt. Thezkdtvm proveCLI performs an extra local self-check before writing output files, which does not replace verification on the receiving side. Before acting on any public output, callVerifier::verify_receipt,Verifier::verify_seal,zkdtvm verify,zkdtvm-verify, or the WASMseal_verifyexport with your own trustedSealKey. - Check guest exit status and public outputs. Every verifier requires guest exit code
0and checks the public-output digest (SHA-256orBLAKE3).- Receipt verification authenticates the public bytes embedded in the receipt.
- Bare Seal verification with expected public bytes checks them directly.
- Bare Seal verification without public bytes returns the authenticated
VerifiedSeal.output_digest; the caller must compare it with its expected digest.
- Treat prover-reported cycle counts as unauthenticated metadata.
Receipt::cycles()is intended for operational accounting only. When execution cycles are part of an application contract, compare them against an independent execution of the same ELF (zkdtvm::execute). - Ship verifier binaries and catalogs together.
zkdtvm-verifierembeds the baked Seal AIR catalog (seal-air.deflate) that everySealKeycommits to. Mismatched verifier and catalog releases fail verification cleanly.
- Set resource budgets on CPU and GPU provers for untrusted inputs. When proving external ELFs or inputs, configure
with_max_elf_words,with_cycle_limit, andwith_io_limitsonCpuConfigorGpuConfig.CpuConfigandGpuConfigboth default to unbounded execution and I/O limits for trusted offline workloads. The standalonezkdtvm::execute(elf, input)helper takes noCpuConfigand runs without limits; isolate untrusted dry runs externally or run them through a budgetedProver::cpuconfiguration. - Protect native AOT
.socaches and libraries. On Linux x86-64, compiled AOT shared libraries execute host machine code viadlopen. Build them with a trusted toolchain into a builder-owned writable directory, then publish the ELF, keys, and.soartifacts together into a read-only runtime directory whose parent directories are also protected. Keep writable build, AOT, and CUDA caches separate and restricted to trusted identities, and never overwrite a shared library while it is loaded. Re-hashing a file beforedlopendoes not defend against an attacker-writable directory. - Guest randomness is deterministic. Guest
getrandom/sys_randexpands a fixed public seed (0x123456789abcdef0) for reproducible execution only. Never use it for private keys, signing nonces, or zero-knowledge blinding.