prompt-injection-exploits-instruction-ambiguity

IN premiseentries/2026/06/21/wiki-Prompt_engineering-chunk-1.md

Created 2026-06-21T09:50:10+00:00

Prompt injection exploits the model's inability to distinguish developer-defined instructions from user inputs, analogous to SQL injection and XSS

Summary

Prompt injection works because the model reads developer commands and user text in the same stream and cannot reliably tell them apart, which means a user can sneak in overrides that redirect the model's behavior. This is the same structural failure that made databases vulnerable to SQL injection and websites to cross-site scripting: the system has no hard boundary between "trusted instructions" and "untrusted data," so the entire safety of the pipeline depends on a soft, statistical separation that attackers can cross.

Dependents

These beliefs depend on this one: