Subscribe to the Non-Human & AI Identity Journal

UIResource

A UIResource is an MCP-UI object that packages interactive content for rendering inside an agent conversation. It carries a URI, MIME type, and content payload so the client can decide how to present the component while preserving protocol structure and security boundaries.

Expanded Definition

A UIResource is not the visible UI itself, but the structured content object that an MCP client can render inside an agent conversation. In Model Context Protocol, that distinction matters: the resource travels with a URI, MIME type, and payload so the client can decide whether to display text, cards, forms, or other interactive components without breaking protocol boundaries.

Definitions vary across vendors when UIResources are discussed alongside widgets, views, or embedded panels, so NHI Management Group treats the term narrowly: a UIResource is a transportable presentation resource, not an authorization object and not a substitute for the underlying tool call. The security significance is that the client controls rendering while the server controls content generation, which helps preserve separation of duties. That alignment is consistent with broader protocol design principles reflected in the NIST Cybersecurity Framework 2.0.

The most common misapplication is treating a UIResource as trusted application logic, which occurs when teams let presentation payloads carry hidden execution steps or sensitive state.

Examples and Use Cases

Implementing UIResources rigorously often introduces extra design and validation work, requiring organisations to weigh richer in-conversation experiences against stricter content handling and rendering controls.

  • A support agent returns a UIResource containing an incident summary card, letting the client render status, owner, and severity without exposing internal workflow data.
  • An approval workflow uses a UIResource form for a human reviewer to confirm an NHI rotation request, while the underlying tool call remains separate from the rendered interface.
  • A developer assistant surfaces a configuration checklist as a UIResource so the client can present structured remediation steps instead of plain text.
  • An operator reviewing suspicious activity can compare the rendered UIResource with the underlying tool output to spot mismatched labels, a pattern relevant to incidents like the ASP.NET machine keys RCE attack where weak handling of secrets and execution boundaries becomes dangerous.
  • In protocol-heavy environments, teams often map UIResource behavior to the NIST Cybersecurity Framework 2.0 functions for protect and detect, because rendering paths become another place to validate integrity.

For organisations building agentic interfaces, UIResources are most useful when the client can render structured context without granting the model direct control over presentation state or sensitive credentials.

Why It Matters in NHI Security

UIResources matter because agent conversations increasingly become operational control surfaces for NHIs, and anything rendered there can shape approval, revocation, or rotation decisions. If the payload is ambiguous, malicious, or over-permissive, an operator may approve the wrong action or overlook a compromised identity. That is especially risky in environments where NHIs already outnumber human identities by 25x to 50x, because interface confusion scales faster than manual review capacity. NHI Management Group research shows that 97% of NHIs carry excessive privileges, so presentation errors can quickly become privilege errors when the wrong resource is surfaced to the wrong reviewer.

Proper UIResource handling also helps keep interactive content distinct from secrets, tool outputs, and execution instructions. That separation supports safer agent governance and reduces the chance that a rendered component becomes a covert pathway for data leakage or action injection. Organisationally, UIResources are part of the larger discipline of controlling how agents expose decisions, not just how they make them, which aligns with the principle that NHI management is essential to successful zero trust implementation. Organizations typically encounter the operational impact only after a misleading panel, approval slip, or compromised workflow reveals that the rendered interface was treated as trustworthy by default.

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 CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Agentic UI surfaces are covered where model outputs can drive unsafe actions or misleading interfaces.
NIST CSF 2.0 PR.DS-1 UIResource payloads are data assets that need protection during transport and rendering.
NIST Zero Trust (SP 800-207) SC.L2-3 Zero Trust requires separating presentation trust from execution trust in agent workflows.

Keep UIResources separate from execution paths and validate rendered content before any human approval.