mlsanityData to 7 Oct 2026

RedAgent: Red Teaming Large Language Models with Context-aware Autonomous Language Agent

arXiv 2407.16667 ↗First posted 23 Jul 2024cs.CR cs.AI cs.CLcited by 39

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Recently, advanced Large Language Models (LLMs) such as GPT-4 have been integrated into many real-world applications like Code Copilot. These applications have significantly expanded the attack surface of LLMs, exposing them to a variety of threats. Among them, jailbreak attacks that induce toxic responses through jailbreak prompts have raised critical safety concerns. To identify these threats, a growing number of red teaming approaches simulate potential adversarial scenarios by crafting jailbreak prompts to test the target LLM. However, existing red teaming methods do not consider the unique vulnerabilities of LLM in different scenarios, making it difficult to adjust the jailbreak prompts to find context-specific vulnerabilities. Meanwhile, these methods are limited to refining jailbreak templates using a few mutation operations, lacking the automation and scalability to adapt to different scenarios. To enable context-aware and efficient red teaming, we abstract and model existing attacks into a coherent concept called "jailbreak strategy" and propose a multi-agent LLM system named RedAgent that leverages these strategies to generate context-aware jailbreak prompts. By self-reflecting on contextual feedback in an additional memory buffer, RedAgent continuously learns how to leverage these strategies to achieve effective jailbreaks in specific contexts. Extensive experiments demonstrate that our system can jailbreak most black-box LLMs in just five queries, improving the efficiency of existing red teaming methods by two times. Additionally, RedAgent can jailbreak customized LLM applications more efficiently. By generating context-aware jailbreak prompts towards applications on GPTs, we discover 60 severe vulnerabilities of these real-world applications with only two queries per vulnerability. We have reported all found issues and communicated with OpenAI and Meta for bug fixes.

Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 35 of its 62 references that are in the map. First posted on arXiv 23 Jul 2024.

Builds on

35 of 62 references.

References · 35

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  7. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  9. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  10. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  11. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  12. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
23 more
  1. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  2. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  3. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
  4. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
  5. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
  6. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  7. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
  8. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  9. 2023Benchmarking Large Language Models for News Summarizationcited by 444
  10. 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356
  11. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 337
  12. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 320
  13. 2023Large Language Models as Tool Makerscited by 293
  14. 2023Low-Resource Languages Jailbreak GPT-4cited by 290
  15. 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 222
  16. 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 197
  17. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
  18. 2023From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and Privacycited by 137
  19. 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 128
  20. 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstructioncited by 95
  21. 2024DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakerscited by 91
  22. 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
  23. 2023Exploring the Feasibility of ChatGPT for Event Extractioncited by 76

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 20; 2026: 14.

39 papers.

Sort:

By area:

  1. 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 93
  2. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
  3. 2025AutoRedTeamer: Autonomous Red Teaming with Lifelong Attack Integrationcited by 38
  4. 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trendscited by 26
  5. 2025Security Concerns for Large Language Models: A Surveycited by 26
  6. 2026OpenRT: An Open-Source Red Teaming Framework for Multimodal LLMscited by 18
  7. 2024Attack Atlas: A Practitioner's Perspective on Challenges and Pitfalls in Red Teaming GenAIcited by 14
  8. 2024Farmer.Chat: Scaling AI-Powered Agricultural Services for Smallholder Farmerscited by 12
  9. 2025Building Safe GenAI Applications: An End-to-End Overview of Red Teaming for Large Language Modelscited by 11
  10. 2025RainbowPlus: Enhancing Adversarial Prompt Generation via Evolutionary Quality-Diversity Searchcited by 10
  11. 2025Graph of Attacks with Pruning: Optimizing Stealthy Jailbreak Prompt Generation for Enhanced LLM Content Moderationcited by 9
  12. 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agentscited by 9
27 more
  1. 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
  2. 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
  3. 2025Evolve the Method, Not the Prompts: Evolutionary Synthesis of Jailbreak Attacks on LLMscited by 7
  4. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agentscited by 7
  5. 2026ProbeLLM: Automating Principled Diagnosis of LLM Failurescited by 7
  6. 2026GPT-Red: Automated Red Teaming via Self-Play at Scalecited by 5
  7. 2024Towards Action Hijacking of Large Language Model-based Agentcited by 4
  8. 2025AntiDote: Bi-level Adversarial Training for Tamper-Resistant LLMscited by 4
  9. 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 4
  10. 2025CrossGuard: Safeguarding MLLMs against Joint-Modal Implicit Malicious Attackscited by 4
  11. 2025Can Small Language Models Reliably Resist Jailbreak Attacks? A Comprehensive Evaluationcited by 3
  12. 2025Exploring the Vulnerability of the Content Moderation Guardrail in Large Language Models via Intent Manipulationcited by 3
  13. 2025Playing Devil's Advocate: Unmasking Toxicity and Vulnerabilities in Large Vision-Language Modelscited by 2
  14. 2025Tailored untruths: How personalisation challenges LLM safeguardscited by 2
  15. 2026ADR: An Agentic Detection System for Enterprise Agentic AI Securitycited by 2
  16. 2026Agent Hacks Agent: Autoresearch for Production-Agent Red-Teamingcited by 2
  17. 2025MAD-MAX: Modular And Diverse Malicious Attack MiXtures for Automated LLM Red Teamingcited by 1
  18. 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
  19. 2026Risk-Adjusted Harm Scoring for Automated Red Teaming for LLMs in Financial Servicescited by 1
  20. 2026SpecAlign: Efficient Specification-Grounded Alignment of Large Language Models via Synthetic Datacited by 1
  21. 2026FinRED: An Expert-Guided Benchmark Generation and Evaluation Framework for Financial LLM Red-Teamingcited by 1
  22. 2026One Turn Too Late: Learning When to Intervene Against Multi-Turn Malicious Intentcited by 0
  23. 2026Persona-Conditioned Adversarial Prompting: Multi-Identity Red-Teaming for Adversarial Discovery and Mitigationcited by 0
  24. 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolutioncited by 0
  25. 2026COMPASS: Cognitive MCTS-Guided Process Alignment for Safe Search Agentscited by 0
  26. 2026A Red Teaming Framework for Large Language Models: A Case Study on Faithfulness Evaluationcited by 0
  27. 2026Adversarial Stress Testing of Role-Playing Language Agents using Multi-Agent Evaluationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025CoP: Agentic Red-teaming for Large Language Models using Composition of Principles
  2. 2025Jailbreak-R1: Exploring the Jailbreak Capabilities of LLMs via Reinforcement Learning
  3. 2024Red Teaming GPT-4V: Are GPT-4V Safe Against Uni/Multi-Modal Jailbreak Attacks?
  4. 2025Evaluating Multi-Agent Defences Against Jailbreaking Attacks on Large Language Models
  5. 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agents
  6. 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Tools
  7. 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models
  8. 2026AJAR: Adaptive Jailbreak Architecture for Red-teaming