Source: The Register

For End Users

Microsoft released two open-source tools for building safer AI agents. RAMPART is a red-team testing framework. CAIRN is a design-review agent that asks hard questions before you write code.

The goal is to make AI safety an engineering discipline, not a philosophy. RAMPART runs automated attack scenarios in your CI/CD pipeline. CAIRN acts like an experienced architect who challenges your requirements before you build.

Both tools plug into existing agent frameworks. They run locally.

For Engineers and Researchers

RAMPART stands for Risk Assessment and Measurement Platform for Agentic Red Teaming. It is built on Microsoft's PyRIT toolkit.

Key capabilities:

  • Embeds automated red-team tests into CI/CD
  • Simulates prompt injection and other attack scenarios
  • Supports statistical trials (e.g., "safe in 80% of runs")
  • Reproduces findings across multi-turn conversations
  • Tests mitigations against multiple attack variants

Microsoft's AI red team used RAMPART to take one reported attack vector, find close to 100 variants, and test them 300 times across the target application. The developers then built mitigations and used RAMPART to verify those fixes.

CAIRN is a structured sounding board. You tell it what you want to build. It responds with the questions an architect, product manager, and safety engineer would ask.

Example: You say you want real-time collaboration in a document editor. CAIRN asks whether you need true real-time cursors or just "no one loses work." Those lead to very different architectures.

Both tools are on GitHub under open licenses. RAMPART is a pytest framework. CAIRN is an agent you interact with before coding.

The Skeptical Take

Microsoft has a track record of releasing open-source tools and then letting them drift. The real question is maintenance and community adoption six months from now.

RAMPART's "safe in 80% of runs" framing is honest about probabilistic behavior, but it also lowers the bar. An 80% safety rate means one in five runs is unsafe. That is not acceptable for high-stakes agent actions like financial transfers or medical decisions.

CAIRN is a clever prompt wrapper around a frontier model. The questions it asks are valuable, but they are not novel. Any experienced engineer asks the same things. The value is in forcing the conversation to happen before code is generated, not in the answers themselves.

The bigger issue: these tools treat symptoms. They do not change the fact that LLMs are inherently probabilistic and can be jailbroken. No amount of red-teaming removes the underlying risk.

RAMPART and CAIRN are useful additions to the safety toolkit. They are not a safety guarantee.

Word count: ~430

Written at: 2026-05-22T01:26:00Z