PromptKeeper: Safeguarding System Prompts for LLMs
Not on the map. Why?
Abstract (arXiv)
System prompts are widely used to guide the outputs of large language models (LLMs). These prompts often contain business logic and sensitive information, making their protection essential. However, adversarial and even regular user queries can exploit LLM vulnerabilities to expose these hidden prompts. To address this issue, we propose PromptKeeper, a defense mechanism designed to safeguard system prompts by tackling two core challenges: reliably detecting leakage and mitigating side-channel vulnerabilities when leakage occurs. By framing detection as a hypothesis-testing problem, PromptKeeper effectively identifies both explicit and subtle leakage. Upon leakage detected, it regenerates responses using a dummy prompt, ensuring that outputs remain indistinguishable from typical interactions when no leakage is present. PromptKeeper ensures robust protection against prompt extraction attacks via either adversarial or regular queries, while preserving conversational capability and runtime efficiency during benign user interactions.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 13 of its 30 references that are in the map. First posted on arXiv 18 Dec 2024.
Builds on
13 of 30 references.
References · 13
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
- 2013The Composition Theorem for Differential Privacycited by 290
- 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 135
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
- 2023Effective Prompt Extraction from Language Modelscited by 83
1 more
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skillscited by 2
- 2025OET: Optimization-based prompt injection Evaluation Toolkitcited by 1
- 2026Training ML Models with Predictable Failurescited by 0
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2026Training ML Models with Predictable Failures14 May 2026
- 2025OET: Optimization-based prompt injection Evaluation Toolkit1 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025