By NHI Mgmt Group Editorial TeamPublished 2026-04-23Domain: Agentic AI & NHIsSource: ZioSec

TL;DR: Static guardrails miss semantic attacks, indirect prompt injection, and higher-level leakage where sensitive information is revealed through paraphrase, inference, or comparison, according to ZioSec. The practical implication is that enterprise AI governance needs layered detection, not regex-era controls.


At a glance

What this is: This is a practical analysis of why static, rule-based AI guardrails fail against semantic attacks and how non-deterministic guardrails catch context-driven leakage.

Why it matters: It matters because AI agent programmes now need controls that evaluate intent and output shape, not just strings, across agent, model, and governance workflows.

By the numbers:

👉 Read ZioSec's analysis of static guardrails and higher-level leakage in AI


Context

Static guardrails are the fixed rules that block known bad patterns in AI systems, such as obvious secret strings or prohibited phrases. They are useful, but they are not enough for AI agent governance because semantic leakage can occur without any obvious forbidden token appearing in the output.

The primary identity security issue here is that enterprise AI agents increasingly handle sensitive context across prompts, tools, and summaries, which makes output intent as important as output content. That places this topic squarely in agentic AI identity and non-human identity governance, especially where models are asked to judge models.

The vendor's point is not that static guardrails are obsolete. The real point is that modern AI controls need layered evaluation, because the failure mode has shifted from pattern matching to policy understanding.


Key questions

Q: How should security teams handle higher-level leakage in AI agents?

A: Treat it as a policy and output-governance problem, not just a secret-scanning problem. Define what information must not be inferred, summarised, compared, or paraphrased, then enforce that policy with layered controls. Static filters handle obvious violations, while model-based guardrails evaluate intent and context. The key is to test both layers against real prompts and real workflows.

Q: When do static guardrails stop being enough for AI systems?

A: They stop being enough when the risk is semantic rather than syntactic. If the harmful outcome is a summary, ranking, comparison, or inference, a regex or blocklist will miss it unless the exact forbidden string appears. That is why organisations need judgment-based checks for agents that work on sensitive data or produce consequential outputs.

Q: What do teams get wrong about LLM-as-judge guardrails?

A: They often assume the judgment layer is a replacement for other controls. In practice, it is another control with its own failure modes, latency, cost, and bypass surface. It should be used for targeted high-risk decisions, backed by logging and adversarial testing, not as a universal fix for every AI workflow.

Q: Who is accountable when an AI agent leaks restricted information through paraphrase?

A: Accountability sits with the team that defined the policy, deployed the agent, and accepted the control design. If the policy did not cover inference or summarisation, the governance gap is structural. If the guardrail was not tested against paraphrased leakage, the control was never proven. Compliance evidence must show both policy scope and validation.


Technical breakdown

Why static guardrails miss higher-level leakage

Static guardrails work by matching known strings, patterns, or rules at fixed points in the request flow. That is effective for obvious secrets, but it breaks down when an AI system paraphrases sensitive material, infers restricted facts, or compares two internal states in a way that reveals which one is more sensitive. The control is deterministic, while the failure mode is semantic. In practice, this means a model can leak policy-restricted information without ever emitting a blocked token. That is why rule-based filters are necessary but insufficient in enterprise AI stacks.

Practical implication: keep static controls for obvious pattern blocking, but do not treat them as coverage for semantic leakage.

How non-deterministic guardrails evaluate AI agent output

Non-deterministic guardrails use a smaller model, classifier, or LLM-as-judge to score intermediate reasoning, tool calls, and outputs against a policy. This changes the control from syntax enforcement to intent evaluation. A classifier is fast and scalable, an LLM-as-judge is more expressive for high-stakes decisions, and embedding similarity can catch paraphrased policy violations. The architectural point is layering: the best results come from combining fast first-pass screening with stronger judgment on the narrow slice of risky cases. That is how model-driven guardrails extend beyond static rules without replacing them.

Practical implication: place lightweight model-based checks before high-risk actions and reserve heavier judgment for sensitive outputs and tool arguments.

What higher-level leakage means for enterprise AI governance

Higher-level leakage is information exposure through shape, not string. The leak may appear as a summary of an unreleased plan, a comparison that reveals which system to attack, or a numerical answer that discloses privileged customer context. This is a governance problem because policy scope has to include inferences, paraphrases, and comparisons, not just named secrets. It also means guardrails themselves become assets to test, because the model that judges policy can be bypassed, poisoned, or mis-scored. The control boundary has moved from content filtering to policy interpretation.

Practical implication: write policies that explicitly cover inference, summarisation, and comparative disclosure, then test them adversarially.


Threat narrative

