Microsoft Open-Sources RAMPART and Clarity to Secure AI Agents During Development
Microsoft Open-Sources RAMPART and Clarity to Secure AI Agents During Development — Ravie LakshmananMay 20, 2026Artificial Intelligence / Security Testing [
What’s new: Microsoft has open-sourced two tools, RAMPART and Clarity, aimed at enhancing the security testing of AI agents during development. RAMPART is a Pytest-native framework for conducting safety and security tests, while Clarity serves as a structured guide for developers to clarify their design intent and assumptions before coding.
Who’s affected
Developers and product managers involved in AI agent development may benefit from these tools, as they provide mechanisms to identify and address potential security issues early in the development process.
What to do
- Explore RAMPART for writing and running security tests on AI agents to identify vulnerabilities like cross-prompt injections and unintended behavioral regressions.
- Utilize Clarity to facilitate discussions around design intent and assumptions before starting development, ensuring potential issues are addressed early.
- Integrate these tools into your development workflow to enhance AI safety and security practices.



