You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectors
Not on the map. Why?
Abstract (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 strategies to prevent leakage, primarily by disabling LLMs from repeating their context when encountering known attack patterns. However, it remains vulnerable to new and unforeseen prompt-leaking techniques. In this paper, we first introduce a simple yet effective prompt leaking attack to reveal such risks. Our attack is capable of extracting system prompts from various LLM-based application, even from SOTA LLM models such as GPT-4o or Claude 3.5 Sonnet. Our findings further inspire us to search for a fundamental solution to the problems by having no system prompt in the context. To this end, we propose SysVec, a novel method that encodes system prompts as internal representation vectors rather than raw text. By doing so, SysVec minimizes the risk of unauthorized disclosure while preserving the LLM's core language capabilities. Remarkably, this approach not only enhances security but also improves the model's general instruction-following abilities. Experimental results demonstrate that SysVec effectively mitigates prompt leakage attacks, preserves the LLM's functional integrity, and helps alleviate the forgetting issue in long-context scenarios.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 30 of its 47 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
30 of 47 references.
References · 30
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2023BloombergGPT: A Large Language Model for Financecited by 939
18 more
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 429
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 192
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 170
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
- 2023Aligning Language Models with Preferences through f-divergence Minimizationcited by 120
- 2024Personalized Steering of Large Language Models: Versatile Steering Vectors Through Bi-directional Preference Optimizationcited by 118
- 2023Language Model Inversioncited by 68
- 2023Assessing Prompt Injection Risks in 200+ Custom GPTscited by 55
- 2022Prompt Injection: Parameterization of Fixed Inputscited by 36
- 2023On the Safety of Open-Sourced Large Language Models: Does Alignment Really Prevent Them From Being Misused?cited by 26
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Toward a Safe Internet of Agentscited by 6
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agentscited by 2
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skillscited by 2
- 2026SparLeak: Privacy Leakage from Sparse Attention in LLM Inference on Shared GPUscited by 0
- 2026SparLeak: Privacy Leakage from Sparse Attention in LLM Inference on Shared GPUs30 Sep 2026
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2025Toward a Safe Internet of Agents29 Nov 2025
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agents27 Oct 2025