CourtGuard: A Local, Multiagent Prompt Injection Classifier
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
As large language models (LLMs) become integrated into various sensitive applications, prompt injection, the use of prompting to induce harmful behaviors from LLMs, poses an ever increasing risk. Prompt injection attacks can cause LLMs to leak sensitive data, spread misinformation, and exhibit harmful behaviors. To defend against these attacks, we propose CourtGuard, a locally-runnable, multiagent prompt injection classifier. In it, prompts are evaluated in a court-like multiagent LLM system, where a "defense attorney" model argues the prompt is benign, a "prosecution attorney" model argues the prompt is a prompt injection, and a "judge" model gives the final classification. CourtGuard has a lower false positive rate than the Direct Detector, an LLM as-a-judge. However, CourtGuard is generally a worse prompt injection detector. Nevertheless, this lower false positive rate highlights the importance of considering both adversarial and benign scenarios for the classification of a prompt. Additionally, the relative performance of CourtGuard in comparison to other prompt injection classifiers advances the use of multiagent systems as a defense against prompt injection attacks. The implementations of CourtGuard and the Direct Detector with full prompts for Gemma-3-12b-it, Llama-3.3-8B, and Phi-4-mini-instruct are available at https://github.com/isaacwu2000/CourtGuard.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 16 of its 22 references that are in the map. First posted on arXiv 20 Oct 2025.
Builds on
16 of 22 references.
Closest ancestors · 10
Same direction, newest first
- 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challenge11 Jun
- 2025Sentinel: SOTA model to protect against prompt injections5 Jun
- 2025Defeating Prompt Injections by Design24 Mar
- 2025Prompt Injection Detection and Mitigation via AI Multi-Agent NLP Frameworks14 Mar
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2025Exploring Potential Prompt Injection Attacks in Federated Military LLMs and Their Mitigation30 Jan
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models30 Oct
- 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Models31 Jan
- 2024Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applications15 Jan
Other references · 6
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2025Reasoning Models Don't Always Say What They Thinkcited by 388
- 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teamingcited by 172
- 2023Spear Phishing With Large Language Modelscited by 49
- 2024Backdoored Retrievers for Prompt Injection Attacks on Retrieval Augmented Generation of Large Language Modelscited by 21
- 2024[WIP] Jailbreak Paradox: The Achilles' Heel of LLMscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.