PINA: Prompt Injection Attacks against Navigation AgentsPINA: Prompt Injection Attack against Navigation Agents
PINA performs black-box prompt injection optimization against navigation agents, with NavGPT's ASR at 75.00% and outdoor at 100%.
Black-box: the attacker cannot access or modify the target's internal parameters or underlying controller, can inject text into the external input channel, and constructs a surrogate simulator that matches the overall architecture, input/output format, and high-level behavior, optimizing the injection prompt offline before using it on the target system. The goal is to reduce the task success rate of reaching the specified target and degrade trajectory quality.
- Navigation agents turn natural language instructions into executable plans and actions; prompt injection may cause them to deviate from the goal, leading to task failure or unsafe maneuvers. The authors state that the navigation side remains understudied, and that black-box settings, long contexts, and executable outputs make existing injections difficult to apply directly.
- PINA combines multiple navigation metrics into an attack score on a surrogate simulator with matching architecture, then uses KL divergence and key tokens from a surrogate LLM to obtain a distribution score, and generates text feedback from these to iteratively rewrite the injection prompt.
- In Table 1, PINA's ASR is 75.00% for NavGPT (GPT-3.5 and GPT-4) and 100% for the outdoor Balcı agent, both higher than the four attack baselines in the same table. Under self-reminder (NavGPT+GPT-3.5), ASR is 68.80%.
- The conclusion proposes two future directions: proactive defense using this evaluation framework, and extending prompt injection research to other embodied tasks. The paper does not have a dedicated limitations section. Evaluation sample size, number of rounds, thresholds, and outdoor base model names are not reported.
- Evaluated models
- NavGPT (GPT-3.5-turbo)NavGPT (GPT-4)Balcı et al. [2]
- Benchmarks
- R2RNavGPTBalcı et al. outdoor navigation
- Metrics
- ASRNESPLnDTWCLSTL
The researchers propose PINA, an adaptive prompt injection optimization framework for navigation agents, achieving an average attack success rate of 87.5% on indoor and outdoor navigation agents. The framework is designed for three constraints: black-box, long-context, and executable actions. Experiments show its attack success rate is higher than all baselines and remains stable under ablation and adaptive attack conditions. The paper claims this is the first systematic study of prompt injection attacks in navigation scenarios, pointing out its safety implications for embodied LLM agents.
Paper analysis
What problem does this paper attempt to solve?
Whether navigation agents are easily misled by prompt injection, and whether such attacks can be systematically constructed under black-box conditions.
Core question: whether navigation agents are easily misled by prompt injection, and whether such attacks can be systematically constructed under black-box conditions.
- Importance: The authors state that LLMs have been used as robot navigation interfaces, turning natural language into route planning and control; successful injection may cause task failure, unsafe maneuvers, or real-world harm, not just altered text.
- Gap: The authors state that prompt injection in text and web applications has been studied, while the navigation side remains largely unexplored. The difficulties given in the paper are: systems are often only available as black boxes, long contexts may dilute or override the injection, and outputs are executable plans and control commands.
- This paper: The authors propose PINA, which iteratively optimizes injection prompts using navigation metrics and distribution signals from a surrogate model; they state this is the first framework adapting prompt injection to LLM-based navigation agents, and the first systematic study in this direction.
- Threat model:
- Goal: Prevent reaching the specified target (reduce task success rate) and degrade trajectory quality, such as longer paths or larger deviations.
- Knowledge: black-box. Cannot access or modify the target's internal parameters or underlying controller.
- Capability: Inject text into the external input channel; construct a surrogate simulator matching the target in overall architecture, input/output format, and high-level behavior, optimize the prompt offline, then evaluate on the target system.
- Victim system: LLM-based navigation agents. In experiments, indoor NavGPT and outdoor Balcı et al. agents.
What related research exists?
The introduction places PINA after LLM navigation and text/web prompt injection, with baselines from four existing attacks.
The introduction has no separate related work section; the related discussion is roughly divided into three groups.
LLM Navigation Interfaces
- NavGPT (Zhou et al., 2024): Uses LLMs for explicit reasoning in vision-language navigation. The indoor victim system in this paper is this agent, fine-tuned on R2R.
- Balcı et al.: Uses prompts to drive aerial navigation. This is the outdoor victim system in this paper; the paper states it is prompt-tuned, and this reference is not marked with a year in the text.
- Vemprala et al. (2024): Discusses design principles and model capabilities when using ChatGPT for robotics.
Prompt Injection and Embodied Risk
- Greshake et al. (2023): Conducts indirect prompt injection on real-world LLM-integrated applications. The introduction states that prompt injection has been studied in text and web applications, citing this work, while stating the navigation side remains largely unexplored.
- Liu et al. (2023) and Liu et al. (2024): The former studies prompt injection against LLM-integrated applications; the latter formalizes and evaluates prompt injection attacks and defenses at USENIX Security. The four baselines in this paper are selected according to the latter's setup.
- Yi et al. (2025) and BadRobot (Zhang et al., 2024): Evaluate and defend against indirect prompt injection, and jailbreak embodied LLMs in the physical world. The introduction uses them to illustrate that wrong targets can cause real-world harm.
Long Context, Executable Outputs, and Feedback Optimization
- Gao et al. (2024), MapGPT (Zhang et al., 2024), Zheng et al. (2024): The paper cites them, stating that long contexts in navigation inputs may dilute or override injected prompts.
- Tian et al. (2025), Typefly (Chen et al., 2023): The paper uses them to support that "outputs are executable task plans and control commands, not just plain text."
- Yuksekgonul et al. (2025): Uses language model feedback to optimize generative AI. Adaptive Prompt Refinement is inspired by it. WASP (Evtimov et al., 2025) is cited as a similar setting for the surrogate simulator assumption.
Baseline methods are Naive Attack, Escape Characters, Context Ignoring, Combined Attack. Benchmark/dataset is R2R (Anderson et al., 2018), with 100 instructions randomly sampled for optimization; the defense control is Xie et al. (2023)'s self-reminder. Navigation metrics additionally cite Balcı et al. and Pan et al. (2024).
The authors' positioning is that existing prompt injection mainly targets text or web pages, while navigation is simultaneously constrained by black-box, long context, and executable actions, requiring specialized methods; the conclusion also states that adversarial manipulation in navigation can directly mislead physical actions.
How does the paper address this problem?
PINA uses navigation scores and distribution signals from a surrogate LLM to iteratively rewrite the injection prompt.
PINA places candidate injection prompts in a closed loop: the Attack Evaluator gives an attack score on the surrogate simulator, the Distribution Analyzer uses another surrogate LLM to give a distribution score and key tokens, and Adaptive Prompt Refinement then writes both signals into text feedback and rewrites the prompt.
Problem setup and attack score
- Optimization is done offline on a surrogate simulator. This simulator matches the target in overall architecture, input/output format, and high-level behavior; the optimized prompt is then evaluated on the target system.
- The attack score combines multiple navigation metrics into one number: S = w⊤ Mnav. M_nav includes trajectory length TL, navigation error NE, success rate SR, and quality metrics such as SPL; the weights sum to 1.
- The authors' stated reason is that different systems have different success criteria, and looking only at success rate is not system-agnostic enough.
- In experiments, the Attack Evaluator is NavGPT with GPT-3.5-turbo, and the instruction set is 100 random R2R instructions. The specific values of rounds R, stopping threshold τ, and weights are not given in the paper.
Distribution analysis
- The Distribution Analyzer uses a surrogate LLM to observe how injection perturbs predictions. In experiments, this model is Llama2-7b, which is not the same surrogate as the navigation simulator above.
- The global signal is the token distribution KL divergence, averaged over sequence length, between the original instruction and the attacked corresponding instruction: at each position, the KL of the attacked distribution relative to the original distribution over the vocabulary, then averaged over length.
- Local signal: the importance of position t is the absolute value of the maximum probability change plus the absolute value of the entropy change; tokens with Score above τ_token are marked as key tokens. τ_token is not given in the paper.
- The two are combined into a distribution score: D = α D̄KL + (1−α)S̄K. The second term is the average importance of key tokens, and is 0 when the set is empty. The authors write that for convenience α=0.5. The analyzer passes the score and key tokens to the next module.
Adaptive rewriting
- Adaptive Prompt Refinement, inspired by Yuksekgonul et al. (2025), turns attack scores and distribution scores into text feedback without accessing model parameters or gradients. The authors state this benefits prompt transfer under black-box conditions.
- The loop in Algorithm 1 is:
- Use the Attack Evaluator to compute S for the current prompt; if it is a new high, keep it as the current best; stop if S reaches τ.
- Otherwise, for one original instruction sampled at initialization, and the input combined with the current prompt, compute D and key tokens.
- The Feedback Generator writes suggestions based on S and D, and the Prompt Updater rewrites the prompt accordingly, until round R is reached.
- Example suggestions in the paper include keeping high-impact tokens, replacing ineffective words, inserting distractions, or adjusting word order. The combination function is only named COMBINE; the paper does not define how concatenation is done.
Interface with success determination
- Whether an attack succeeds is not determined by the distribution score. The ASR used in evaluation looks at whether the victim agent fails the task, with the threshold taken as 5δ of SPL; the paper does not write out the full determination formula. Definitions of each navigation metric are placed in the experimental setup.
What experiments did the paper conduct?
In Table 1, PINA's ASR is 75.00% in both NavGPT settings, and 100% outdoors.
Experimental Setup
- Victim systems: Indoor NavGPT, connected to GPT-3.5 and GPT-4 respectively; the paper states NavGPT is fine-tuned on R2R. Outdoor is the Balcı et al. agent, prompt-tuned, and the paper does not state the underlying LLM.
- Optimization setup: Attack Evaluator is NavGPT plus GPT-3.5-turbo; the instruction set is 100 random R2R instructions. The Distribution Analyzer's surrogate LLM is Llama2-7b, α=0.5. Hardware is 8 NVIDIA H800 (80 GB), CUDA 12.2, Python 3.9.5.
- Baselines: Section 4.1 selects four following Liu et al. (2024): Naive Attack, Escape Characters, Context Ignoring, Combined Attack. Section 4.2 writes five baseline; Table 1 also has a None (clean) row.
- Metrics: ASR is the proportion of samples where the victim agent fails the task, with the threshold being 5δ of SPL. The evaluation section defines NE as the maximum Euclidean distance between the actual flight path and the reference path; the Attack Evaluator section writes NE as the final distance to the target. nDTW, TL, SPL, CLS correspond to normalized path alignment, average path length, path-length-weighted success, and coverage of the entire reference path, respectively.
- Judgment and unspecified parameters: The paper does not mention an LLM judge or human annotation, and does not report evaluation sample size, repetition counts, or R, τ, τ_token, and weight w.
- Same-system and transfer: Table 1's NavGPT+GPT-3.5 and the Attack Evaluator used for optimization are both NavGPT+GPT-3.5-turbo; the GPT-4 column and outdoor column are transfer evaluations.
Main Results
Swipe horizontally to read the table
Victim setting (Table 1) PINA ASR Baseline with highest ASR PINA SPL clean SPL PINA NE NavGPT+GPT-3.5 (same system as evaluator) 75.00% 50.00% (Comb.) 3.56 14.30 8.76 NavGPT+GPT-4 75.00% 50.00% (Comb.) 5.63 20 9.51 Outdoor Balcı et al. 100% 84.62% (Ignore) 0.01 0.60 81.55 - According to the full Table 1, the ASR of the four attack baselines ranges from 18.75% to 50.00% for NavGPT+GPT-3.5, from 0.00% to 50.00% for GPT-4, and from 62.50% to 84.62% for outdoor. In all three columns, PINA's ASR is higher than these four baselines in the same column.
- The authors state that PINA simultaneously lowers path similarity and coverage: NavGPT+GPT-3.5's nDTW goes from 37.95 to 29.96, CLS from 39.70 to 34.13; GPT-4's nDTW goes from 40.78 to 28.11. Outdoor PINA's nDTW is 0.01 (clean is 1.00). The authors state that outdoor clean always succeeds, any deviation counts as complete failure, and SPL and nDTW drop to near 0.
- The authors state that optimization with NavGPT+GPT-3.5-turbo still transfers to GPT-4 and the outdoor agent, attributing this to attack scores using navigation metrics common across systems. The abstract writes an average ASR of 87.5% without specifying which columns it corresponds to; the introduction states it outperforms baselines by over 20%. The outdoor baseline with the highest ASR is Ignore, with Comb. at 84.21%, which is not the same control as the indoor Comb. at 50.00%. On GPT-4's CLS, Comb. is 29.79, lower than PINA's 31.38 (clean is 38.91).
Distribution Analysis Ablation
- What was tested: Table 2 toggles KL Divergence Measurement and Key Token Identification on NavGPT+GPT-3.5.
- Results: With both removed, ASR is 69.25%, TL 5.70, NE 8.92, SPL 6.12, nDTW 35.27, CLS 38.11. With only KL or only key tokens, ASR is 72.90% in both cases; with only KL, SPL is 7.18 and nDTW is 36.07, with only key tokens, SPL is 5.76 and nDTW is 34.90. With both on, ASR is 75.00%, TL 9.13, SPL 3.56, nDTW 29.96, CLS 34.13.
- Authors' interpretation: The authors state that the two components are complementary, and the combination is stronger in both attack success and disruption of trajectory efficiency and fidelity. With only KL, SPL is higher than with the entire analyzer removed; the authors do not separately explain this.
Adaptive Defense
- What was tested: Table 3 adds self-reminder following Xie et al. (2023) on NavGPT+GPT-3.5, adding a self-reminder phrase before the instruction. The abstract and introduction write adaptive-attack conditions; Section 4.4's title is Adaptive Defense, and the experiment is this defense.
- Results: Without defense, ASR is 75.00%, TL 9.13, NE 8.76, SPL 3.56, nDTW 29.96, CLS 34.13; with this defense, they are 68.80%, 6.13, 8.59, 5.49, 36.08, 38.04.
- Authors' interpretation: The authors state that ASR remains high and still outperforms all baselines, and the attack can bypass this lightweight defense. Table 3 has no baseline row under the no-defense condition. The authors state that navigation metrics partially recover but remain below clean; clean SPL and nDTW in Table 1 are 14.30 and 37.95.
Other Ablations and Analyses
- α is fixed at 0.5; the paper does not report other values of α, R, τ, τ_token, or w.
- Table 1 has no TL column. In Table 2 and Table 3, TL is 9.13 for NavGPT+GPT-3.5, PINA, and no additional defense.
- In Table 1, NavGPT+GPT-3.5's Ignore: ASR 18.75%, NE 8.45 (clean is 8.49), CLS 39.72 (clean is 39.70). The authors do not explain this.
- Outdoor Escape's ASR is 75.86% and SPL is 0.42; Naive's ASR is 62.50% and SPL is 0.10. The authors do not explain the inconsistency in direction between ASR and SPL.
- NavGPT+GPT-4's Naive ASR is 0.00%, and Ignore is 6.20%.
- Figure 3 gives one attack example each for indoor and outdoor with agent responses, with no aggregate numbers; Figure 1 and Figure 2 are schematic diagrams with no quantitative results.
What are some points that can be further explored?
The conclusion proposes proactive defense and extending the research to other embodied tasks.
Limitations and future directions noted by the authors
The paper has no dedicated Limitations section, nor does it frame any experimental result as a limitation. The Conclusion lists two future directions:
- Active defense: Using this paper's evaluation framework to study more resilient navigation agents and active defenses (Conclusion).
- Other embodied tasks: Extending prompt injection research to other embodied tasks where LLMs interact with the physical world (Conclusion).
Experimental coverage
- The victim settings in Table 1 are NavGPT+GPT-3.5, NavGPT+GPT-4, and the outdoor Balcı et al. agent; during optimization, the Attack Evaluator is NavGPT+GPT-3.5-turbo, the surrogate LLM for distribution analysis is Llama2-7b, and the instruction set is 100 random R2R instructions.
- Attack baselines are Naive Attack, Escape Characters, Context Ignoring, Combined Attack; metrics are ASR, NE, nDTW, TL, SPL, CLS, with the ASR threshold taken as 5δ of SPL.
- Distribution analysis ablations (Table 2) and the self-reminder defense (Table 3) are both reported on NavGPT+GPT-3.5; experiments use α=0.5.
- The paper does not report evaluation sample size, number of repetitions, rounds R, thresholds τ and τ_token, weights w, or the models used by the Feedback Generator and Prompt Updater.
- The paper does not report the underlying LLM name for the outdoor agent, nor whether the numbers in Table 1 come from a physical robot or simulation; the threat model states that offline optimization can be done with a surrogate simulator.
Summarize the main content of the paper
PINA optimizes navigation prompt injection under black-box conditions; the ASR in Table 1 is 75.00% and 100%.
PINA is a framework for optimizing prompt injection against LLM-based navigation agents under black-box conditions.
- Problem: User natural language instructions are converted into executable navigation. An attacker injects text into external input, causing the agent to fail to reach the specified target and lowering trajectory quality. The authors state that injection in text or web pages is difficult to directly address with long contexts and executable outputs.
- Method: On an architecture-matched surrogate simulator, TL, NE, success rate, and SPL are weighted into an attack score; Llama2-7b additionally provides a distribution score composed of KL and key tokens; text feedback iteratively rewrites the prompt until the score exceeds a threshold or the round limit is reached. No target parameters or gradients are used.
- Main results: In Table 1, PINA's ASR is 75.00% for both NavGPT+GPT-3.5 and NavGPT+GPT-4, and 100% for the outdoor Balcı et al. agent. The baselines with the highest ASR in the same table are Comb. at 50.00%, Comb. at 50.00%, and Ignore at 84.62%, respectively. On GPT-3.5, SPL changes from clean 14.30 to PINA 3.56. The previous column and the Attack Evaluator used for optimization are the same system.
- Other numbers: With the entire distribution analysis removed, NavGPT+GPT-3.5's ASR is 69.25%; with only KL or only key tokens, it is 72.90% in both cases (Table 2). Under self-reminder, ASR is 68.80% (Table 3). The abstract also gives an average ASR of 87.5% without specifying how it is averaged.
- Authors' conclusion: The authors state this is the first systematic study of prompt injection in navigation scenarios, and adversarial manipulation can directly mislead physical actions. Future directions are proactive defense based on this evaluation framework and extending the research to other embodied tasks.