Skip to content
Preprint

MPIDetector: Detecting Multi-modal Prompt Injection via LLM-based Reasoning

Oct 2026 · 0 citations · 10 references
Computer Science

TL;DR

Results show that LLM-driven reasoning provides a robust, cross-modal defense against advanced prompt injections, and proposes a novel detection framework, called MPIDetector, that leverages LLMs'intrinsic reasoning capabilities via few-shot In-Context Learning (ICL).

Abstract

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.

View source

Similar papers

Conference Sep 2026

Confidence-Guided Heterogeneous Detection for Jailbreak and Prompt Injection Attacks in Large Language Models

The quick adaptation of Large Language Models (LLMs) into conversational agents, decision support systems, and enterprise systems has greatly enhanced human-computer interaction. Nevertheless, the advancement of adversarial prompting techniques such as jailbreaks and prompt injection poses potential risks to the securi...

P. Tamilselvan, M. S. Shuraim Aslam · 0 citations
Review Open access Oct 2026

A lightweight and explainable framework for prompt injection detection in AI applications

Large language models (LLMs) are increasingly embedded in chatbots, document assistants, retrieval-augmented generation (RAG) pipelines, and tool-using applications. These systems may interpret untrusted user or retrieved text as instructions, creating a prompt-injection risk. A practical detector must identify attempt...

Vaibhav Vats, Vaibhav Kumar · 0 citations
Preprint Oct 2026

Attention-based Classification for Indirect Prompt Injection

Indirect prompt injection (IPI) attacks, in which adversarial instructions are embedded in external data processed by a language model, pose a significant threat to the integrity of deployed LLM agents. Attention Tracker (Hung et al., 2025) is a recently proposed white-box detection method that identifies prompt inject...

Amelia Kawasaki, Stefan Lee · 0 citations
Sep 2026

IVT-Guard: All-in-One Reasoning Model for AI-Generated Content Detection

IVT-Guard is proposed, a pioneering framework for unified and interpretable AIGC detection across image, video, and text modalities and a novel three-stage training paradigm that achieves state-of-the-art detection performance across in-domain, out-of-domain, and cross-dataset settings while delivering faithful reasoni...

Hong-Wei Niu, Yun-Peng Luo, Han-Jun Li et al. · 0 citations
Preprint Oct 2026

Beyond Binary Labels: Diagnostic Evaluation of LLM Safety with Prompt-Level Rubrics

Current LLM safety benchmarks predominantly rely on binary safe or unsafe labels, lacking explanatory depth and suffering from low consistency across automated judges. To address this, we introduce DiagSafe, a diagnostic evaluation framework that moves beyond binary classification by employing prompt-level rubrics. Gro...

Hong-Yu Li, Xin-Long Huang, Zhan Yu et al. · 0 citations
#artificial intelligence Preprint Oct 2026

AnomalyJev: Towards Evaluating Image Anomaly Explanations via Claim-Level Verification

Recent multimodal LLM (MLLM)-based anomaly detection (AD) methods can generate textual explanations that help interpret their predictions. However, reliably and efficiently evaluating these explanations remains challenging. While LLM judges can assess explanations through structured rubrics, they often require substant...

Qi-Zhou Wang, Jia-Wen Zhu, Guan-Song Pang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.