By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: BraintrustPublished August 2, 2026

TL;DR: Red-team findings in LLM applications only become durable release evidence when teams define expected safe behaviour, version the case, and rerun it after changes, according to Braintrust. The governance problem is not discovery alone, but preserving confirmed risks as regression tests that still matter after prompts, retrieval, or tool permissions change.


At a glance

What this is: This article explains how to turn LLM red-team outputs into versioned regression tests, using tools like Garak and PyRIT for discovery and Braintrust for ongoing evaluation.

Why it matters: It matters to IAM, NHI, and AI security teams because tool calls, retrieval context, and agent behaviour can create identity-like trust decisions that need repeatable control, not one-off testing.

By the numbers:

👉 Read Braintrust's guide to operationalizing LLM red team findings


Context

LLM red team output is only useful if it survives the next model change, prompt edit, retrieval update, or tool-permission tweak. That is the core governance gap: discovery finds a weakness once, but release control needs a durable case, a clear expected-safe outcome, and a way to rerun the same risk after the system changes.

In practice, this sits at the intersection of AI governance and identity control. When an application can expose sensitive context or trigger tool actions, the real issue is not just model quality, but whether the system has governed permissions, traces, and repeatable evaluation. For teams that already manage human IAM, NHI, or agentic AI risk, this is a familiar lifecycle problem in a new form.


Key questions

Q: How should security teams turn LLM red team findings into regression tests?

A: Capture each confirmed attack as a labeled evaluation case with the original input, the unsafe output, and the approved safe behaviour. Then attach a scorer that checks the specific failure mode, run it after behaviour-changing updates, and make safety-critical regressions block release. The test should enforce the policy violation the red team found, not general response quality.

Q: Why do local AI agents complicate identity and access management?

A: They can retain legitimate permissions while changing timing, prioritisation, and action sequence outside human presence. That means the visible identity may remain stable even as the operational behaviour becomes autonomous. IAM teams then lose the simple link between user session, authorisation, and accountability.

Q: What breaks when red-team findings are not versioned and rerun?

A: Findings decay into documentation instead of control. Once the system changes, teams lose the baseline that shows whether a vulnerability returned, a guardrail moved, or the expected safe behaviour still holds. Without version history and reruns, release decisions depend on memory rather than evidence.

Q: Who should own known-risk AI evaluation cases in production?

A: Security, AI platform, and product teams should share the mechanics, but one named owner must control rerun criteria, case retirement, and the expected-behaviour definition. That ownership matters because the case is part of release governance, not an isolated red-team file. If no one owns it, the suite will drift and lose authority.


Technical breakdown

How Garak and PyRIT turn discovery into reusable cases

Garak and PyRIT are discovery tools, but they work differently. Garak runs broad probes and detector-based checks across categories such as prompt injection, data leakage, encoding attacks, and package hallucination. PyRIT is better suited to custom adversarial campaigns, including multi-turn conversations that mimic how an attacker might steer a model or agent toward a goal. The important technical point is that both tools generate evidence, not governance. Their outputs become valuable when a team preserves the exact adversarial input, the expected safe behavior, and the context that made the case worth repeating.

Practical implication: preserve confirmed findings as versioned test cases, not as one-off scan output.

Why scorers matter more than prompts in regression testing

A prompt by itself does not define whether a system is safe. A regression test needs a scorer that evaluates the response against the expected safe behavior after the fix. Deterministic checks work when the failure signal is explicit, such as a leaked secret or an unauthorized tool call. Classifiers or LLM judges are better when the safe response depends on context, retrieved content, or agent action. This is especially important for prompt injection, where the risk is often not only refusal quality but whether the application withholds context and blocks the downstream action the attacker wanted.

Practical implication: tie each case to the specific unsafe behaviour you need to prevent or detect.

Why versioned datasets and immutable experiments change release control

Braintrust's role in this workflow is persistence. Versioned datasets keep confirmed cases available after the original red-team campaign ends, and immutable experiments let teams compare current behaviour against prior runs. That matters because the effective control boundary can move when a model, prompt, retrieval source, or tool permission changes. Without version history, teams lose the evidence needed to decide whether a regression is new, expected, or acceptable. For AI governance, that creates a release process that can prove control drift instead of merely claiming it does not exist.

Practical implication: run high-severity cases in CI and keep baseline results so regressions are visible before release.


Threat narrative

Attacker objective: The attacker aims to turn a one-time prompt or conversation into reliable exploitation of model behaviour, tool access, or sensitive context exposure.

  1. Entry begins with adversarial prompts or multi-turn conversations that expose unsafe model behaviour in a target application.
  2. Escalation occurs when the model or agent follows injected instructions, reveals sensitive context, or attempts an unauthorized tool action.
  3. Impact is a repeatable failure mode that can be preserved as a regression case, allowing the same weakness to recur after later changes.

NHI Mgmt Group analysis

Confirmed LLM red-team findings are not testing artefacts, they are governance records. Once a case exposes a real failure, it must be treated as durable release evidence with metadata, ownership, and rerun conditions. That aligns closely with NHI governance, where the lifecycle of a credential or secret matters more than the moment it was first discovered. The same discipline now applies to AI systems that can read context or call tools, and teams should manage those cases as controlled security assets.