Attacker objective: The attacker wants restricted information to be revealed in a form that evades static filters and appears operationally legitimate.

  1. Entry occurs when a user prompt, document, or tool input carries an indirect prompt injection or semantically loaded request into the AI workflow.
  2. Escalation happens when the agent interprets the request as legitimate and produces a summary, comparison, or paraphrase that reveals restricted context without a string-level violation.
  3. Impact is the disclosure of sensitive business, customer, or security information through the shape of the response rather than a direct secret exfiltration event.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Static guardrails were designed for known bad patterns, not for policy-shaped leakage. The control premise is that harmful content can be reliably identified through strings, tokens, or fixed rules. That assumption fails when an AI agent reveals restricted information through paraphrase, comparison, or inference instead of direct disclosure. The implication is that enterprises are not just missing a better filter, they are relying on a detection model that no longer matches the failure mode.

Higher-level leakage is the right named concept for this class of AI governance failure. The leak is not the secret itself, but the semantic structure that exposes it. That matters because policy teams often scope controls around credentials and PII while leaving summaries, rankings, and comparative answers outside the boundary. Practitioners need to recognise that the disclosure surface now includes meaning, not just content.

Model-on-model review becomes necessary once AI systems generate consequential outputs at runtime. Static rules can still block obvious abuse, but only a judgment layer can score intent, policy fit, and contextual risk. That aligns with OWASP Agentic AI Top 10 and NIST AI Risk Management Framework thinking, where agent behaviour and output governance are first-class concerns. The practitioner conclusion is that layered evaluation is now a governance requirement, not an optimisation.

Guardrails are now part of the attack surface, not just the defence stack. Once a model is asked to judge another model, the judging layer can be bypassed, tuned poorly, or exposed to prompt injection itself. That means AI security programmes have to threat-model the control, the policy, and the test harness together. The operational takeaway is to treat guardrail validation as a standing control rather than a one-time deployment decision.

Agentic AI governance and NHI governance are converging at the policy layer. The same enterprise that would not allow an over-privileged service account to act without oversight should not allow an AI agent to summarise, compare, or disclose sensitive material without contextual policy review. This convergence is where identity teams can add value beyond model teams. The practitioner conclusion is to govern access, output, and judgment as one chain.

From our research:

What this signals

Higher-level leakage will push AI programmes toward policy-driven evaluation instead of content-only filtering. Teams that rely on static rules will keep missing summaries, comparisons, and paraphrases that disclose more than intended. That is why the governance conversation is moving from blocklists to runtime judgment, with frameworks such as the NIST AI Risk Management Framework becoming more relevant to operational control design.

Model-on-model review is quickly becoming the practical middle layer for enterprise AI security. The challenge is not whether a classifier or judge model can work in principle, but whether the organisation can tune it, log it, and adversarially test it at production speed. That is where guardrail programmes either mature into controls or remain demonstrations.

With 85% of organisations lacking full visibility into third-party vendors connected via OAuth apps, according to The State of Non-Human Identity Security, the same visibility gap that affects NHI governance also applies to AI workflows that depend on external tools and delegated access. The concept here is identity blast radius, meaning that a single compromised context can expose far more than the immediate request scope. Security teams should map where AI outputs can reveal privileged state, not just where secrets are stored.


For practitioners


Key takeaways

  • Static guardrails are necessary but insufficient because semantic leakage can expose sensitive information without triggering string-based filters.
  • The practical control gap is not secret detection alone, but policy enforcement for summaries, comparisons, paraphrases, and inferences.
  • Enterprises should layer static controls, model-based judgment, and adversarial testing, then log enough evidence to prove the control works.

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 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Covers prompt injection, agent misuse, and output governance risks in AI workflows.
NIST AI RMFAI RMF addresses governance, measurement, and monitoring for model-based control layers.
NIST CSF 2.0PR.DSProtecting data in AI outputs aligns with data security and disclosure controls.

Map guardrail gaps to agentic AI abuse cases and test policy enforcement across the full prompt-to-output chain.


Key terms

  • Higher-level leakage: Information disclosure that happens through summary, inference, comparison, or paraphrase rather than through an obvious secret string. In AI systems, it is the semantic shape of the answer that becomes the leak, which makes pattern-based filters insufficient on their own.
  • Non-deterministic guardrail: A model-based control that judges whether an AI input, intermediate step, or output complies with policy. Unlike static rules, it uses probabilistic scoring and contextual evaluation, which makes it better suited to semantic abuse cases but also introduces its own bypass and tuning risks.
  • LLM-as-judge: A control pattern where one language model evaluates another model’s output against a policy. It is useful for high-stakes decisions because it can reason about context and intent, but it still requires logging, calibration, and adversarial testing to be trustworthy in production.
  • Classifier guardrail: A lightweight model or classifier trained to detect safe versus unsafe content in AI workflows. It is fast enough for broad use and often forms the first layer of defence, but its effectiveness depends on training data quality and coverage of realistic attack patterns.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or governance in your organisation, it is worth exploring.

This post draws on content published by ZioSec: Static Guardrails in AI: Ensuring Safety and Compliance, Part 2. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-04-23.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org