Soft Prompt Model Hijack
A training-time attack against open-source LLMs that injects adversarial embeddings into the model's token embeddings without modifying model weights. This allows an attacker to introduce backdoors, jailbreaks, or prompt stealing capabilities by simply modifying specific token embeddings within the model file, maintaining model utility for non-triggered inputs. The attack leverages soft prompt tuning to optimize adversarial embeddings, which are then assigned to chosen trigger tokens.
Evaluated models: Llama 2 7B Chat, Llama 7B, Mistral 7B Instruct+2 more
- Llama 2 7B Chat
- Llama 7B
- Mistral 7B Instruct
- Vicuna 13B
- Vicuna 7B