mlsanityData to 7 Oct 2026

PromptKeeper: Safeguarding System Prompts for LLMs

arXiv 2412.13426 ↗First posted 18 Dec 2024cs.CR cs.AIcited by 4

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  8. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
  9. 2013The Composition Theorem for Differential Privacycited by 290
  10. 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 135
  11. 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
  12. 2023Effective Prompt Extraction from Language Modelscited by 83
1 more
  1. 2024Extracting Prompts by Inverting LLM Outputscited by 40

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.