Agentic Discovery of Soundness Bugs in Safe Rust Bindings
minor signal 16
Paper studying LLM agents as auditors of safe Rust bindings over unsafe code. Agents found undefined-behavior and wrapped-library-divergence defects unprompted but few incomplete unsafe contracts even when asked; findings were almost always real, yet triage was weak (seldom confirmed with a sanitizer, stopped early). With the same guidance, an open model matched a closed model's defect count at a quarter of the cost. The resulting system, Crustify, found 225 undefined-behavior bugs across 16 widely used crates including bindings to OpenSSL, SQLite, libgit2, libcurl and V8.
Action: If you audit FFI bindings, pair agentic review with sanitizer confirmation and explicit triage steps, since agents under-confirm and stop early.
Migration effort: none
Cited
Agentic Discovery of Soundness Bugs in Safe Rust Bindings arxiv-ai · community · 2026-11-24