MPIDetector: Detecting Multi-modal Prompt Injection via LLM-based Reasoning
On the map: LLM reasoning → Reasoning for agents, planning and code also fits: Multimodal reasoning
also in 2 more
Abstract (arXiv)
With the rapid integration of Multi-modal Large Language Models (MLLMs) into real-world applications, Prompt Injection (PI) has emerged as a critical security threat. Attackers can conceal malicious instructions within textual narratives or visual inputs to bypass safety alignment. Existing approaches, such as signature- and perplexity-based methods, rely heavily on pattern matching, making them insufficient to detect sophisticated, cross-modal PI payloads. In this paper, we propose a novel detection framework, called MPIDetector, that leverages LLMs' intrinsic reasoning capabilities via few-shot In-Context Learning (ICL). Instead of fine-tuning, we provide the model with specific prompt templates and representative attack examples, enabling it to scrutinize the semantic intent of input across modalities. We constructed a comprehensive evaluation benchmark comprising eight textual and seven visual malicious categories, supplemented with benign datasets to rigorously test for false positives. Our evaluation across multiple leading LLMs, including Gemini-2.0-Flash, Qwen3-VL-32B-Instruct, and Doubao-seed-1.6-flash, demonstrates the efficacy and generalizability of this approach. The proposed method achieves up to 90.91% accuracy and 100% recall on textual tasks. In the visual domain, it achieves up to 99.28% accuracy while maintaining 100% precision across all evaluated models. Crucially, when evaluated against 500 highly obfuscated environmental web-agent injections (WebInject), MPIDetector achieved a detection rate up to 99.80%. Comparisons with two baseline approaches for detecting textual PI payloads, along with two additional methods for visual input detection, demonstrate MPIDetector's superior accuracy. These results show that LLM-driven reasoning provides a robust, cross-modal defense against advanced prompt injections.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 10 of its 10 references that are in the map. Submitted 21 Oct 2026.
Builds on
10 of 10 references.
References · 10
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,718
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 693
- 2023Detecting Language Model Attacks with Perplexitycited by 457
- 2023Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMscited by 136
- 2025WebInject: Prompt Injection Attack to Web Agentscited by 61
- 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 54
- 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agentscited by 28
- 2026SnapGuard: Lightweight Prompt Injection Detection for Screenshot-Based Web Agentscited by 6
- 2025MalCVE: Malware Detection and CVE Association Using Large Language Modelscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis
- 2024Palisade -- Prompt Injection Detection Framework
- 2025Detection Method for Prompt Injection by Integrating Pre-trained Model and Heuristic Feature Engineering
- 2026Risk Awareness Injection: Calibrating Vision-Language Models for Safety without Compromising Utility
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features
- 2025ARGUS: Defending Against Multimodal Indirect Prompt Injection via Steering Instruction-Following Behavior