Maatphor: Automated Variant Analysis for Prompt Injection AttacksMaatphor: Automated Variant Analysis for Prompt Injection Attacks
AI summary
The researchers propose a tool named Maatphor for automated variant analysis of known prompt injection attacks, to test whether newly added defenses and guardrails can cover variants of the same attack. The tool addresses two problems: first, automatically generating variants of a given prompt; second, judging whether a variant is effective based solely on model output; it can also be used to generate datasets of jailbreak and prompt injection attacks, alleviating data scarcity in this field. The authors evaluate Maatphor on three prompt injection tasks, and state that starting from a seed prompt with 0% effectiveness, the tool stably generated variants with at least 60% effectiveness within the first 40 iterations.