Patterns and findings surfaced by ScopeGuard — grounded in data from the Gravitee State of AI Agent Security 2026 report (919 practitioners surveyed) and live observations from the demo agent.
Industry context — why this matters
88%
of organizations reported AI agent security incidents in 2026
Gravitee State of AI Agent Security 2026 (n=919)
78%
cannot trace agent actions back to a specific agent identity
Gravitee — Identity Is The Weakest Link
45.6%
still use shared API keys for agent-to-agent authentication
Gravitee — Agent-to-Agent Authentication Methods
57.4%
cite insufficient logging and audit trails as primary concern
Gravitee — Main Security Concerns When Building Agents
27.2%
use custom hardcoded authorization logic — difficult to audit at scale
Gravitee — Authorization Is Often Hardcoded
14.4%
only have full IT/security approval for their entire agent fleet
Gravitee — Shadow AI section
Findings from building ScopeGuard
LLM alone cannot secure authorization
When Layer 3 (Gemini) analyzed search_flights, it correctly returned 0 scopes — but this only happened because Layer 2 had already confirmed the action was within hard constraints. Without L2, a prompt injection could convince the LLM to classify a malicious action as low-risk.
Finding: Hard constraints must run before LLM — not after.
Agents routinely request more than they need
The travel agent declared 3 capabilities (payment:write, calendar:events:write, email:send). For a simple flight search, Gemini determined 0 scopes were needed. For booking, only 2 of 3 were needed. This means the declared scope set was 33–100% over-permissive for actual actions.
Finding: Dynamic scope minimization reduces blast radius by 33–100% per action.
Identity is the prerequisite for all other security controls
Without a unique agent_id claim in the token, the gateway cannot enforce per-agent limits, cannot produce meaningful audit logs, and cannot support revocation. Every other security property depends on identity being resolved first.
Finding: Agent identity (Auth0 M2M) is the load-bearing layer — without it, none of the other controls are attributable.
Step-up auth needs to be scoped to the specific action
Generic "please approve" notifications have 0 context for the user. CIBA binding_message with natural language explanation (generated by Gemini) gives users enough information to make an informed decision — which is the entire point of user consent.
Finding: Consent is only meaningful if the user understands what they are consenting to.