Skip to content

Preventing Prompt Injection with Type-Directed Privilege SeparationPreventing Prompt Injection with Type-Directed Privilege Separation

arXiv· arXiv:2509.25926· Dennis Jacob, Emad Alghamdi, Zhanhao Hu, Basel Alomair, David Wagner·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

The researchers propose type-directed privilege separation, a prompt injection defense method aimed at expanding the range of tasks that system-level defenses can protect. The method converts untrusted data into a set of carefully designed data types; unlike raw strings, each type has restricted scope and content, which the paper claims eliminates the possibility of prompt injection. The paper notes that existing detectors and fine-tuning defenses are vulnerable to adaptive attacks, while prior system-level defenses, although they can guarantee security, are often based on techniques that block communication between components, resulting in limited problem coverage. The authors' evaluation in multiple case studies shows that designs adopting this principle can systematically prevent prompt injection attacks while having strong and non-trivial practicality, and are compatible with any language model.

Read originalarxiv.org