By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: PromptfooPublished August 14, 2025

TL;DR: AI red teaming is a proactive way to expose prompt injection, data leakage, and model misconfiguration before AI systems reach production, according to Promptfoo’s analysis of open-source tooling and attack simulation practices. The governance gap is that traditional security controls do not model multi-turn, context-driven AI abuse well enough to catch these failures early.


At a glance

What this is: This is an analysis of why AI red teaming matters for LLM security, with a focus on prompt injection, data leakage, model misconfiguration, and tooling that can simulate adversarial behaviour.

Why it matters: It matters because IAM, PAM, and AI governance teams need testing methods that surface how AI systems behave under attack, including where role-based access controls and sensitive-data boundaries break down.

👉 Read Promptfoo’s analysis of open-source AI red teaming tools and methods


Context

AI red teaming is the practice of stress-testing AI systems with adversarial prompts, multi-turn attacks, and context manipulation to find failures before production. In LLM environments, the security problem is not just bad output quality, but whether the system can be steered into leaking data, bypassing policy, or using connected tools in unsafe ways.

That matters to identity practitioners because AI systems increasingly sit on top of human identity, NHI, and delegated access patterns. When an AI workflow can call tools, retrieve data, or act inside a business process, the question becomes whether its permissions, secrets, and guardrails are governed like any other privileged runtime. This is now a mainstream programme issue, not a niche AI-testing concern.


Key questions

Q: How should security teams use AI red teaming results in production governance?

A: Security teams should treat red team results as control evidence, not as a finished deliverable. Every finding should map to a runtime policy, a logging requirement, or an enforcement gap that can be tracked to closure. If a weakness cannot be tied to a production control, the organisation has only identified exposure, not reduced it.

Q: Why do tool-connected LLMs create governance risk for IAM teams?

A: Tool-connected LLMs create governance risk because they can turn language into action across permissioned systems. Once the model can reach tickets, code, data, or infrastructure, the question becomes who authorized the action path and how much side effect that path can create before review. That is an identity and delegation issue, not only a model-safety issue.

Q: What do security teams get wrong about prompt injection defence?

A: They often assume better blocklists will solve the problem, but obfuscation simply changes the shape of the payload. Real defence requires examining meaning across the full interaction, including retrieved content and model responses. If the control cannot interpret intent, it will keep missing the attack class it is meant to stop.

Q: How do you know whether AI red teaming is actually improving governance?

A: Look for repeatable reductions in high-severity findings, clearer ownership of model and tool permissions, and evidence that tests are blocking risky releases. If findings are interesting but do not change access scope, secrets handling, or deployment decisions, the programme is producing noise rather than control.


Technical breakdown

Prompt injection and context manipulation in LLM security

Prompt injection is an input manipulation technique that tries to override instructions, redirect behaviour, or extract hidden context from an LLM-based system. Multi-turn attacks are especially effective because the adversary can build trust or gradually reshape the conversation until the model complies. Base64 encoding, formatting tricks, emoji noise, and context flooding are all ways to bypass shallow filters. The core technical issue is that model behaviour is conditional on surrounding text, retrieved data, and system prompts, which makes security evaluation different from traditional application testing.

Practical implication: security teams need testing that exercises full conversation paths, not just one-off prompt checks.

AI red teaming for tool use, MCP, and delegated access

As LLMs connect to tools and data sources, the attack surface shifts from text generation to action execution. A model that can invoke APIs, browse data, or trigger workflows can be manipulated into abusing those connections if its tool permissions are too broad or its context is weakly constrained. This is where NHI governance becomes relevant: the model may not be a human user, but it still consumes secrets, tokens, and delegated permissions as a runtime identity. Red teaming therefore has to cover connected systems, not just model outputs.

Practical implication: test tool-connected AI systems for privilege misuse, secret exposure, and unsafe delegation before rollout.

Why automation, scoring, and CI/CD matter for AI security

AI red teaming becomes operationally useful when it fits into software delivery. Automated attack generation, scoring, and reporting turn adversarial testing into something teams can repeat at scale, compare over time, and include in release gates. This matters because AI systems change quickly, and manual review alone cannot keep pace with prompt updates, model swaps, and plugin changes. Open-source tooling also lowers friction for teams that need adaptable tests rather than rigid scan-only workflows.

Practical implication: fold red teaming into CI/CD so regressions in model behaviour are caught before deployment.


Threat narrative

Attacker objective: The attacker wants to steer the AI system into unsafe behaviour that exposes data, abuses delegated access, or corrupts downstream actions.

  1. Entry occurs through crafted prompts, prompt injection, or context poisoning that manipulates the model’s instruction hierarchy.
  2. Escalation follows when the model reveals hidden context, bypasses safeguards, or abuses connected tools and permissions.
  3. Impact is achieved when the attacker extracts sensitive data, causes unsafe actions, or degrades the integrity of AI-supported decisions.

NHI Mgmt Group analysis

AI red teaming is now an identity governance problem, not just a model-testing problem. Once an LLM can retrieve data, call tools, or trigger workflows, its operational risk starts to resemble privileged runtime access. That means the programme has to care about secrets, entitlements, and auditability in the same way it would for any other high-trust system. The practical conclusion is that AI security and IAM can no longer be separated at the governance layer.

