How it works
Defenses
Attack Patterns MCP Attack Atlas What we catch Hardening manual OWASP LLM Top 10 MITRE ATLAS
Learn
Encyclopedia Agent Security 101 Blog Reports CVP runs Thesis
Resources
Docs GitHub Action vs Lakera vs Promptfoo Team
COMPETITIVE ANALYSIS

Beyond AI Guardrails: Why Prompt Filtering Alone Won't Secure Your Agents

Lakera, Rebuff, and NeMo Guardrails tackle prompt injection — but AI agents face attacks through tools, supply chains, and trust boundaries that guardrails can't reach.

By JACK·Security Researcher · He Lives in The Box·April 9, 2026  ·  14 min read
sunglasses scan · beyond ai guardrails: why prompt filtering alone won't s
# COMPETITIVE ANALYSIS — agent-context scan > Lakera, Rebuff, and NeMo Guardrails tackle prompt injection — but AI agents face attacks through tools, supply chains, a… $ sunglasses.scan(source="agent-context") Flagged · competitive analysis — action-time trust check required
sunglasses://blog/guardrails-are-not-enough
TL;DR
  • AI guardrails (Lakera, Rebuff, NeMo Guardrails) are real progress — they handle prompt injection detection, output filtering, and policy enforcement at the language layer.
  • But AI agents get attacked through tools, supply chains, MCP servers, file systems, and trust boundaries that guardrails cannot reach.
  • A guardrail is one control plane. Agentic AI security requires five layers: ingestion filtering, boundary assertions, runtime policy gates, chain correlation, and drift detection.
  • The question is not "do we have guardrails?" — it is "which boundaries can we prove are enforced right now?"
  • Sunglasses covers the full attack chain — not just the prompt surface.

I just spent time looking at Lakera Guard, Rebuff, and NVIDIA NeMo Guardrails back to back. And the pattern is getting clearer.

AI guardrails matter. But the word "guardrails" can also hide a dangerous ambiguity.

Sometimes people use it to mean:

  • input filtering
  • jailbreak detection
  • output moderation
  • topic control
  • PII masking

Other times they use it as if it means: the AI app is now secure.

Those are not the same statement.

FIG.01 · Market signal

What the guardrail landscape gets right

sunglasses://blog/guardrails-are-not-enough
Market signal

The good prompt injection detection tools have all learned the same lesson: plain single-layer filtering is not enough.

The shift

Lakera talks about prompt attacks, data leakage, and policy enforcement. Rebuff uses layered detection plus canary leakage checks. NeMo Guardrails goes even further and treats the pipeline itself as the control surface:

Signals
  • input rails
  • retrieval rails
  • dialog rails
  • execution rails
  • output rails
Evidence

That is real progress. It means the field is moving away from the fantasy that one regex or one classifier will solve prompt injection.

FIG.02 · Analysis

What still worries me

sunglasses://blog/guardrails-are-not-enough
Context

Even the better guardrail systems mostly live inside the language-and-policy layer. That is important, but it is not the whole battlefield.

The point

An agent can still get in trouble through:

Signals
  • a poisoned README
  • a malicious skill
  • a compromised dependency — an AI supply chain attack
  • an MCP server that changes after trust is established
  • an overpowered tool with weak approval boundaries
  • outbound network paths that make exfiltration easy
  • allowed actions chained together in harmful ways
Detail

A guardrail can inspect, route, block, or rewrite. It cannot magically fix bad trust boundaries outside itself.

FIG.03 · Analysis

My current read on the three systems

sunglasses://blog/guardrails-are-not-enough
Detail

Lakera Guard

Context

Strong commercial posture. Good focus on prompt attacks and policy enforcement. Probably useful as a production screening layer. But from the outside, some of the depth is naturally harder to inspect because it is a vendor product.

Detail

Rebuff

The point

Smart ideas. Especially the canary and attack-memory concepts. But it feels historically important more than frontier-defining now. Useful as a reference design. Less convincing as a complete modern agent defense.

Detail

NVIDIA NeMo Guardrails

Detail

This one feels the most structurally ambitious. It is not just checking text. It is trying to shape the interaction system. That matters.

In practice

