paper-with-me

Papers

OET: Optimization-based prompt injection Evaluation Toolkit

2025-05-01 · Jinsheng Pan, Xiaogeng Liu, Chaowei Xiao

Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and generation, enabling their widespread adoption across various domains. However, their susceptibility to prompt injection attacks poses significant security risks, as adversarial inputs can manipulate model behavior and override intended instructions. Despite numerous defense strategies, a standardized framework to rigorously evaluate their effectiveness, especially under adaptive adversarial scenarios, is lacking. To address this gap, we introduce OET, an optimization-based evaluation toolkit that systematically benchmarks prompt injection attacks and defenses across diverse datasets using an adaptive testing framework. Our toolkit features a modular workflow that facilitates adversarial string generation, dynamic attack execution, and comprehensive result analysis, offering a unified platform for assessing adversarial robustness. Crucially, the adaptive testing framework leverages optimization methods with both white-box and black-box access to generate worst-case adversarial examples, thereby enabling strict red-teaming evaluations. Extensive experiments underscore the limitations of current defense mechanisms, with some models remaining susceptible even after implementing security enhancements.

📄 PDF Abstract BibTeX arXiv:2505.00843

Code (1)

SaFoLab-WISC/OET 공식 구현 pytorch

Tasks

Adversarial RobustnessNatural Language UnderstandingRed Teaming

Similar Papers 제목 키워드 기반

What If Prompt Injection Never Left? Exploring Cross-Session Stored Prompt Injection in Agentic Systems

2026-06-03 · Yuanbo Xie, Tianyun Liu, Yingjie Zhang, Suchen Liu 외 arxiv

Modern agentic systems transform LLMs from session-bounded assistants into stateful systems that persist and evolve shared world state across sessions through memories, filesystems, tools, and other long-lived contextual…

WalledEval: A Comprehensive Safety Evaluation Toolkit for Large Language Models

2024-08-07 · Prannaya Gupta, Le Qi Yau, Hao Han Low, I-Shiang Lee 외

WalledEval is a comprehensive AI safety testing toolkit designed to evaluate large language models (LLMs). It accommodates a diverse range of models, including both open-weight and API-based ones, and features over 35 sa…

AI and SafetyBenchmarkingInstruction FollowingLanguage Modelling+1

DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks

2025-04-15 · Yupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song 외

LLM-integrated applications and agents are vulnerable to prompt injection attacks, where an attacker injects prompts into their inputs to induce attacker-desired outputs. A detection method aims to determine whether a gi…

PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models

2024-03-26 · Jinyi Li, Yihuai Lan, Lei Wang, Hao Wang

Prompt compression is an innovative method for efficiently condensing input prompts while preserving essential information. To facilitate quick-start services, user-friendly interfaces, and compatibility with common data…

Code CompletionFew-Shot LearningMathematical Problem-SolvingMultiple-choice+1

AEGIS : Automated Co-Evolutionary Framework for Guarding Prompt Injections Schema

2025-08-27 · Ting-Chun Liu, Ching-Yu Hsu, Kuan-Yi Lee, Chi-An Fu 외 arxiv

Prompt injection attacks pose a significant challenge to the safe deployment of Large Language Models (LLMs) in real-world applications. While prompt-based detection offers a lightweight and interpretable defense strateg…

Prompt Engineering