arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.22628cs.CRcs.AI
收藏

Sentra-Guard:一种实时多语言对抗对抗性LLM提示的防御系统

Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Prompts

Md. Mehedi Hasan, Sk Tanzir Mehedi, Ziaur Rahman, Rafid Mostafiz, Md. Abir Hossain

AI总结:

Sentra-Guard通过混合架构和分类器-检索器融合模块,实时检测并缓解针对大语言模型的劫持和提示注入攻击,实现多语言鲁棒性与高检测率。

摘要:

本文提出了一种名为Sentra-Guard的实时模块化防御系统,用于检测和缓解针对大语言模型(LLMs)的劫持和提示注入攻击。该框架采用混合架构,结合FAISS索引的SBERT嵌入表示和微调的Transformer分类器,能够识别直接和伪装的攻击向量。核心创新是分类器-检索器融合模块,动态计算上下文感知的风险分数,以估计提示的对抗可能性。该框架通过语言无关的预处理层实现多语言鲁棒性,自动将非英语提示翻译成英语以进行语义评估。系统包含HITL反馈回路,由人类专家审查自动化系统的决策,以实现持续学习和对抗压力下的快速适应。Sentra-Guard维护一个持续更新的双标签知识库,提高检测可靠性并减少误报。评估结果显示,检测率为99.96%(AUC=1.00,F1=1.00),攻击成功率仅为0.004%,优于LlamaGuard-2(1.3%)和OpenAI Moderation(3.7%)。与黑盒方法不同,Sentra-Guard是透明、可调优且兼容多种LLM后端的。其模块化设计支持在商业和开源环境中扩展部署。该系统在对抗性LLM防御方面建立了新的状态。

英文摘要:

This paper presents a real-time modular defense system named Sentra-Guard. The system detects and mitigates jailbreak and prompt injection attacks targeting large language models (LLMs). The framework uses a hybrid architecture with FAISS-indexed SBERT embedding representations that capture the semantic meaning of prompts, combined with fine-tuned transformer classifiers, which are machine learning models specialized for distinguishing between benign and adversarial language inputs. It identifies adversarial prompts in both direct and obfuscated attack vectors. A core innovation is the classifier-retriever fusion module, which dynamically computes context-aware risk scores that estimate how likely a prompt is to be adversarial based on its content and context. The framework ensures multilingual resilience with a language-agnostic preprocessing layer. This component automatically translates non-English prompts into English for semantic evaluation, enabling consistent detection across over 100 languages. The system includes a HITL feedback loop, where decisions made by the automated system are reviewed by human experts for continual learning and rapid adaptation under adversarial pressure. Sentra-Guard maintains an evolving dual-labeled knowledge base of benign and malicious prompts, enhancing detection reliability and reducing false positives. Evaluation results show a 99.96% detection rate (AUC = 1.00, F1 = 1.00) and an attack success rate (ASR) of only 0.004%. This outperforms leading baselines such as LlamaGuard-2 (1.3%) and OpenAI Moderation (3.7%). Unlike black-box approaches, Sentra-Guard is transparent, fine-tunable, and compatible with diverse LLM backends. Its modular design supports scalable deployment in both commercial and open-source environments. The system establishes a new state-of-the-art in adversarial LLM defense.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