AIDEFEND in Action AIA-0015 Incident Published: Apr 25, 2026

Web-Based IDPI in the Wild: When Webpages Become Agent Prompt Delivery

Unit 42 observed web-based indirect prompt-injection payloads on real webpages, including attempts to evade AI ad review, manipulate SEO, initiate transactions, destroy data, deny service or leak information. These are detected payloads and attacker intents, not proof that every intended consequence occurred. The report explicitly says it has no confirmed real-world demonstration of successful compromise of deployed ad-checking agents.

Indirect Prompt InjectionTool AuthorizationAgentic AIWeb Security
9 applicable AIDEFEND defenses
Source: Fooling AI Agents: Web-Based Indirect Prompt Injection Observed in the Wild 
Authors: Beliz Kaleli, Shehroze Farooqi, Oleksii Starov, Nabeel Mohamed
Original article: Mar 3, 2026

Threat Analysis

  • The web is becoming a prompt delivery surface. Attackers can hide instructions in pages that browsers, search tools, ad reviewers, crawlers, copilots, or autonomous agents later summarize or analyze.
  • The observed intents are no longer just novelty prompts. Unit 42's telemetry includes payloads seeking those outcomes. Intent-based severity does not establish that an agent executed the requested action or that a victim suffered the impact.
  • Payload delivery is built for web parsers. The article documents visible plaintext, hidden CSS, zero-sized text, off-screen positioning, HTML attribute cloaking, SVG or CDATA wrapping, JavaScript runtime assembly, canvas/OCR paths, and URL-fragment tricks.
  • The bypass layer is mostly semantic. Samples use authority-override language, JSON or syntax injection, multilingual instructions, payload splitting, homoglyphs, Unicode bidirectional override, and nested encoding.
  • The risk scales with the agent's authority. The same hidden webpage instruction is low impact for a read-only summarizer, but dangerous for an agent that can approve ads, make purchases, write databases, disclose internal data, or execute commands.

Applicable AIDEFEND Defenses (9)

