atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents

ICML 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MELON, a training-free IPI defense that flags an attack when the agent's tool calls under a masked re-execution (user task replaced by a task-neutral prompt) match the original run's tool calls, evaluated on AgentDojo with GPT-4o, o3-mini and Llama-3.3-70B.

Problem

Indirect prompt injection attacks hijack LLM agents through tool-retrieved content, and existing defenses either need model training, fail against sophisticated attacks, or substantially reduce utility.

Approach

Under a successful injection the agent's next tool calls become conditionally independent of the user task; MELON re-executes the trajectory with the user task masked by a task-neutral prompt, caches the masked run's tool calls, and flags an attack when original-run tool calls are embedding-similar to cached ones.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Repeat Prompt augmentation to MELONMELON on GPT-4o · AgentDojo, averageUA: 58.78% -> 68.72%Helped
add Repeat Prompt augmentation to MELONMELON on GPT-4o · AgentDojo, averageASR: 0.24% -> 0.32%Hurt
replace the user task with a task-neutral prompt in the masking function (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 2.70% -> 0.95%Helped
add a cache of masked-run tool calls (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 1.75% -> 0.95%Helped
compare only tool calls rather than complete actions (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 17.33% -> 0.95%Helped
use a paraphrased task-neutral prompt (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 0.95% -> 1.11%Hurt
use a sentiment-analysis task-neutral prompt (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 0.95% -> 1.11%Hurt
use a grammar-checking task-neutral prompt (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 0.95% -> 0.95%No clear effect
use a translation task-neutral prompt (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 0.95% -> 1.43%Hurt
set the similarity threshold to 0.5 instead of 0.8 (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oUA: 32.91% -> 30.21%Hurt
set the similarity threshold to 0.6 instead of 0.8 (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oUA: 32.91% -> 31.32%Hurt
set the similarity threshold to 0.7 instead of 0.8 (ablation)MELON · AgentDojo, Important Messages attack, GPT-4oASR: 0.95% -> 0.95%No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AgentDojo

Benchmarks: AgentDojo

Metrics: Benign Utility Utility under Attack Attack Success Rate false positive rate

Baselines: No Defense Delimiting Repeat Prompt Tool Filter DeBERTa Detector LLM Detector

Builds on: AgentDojo Repeat Prompt defense Tool Filter

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy