PromptLocate: Locating prompt injection attacksPromptLocate: Localizing Prompt Injection Attacks
Yuqi Jia and other researchers propose PromptLocate in an arXiv paper, for locating the injected prompts that prompt injection attacks mix into the input data of large language models; the authors claim this is the first method of its kind. Prompt injection attacks lure the model into executing tasks specified by the attacker by mixing prompts composed of injected instructions and data into the input data; locating the injected prompts is critical for post-attack forensic analysis and data recovery, but this direction has previously been largely unexplored. PromptLocate works in three steps: first splitting the contaminated data into semantically coherent segments, then identifying segments contaminated by injected instructions, and finally precisely locating segments contaminated by injected data. The authors claim that the method can accurately locate injected prompts on eight existing attacks and eight adaptive attacks.