Prompt Injection Detection and Mitigation via AI Multi-Agent NLP Frameworks
Preprint
Abstract
Prompt injection constitutes a significant challenge for generative AI systems by inducing unintended outputs. We introduce a multi-agent NLP framework specifically designed to address prompt injection vulnerabilities through layered detection and enforcement mechanisms. The framework orchestrates specialized agents for generating responses, sanitizing outputs, and enforcing policy compliance. Evaluation on 500 engineered injection prompts demonstrates a marked reduction in injection success and policy breaches. Novel metrics, including Injection Success Rate (ISR), Policy Override Frequency (POF), Prompt Sanitization Rate (PSR), and Compliance Consistency Score (CCS), are proposed to derive a composite Total Injection Vulnerability Score (TIVS). The system utilizes the OVON (Open Voice Network) framework for inter-agent communication via structured JSON messages, extending a previously established multi-agent architecture from hallucination mitigation to address the unique challenges of prompt injection.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Exploring Potential Prompt Injection Attacks in Federated Military LLMs and Their Mitigation2025
- Jatmo: Prompt Injection Defense by Task-Specific Finetuning2024
- Insight AI Risk Detection Model - Vulnerable People Emotional Situation Support2024
- PromptShield: Deployable Detection for Prompt Injection Attacks2024
- Conversational hyperconvergence: an onlife evolution model for conversational AI agencyAI and Ethics, 2024
- Signed-prompt: A new approach to prevent prompt injection attacks against LLM-Integrated applications2024
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Universal Adversarial Triggers for Attacking and Analyzing NLP2019