Subscribe to the Non-Human & AI Identity Journal

Rendering gap

The rendering gap is the difference between what a system reads from source text and what a user actually sees in the browser. In security workflows, that gap can be exploited to hide malicious instructions from AI tools that do not fully render pages before judging them.

Expanded Definition

The rendering gap is the mismatch between source text and rendered page output. In NHI and agentic AI workflows, that matters because a crawler, parser, or model may ingest hidden or obfuscated instructions that a human reviewer never sees, or miss content that only appears after rendering.

Usage is still evolving across vendors and research teams. Some tools analyse raw HTML only, while others execute scripts, expand accordions, and follow redirects before scoring content. The security question is not whether the page contains text, but whether the system’s view of the page is the same as the user’s view. That distinction is central to safe content triage, prompt-injection filtering, and page-level policy enforcement, especially when pages are used to instruct NIST Cybersecurity Framework 2.0-aligned automation or AI agents that can act on untrusted web input.

The most common misapplication is treating raw HTML inspection as equivalent to rendered-page review, which occurs when security controls ignore client-side content, late-loading scripts, or CSS-hidden instructions.

Examples and Use Cases

Implementing rendering-gap controls rigorously often introduces processing overhead, requiring organisations to weigh faster scanning against more faithful page interpretation.

  • An AI agent summarises a vendor page from source HTML, but a hidden prompt-injection payload appears only after JavaScript renders the page.
  • A phishing page shows benign text in the initial markup while the visible browser view loads a credential-harvesting form after a redirect.
  • A security crawler flags a page based on comments or off-screen text that no human user can actually see, creating a false positive.
  • A red-team exercise uses cloaked instructions to test whether a model follows source-only content instead of the rendered user experience.
  • Defenders compare raw fetch results with browser-rendered output to validate whether a page is safe to feed into an agentic workflow, consistent with lessons from the Ultimate Guide to NHIs and rendering-aware web security practices.

Rendering-aware validation is also useful when a web page serves as an input source for identity operations, because the content an automation trusts may differ materially from what an operator sees after full browser execution.

Why It Matters in NHI Security

Rendering gaps become a security problem when an NHI, API-based scanner, or AI agent makes an access, classification, or execution decision on incomplete page state. That can turn a harmless-looking document into an instruction channel for prompt injection, data exfiltration, or policy bypass. In practice, the risk rises when organisations let autonomous tools process untrusted webpages, knowledge bases, or ticketing content without browser-equivalent inspection.

This matters in the broader NHI attack surface because identities and secrets are often handled by automation, not humans. NHI Mgmt Group notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, and 79% of organisations have experienced secrets leaks, with 77% causing tangible damage, according to the Ultimate Guide to NHIs. A rendering gap can make those systems trust the wrong content at the wrong time, especially in workflows that also rely on NIST Cybersecurity Framework 2.0 style controls for access, detection, and response.

Organisations typically encounter the operational impact only after an agent has acted on hidden instructions or a reviewer has approved a misleading page, at which point rendering gap analysis becomes unavoidable to investigate the failure.

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

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Agentic AI guidance addresses prompt injection and untrusted content ingestion.
NIST CSF 2.0 PR.DS Data integrity and content trust are affected when source and rendered views diverge.
NIST AI RMF AI risk management covers harmful inputs and unreliable model context from web content.

Assess ingestion pipelines for misleading or adversarial rendered content.