Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2509.14285

Help | Advanced Search

Computer Science > Cryptography and Security

arXiv:2509.14285 (cs)
[Submitted on 16 Sep 2025 (v1) , last revised 1 Oct 2025 (this version, v2)]

Title: A Multi-Agent LLM Defense Pipeline Against Prompt Injection Attacks

Title: 一种针对提示注入攻击的多智能体LLM防御流程

Authors:S M Asif Hossain, Ruksat Khan Shayoni, Mohd Ruhul Ameen, Akif Islam, M. F. Mridha, Jungpil Shin
Abstract: Prompt injection attacks represent a major vulnerability in Large Language Model (LLM) deployments, where malicious instructions embedded in user inputs can override system prompts and induce unintended behaviors. This paper presents a novel multi-agent defense framework that employs specialized LLM agents in coordinated pipelines to detect and neutralize prompt injection attacks in real-time. We evaluate our approach using two distinct architectures: a sequential chain-of-agents pipeline and a hierarchical coordinator-based system. Our comprehensive evaluation on 55 unique prompt injection attacks, grouped into 8 categories and totaling 400 attack instances across two LLM platforms (ChatGLM and Llama2), demonstrates significant security improvements. Without defense mechanisms, baseline Attack Success Rates (ASR) reached 30% for ChatGLM and 20% for Llama2. Our multi-agent pipeline achieved 100% mitigation, reducing ASR to 0% across all tested scenarios. The framework demonstrates robustness across multiple attack categories including direct overrides, code execution attempts, data exfiltration, and obfuscation techniques, while maintaining system functionality for legitimate queries.
Abstract: 提示注入攻击是大型语言模型(LLM)部署中的主要漏洞,其中嵌入在用户输入中的恶意指令可以覆盖系统提示并引发意外行为。本文提出了一种新颖的多智能体防御框架,该框架采用协调流水线中的专用LLM智能体来实时检测和中和提示注入攻击。我们使用两种不同的架构对我们的方法进行了评估:一种是顺序的智能体链流水线,另一种是基于分层协调器的系统。我们在55种独特的提示注入攻击上进行了全面评估,这些攻击分为8个类别,总共在两个LLM平台(ChatGLM和Llama2)上产生了400个攻击实例,结果表明安全性能显著提升。在没有防御机制的情况下,基线攻击成功率(ASR)达到了30% for ChatGLM和20% for Llama2。我们的多智能体流水线实现了100%的缓解,将ASR降低到所有测试场景中的0%。该框架在多个攻击类别中表现出鲁棒性,包括直接覆盖、代码执行尝试、数据泄露和混淆技术,同时保持了对合法查询的系统功能。
Comments: IEEE Conference standard paper
Subjects: Cryptography and Security (cs.CR) ; Machine Learning (cs.LG)
Cite as: arXiv:2509.14285 [cs.CR]
  (or arXiv:2509.14285v2 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2509.14285
arXiv-issued DOI via DataCite

Submission history

From: S M Asif Hossain [view email]
[v1] Tue, 16 Sep 2025 19:11:28 UTC (292 KB)
[v2] Wed, 1 Oct 2025 16:39:48 UTC (292 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
view license
Current browse context:
cs.CR
< prev   |   next >
new | recent | 2025-09
Change to browse by:
cs
cs.LG

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号