mlsanityData to 14 Oct 2026

Transferable Direct Prompt Injection via Activation-Guided MCMC Sampling

arXiv 2509.07617 ↗First posted 9 Sep 2025cs.AIcited by 3

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Direct Prompt Injection (DPI) attacks pose a critical security threat to Large Language Models (LLMs) due to their low barrier of execution and high potential damage. To address the impracticality of existing white-box/gray-box methods and the poor transferability of black-box methods, we propose an activations-guided prompt injection attack framework. We first construct an Energy-based Model (EBM) using activations from a surrogate model to evaluate the quality of adversarial prompts. Guided by the trained EBM, we employ the token-level Markov Chain Monte Carlo (MCMC) sampling to adaptively optimize adversarial prompts, thereby enabling gradient-free black-box attacks. Experimental results demonstrate our superior cross-model transferability, achieving 49.6% attack success rate (ASR) across five mainstream LLMs and 34.6% improvement over human-crafted prompts, and maintaining 36.6% ASR on unseen task scenarios. Interpretability analysis reveals a correlation between activations and attack effectiveness, highlighting the critical role of semantic patterns in transferable vulnerability exploitation.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 15 of its 27 references that are in the map. First posted on arXiv 9 Sep 2025.

Builds on

15 of 27 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models30 Oct
  2. 2024PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMs23 Sep
  3. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks6 Mar
  4. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
  5. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb

Other references · 10

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  3. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  4. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
  5. 2019Your Classifier is Secretly an Energy Based Model and You Should Treat it Like Onecited by 405
  6. 2021How to Train Your Energy-Based Modelscited by 274
  7. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 175
  8. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
  9. 2023On the Exploitability of Instruction Tuningcited by 116
  10. 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Bypassing Prompt Injection Detectors through Evasive Injections
  2. 2025OET: Optimization-based prompt injection Evaluation Toolkit
  3. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
  4. 2025Early Approaches to Adversarial Fine-Tuning for Prompt Injection Defense: A 2022 Study of GPT-3 and Contemporary Models
  5. 2023Hijacking Large Language Models via Adversarial In-Context Learning
  6. 2024Goal-guided Generative Prompt Injection Attack on Large Language Models
  7. 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniques
  8. 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection