Microsoft Research

Verifying Rust cryptography in SymCrypt, from standards to code

Cryptographic code supports vital protections in modern computing systems. Learn how a new method helps verify code as developers write it while preserving speed and adaptability as it gets implemented and evolves.

arXiv AI
Oct 19

An AI Approach to Verified Production Cryptographic Libraries

The paper introduces CryptoProver, an AI-driven system that automatically generates internal specifications and formally verified proofs for cryptographic libraries based on high-level API contracts. CryptoProver successfully produced a new independent proof for the Rust library curve25519-dalek and verified the previously unverified chacha20 implementation against RFC 8439, all without modifying the original executable code. The system operates within a trust-first framework, rejecting specification weakening and cross-module breakage, and completed the synthesis in 11.4 hours with a modest API cost.

By Chuyue Sun, Su Fong, Zhiyi Kuang, Yizheng Jiao, Nina Narodytska, Haoze Wu, David L. Dill, Clark Barrett
Microsoft Research
Oct 15

Proof-based general-purpose computing with Magnetar

Microsoft Research introduces Magnetar, a system that enables zero‑knowledge proofs to verify computing results without rerunning workloads or exposing sensitive data. Magnetar supports standard programming languages, delivers major speed gains, and offers quantum‑resistant security, aiming to bring zero‑knowledge proofs into mainstream computing.

By Srinath Setty
arXiv AI
Jul 7

RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities

arXiv:2607. 04729v1 Announce Type: cross Abstract: LLM agents are increasingly applied to vulnerability analysis, but existing benchmarks have not kept pace.

By Tarek Elsayed, Shiping Yang, Eunsong Koh, Sanika Goyal, Vincent Huang, Paul Ngo, Nathan Young, Mohammad Omidvar Tehrani, Alvyn Kang, Arnell Kang, Zeyu Chen, Ang\'elica Moreira, Xuan Feng, Angel X. Chang, Nick Sumner, Steven Y. Ko
Microsoft Research
Nov 5

Formally verifying agent-written full-stack web apps with PDD Kit

Microsoft Research introduces PDD Kit, a tool that formally verifies code generated by AI agents for full‑stack web applications. By translating developer intent into Verus specifications, PDD Kit proves that the AI‑written code satisfies these specifications for all inputs, supplementing proofs with tests when necessary. This approach allows developers to review high‑level intent rather than inspecting every line of code.

By Alex Lavaee, Matthai Philipose
arXiv AI
Sep 10

Scratchy: Visual-Scratchpad Multimodal Reasoning for Cryptographic Proof Generation in EasyCrypt

Scratchy introduces a visual-scratchpad method for generating cryptographic proofs in EasyCrypt by converting natural-language security descriptions into a typed proof-relation graph and then into a visual proof state that guides multimodal language models. The approach exposes implicit proof-theoretic dependencies that LLMs struggle with, enabling clearer coordination of probability, adversarial games, invariants, assumptions, and bounds. Scratchy-eval, a 114-task dataset from official EasyCrypt files, demonstrates that classical LLMs achieve significant gains when using these structured visual proof states.

By Yupeng Ren, Zhaoxuan Li, Rui Zhang