Agentic AI creates an identity and permission problem, not just a model-risk problem. When a system can retrieve data or invoke tools, it behaves like a governed actor whose privileges must be tested repeatedly. This is where OWASP Agentic AI Top 10 and NIST AI RMF thinking converge with IAM practice: access, context, and action need continuous validation. Practitioners should treat multi-turn exploits as evidence that permissions and guardrails are part of the attack surface, not just deployment details.

There is now a distinct control gap we can call regression-test debt. Organisations often discover risks faster than they can turn them into maintained evaluation cases, so known failures fade out of the release process. That debt grows whenever red-team output, production traces, and security review findings sit in separate workflows. The practical conclusion is simple: if a risk is real enough to block release, it is real enough to live in a versioned dataset.

Tooling separation still matters, but governance ownership matters more. Garak and PyRIT are useful for discovery, yet they do not by themselves create accountable control. The field is moving toward an operating model where discovery, scoring, evidence retention, and CI enforcement sit together. For identity and AI security teams, the lesson is to define who owns the case, who approves reruns, and what change invalidates the prior safe result.

AI safety work is converging with security control design. The article's workflow mirrors how mature IAM and PAM programmes handle privileged behaviour: detect, define, preserve, and recheck. That same pattern will increasingly shape agent governance, especially where AI systems can touch credentials, sensitive data, or production tools. Practitioners should expect evaluation suites to become part of the control plane rather than a separate testing function.

What this signals

Regression-test debt will become one of the most useful ways to describe AI governance maturity. Teams that can discover issues but not preserve and rerun them will keep reliving the same failures at release time, especially as prompts, retrieval sources, and tool permissions evolve.

The practical signal for readers is whether red-team output has entered the same operational path as IAM controls, with ownership, versioning, and rerun criteria. If it has not, the organisation is still treating AI security as a testing exercise rather than a governed control surface.

The broader shift is toward evaluation suites that behave like security policy: repeatable, auditable, and tied to release decisions. That is the right direction for AI systems that can touch credentials, data, and tools, because the risk sits in runtime behaviour, not just model quality.


For practitioners

  • Preserve confirmed red-team findings as governed cases Store the adversarial input or transcript, expected safe behaviour, source, severity, owner, and rerun condition in a versioned dataset so the case survives model, prompt, and tool changes.
  • Define scorers against the specific unsafe action Use deterministic checks for clear signals such as secret leakage or unauthorized tool calls, and use rubric-based scoring when the risk depends on context or conversation flow.
  • Run high-severity cases in CI Gate pull requests and release candidates on the cases most likely to reintroduce prompt injection, data leakage, or unsafe agent behaviour, using the same dataset version for comparison.
  • Promote production traces into the same evaluation suite Review live logs and traces, convert confirmed failures into test cases, and retire separate incident-only records so the release process reflects the current attack surface.
  • Assign ownership for reruns and case retirement Make one team accountable for when a case must rerun, when its expected behaviour changes, and when it can be retired because the underlying product requirement genuinely changed.

Key takeaways

  • LLM red-team findings only create security value when teams preserve them as versioned, rerunnable cases tied to expected safe behaviour.
  • The evidence suggests AI agents are already crossing intended boundaries at scale, so evaluation must move from discovery into release governance.
  • Practical control now depends on ownership, scoring, and CI enforcement, not on one-off scans or campaign reports.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A1The article centres on prompt injection, tool misuse, and agent behaviour.
NIST AI RMFMANAGEThe workflow operationalizes governance, monitoring, and lifecycle control for AI risk.
NIST AI 600-1The post addresses evaluation, provenance, and ongoing AI risk management.
MITRE ATLASTA0002 , Execution; TA0006 , Credential AccessAdversarial prompts and agent misuse map to execution and credential-risk behaviours.
NIST CSF 2.0PR.AC-4Access and permission governance is central when models can invoke tools or expose context.

Use MANAGE to turn confirmed AI failures into tracked, repeatable release controls.


Key terms

  • Regression Test Debt: The accumulation of confirmed AI failure cases that are discovered but not preserved, versioned, and rerun. In practice, it means organisations keep finding the same weakness because the evidence never becomes part of the release control process.
  • Expected Safe Behaviour: The specific response or action a system should produce after a known risk has been fixed. It defines the pass condition for a regression case and is essential when model output, tool use, or context handling can vary across runs.
  • Versioned Evaluation Dataset: A controlled collection of tests, transcripts, and metadata that is kept under version history so teams can rerun known-risk cases over time. It turns red-team findings into durable governance artefacts instead of one-off discovery records.
  • Multi-Turn Attack: An adversarial sequence that pressures an AI system across several interactions instead of a single prompt. This matters because many agent failures emerge gradually, as context, memory, and tool use interact over time and steer the system away from its intended purpose.

What's in the full article

Braintrust's full article covers the operational detail this post intentionally leaves for the source:

  • Step-by-step guidance on turning confirmed red-team output into a dataset-backed regression suite for release governance.
  • Examples of scoring approaches for secret leakage, unauthorized tool calls, and multi-turn prompt-injection behaviour.
  • Workflow detail on using production logs and trace review to promote real failures into reusable tests.
  • How to compare immutable experiment results across releases when the model, prompt, or retrieval layer changes.

👉 Braintrust's full article covers versioned datasets, scorer design, and CI-based release checks for confirmed failures.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management in a way that helps practitioners connect identity controls to runtime risk. It is relevant for security teams building repeatable governance around AI systems, service accounts, and other non-human identities.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org