# Microsoft FORGE Lab finds soundness bugs in Rust's core and std with agentic scanning

> Source: <https://www.microsoft.com/en-us/security/blog/2026/11/09/forge-lab-uses-agentic-tools-to-identify-memory-safety-issues-in-rust/>
> Published: 2026-11-09 00:00:00+00:00

**Recommendation:** Point agentic scanners at boundaries static analyzers can't model, such as Rust's interface with the OS, and triage findings by trust pattern: panic-while-broken invariants, inconsistent caller-supplied implementations, and shared process-wide state.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

Microsoft's FORGE Lab used Hyenas, its research version of the MDASH agentic scanner, to look for soundness bugs in Rust's core and std libraries, including cases where safe Rust can trigger undefined behavior. The team grouped the findings into three patterns of misplaced trust: code that panics while an invariant is broken, caller-supplied implementations that return inconsistent results, and process-wide state shared with the kernel or C library. Examples included a panic-safety bug in MapWindows::clone, a str::replace fast path that could produce a non-UTF-8 String from a custom Pattern, and a process::exit path that unmapped the main thread's alternate signal stack. Two issues were still open at publication, and the team said the boundary between Rust and the operating system is a promising area for agentic research because static analyzers struggle to model it.
