# FORGE Lab uses agentic tools to identify memory safety issues in Rust

DevFeed: [FORGE Lab uses agentic tools to identify memory safety issues in Rust](<https://devfeed.tech/articles/forge-lab-uses-agentic-tools-to-identify-memory-safety-issues-in-rust-124340.md>)

Original publisher: [Read original article](<https://www.microsoft.com/en-us/security/blog/2026/11/09/forge-lab-uses-agentic-tools-to-identify-memory-safety-issues-in-rust/>)

Author: Yechan Bae and FORGE Lab

Published: 2026-11-09T20:17:31Z

Content type: article

Language: en

Sources: [Microsoft Security](<https://devfeed.tech/sources/microsoft-security-blog.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Memory safety verification](<https://devfeed.tech/topics/memory-safety-verification.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [software security audit](<https://devfeed.tech/topics/software-security-audit.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>), [ai code review](<https://devfeed.tech/topics/ai-code-review.md>)

Tags: [2015](<https://devfeed.tech/tags/2015.md>), [2020](<https://devfeed.tech/tags/2020.md>), [2021](<https://devfeed.tech/tags/2021.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-security](<https://devfeed.tech/tags/agentic-security.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted](<https://devfeed.tech/tags/ai-assisted.md>), [ai-powered](<https://devfeed.tech/tags/ai-powered.md>), [analyzer](<https://devfeed.tech/tags/analyzer.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [forge](<https://devfeed.tech/tags/forge.md>), [frontier-ai-models](<https://devfeed.tech/tags/frontier-ai-models.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [research](<https://devfeed.tech/tags/research.md>), [rust](<https://devfeed.tech/tags/rust.md>), [security](<https://devfeed.tech/tags/security.md>), [tools](<https://devfeed.tech/tags/tools.md>), [undefined-behavior](<https://devfeed.tech/tags/undefined-behavior.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

Microsoft FORGE Lab used Hyenas, its research version of codename MDASH, to help investigate and validate Rust standard-library soundness bugs. The researchers group the failures into three patterns: unsafe code may unwind while an invariant is broken; it may rely on caller-provided safe implementations behaving correctly; or it may assume operating-system and process-wide state remains unchanged. Examples include a panic during `MapWindows::clone` exposing uninitialized values to a destructor, a custom `Pattern` producing invalid UTF-8 through `str::replace`, and process cleanup unmapping the main thread's signal stack. The article also describes environment races in `CommandExt::exec`. Rust maintainers fixed or reviewed several reported issues; at publication, two team-reported issues remained open. The authors stress that a soundness bug is not automatically an exploitable vulnerability: triggering the reported cases may require unusual conditions, and they found no reliable exploitation path for the signal-stack issue under the conditions examined. They argue that AI-assisted analysis can help search system boundaries that traditional static analysis has difficulty modeling.

## Source excerpt

Microsoft FORGE Lab researchers found memory-safety bugs in Rust's core and std libraries, including cases where safe Rust code can trigger undefined behavior. Using Hyenas, FORGE's frontier research version of codename MDASH, the team investigated three patterns of misplaced trust in unsafe code and what they reveal about Rust's safety guarantees. The post FORGE Lab uses agentic tools to identify memory safety issues in Rust appeared first on Microsoft Security Blog.