From ASR to ASP: Evaluating Prompt Attack Vulnerabilities Against Open-Source LLMs

Jiawen Wang, Pritha Gupta, Eyke Hüllermeier, Xiaoxue Gao, Nancy F. Chen
5/20/2025
cs.CRcs.CL

No confident code implementation found for this paper.

Abstract

Recent studies demonstrate that Large Language Models (LLMs) are vulnerable to attacks that generate harmful or sensitive outputs. As open-source LLMs are increasingly adopted in high-impact applications such as finance, law, and healthcare, systematically investigating their security risks is becoming increasingly important towards a trustworthy LLM era.

Show full abstract

This paper comprehensively studies effective prompt injection attacks against 14 widely used open-source and three closed-source LLMs on five attack benchmarks. Moreover, existing evaluation metrics mostly only consider the attack success rate, overlooking uncertainty in model responses. Our proposed Attack Success Probability (ASP) additionally captures uncertain behaviors for evaluation, where the model may initially refuse a harmful request but subsequently provide harmful guidance or vice versa, reflecting inconsistency and ambiguity in attack feasibility. By systematically analyzing the effectiveness of prompt injection attacks, we propose a straightforward and effective hypnotism attack; results show that this attack causes aligned language models, including StableLM2, Mistral, Openchat, and Vicuna, to generate objectionable behaviors, achieving around 90% ASP. We also find that moderately well-known LLMs exhibit higher vulnerability to prompt injection attacks, highlighting the need to raise public awareness and prioritize efficient mitigation strategies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025from,
  title  = {From ASR to ASP: Evaluating Prompt Attack Vulnerabilities Against Open-Source LLMs},
  author = {Jiawen Wang and Pritha Gupta and Eyke Hüllermeier and Xiaoxue Gao and Nancy F. Chen},
  year   = {2025},
  eprint = {2505.14368},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.14368v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.14368.svg)](https://codeofpaper.com/paper/2505.14368)

Discussion