Malicious Prompt Injection Attack
Large Language Models (LLMs) used for code generation are vulnerable to Malicious Programming Prompts (MaPP), where an attacker injects a short string (under 500 bytes) into the prompt, causing the LLM to generate code containing vulnerabilities while maintaining functional correctness. The attack exploits the LLM's ability to follow instructions, even those inserted maliciously, to embed unintended behaviors. The injected code can range from general vulnerabilities (e.g., setting a…
Evaluated models: Claude 3 Haiku, Claude 3 Opus, Claude 3 Sonnet+4 more
- Claude 3 Haiku
- Claude 3 Opus
- Claude 3 Sonnet
- GPT-3.5 Turbo
- GPT-4o
- Llama 3 70B
- Llama 3 8B