By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: Lasso SecurityPublished September 9, 2026

TL;DR: Inline LLM judges are accurate but too expensive and slow to inspect every prompt, retrieval, and tool call at agent scale, according to Lasso Security, while its CPU-based LEAP architecture claims GPU-class detection with far higher throughput and lower latency. The key issue is not model quality, but whether security guardrails can be affordably run on every AI action without becoming the bottleneck.


At a glance

What this is: This is an independent analysis of CPU-based AI security guardrails and the claim that they can deliver transformer-like detection quality without GPU-level cost or latency.

Why it matters: It matters because AI security teams need inspection controls that can sit inline on every prompt, response, retrieval, and tool call without turning guardrails into the performance or budget bottleneck.

By the numbers:

👉 Read Lasso Security's analysis of CPU-based AI security guardrails and LEAP


Context

AI security guardrails fail when they are accurate in theory but too slow or expensive to run at the point where decisions are made. In agentic systems, every prompt, retrieved document, response, and tool call can become an inspection event, so the control has to work inline rather than as a periodic review layer.

That creates a governance problem for AI security programmes and for identity teams that increasingly have to reason about agent behaviour, delegated action, and tool access. When enforcement sits in the hot path, latency, cost, and scale become control variables, not just infrastructure concerns.


Key questions

Q: How should security teams reduce the cost of inline AI guardrails without losing detection quality?

A: Use a layered model. Put a low-cost first-line classifier in front of every prompt, retrieval, response, and tool call, then reserve heavier reasoning models for genuinely ambiguous cases. That keeps universal inspection affordable while preserving the option to escalate when context, intent, or tool use cannot be resolved cheaply.

Q: Why do guardrails fail to secure agentic AI workflows?

A: Guardrails fail because they are probabilistic and operate on model output, while the risk lives in the execution chain. An agent can still turn a harmless-looking prompt into a harmful sequence of tool calls, data updates, or external actions. Security teams need deterministic boundaries around action, not just content screening after the model has already decided.

Q: What are the signs that an AI security control is not scaling well enough?

A: Watch for rising latency, growing inference spend, queueing, and a widening gap between the number of agent actions and the number of actions you can inspect. If the guardrail only runs on some traffic or only on short inputs, it is already becoming a sampling layer.

Q: How do organisations decide when to keep a reasoning model in the guardrail path?

A: Keep it where the decision is genuinely ambiguous, especially when context spans multiple turns, retrieved content, and tool permissions. If a simpler classifier can reliably resolve the common cases, let the reasoning model handle only the exceptions that need deeper context.


Technical breakdown

Why inline LLM judges become the bottleneck

LLM judges use reasoning models to classify whether content is unsafe, injected, or policy-violating. That works well for ambiguous cases, but it is expensive because inference happens on the critical path and often repeats multiple times within a single agent trace. Every checkpoint adds tokenisation, scheduling, model execution, and response parsing. Once you extend that pattern across prompts, retrievals, and tool calls, the guardrail begins to behave like a choke point rather than a control layer. The architectural issue is not whether the judge can detect threats. It is whether the environment can afford to keep asking the same expensive question dozens of times per session.

Practical implication: Treat every inline judge as a throughput-sensitive control and size it for the highest expected checkpoint volume, not the average request rate.

Why CPU-based classification changes the control economics

A CPU-based guardrail shifts the design from reasoning-heavy inspection to high-volume classification. The article’s core claim is that a different architecture can recover transformer-like detection performance while running fast enough to sit in front of every request on ordinary infrastructure. That matters because security controls fail when they can only be deployed selectively. If a guardrail is limited to the traffic you can afford to inspect, it becomes a sampling strategy, not a protection strategy. The practical distinction is between premium reasoning reserved for hard cases and a cheaper first-line filter that can run continuously at scale.

Practical implication: Use a low-cost first-line filter for universal inspection, then reserve expensive reasoning models for only the hardest or most ambiguous cases.

Why context size and multi-step traces matter for AI guardrails

Agentic workflows expand context quickly because one user instruction can produce long conversations, multiple retrievals, and several tool calls. A guardrail that relies on a fixed context window or truncation can miss the relationship between instructions, permissions, and prior actions that determines whether a request is safe. That creates a security blind spot in the exact scenarios AI systems are creating more often. The article argues that unbounded or much larger effective context is not a convenience feature. It is part of the detection model itself, especially where malicious content is buried inside retrieved text or multi-turn manipulation.

Practical implication: Validate whether your guardrail can inspect the full decision context before you rely on it for prompt injection or tool-use decisions.


Threat narrative

Attacker objective: The attacker wants to steer AI agents into unsafe decisions or tool actions while avoiding detection by the guardrail layer.

  1. Entry begins when malicious or misleading content reaches the model through prompts, retrieved documents, or tool outputs inside the agent trace.
  2. Escalation occurs when repeated guardrail checks slow the workflow or miss relationships hidden across longer contexts, allowing unsafe actions to proceed.
  3. Impact is the successful execution of prompt injection, unsafe tool use, or other agent actions that the security layer should have stopped.

NHI Mgmt Group analysis

Cost-per-decision is becoming a core security constraint for AI programmes. The article shows that detection quality alone is no longer enough if the control cannot be run at production scale. In AI security, the effective control is the one that can inspect every request, every retrieved document, and every tool call without becoming financially or operationally unsustainable. Practitioners should treat unit cost per decision as a control metric, not just a procurement line item.