AID-H-018.004
Intent-Based Dynamic Capability Scoping
High
At an operator-controlled tool dispatcher, intersect authenticated subject, workload, registry and separately authorized task grants; enforce signed scope, expiry and atomic action budgets, including the G002 trusted-registry and external-audit wrapper. Untrusted content may narrow scope but cannot grant tools. This denies out-of-scope calls, not misuse of an already permitted tool or malicious answers within the allowed task. Every alternate execution path needs verified coverage; provider-managed runtime enforcement is not established by this mapping.
AID-H-019.001
URL Normalization & Allowlist Filtering
High
Unit 42's samples include URL-fragment tricks, payment links, and rendered links that can become outbound requests. URL normalization and allowlist filtering make every fetchable destination explicit before an agent follows, previews, or sends data to it.
AID-H-002.002
Inference-Time Prompt & Input Validation
High
Webpage text becomes dangerous at the moment it is assembled into an inference request. The system should validate the final prompt package, label fetched web content as untrusted data, reject instruction-shaped content from data channels, and fail closed when a page tries to rewrite developer instructions or role hierarchy.
AID-H-019.002
Secure HTML Rendering & Content Demotion
Medium
The published bounded HTML routine removes executable/embedded elements and markup, returns gateway-owned provenance, and keeps the result in an untrusted data role. It does not compute CSS visibility, perform OCR, or universally sanitize SVG. Hidden/off-screen natural-language instructions can remain in the extracted text, and a trust label does not make the model ignore them. Independent admission, tool and destination controls still enforce the boundary.
AID-D-001.001
Per-Prompt Content, Intent & Obfuscation Analysis
Medium
At an operator-controlled ingress, G001 can apply a pinned, calibrated secondary classifier to the extracted page text actually admitted to the agent and emit a content-bound finding for task redirection, authority claims or privilege escalation. G001 does not parse DOM, perform OCR, compare rendered pages or decode every listed carrier. The currently non-initializing G002 example cannot be credited as a working universal decoder. A finding supplies evidence; a separate admission policy owns refusal. Plausible or concealed instructions can evade classification. Independently validate the complete classifier result and required category coverage before admission. The current G001 sample returns PASS/NO_FINDING for empty output, missing categories or NaN scores; treat those conditions as errors and refuse admission. This validation is an additional integration guard, not behavior already supplied by the published sample.
AID-H-018.005
Value-Level Capability Metadata & Data Flow Sink Enforcement
Medium
The high-impact examples rely on data or actions flowing to the wrong sink: payment URLs, external web destinations, backend databases, or prompt-leak outputs. Runtime values derived from web content should carry untrusted provenance, and high-sensitivity values should be blocked from outbound HTTP, payment, database-write, or disclosure sinks unless policy explicitly permits the transfer. This requires a controlled runtime with authenticated source/content bindings for every derived value, complete sink coverage and fail-closed unknown labels. One ingress label does not track arbitrary model rewriting. Native processes, browser requests and allowed destinations need separately verified coverage; stock SaaS deployment is not established.
AID-H-017.007
Dual-LLM Isolation Pattern
Medium
Only the separately deployed, unprivileged Q worker may read raw pages; a validating broker passes narrow domain-specific values to P under authenticated source/model/schema bindings. The published price-observation schema needs an independently tested adapter for another task. Typed free text can still carry malicious instructions and false facts. Verify process, credential and network separation, deny broker bypass and independently authorize every final action; managed runtimes require provider support.
AID-D-003.003
Agentic Tool Use & Action Policy Monitoring
Medium
Unauthorized transactions, data deletion, DoS commands, and ad-approval bypasses become visible when the agent tries to act. Tool-use monitoring should compare requested actions with the original user intent, page trust level, tool risk class, and recent prompt-injection signals before execution.
AID-D-003.002
Sensitive Information & Data Leakage Detection
Medium
Before delivery, logging or tool handoff, scan the exact output fields for the formats and tenant-specific literals/patterns actually configured and verified. The published common-format sample covers cards, US SSNs and AWS access-key IDs; arbitrary system-prompt text needs a separate organization-specific rule or detector. Encoded, transformed or novel secrets can evade matching. This emits findings only; a separate sink gate owns withholding/redaction, including link and tool-request coverage.

What Defenders Should Do Now

  • Inventory every product path where an agent, crawler, browser assistant, ad reviewer, security scanner, or copilot ingests public web content and then uses an LLM to decide, summarize, rank, approve, or act.
  • Normalize and demote webpage content before inference. Preserve exact source/content bindings for the actual DOM, text or OCR path. Hidden, attribute, SVG and runtime content require separate extraction tests; the HTML sanitizer does not remove every hidden instruction. Any necessary page execution belongs in an isolated environment without secrets or privileged tools.
  • Before context assembly, independently test the exact DOM/text/OCR extraction paths and permitted decoding transforms. Apply a calibrated detector to the text actually admitted, measure missed hidden and multilingual instructions, and reject malformed detector results. The current published detector is not a universal carrier decoder.
  • Bind every web-ingestion session to a narrow capability envelope. A summarizer should summarize; an ad reviewer should classify; neither should be able to purchase, donate, write databases, run commands, or disclose internal data because a page contains instructions.
  • Treat external URLs, payment links, database writes, email, file exports, and rendered Markdown links as sinks. Enforce data-flow policy at those sinks, not only at the model prompt.
  • Turn Unit 42's taxonomy into regression tests. Seed harmless pages with hidden CSS, attribute-cloaked text, encoded payloads, social-engineering instructions, and fake payment or deletion requests, then keep testing until the chain fails at multiple layers.

Conclusion

This report matters because it shows web-based IDPI moving from research demos into broad, messy web telemetry. The attack is a delivery problem, a parsing problem, a context-boundary problem, and an authority problem. AIDEFEND  maps strongly to secure HTML demotion, obfuscation analysis, inference-time validation, capability scoping, sink enforcement, isolation, and action monitoring. The practical goal is to make public web content useful to agents without letting the web become a control channel for agents.

Last updated: