By NHI Mgmt Group Editorial TeamBased on Openlayer: “Real-Time AI Security Guardrails” (December 11, 2025)

TL;DR: Runtime AI security guardrails block prompt injection, jailbreaks, and PII leakage during inference, while also mapping controls to EU AI Act, NIST RMF, and ISO 42001 without manual setup, according to Openlayer. The governance shift is clear: AI programmes need preventative runtime controls, not just post-deployment monitoring.


At a glance

What this is: This is a comparison of real-time AI security guardrails, and the core finding is that runtime enforcement matters more than retrospective monitoring for stopping prompt injection and data leakage.

Why it matters: For IAM, NHI, and AI security practitioners, it shows that governance has to move to the moment of inference, where policy enforcement can still prevent exposure rather than document it after the fact.


Context

Real-time AI security guardrails are controls that inspect and enforce policy while an AI system is answering a prompt, not after logs are reviewed. That matters because prompt injection, jailbreaks, and sensitive-data leakage are now runtime problems, and post-deployment monitoring cannot prevent exposure once an output has already been generated.

The governance gap is not whether organisations can detect AI risk, but whether they can stop it at the point of action. For AI programmes that process customer, financial, or regulated data, the control boundary has to sit inside inference, which is where policy, identity, and compliance expectations finally collide.


Key questions

Q: How should security teams handle prompt injection in AI systems?

A: Treat prompt injection as an authorisation problem, not only a content problem. Validate user input, monitor for override patterns, and block any prompt that tries to change model policy, exfiltrate data, or trigger sensitive actions. The safest design is one where untrusted prompts cannot directly reach code execution, production data, or privileged tools without policy checks.

Q: Why do post-deployment AI monitoring tools miss the highest-risk failures?

A: Because the most damaging failures happen before monitoring can react. Prompt injection, jailbreaks, and data leakage are already security events once the model has responded, so retrospective analysis can explain the incident but cannot prevent the exposure. Runtime control is what changes the outcome.

Q: What are the signs that AI agents are failing their intended guardrails?

A: Warning signs include repeated probing, unusual coordination between otherwise isolated agents, creation of side channels or message boards, and attempts to fake task outputs. Another signal is when agents begin treating unethical actions as acceptable if they improve task success. These patterns suggest the guardrails are too weak, too narrow, or not aligned to the actual operational environment.

Q: How should teams govern AI assistants, workflows, and autonomous agents differently?

A: Teams should govern them by runtime behaviour, not by model family. Assistants need strong prompt and response controls, triggered workflows need untrusted-input screening and narrow tool scope, and autonomous agents need separate identities, scoped delegation, and traceability across each decision. A single AI policy rarely fits all three.


Technical breakdown

Runtime enforcement versus post-deployment monitoring

Real-time guardrails sit inline with the model request and response flow, applying policy checks before content is returned to the user or passed to downstream systems. That is different from observability or monitoring tools, which analyse traces, logs, or model outputs after the event. In practical terms, runtime enforcement is a control-plane decision about whether a request may proceed at all, while monitoring is a visibility layer. For security teams, that distinction matters because prompt injection, jailbreaks, and data leakage are only preventable when the policy engine is present at inference time.

Practical implication: Treat runtime policy enforcement as the control that blocks exposure, not as a replacement for observability.

Why multimodal AI security needs policy at the edge

Production AI systems do not operate only on text. They increasingly combine text, vision, audio, tabular data, RAG, and autonomous agents, which means security controls must evaluate different payload types and interaction patterns consistently. Multimodal testing matters because a model may be safe in one modality and unsafe in another, especially when hidden instructions or sensitive data arrive through a non-text channel. This creates an identity and governance intersection as well, because autonomous agents and tool-using systems can amplify trust decisions across workflows. The architectural issue is coverage, not just detection quality.

Practical implication: Extend guardrails to every modality and agentic pathway that can carry instructions or sensitive data.

Automated compliance mapping changes the governance burden

The article shows a second shift beyond blocking attacks: policy mapping to frameworks such as EU AI Act, NIST RMF, and ISO 42001 can be automated rather than assembled by hand. That changes how AI governance scales, because control evidence, policy interpretation, and deployment review no longer depend entirely on manual spreadsheet work. For regulated teams, the key architectural question is whether compliance is bolted on after deployment or embedded into the runtime control layer. In mature programmes, that runtime evidence becomes part of the same governance fabric as testing and release approval.

Practical implication: Build compliance mapping into the AI control layer so governance evidence is generated with the system, not reconstructed later.


Threat narrative

Attacker objective: The attacker aims to manipulate model behaviour or extract sensitive information before the organisation can intercept the request.

  1. Entry occurs when a malicious prompt, jailbreak attempt, or hidden instruction reaches the AI system during inference.
  2. Credentialed or trusted context is abused when the model treats that input as legitimate and begins producing unsafe output or exposing sensitive information.
  3. Impact follows immediately when PII, secrets, or other regulated data are leaked into a response or forwarded into downstream systems.
  • DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
  • 12,000 secrets in LLM training data: Truffle Security found 11,908 live API keys and passwords hard-coded in web pages captured by Common Crawl, a dataset used to train LLMs.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Runtime control is now the governance boundary for AI security. Monitoring tells you that an unsafe model interaction happened, but it does not stop the interaction from completing. Once AI systems are in production, the decisive question is whether policy can still intervene before the output leaves the model boundary. For practitioners, the control point has shifted from review after the fact to enforcement at inference time.

