Skip to content

Nothing to Steal: Mitigating System Prompt Leakage in LLMs with System VectorsYou Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectors

arXiv· arXiv:2509.21884· ACM CCS 2025· Bochuan Cao, Changjiang Li, Yuanpu Cao, Yameng Ge, Ting Wang, Jinghui Chen·Indexed by this site · 22 days ago· Originally publishedDefenses
AI summary

The researchers propose the SysVec method, which encodes the system prompt as an internal model representation vector rather than raw text, to mitigate the risk of system prompt leakage. The paper first presents a simple yet effective prompt leakage attack, claiming that system prompts can be extracted from various LLM-based applications and even from models such as GPT-4o and Claude 3.5 Sonnet, showing that existing defenses, which mainly rely on forbidding the model from repeating context, remain vulnerable to new leakage techniques. The idea of SysVec is to prevent the original system prompt text from appearing in the context; experiments claim the method mitigates prompt leakage attacks, preserves model functional integrity, and helps mitigate forgetting in long-context scenarios; the authors also claim the method improves the model's general instruction-following ability.

Read originalACM CCS 2025