DEV Community

Cover image for Microsoft Open-Sources RAMPART and Clarity to Improve AI Agent Security
Deepak Sharma
Deepak Sharma

Posted on

Microsoft Open-Sources RAMPART and Clarity to Improve AI Agent Security

Microsoft has released two new open-source tools, RAMPART and Clarity, to help developers build safer and more secure AI agents during the development process.

RAMPART, short for Risk Assessment and Measurement Platform for Agentic Red Teaming, is designed as a testing framework for AI agents. It allows developers to write and run security and safety tests that check how an AI agent behaves under different conditions, including both normal use cases and adversarial scenarios.

One of the key areas RAMPART can help test is prompt injection. This includes cases where untrusted content from emails, files, web pages, or other data sources influences the AI system in unintended ways. The tool can also help detect behavioral regressions, data leakage risks, and other safety failures before the agent is deployed.

RAMPART works by connecting an AI agent to a test suite through an adapter. Developers can then run structured tests and review the results. The tool builds on Microsoft’s earlier AI security testing work, including PyRIT, but is more focused on helping engineers test agents while they are still being built.

Clarity takes a different approach. Instead of testing code after it exists, it helps teams think through design decisions before development begins. Microsoft describes Clarity as an AI thinking partner that helps clarify the problem, explore solutions, analyze possible failures, and track important decisions.

Together, RAMPART and Clarity aim to move AI safety from a one-time review into a continuous development practice. This is important because AI agents often interact with tools, data, and external systems, which can create new security risks if not tested properly.

Cybersecurity companies like IntelligenceX help organizations understand and reduce AI-related risks through AI security assessment, threat modeling, secure development practices, and continuous monitoring.

As AI agents become more common in business workflows, developers need security built into every stage of development, not added only after deployment. RAMPART and Clarity show how AI safety can become a practical part of the engineering lifecycle.

Top comments (0)