Prompt injection exposes a control gap that traditional application security was never designed to close. Conventional scanners are good at code and configuration flaws, but they do not reliably model conversational manipulation, multi-turn coercion, or hidden-context abuse. This creates a distinct failure mode that can persist even when the underlying application stack looks compliant. The practical conclusion is that AI-specific testing has to complement, not replace, standard secure SDLC controls.

Tool-connected LLMs create a new class of NHI exposure. A model that holds API tokens or delegated access behaves like a non-human runtime identity, even if the business still describes it as “just an assistant.” That introduces familiar identity problems in a new wrapper: over-scoped access, poor secret segregation, weak audit trails, and unclear ownership. The practical conclusion is that AI systems need explicit identity, privilege, and lifecycle controls.

Open-source red teaming tools are becoming part of the control plane for AI governance. Their value is not only affordability but repeatability, customisation, and the ability to embed tests into engineering workflows. That matters because AI risk changes too quickly for occasional manual review to be enough. The practical conclusion is that organisations should treat red teaming as a recurring governance control, not a one-time assessment.

Attack simulation is only useful when it produces actionable operational evidence. Scoring, reporting, and compliance mapping matter because teams need to decide whether a finding is a model issue, an access issue, or a process issue. The emerging concept here is LLM governance debt: the gap between rapid AI adoption and the controls needed to supervise it at runtime. The practical conclusion is that governance teams should measure AI risk in terms they can remediate, not just observe.

What this signals

LLM governance debt: AI teams are shipping capability faster than they are shipping control, and that gap will keep widening as tools, prompts, and models change more often than policy can keep up. For programmes that already have identity governance pressure, the immediate task is to decide which AI workflows are effectively privileged systems and bring them into the same review, logging, and approval model used for other high-risk access paths.

Security leaders should expect red teaming to move from a niche testing practice into a routine evidence source for AI governance. The practical signal is whether findings feed into access scope, deployment gates, and audit trails, rather than staying in a security report. Where the system can use secrets or reach connected services, the relevant references are NIST AI RMF and the OWASP Agentic AI Top 10, not generic application testing alone.


For practitioners

  • Add AI red teaming to release gates Require adversarial testing before production deployment, especially when prompts, tools, or model providers change. Use the results as a deployment control, not a post-incident report.
  • Test multi-turn prompt injection paths Exercise the full conversation flow, including formatting tricks, context flooding, and hidden instruction overrides, because many jailbreaks only work across multiple turns.
  • Scope tool permissions like privileged access Treat connected tools, API tokens, and retrieval access as privileged resources. Minimise scope, separate secrets from the model layer, and review where the system can take action without human approval.
  • Track AI auditability and evidence quality Make sure scoring, logs, and reports can show what the model accessed, what it attempted, and where controls failed. Without that evidence, governance decisions become guesswork.

Key takeaways

  • AI red teaming is becoming a core governance control because LLM failures now include access abuse, not just poor answers.
  • The most material risks involve prompt injection, delegated tool use, and hidden data exposure across connected systems.
  • Security teams need repeatable adversarial testing, access scoping, and audit evidence before AI systems are trusted in production.

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 10The article focuses on agentic attack paths, prompt injection, and tool abuse.
NIST AI RMFMANAGEAI red teaming supports ongoing risk treatment and monitoring.
MITRE ATLASTA0006 , Credential Access; TA0009 , CollectionThe article discusses adversarial behaviour aimed at data leakage and credential exposure.
NIST AI 600-1Art. 15The content aligns with GenAI governance, safety, and incident handling expectations.
NIST CSF 2.0PR.AA-1The article’s control theme is access and authorisation across AI workflows.

Use the MANAGE function to operationalise findings into access controls, monitoring, and remediation.


Key terms

  • AI Red Teaming: AI red teaming is the practice of simulating hostile behaviour against models, applications, and agents to expose weaknesses before real attackers do. In AI programmes, it is most useful when results can be turned into controls, monitoring, and governance evidence rather than left as a one-time test report.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads — causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Agentic AI: Autonomous AI systems capable of planning, deciding, and taking actions — including calling APIs, writing code, and orchestrating other agents — with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services.
  • MCP: Model Context Protocol, an open way for AI agents to connect to tools and data sources. It improves interoperability, but it also introduces a shared integration layer that must be governed carefully because the protocol can widen access across many systems at once.

What's in the full article

Promptfoo’s full article covers the operational detail this post intentionally leaves for the source:

  • Tool-by-tool comparisons of open-source AI red teaming frameworks and where each fits in practice
  • Implementation detail on prompt injection, fuzzing, and multi-turn attack generation workflows
  • Feature-level coverage of reporting, scoring, and CI/CD integration for AI testing pipelines
  • Practical notes on MCP testing and agent plugin abuse scenarios

👉 The full Promptfoo article covers tool comparisons, attack techniques, and operational feature detail.

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 for practitioners building controlled access programmes. It helps security teams translate identity principles into operational governance across modern systems.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org