The LMVD-ID is an internal research identifier, not an official CVE identifier.
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…
Paper-evaluated models(5)
Llama 2 7B Chat, Llama 7B, Mistral 7B Instruct +2 more
- Llama 2 7B Chat
- Llama 7B
- Mistral 7B Instruct
- Vicuna 13B
- Vicuna 7B
Description
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.
Examples
- Backdoor Attack: An attacker creates a dataset of (input, target output) pairs, where the target output is a specific sentence. They optimize an adversarial embedding to cause the model to generate this sentence whenever a chosen trigger token appears in the input. See paper for detailed examples and quantitative results.
- Jailbreak Attack: An attacker provides a dataset of (harmful question, desired response) pairs. They optimize an adversarial embedding to allow the model to bypass safety mechanisms and provide the desired (harmful) response when the trigger token is present. See paper for detailed examples and quantitative results.
- Prompt Stealing Attack: An attacker optimizes an adversarial embedding to cause the model to leak its internal system prompt when a specific trigger token is included in the input. See paper for detailed examples and quantitative results.
Impact
- Backdoor: The model can be manipulated to generate false information or biased responses.
- Jailbreak: The model's safety mechanisms can be bypassed, leading to the generation of harmful content (hate speech, illegal activities, etc.).
- Prompt Stealing: Intellectual property (system prompts, training data details) can be stolen.
Affected Systems
Open-source LLMs where an attacker has access to the model file (e.g., those distributed via Hugging Face, GitHub). The paper specifically tested Vicuna, Llama 2, and Mistral models, but the attack is likely applicable to other models.
Mitigation Steps
- Model Integrity Verification: Implement robust mechanisms to verify the integrity of downloaded open-source LLMs before deployment. Detect unauthorized modifications to token embeddings.
- Secure Distribution Channels: Utilize secure distribution channels for open-source LLMs, minimizing the risk of malicious modifications during distribution.
- Defense Mechanisms: Research and develop defensive techniques specifically targeting the manipulation of token embeddings. These defenses should ideally be incorporated during the model training process.
- Regular Auditing: Conduct regular audits of deployed LLMs to detect and mitigate potential backdoors.
- Sandboxing: Run LLMs in secure sandboxes to limit the impact of potential attacks.
Research context and confidence
- Evidence and verification
- Paper-reported; independent reproduction is not documented.
- Primary research source linked.
- Severity
- Not rated by this catalog.
- Source and publication type
- arXiv · Research preprint.
- Peer-review status is not provided by this source.
- Author and publication status
- Author metadata is not stored; see the primary paper.
- Threat model and attacker access
- White-box access to model or deployment internals.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Open-source LLMs where an attacker has access to the model file (e.g., those distributed via Hugging Face, GitHub). The paper specifically tested Vicuna, Llama 2, and Mistral models, but the attack is likely applicable…
Research Paper
Sos! soft prompt attack against open-source large language models
Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.
View PaperEvidence
This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.
https://arxiv.org/abs/2407.03160Related research
- Guardrail Bypass Harmful Fine-tuning
Published January 1, 2025 · model-layer, application-layer, prompt-layer
- Adversarial Speech Jailbreak
Published May 1, 2024 · model-layer, jailbreak, injection
- LLM Causal Neuron Attack
Published December 1, 2023 · model-layer, jailbreak, extraction