Inline guardrails are now part of the identity and authorisation problem for agents. Once an AI system can choose tools, timing, and next actions, security has to govern not only content but delegated action. That puts agent identity, permission scope, and runtime enforcement into the same control conversation as prompt injection detection. For identity teams, the key question is whether the guardrail can enforce the policy boundary at the moment of action, not after the fact.

Detection architecture is shifting from heavyweight reasoning to layered enforcement. The strongest pattern is not one model doing everything, but a cheap first-line control that catches the common cases and a deeper reasoning layer for genuinely ambiguous decisions. That maps well to modern security design because it reduces blast radius, preserves throughput, and keeps expensive reasoning for exceptions. Practitioners should expect layered AI security architectures to become the default governance pattern.

Context integrity is the named failure mode hiding inside agentic AI security. When a guardrail truncates context or inspects each step in isolation, it can lose the relationship between content, permissions, and prior actions. That is how malicious retrieved content, multi-turn manipulation, and unsafe tool use evade controls that look strong in lab conditions. Teams should govern for full-trace context, not single-step inspection.

What this signals

Context integrity will become a first-class governance requirement for agentic AI. As workloads grow more multi-step, security teams need to know whether their enforcement layer can reason over full traces rather than isolated events. The practical signal is that prompt injection defence, tool-use policy, and delegated action control are converging into one runtime governance problem, with the OWASP Agentic AI Top 10 and NIST AI Risk Management Framework becoming more relevant to operational design.

Policy enforcement will increasingly be judged by cost per inspected action. Security leaders should expect the economics of guardrails to shape deployment choices, especially where every retrieval and tool call must be checked. A control that cannot stay inline under production load is not a reliable safeguard, even if its detection score looks strong in a benchmark.

The practical question for programmes is whether the first-line control can be colocated with the workload and still preserve enough headroom for spikes, retries, and longer traces. That is where CPU-based inspection may change adoption patterns, especially when paired with agent identity and delegated access controls.


For practitioners

  • Design for full-trace inspection Map every prompt, retrieval, response, and tool call that can trigger enforcement, then decide which events require universal inspection and which can be sampled.
  • Separate first-line filtering from hard-case reasoning Use a cheap classifier or CPU-based guardrail for routine decisions, and escalate only genuinely ambiguous cases to a reasoning model.
  • Measure cost per inspected decision Track the direct cost, latency, and infrastructure load for each security decision so the guardrail is evaluated as a control, not a feature.
  • Validate full-context coverage Test whether the guardrail can evaluate long conversations and retrieved documents without truncation, because context loss can break detection of hidden injections.
  • Align agent policy with runtime enforcement Tie inspection outcomes to the permissions and tool scope granted to the agent so policy checks happen at the moment of action, not in a separate review cycle.

Key takeaways

  • AI guardrails fail when they are too expensive or slow to inspect every step in the agent trace.
  • The evidence points to a control problem, not a model-quality problem, because scale and latency determine whether inspection can run continuously.
  • Teams should separate universal first-line filtering from deeper reasoning so that expensive inspection is reserved for genuinely ambiguous cases.

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 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Prompt Injection and Tool MisuseThe article centers on agent guardrails and prompt injection detection in agentic AI.
Recommendation — Map inline enforcement to agentic AI risks and require layered controls for prompt, retrieval, and tool-use decisions.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about governance of AI security controls at production scale.
MANAGE — AI Risk TreatmentThis topic is about operationalising controls that reduce AI security risk in production.
MEASURE — AI Risk MeasurementThe article stresses latency, throughput, and detection quality as measurable control properties.
Recommendation — Define ownership for guardrail performance, escalation policy, and runtime accountability under GOVERN. Implement MANAGE to bind detection outcomes to escalation thresholds and runtime enforcement decisions. Measure guardrail cost, latency, and hit rates continuously so control performance stays visible.
MITRE ATLASPrompt Injection; Tool MisusePrompt injection and unsafe tool actions are the key adversarial behaviours discussed.
Recommendation — Map prompt injection and tool misuse patterns to ATLAS techniques and test guardrails against them.

Key terms

  • Runtime Guardrail: A control applied while an AI agent is operating, not just during configuration or review. Guardrails can block dangerous tool calls, require approval for sensitive actions, or stop data leakage before it reaches systems or users.
  • Context Integrity: Context integrity is the assurance that an AI agent is operating under the correct task frame, policy boundary, and operational intent. When that integrity is broken, the agent may perform authorised-looking actions for hostile purposes. For autonomous systems, this is as important as credential protection.
  • Two-Tier Inspection: Two-tier inspection is a layered security pattern in which a fast, low-cost first pass handles common cases and a heavier reasoning model handles only ambiguous exceptions. It reduces average cost without removing deep analysis for the cases that actually need it.
  • Agent Trace: A structured record of an AI agent’s runtime activity, including model calls, tool calls, approvals, and subagent steps. In practice, traces support debugging, evaluation, and governance when they are retained, searchable, and tied to the permissions behind the agent.

What's in the full article

Lasso Security's full research covers the operational detail this post intentionally leaves for the source:

  • Benchmark tables comparing Sheriff with 11 other guard models across detection, over-defense, throughput, and latency
  • Implementation notes on the two-tier inspection path that escalates only uncertain cases to a reasoning model
  • Production design detail on running inline enforcement inside a customer-managed VPC or air-gapped environment
  • The full explanation of how LEAP handles long traces without a fixed context-window cap

👉 The full Lasso Security post covers benchmark methodology, throughput trade-offs, and the two-tier guardrail design.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, IAM, and secrets management. It helps practitioners align identity controls with the runtime decisions AI systems are making.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 11, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org