paper-with-me

Papers

Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approach

2025-02-18 · Tvrtko Sternak, Davor Runje, Dorian Granoša, Chi Wang

This paper presents a novel approach to evaluating the security of large language models (LLMs) against prompt leakage-the exposure of system-level prompts or proprietary configurations. We define prompt leakage as a critical threat to secure LLM deployment and introduce a framework for testing the robustness of LLMs using agentic teams. Leveraging AG2 (formerly AutoGen), we implement a multi-agent system where cooperative agents are tasked with probing and exploiting the target LLM to elicit its prompt. Guided by traditional definitions of security in cryptography, we further define a prompt leakage-safe system as one in which an attacker cannot distinguish between two agents: one initialized with an original prompt and the other with a prompt stripped of all sensitive information. In a safe system, the agents' outputs will be indistinguishable to the attacker, ensuring that sensitive information remains secure. This cryptographically inspired framework provides a rigorous standard for evaluating and designing secure LLMs. This work establishes a systematic methodology for adversarial testing of prompt leakage, bridging the gap between automated threat modeling and practical LLM security. You can find the implementation of our prompt leakage probing on GitHub.

📄 PDF Abstract BibTeX arXiv:2502.12630

Code (1)

sternakt/prompt-leakage-probing 공식 구현

Similar Papers 제목 키워드 기반

Auditing Prompt Caching in Language Model APIs

2025-02-11 · Chenchen Gu, Xiang Lisa Li, Rohith Kuditipudi, Percy Liang 외

Prompt caching in large language models (LLMs) results in data-dependent timing variations: cached prompts are processed faster than non-cached prompts. These timing differences introduce the risk of side-channel timing …

DecoderLanguage ModelingLanguage Modellingmodel

Safeguarding System Prompts for LLMs

2024-12-18 · Zhifeng Jiang, Zhihua Jin, Guoliang He

Large language models (LLMs) are increasingly utilized in applications where system prompts, which guide model outputs, play a crucial role. These prompts often contain business logic and sensitive information, making th…

Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Models

2024-08-05 · Zi Liang, Haibo Hu, Qingqing Ye, Yaxin Xiao 외

The drastic increase of large language models' (LLMs) parameters has led to a new research direction of fine-tuning-free downstream customization by prompts, i.e., task descriptions. While these prompt-based services (e.…

Memorization

You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectors

2025-09-26 · Bochuan Cao, Changjiang Li, Yuanpu Cao, Yameng Ge 외 arxiv

Large language models (LLMs) have been widely adopted across various applications, leveraging customized system prompts for diverse tasks. Facing potential system prompt leakage risks, model developers have implemented s…

Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems

2025-07-21 · Andrii Balashov, Olena Ponomarova, Xiaohua Zhai

Large Language Models (LLMs) deployed in enterprise settings (e.g., as Microsoft 365 Copilot) face novel security challenges. One critical threat is prompt inference attacks: adversaries chain together seemingly benign p…

Anomaly Detection