Join our Newsletter — 33% off our NHI Course
Home› Glossary› AI Security› A2UI
AI Security

A2UI

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: AI Security

A2UI (Agent-to-User Interface) is an open protocol that lets an AI agent describe a user interface as declarative data, which the client application renders using its own pre-approved components. Because the agent sends no executable code, the client controls what can appear. Defenders should still validate the payload, restrict the component catalogue and treat agent-supplied text as untrusted.

How A2UI changes the security model

A2UI moves the untrusted part of an agent interaction away from executable code and into declarative UI data. That is a meaningful security boundary: the client decides which pre-approved components can render, so the protocol reduces code-execution risk while shifting attention to payload integrity, component selection, and how much freedom the agent has to shape what the user sees.

The important implication is that “no code” does not mean “no control.” The interface description can still influence user actions, expose sensitive information, or steer attention through wording, layout, and component choice. The security question becomes whether the client enforces a narrow enough rendering model to keep agent output within intended product boundaries.

In practice, A2UI sits in the same family of trust-boundary problems as other agent-facing interface protocols. For a deeper treatment of trust boundaries, untrusted run inputs, and component catalogue controls, see AG-UI and A2UI Security Guide.

Declarative rendering and component allowlisting

A2UI is safest when the client treats the agent payload as structured data, not as an instruction stream. The renderer should map only to known component types, reject unknown fields, and avoid any behavior that lets the agent indirectly select unsafe UI primitives or hidden actions.

The component catalogue is therefore part of the attack surface. If the client exposes too many variants, the agent can assemble misleading or overly powerful interfaces even without executable code. Good design keeps the set of available widgets small, explicit, and versioned so that the server-side protocol cannot outgrow the client’s security assumptions.

Allowlisting also matters for links, navigation, and state transitions. If a component can open URLs, trigger workflow actions, or surface privileged data, those capabilities should be pre-approved in the client rather than inferred from agent text. That is the difference between declarative presentation and delegated authority.

Payload validation and untrusted text handling

A2UI still requires defensive input handling because declarative objects can be malformed, oversized, or crafted to abuse rendering logic. Validation should check schema shape, field types, size limits, nesting depth, and whether the proposed UI is consistent with the client’s expected context before anything is rendered.

Agent-supplied text should always be treated as untrusted content, even when it is only displayed rather than executed. The client should escape or encode text according to the rendering context, prevent HTML or markdown surprises where relevant, and ensure that labels, captions, and descriptions cannot impersonate trusted interface elements.

This is also where state integrity matters. If the UI description can influence workflow state, thread context, or prior user decisions, the client should bind that state to its own trusted records rather than trusting the agent to restate it correctly. Declarative UI only remains safe when the renderer, not the model, owns the final presentation rules.

Operational limits and governance expectations

A2UI works best when product teams define the protocol as a constrained presentation layer, not as a general-purpose front end. That means deciding in advance which components exist, which actions they may expose, and what kinds of content are never allowed to affect layout or control flow.

Governance should focus on change control for the component catalogue and on review of any new UI capability that expands the agent’s influence over the client. The practical test is simple: if a new element would let the agent change user trust, navigation, or action choice in a way the client did not already anticipate, it needs explicit approval.

Used that way, A2UI can reduce risk compared with agent-generated code or arbitrary markup, but only if the client preserves strict ownership of rendering, behavior, and safety boundaries.

Risk and Threat Considerations

A2UI reduces code-injection risk, but it does not remove the risk of interface abuse. A malicious or manipulated agent can still use declarative output to mislead users, smuggle unsafe links or actions, or exploit gaps between what the payload says and what the client actually intended to allow.

Failure mechanism: The client trusts the structure or semantics of the agent payload too broadly, so a seemingly harmless UI description can trigger unsafe navigation, expose sensitive state, or present deceptive controls that the user treats as authoritative.

Impact: The result can be user confusion, unsafe action execution, data exposure, or a loss of trust in the interface layer, even when no executable code was delivered.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationA2UI depends on validating untrusted agent-supplied UI data before rendering.
AC-4 — Information Flow EnforcementA2UI needs the client to control what data and actions can flow into the rendered UI.
SA-11 — Developer Testing and EvaluationA2UI security hinges on testing the renderer, component catalog and trust-boundary handling.
Recommendation — Enforce SI-10 to validate A2UI payloads before the client renders them. Use AC-4 to constrain which agent-described UI actions the client may expose. Apply SA-11 to verify the A2UI renderer rejects unsafe payloads and components.
OWASP ASVSV13 — ConfigurationA2UI security depends on a tightly governed client-side component configuration.
V1 — Encoding and SanitizationAgent text in A2UI must be safely encoded before display or interpolation.
Recommendation — Lock down the approved A2UI component set under V13. Apply V1 to sanitize all agent-supplied text shown through A2UI.

Practitioner Guidance

Why practitioners should care: A2UI is only safe when the client owns the rendering contract. If the product team treats the protocol as “just text,” it becomes easy to miss how much control the agent still has over user perception and workflow steering.

Common misunderstanding: Teams often assume that removing executable code from the payload solves the security problem. In reality, the harder problem is constraining what the agent can describe, select, or imply through the approved component set.

Practitioner takeaway: Design the renderer so that every agent-provided UI element is validated, mapped to a known component, and bounded by client-side policy before it reaches the user.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org