Reproduce “When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yigitcan Kaya, Anton Landerer, Stijn Pletinckx, Michelle Zimmermann, Christopher Kruegel, Giovanni Vigna
Researchers from the University of California, Santa Barbara conducted the first large-scale empirical analysis of prompt injection risks in third-party AI chatbot plugins deployed on over 10,000 public websites, finding that common plugin implementations undermine LLM security by allowing high-privilege message injection and proposing practical mitigation strategies. The study revealed that injecting adversarial prompts into privileged roles increased attack success 3-8 times, and non-standard RAG content insertion modes amplified indirect attack success up to 5 times.
Key insights
- Many third-party chatbot plugins undermine LLM instruction hierarchy by allowing adversaries to forge and inject high-privilege `system` or `assistant` messages into the LLM context via compromised conversation history.
- Insecure practices, such as inserting untrusted RAG content as `system` role messages instead of the lower-privileged `tool` role, significantly amplify indirect prompt injection risks.
- System prompt hardening provides limited protection against tool hijacking, and LLM robustness to prompt injection varies significantly across models and vendors, with larger models not consistently demonstrating higher resilience.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.