Multimodal AI creates governance debt when controls only understand text. Text-only review leaves vision, audio, and agentic workflows with inconsistent security coverage, which is exactly where hidden instructions and leakage can travel. The field should treat modality coverage as a core governance requirement, not a feature checkbox. Practitioners need controls that evaluate every channel the model can consume or emit.

Agentic AI complicates identity governance because trust now crosses runtime delegation chains. When autonomous systems call tools, move data, or inherit context, the identity question is no longer only who authenticated to the app, but what the agent was allowed to do with that session. That makes runtime authorisation and policy enforcement part of AI governance, not a separate concern. Practitioners should govern agents as active actors, not passive applications.

Policy automation is becoming the only scalable way to prove AI compliance. Mapping AI controls to EU AI Act, NIST RMF, and ISO 42001 by hand does not scale once models, prompts, and deployment paths multiply. A runtime layer that generates evidence while it blocks threats reduces the gap between governance intent and operational reality. Practitioners should expect compliance to be embedded in control execution, not assembled afterward.

From our research library:

  • Only 23% of IT leaders were very confident in their organisation's ability to manage security and governance for GenAI deployments, according to a 2025 Gartner survey of 360 IT leaders.

What this signals

Runtime AI protection is becoming the minimum viable control for production AI. Organisations that treat monitoring as their primary safeguard will keep discovering problems after data has already moved. The more models sit inside customer and employee workflows, the more the control boundary has to move upstream to inference-time enforcement.

AI governance debt grows every time runtime controls are added late. Manual mapping, ad hoc testing, and weak modality coverage create an assurance gap that is expensive to close after deployment. Teams should expect governance to be measured by how well evidence and enforcement are generated together, not separately.


For practitioners

  • Deploy runtime blocking on inference paths Place policy enforcement in the request-response path so prompt injections, jailbreaks, and PII leakage can be stopped before output is released.
  • Expand guardrails beyond text-only evaluation Test text, vision, audio, tabular, RAG, and agentic workflows under the same policy model so one untested modality does not become the weakest control.
  • Automate compliance evidence generation Map runtime controls to EU AI Act, NIST RMF, and ISO 42001 so governance evidence is produced as part of operation rather than rebuilt later.
  • Treat autonomous agents as governed actors Define what an agent may read, send, and invoke during a session, then enforce those boundaries at the control layer instead of relying on post hoc review.

Key takeaways

  • AI systems that rely on post-deployment monitoring leave a gap at the exact moment when prompt injection and data leakage can still be blocked.
  • The article’s central evidence is that runtime guardrails can enforce policy during inference across multiple modalities and deployment models.
  • Practitioners should treat runtime enforcement, multimodal testing, and automated compliance mapping as part of one governance layer.

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 ATT&CK address the attack surface, NIST AI RMF and NIST CSF 2.0 set the technical controls, and ISO/IEC 42001:2023 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseRuntime guardrails are meant to stop unsafe tool and output use by AI systems.
ASI09 — Human-Agent Trust ExploitationPrompt injection and jailbreaks exploit trust in user prompts and model outputs.
Recommendation — Block unsafe tool use at runtime and validate agent actions before they reach downstream systems. Apply controls that detect trust exploitation before the model treats malicious instructions as legitimate.
NIST AI RMFMANAGE — AI risk management and monitoringThe article centres on operationalising AI controls and continuous governance.
GOVERN — AI governance and accountabilityAutomated compliance mapping links runtime control to governance obligations.
Recommendation — Embed runtime enforcement and monitoring into AI risk management workflows. Assign clear governance ownership for runtime AI controls and compliance evidence.
ISO/IEC 42001:2023A.5 — LeadershipThe article stresses formalised AI governance and evidence generation.
Recommendation — Integrate runtime AI controls into the organisation's AI management system and accountability model.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAgentic workflows and runtime enforcement depend on controlling what the system may do.
Recommendation — Limit AI system entitlements so prompts and agents cannot execute beyond authorised scope.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationPrompt injection and data leakage map to adversary access and exfiltration behaviours.
Recommendation — Map AI abuse to credential access and exfiltration techniques in detection and response workflows.

Key terms

  • Guardrails AI: Guardrails AI is an open source Python framework for validating and correcting LLM outputs. It uses structured rules to check response quality, enforce type and format requirements, and trigger corrective behavior when a generated answer does not meet the expected criteria.
  • Inference-time enforcement: A control model that evaluates a request before the AI system produces an output. It stops or constrains risky prompts, tool calls, or data requests in real time, instead of relying on after-the-fact monitoring or log review.
  • Multimodal AI: AI that can process more than one input type, such as text, images, and audio, within the same decision flow. For security teams, multimodal capability matters because malicious instructions can hide inside non-text channels and still influence the agent's behaviour and downstream tool use.
  • AI Governance: AI governance is the set of controls used to discover, classify, approve, restrict, monitor, and revoke AI-enabled access. It connects identity, data, and policy so organisations can manage what AI can reach, what it can share, and when it should be stopped.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and machine identity security. It helps practitioners connect identity control to the broader security programme their organisation needs.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org