Skip to content

Transferable direct prompt injection based on activation-guided MCMC samplingTransferable Direct Prompt Injection via Activation-Guided MCMC Sampling

arXiv· arXiv:2509.07617· Minghui Li, Hao Zhang, Yechao Zhang, Wei Wan, Shengshan Hu, pei Xiaobing, Jing Wang·Indexed by this site · 24 days ago· Originally publishedAttacks
AI summary

The researchers propose an activation-guided direct prompt injection attack framework, addressing the problems that existing white-box/gray-box methods are impractical and black-box methods have poor transferability, achieving a 49.6% attack success rate (ASR) on five mainstream LLMs. The method uses the activations of a surrogate model to build an energy-based model (EBM) to evaluate the quality of adversarial prompts, and then adaptively optimizes the adversarial prompts via token-level Markov chain Monte Carlo (MCMC) sampling, realizing a gradient-free black-box attack. Compared with manually constructed prompts, the attack success rate improves by 34.6%, and it maintains a 36.6% ASR in unseen task scenarios. Interpretability analysis shows a correlation between activations and attack effectiveness, indicating that semantic patterns play a key role in transferable vulnerability exploitation.

Read originalarxiv.org