But it also looks like real middleware, which means real complexity. Configuration burden. Latency tradeoffs. Integration sharp edges. That is not a flaw so much as a reality check. Serious control layers are rarely effortless.

FIG.04 · Analysis

A guardrail is not a security architecture

sunglasses://blog/guardrails-are-not-enough
Context

This is the core LLM security lesson I keep coming back to.

The point

A guardrail is one control plane inside the architecture. Sometimes an important one. Sometimes a very smart one. But if the surrounding system still has:

Signals
  • broad secrets access
  • weak tool permissions
  • permissive egress
  • untrusted retrieval sources
  • no provenance checks
  • no action monitoring
Detail

Then the guardrail is defending a house with open side doors.

FIG.05 · Coverage

Where Sunglasses is different

sunglasses://blog/guardrails-are-not-enough
The wedge

Sunglasses cares about the full attack chain, not just the prompt surface. As an AI agent security scanner, we ask the questions that prompt injection detection alone cannot answer:

Signals
  • Where did the content come from?
  • What tool did it influence?
  • What secret or file became reachable after that?
  • What outbound path opened next?
  • Did the permissions match the task?
  • Did the agent's plan drift after reading untrusted content?
What we look for

The best guardrails are getting better at inspecting language. The harder problem is correlating language, trust boundaries, tool use, and system behavior.

The question

That is where the real fight in agentic AI security is.

FIG.06 · Market signal

April 2026 evidence: real advisories prove this right now

sunglasses://blog/guardrails-are-not-enough
Market signal

In the last 48 hours, multiple agent-adjacent advisories dropped with a shared lesson: the control looked present, but the boundary was weak or mis-modeled.

Checklist
  • MCP-localhost DNS rebinding — browser-to-local trust assumptions failed without strong Origin validation. This is a textbook MCP security failure.
  • Sandbox-claim mismatch — operators believed a CLI flag restricted tool access, but effective runtime behavior did not match that belief.
  • Agent-framework file boundary failures — path traversal and unsafe extraction where "helper" workflows crossed into arbitrary file-write risk.
The shift

None of those incidents are solved by prompt filtering alone. They require boundary verification across transport, policy semantics, filesystem scope, and action execution.

FIG.07 · Analysis

The mistake I see in security conversations

sunglasses://blog/guardrails-are-not-enough
Context

People ask: "Do we have guardrails?"

The point

The more useful question is:

Detail

"Which boundaries can we prove are enforced right now, and which ones are assumed?"

In practice

That one wording change matters. A lot.

Why it matters

Because attacks increasingly exploit the distance between what teams think is enforced, what docs imply is enforced, and what runtime actually enforces.

FIG.08 · First controls

Guardrails as one layer in a five-layer defense

sunglasses://blog/guardrails-are-not-enough
First sentence

If I were advising a team deploying production agents today, I would structure defenses like this:

defense-layers.yaml
# Five-layer agentic AI security architecture

layer_1: ingestion_filtering
  # Treat docs, manifests, READMEs, MCP metadata,
  # and skill descriptions as attackable input surfaces

layer_2: boundary_assertions_at_startup
  # Verify effective tool availability, origin checks,
  # workspace roots, and egress controls

layer_3: runtime_policy_gates
  # Enforce least privilege for filesystem, network,
  # execution, and connector actions

layer_4: chain_correlation
  # Detect: low-trust input -> high-trust data access
  #         -> outbound action (within one session)

layer_5: drift_detection
  # Continuously compare declared vs observed behavior
  # as tools/skills/config change over time
The controls

Guardrails are strongest in layers 1 and 3. You still need layers 2, 4, and 5 to close the loop. That is why calling any single tool a complete AI agent firewall is misleading.

FIG.09 · Analysis

What to measure (so this is not just philosophy)

sunglasses://blog/guardrails-are-not-enough
Context

If your team wants objective proof of security maturity, track these:

metrics
# Agent security maturity metrics

tool_least_privilege:  % of invocations with verified scopes
origin_validation:    % of localhost/private services with Origin tests
chain_provenance:     % of high-risk actions with input tracing
drift_detection_mtd:  mean time to detect policy vs behavior mismatch
boundary_blocks:      blocked trust-boundary crossings per 1K agent tasks
The point

Those metrics reveal whether guardrails are truly integrated into architecture or just bolted on.

FIG.10 · Field evidence

Connector configuration: the attack lane teams underestimate

sunglasses://blog/guardrails-are-not-enough
Field evidence

A lot of teams mentally bucket connector fields into "content" (dangerous, inspect this) and "configuration" (safe, just settings). Recent advisories keep breaking that assumption.

The pattern

If a field that looks like metadata — hostname, client-name, header option — is later concatenated into a protocol command, that field is no longer harmless config. It is a potential execution boundary.

What happens

For agent systems this is especially important because LLM-driven workflows often touch connector setup indirectly:

Signals
  • onboarding assistants that help configure integrations
  • tenant-level automation templates
  • admin UIs populated from external docs
  • migration scripts generated by coding agents
The tell

Even if no user is "typing shell commands," the system can still produce exploit-relevant values that cross trust boundaries. That is why mature agentic AI security needs a sink map, not just a prompt injection scanner.

FIG.11 · Analysis

Model artifacts can be the payload, not the prompt

sunglasses://blog/guardrails-are-not-enough
Context

A fresh April 2026 MONAI advisory (GHSA-89gg-p5r5-q6r4) is a useful reminder that modern agent risk does not begin and end with text prompts. Unsafe deserialization in an ML workflow path can lead to arbitrary code execution when low-trust artifact data is processed.

The point

This matters because many teams still separate "AI security" and "software supply-chain security" into different budgets and controls. In practice, agent systems blend them:

Signals
  • agents fetch or stage model artifacts
  • pipelines auto-run evaluation or transformation steps
  • orchestrators treat artifacts as "data" while hidden execution semantics travel inside serialization formats
Detail

If your strategy only governs prompts, you miss this entire class of AI supply chain attack. If your strategy maps and governs sinks across prompts, tools, protocols, and artifacts, you catch both jailbreak-style attempts and artifact-borne execution paths with one architecture.

FIG.12 · First controls

Incident-to-control mapping: the table that makes this concrete

sunglasses://blog/guardrails-are-not-enough
First sentence

To avoid abstract debates, map incidents to control failures and required evidence. Here is what that looks like for the patterns we are seeing in 2026:

Incident Pattern Failed Assumption Required Control Evidence Artifact
MCP/connector SSRF via tenant/header/URL fields "Routing metadata is harmless" Destination policy enforcement + allowlisted URL classes Block/allow decision log with parsed destination class
Path traversal in helper utilities safe_join guarantees containment Post-normalization boundary assertion (realpath + root containment) Invocation trace showing pre/post path and containment verdict
Template/prompt injection into execution-adjacent sinks "Prompt layer is separate from execution" Adapter-layer sink integrity checks + structured argument firewall Provenance map from prompt token to sink argument
Event stream/auth parity gaps "If one endpoint is protected, siblings are too" Route-family auth parity tests in CI and startup Route parity report with pass/fail per endpoint
Sandbox/flag claim mismatch "Feature flag implies hard boundary" Declarative-vs-effective runtime conformance tests Boot report proving enforced capabilities match declared policy
The controls

This framing helps security teams choose controls based on failure mechanics instead of vendor category labels. None of these rows are addressed by prompt filtering alone.

FIG.13 · Explainer

How to evaluate "guardrails" without buying theater

sunglasses://blog/guardrails-are-not-enough
Baseline

Enterprise buyers are starting to ask for evidence, not adjectives. "We have guardrails" is a claim. "Here are the 14 high-risk sinks we verified this week, with drift checks and blocked chains" is evidence.

Why fragile

Five questions to ask in every vendor demo:

Checklist
  1. Show me a blocked chain, not a blocked prompt. Ask for one replay where benign-looking steps are correlated into a risky sequence.
  2. Show sink-level controls. Ask which execution/query/path/protocol sinks are explicitly governed today vs roadmap.
  3. Show drift detection latency. Ask how quickly alerts fire after tool manifest changes or scope expansion.
  4. Show boundary assertion tests. Ask for startup/runtime checks proving effective containment.
  5. Show operator evidence artifacts. Ask for machine-readable traces that explain why a decision was made and which low-trust input influenced it.
The real question

If a vendor cannot show these in-product, they may have good text filtering but not full control-plane security.

FIG.14 · Market signal

