Salvato in:
Dettagli Bibliografici
Autori principali: Jiang, Zhifeng, Jin, Zhihua, He, Guoliang
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2412.13426
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911123633078272
author Jiang, Zhifeng
Jin, Zhihua
He, Guoliang
author_facet Jiang, Zhifeng
Jin, Zhihua
He, Guoliang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_13426
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PromptKeeper: Safeguarding System Prompts for LLMs
Jiang, Zhifeng
Jin, Zhihua
He, Guoliang
Cryptography and Security
Artificial Intelligence
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.
title PromptKeeper: Safeguarding System Prompts for LLMs
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2412.13426