Skip to content
HN On Hacker News ↗

Prismata: Confining Cross-Site Prompt Injection in Web Agents

▲ 14 points 0 comments by zhinit 1mo ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

7 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 226
PEAK AI % 7% · §1
Analyzed
Jul 10
backend: pangram/v3.3
Segments scanned
1 windows
avg 226 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 226 words · 1 segments analyzed

Human AI-generated
§1 Human · 7%

View PDF HTML (experimental) Abstract:Autonomous web agents promise to automate everyday browsing tasks, but inherit one of the web's oldest attack surfaces. Cross-Site Scripting proved that mixing trusted and untrusted content is dangerous, even on benign pages. Agents resurface this risk by interpreting natural language as instructions, allowing third-party and user-generated content to hijack the agent via prompt injection. The core challenge is that deriving a task-specific security policy requires reasoning over page structure that is entangled with the attacker's content. We present Prismata, a defense enforcing contextual least privilege for web agents, constraining both what the agent sees and what it can do. Prismata's dynamic trust derivation produces permission labels for page content, with structural confinement guarantees, inspired by classical integrity models, that bound any labeling errors so that labels can only decrease in privilege and mislabelings are bounded. Prismata's mechanical confinement enforces these labels by redacting content and restricting agent capabilities. Importantly, these mechanisms require no developer annotations, so Prismata supports the long tail of websites. Across recent published web agent attacks, including adaptive variants, Prismata substantially reduces attack success while preserving benign task utility.

Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) Cite as: arXiv:2607.08147 [cs.CR]   (or arXiv:2607.08147v1 [cs.CR] for this version)   https://doi.org/10.48550/arXiv.2607.08147 arXiv-issued DOI via DataCite Submission history From: Corban Villa [view email] [v1] Thu, 9 Jul 2026 06:37:52 UTC (4,724 KB)