mlsanityData to 14 Oct 2026

Poisoned LangChain: Jailbreak LLMs by LangChain

arXiv 2406.18122 ↗First posted 26 Jun 2024cs.CL cs.AIcited by 14

On the map: Retrieval-augmented generation → Privacy and security of RAG

also in 1 more
Abstract (arXiv)

With the development of natural language processing (NLP), large language models (LLMs) are becoming increasingly popular. LLMs are integrating more into everyday life, raising public concerns about their security vulnerabilities. Consequently, the security of large language models is becoming critically important. Currently, the techniques for attacking and defending against LLMs are continuously evolving. One significant method type of attack is the jailbreak attack, which designed to evade model safety mechanisms and induce the generation of inappropriate content. Existing jailbreak attacks primarily rely on crafting inducement prompts for direct jailbreaks, which are less effective against large models with robust filtering and high comprehension abilities. Given the increasing demand for real-time capabilities in large language models, real-time updates and iterations of new knowledge have become essential. Retrieval-Augmented Generation (RAG), an advanced technique to compensate for the model's lack of new knowledge, is gradually becoming mainstream. As RAG enables the model to utilize external knowledge bases, it provides a new avenue for jailbreak attacks. In this paper, we conduct the first work to propose the concept of indirect jailbreak and achieve Retrieval-Augmented Generation via LangChain. Building on this, we further design a novel method of indirect jailbreak attack, termed Poisoned-LangChain (PLC), which leverages a poisoned external knowledge base to interact with large language models, thereby causing the large models to generate malicious non-compliant dialogues.We tested this method on six different large language models across three major categories of jailbreak issues. The experiments demonstrate that PLC successfully implemented indirect jailbreak attacks under three different scenarios, achieving success rates of 88.56%, 79.04%, and 82.69% respectively.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 26 references that are in the map. First posted on arXiv 26 Jun 2024.

Builds on

13 of 26 references.

References · 13

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2023Qwen Technical Reportcited by 3,344
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  5. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  6. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
  7. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
  8. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
  9. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  10. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 183
  11. 2024JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMscited by 95
  12. 2017Table-to-text Generation by Structure-aware Seq2seq Learningcited by 54
1 more
  1. 2023SPROUT: an Interactive Authoring Tool for Generating Programming Tutorials with the Visualization of Large Language Modelscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 4.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024A Cross-Language Investigation into Jailbreak Attacks in Large Language Models
  2. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
  3. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  4. 2024Divide and Conquer: A Hybrid Strategy Defeats Multimodal Large Language Models
  5. 2025Exploring Jailbreak Attacks on LLMs through Intent Concealment and Diversion
  6. 2024Characterizing and Evaluating the Reliability of LLMs against Jailbreak Attacks
  7. 2025Evolving Security in LLMs: A Study of Jailbreak Attacks and Defenses
  8. 2024SequentialBreak: Large Language Models Can be Fooled by Embedding Jailbreak Prompts into Sequential Prompt Chains