Microsoft Open-Sources RAMPART and Clarity to Secure AI Agents During Development

Microsoft has taken a significant step toward securing the future of AI development by open-sourcing two critical tools: RAMPART and Clarity. Released on May 20, 2026, these tools represent a shift from treating AI safety as a one-time checkpoint to embedding it as a continuous engineering discipline throughout the development lifecycle.

RAMPART: Continuous Red Teaming for AI Agents

Risk Assessment and Measurement Platform for Agentic Red Teaming (RAMPART) is an open-source, pytest-native framework designed for continuous safety and security testing of AI agents. Built on Microsoft’s earlier PyRIT (Python Risk Identification Tool), RAMPART enables engineering teams to encode adversarial and benign scenarios as repeatable tests within their CI/CD pipelines.

As AI systems evolve from simple text generators to autonomous agents capable of executing actions across connected systems, the attack surface expands dramatically. RAMPART addresses this by focusing on:

  • Cross-prompt injection attacks – preventing malicious prompts from hijacking agent behavior
  • Unintended behavioral regressions – catching safety issues before they reach production
  • Data exfiltration risks – ensuring agents don’t leak sensitive information

The framework allows teams to convert red-team findings and AI incidents into lasting regression coverage, ensuring that once a vulnerability is discovered and fixed, it stays fixed.

Clarity: Design-Time Safety Before Code

While RAMPART handles testing during development, Clarity operates even earlier in the process. Described as a “structured sounding board,” Clarity guides development teams through critical conversations before a single line of code is written.

Clarity walks engineers through four key phases:

  1. Problem Clarification – defining what the agent should actually do
  2. Solution Exploration – considering multiple approaches and their trade-offs
  3. Failure Analysis – identifying what could go wrong and how to prevent it
  4. Decision Tracking – documenting design intentions and assumptions for future reference

By forcing teams to think through risks upfront, Clarity helps prevent costly design mistakes that are far harder to fix after deployment.

Why Open Source Matters

Microsoft’s decision to open-source both tools signals a recognition that AI security cannot be solved by any single organization. As AI agents gain more autonomy and integrate deeper into enterprise systems, the entire ecosystem benefits from shared, practical tools that operationalize safety.

Both RAMPART and Clarity can be deployed flexibly—RAMPART integrates into existing testing pipelines, while Clarity can run as a desktop app, web UI, or even embedded directly into a coding agent.

The Bottom Line

For organizations building AI agents, these tools offer a pragmatic path forward. Instead of treating safety as an afterthought or a compliance checkbox, RAMPART and Clarity embed security into the fabric of development—catching issues early, testing continuously, and documenting decisions transparently.

In an era where AI agents can execute transactions, access databases, and interact with users autonomously, this shift from reactive to proactive security isn’t just best practice—it’s essential.

Tzar C. Umang is a technology leader with over 15 years of experience making new technologies work for different industries. As the Chief Technology Officer at Makerspace Innovhub OPC and the Lead Developer for SUI Philippines, he leads projects that create growth and opportunities for everyone. With a strong background in blockchain development, AI engineering, and cybersecurity, Tzar has worked with organizations like the DOST Smarter Philippines Project Management Office and US startup Auto Genie. He is committed to helping the next generation of tech professionals, serving as a cybersecurity instructor at the University of Luzon and a mentor for the Saleng Mentors Group. In his free time, Tzar focuses on building practical solutions for education, healthcare, and new businesses.

Site Footer