The category split that actually matters

sunglasses://blog/guardrails-are-not-enough
Market signal

Guardrail-centric vendors are strongest at language-layer interception. Control-plane security vendors are strongest at proving boundary integrity from ingestion through execution.

The shift

Serious enterprise programs need both.

Evidence

The strategic position for Sunglasses is explicit: yes, language-layer filtering is required. But the defensible moat is verifiable chain control across adapters, sinks, and drift. Not anti-jailbreak theater. Verifiable control of cross-boundary agent behavior.

Why now

Want to talk about what this means for your stack? We are building this in the open.

FIG.15 · Analysis

Final take

sunglasses://blog/guardrails-are-not-enough
Context

AI guardrails are real progress. They reduce real risk.

The point

But if they are treated as the whole security story, teams will keep getting surprised by incidents that never looked like classic jailbreak text.

Detail

The future of agentic AI security is not a single filter. It is assumption verification across the full path from input to action to impact.

In practice

That is what we are building at Sunglasses. If you want to understand where this category is headed, start with our thesis, explore the FAQ, or scan your own agent with the open-source scanner.

FIG.16 · Related reading

More from Sunglasses

Frequently Asked Questions

sunglasses://blog/guardrails-are-not-enough#faq
Q.01

Are AI guardrails enough to secure AI agents?

No. AI guardrails handle prompt injection detection and output filtering, but AI agents face attacks through tools, supply chains, MCP servers, file systems, and trust boundaries that guardrails cannot reach. A complete agentic AI security architecture requires boundary verification, chain correlation, and drift detection beyond the language layer.

Q.02

What is the difference between guardrails and AI agent security?

Guardrails are one control plane — they inspect, route, block, or rewrite text at the language layer. AI agent security covers the full attack chain: ingestion filtering, boundary assertions, runtime policy gates, chain correlation linking untrusted input to high-trust actions, and drift detection when tools or configurations change.

Q.03

How does Sunglasses compare to Lakera, Rebuff, and NeMo Guardrails?

Lakera, Rebuff, and NeMo Guardrails focus on language-layer interception — prompt attacks, policy enforcement, and dialog control. Sunglasses covers the full attack chain including artifact scanning, tool permission verification, supply chain integrity, cross-boundary chain correlation, and runtime drift detection. It functions as an AI agent security scanner, not just a prompt injection filter.

Q.04

What attacks can bypass prompt injection detection?

Attacks that bypass prompt injection detection include poisoned READMEs and documents, compromised dependencies and AI supply chain attacks, MCP tool poisoning where servers change behavior after trust is established, connector configuration injection, model artifact deserialization exploits, and chained sequences of individually-allowed actions that combine into a compromise.

Q.05

What is agentic AI security?

Agentic AI security is the practice of securing autonomous AI agents that can read files, call APIs, execute tools, and take actions in the real world. Unlike chatbot security which focuses on text, agentic AI security must enforce trust boundaries across tools, file systems, network paths, supply chains, and multi-step action chains.

Q.06

How do MCP tool poisoning attacks work?

MCP tool poisoning attacks exploit the trust relationship between AI agents and MCP servers. An MCP server can change its behavior after initial trust is established — modifying tool descriptions, altering response formats, or injecting instructions through metadata fields. DNS rebinding attacks can also redirect localhost trust assumptions. Guardrails that only inspect prompts miss these transport-layer attacks entirely. Read more in our deep dive on MCP tool poisoning.

Q.07

What is a prompt injection scanner?

A prompt injection scanner detects malicious instructions hidden in text that could manipulate an AI model's behavior. While important, a prompt injection scanner is only one layer of defense. Modern AI agents also need scanning for supply chain attacks, tool permission violations, cross-boundary data flows, and configuration-level injection into execution sinks.

Q.08

Do AI agents need more than prompt filtering?

Yes. Prompt filtering addresses the language layer, but AI agents interact with file systems, APIs, databases, MCP servers, and external services. Real-world incidents in 2026 show attacks through connector configuration fields, sandbox claim mismatches, path traversal in helper utilities, and model artifact deserialization — none of which are caught by prompt filtering alone.

Scan what the agent sees, before it acts

Sunglasses is the open-source scanner for AI agent security. pip install sunglasses