SOS! Soft Prompt Attack Against Open-Source Large Language Models
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Open-source large language models (LLMs) have become increasingly popular among both the general public and industry, as they can be customized, fine-tuned, and freely used. However, some open-source LLMs require approval before usage, which has led to third parties publishing their own easily accessible versions. Similarly, third parties have been publishing fine-tuned or quantized variants of these LLMs. These versions are particularly appealing to users because of their ease of access and reduced computational resource demands. This trend has increased the risk of training time attacks, compromising the integrity and security of LLMs. In this work, we present a new training time attack, SOS, which is designed to be low in computational demand and does not require clean data or modification of the model weights, thereby maintaining the model's utility intact. The attack addresses security issues in various scenarios, including the backdoor attack, jailbreak attack, and prompt stealing attack. Our experimental findings demonstrate that the proposed attack is effective across all evaluated targets. Furthermore, we present the other side of our SOS technique, namely the copyright token -- a novel technique that enables users to mark their copyrighted content and prevent models from using it.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 49 of its 63 references that are in the map. First posted on arXiv 3 Jul 2024.
Builds on
49 of 63 references.
Closest ancestors · 2
Same direction, newest first
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Models19 Oct
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 47
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
35 more
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2023Instruction Tuning with GPT-4cited by 676
- 2021ClipCap: CLIP Prefix for Image Captioningcited by 557
- 2023The Falcon Series of Open Language Modelscited by 526
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 307
- 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 222
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 206
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
- 2020Dynamic Backdoor Attacks Against Machine Learning Modelscited by 147
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 143
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 96
- 2021Challenges in Automated Debiasing for Toxic Language Detectioncited by 95
- 2023Effective Prompt Extraction from Language Modelscited by 83
- 2024Instructional Fingerprinting of Large Language Modelscited by 64
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2023Prompt Stealing Attacks Against Text-to-Image Generation Modelscited by 48
- 2022Watermarking Pre-trained Language Models with Backdooringcited by 44
- 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
- 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
- 2023HuRef: HUman-REadable Fingerprint for Large Language Modelscited by 32
- 2022PLUE: Language Understanding Evaluation Benchmark for Privacy Policies in Englishcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 6.
7 papers.
- 2024FlipAttack: Jailbreak LLMs via Flippingcited by 73
- 2025JADES: A Universal Framework for Jailbreak Assessment via Decompositional Scoringcited by 12
- 2025From ASR to ASP: Evaluating Prompt Attack Vulnerabilities Against Open-Source LLMscited by 6
- 2025The Challenge of Identifying the Origin of Black-Box Large Language Modelscited by 5
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generationcited by 1
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprintscited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprints6 Sep 2025
- 2025JADES: A Universal Framework for Jailbreak Assessment via Decompositional Scoring28 Aug 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025From ASR to ASP: Evaluating Prompt Attack Vulnerabilities Against Open-Source LLMs20 May 2025
- 2025The Challenge of Identifying the Origin of Black-Box Large Language Models6 Mar 2025
- 2024FlipAttack: Jailbreak LLMs via Flipping2 Oct 2024