Skip to content

FATH: Certification-Based Test-Time Defense Against Indirect Prompt Injection AttacksFATH: Authentication-based Test-time Defense against Indirect Prompt Injection Attacks

arXiv· arXiv:2410.21492· Jiongxiao Wang, Fangzhou Wu, Wendi Li, Jinsheng Pan, Edward Suh, Z. Morley Mao, Muhao Chen, Chaowei Xiao·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

The researchers propose a test-time defense method named FATH for defending against indirect prompt injection attacks in large language model applications. Addressing the problems that training-time defenses are too costly and existing test-time defenses are limited in effectiveness, FATH does not prevent the model from responding to extra instructions in external text; instead, it requires the model to answer all received instructions under a security policy and marks each response with a hash-based certification label, ultimately filtering only the output that responds to the user's instruction, thereby improving robustness against adaptive attacks. Comprehensive experiments show that the method achieves state-of-the-art defense effectiveness against multiple attack methods on Llama3 and GPT3.5 models, and the code is open-sourced at https://github.com/Jayfeather1024/FATH。

Read originalarxiv.org