LangChain Poisoning Jailbreak
A vulnerability in Retrieval-Augmented Generation (RAG) systems utilizing LangChain allows for indirect jailbreaks of Large Language Models (LLMs). By poisoning the external knowledge base accessed by the LLM through LangChain, attackers can manipulate the LLM's responses, causing it to generate malicious or inappropriate content. The attack exploits the LLM's reliance on the external knowledge base and bypasses direct prompt-based jailbreak defenses.
Evaluated models: ChatGLM2 6B, ChatGLM3 6B, ERNIE 3.5+3 more
- ChatGLM2 6B
- ChatGLM3 6B
- ERNIE 3.5
- Llama 2 7B
- Qwen 14B Chat
- Xinghuo-3.5