Researchers introduce the MINE method for defending RAG systems against indirect prompt injection
A new research method called MINE offers defense for RAG systems against indirect prompt injection without the need for training. The publication also includes a new benchmark, LC-Inj-SQuAD, for long contexts.
A research team published on arXiv the MINE method, a defense against indirect prompt injection attacks in RAG (retrieval-augmented generation) systems. According to the authors, the method is training-free (requires no training) and attack-agnostic (independent of the specific type of attack) — unlike existing approaches, which are either easily bypassed by embedded instructions or require repeated retraining for each new attack style. MINE functions as a query-conditioned reranker, meaning it ranks retrieved documents by relevance to the query instead of actively detecting an attack.
The work includes a new benchmark, LC-Inj-SQuAD, focused on long contexts with an average length of 4032 words. The method was tested on four datasets: the short-context Inj-SQuAD and Inj-TriviaQA, the long-context LC-Inj-SQuAD, and the InjecAgent dataset focused on injection into agent tool calls.
According to the authors, MINE achieves the best accuracy-to-safety ratio among training-free defenses, remains usable even against a fully adaptive attacker, generalizes to injection into agent tool calls, and shows the lowest inference latency on long contexts. Further details on the implementation and exact results can be found in the source article.
Why it matters
Indirect prompt injection, where an attacker hides malicious instructions in a document that a RAG system retrieves from an external source, is a recognized security risk for the deployment of AI assistants and agents. Existing defenses either fail against new types of attacks or require costly retraining of detectors. A method that, according to the authors, works without training and remains effective even against an adaptive attacker could make it easier to deploy safer RAG systems without the need for constant updating of defense models.
Two audiences, two different impacts
What this means
For individuals
For developers building RAG or agentic systems, the publication brings a concrete technical approach to defense against prompt injection, worth following when designing their own pipelines.
For a business
Companies operating RAG systems or AI agents face the risk of indirect prompt injection from external documents; the research points to a defense direction that, according to the authors, does not require repeated retraining of detectors and maintains low latency even with long contexts, which is relevant for assessing security risks during deployment.
Risks and complianceCheck the original
Event sources
only one source so far · 1 publisher, 1 independent. We count feeds from the same owner only once.