Top 3 Prompt Injection Attacks Exploiting the Semantic Gap

Key attack types leveraging the semantic gap include direct prompt injection overriding instructions, indirect injection via malicious external content, and jailbreaks that manipulate an LLM's role or ethical guidelines.

The top 3

  1. The Foundational Attack: Direct Prompt Overwriting: This method directly injects new instructions into the user prompt, exploiting the LLM's tendency to prioritize the latest input and override initial system directives.
  2. Most Covert Threat: Indirect Prompt Injection: Malicious commands are subtly embedded within external data sources (e.g., web pages, documents) that an LLM processes, causing it to execute unintended actions without direct user input.
  3. Top Information Theft: Prompt Leaking's Secret Reveal: This attack tricks LLMs into disclosing their confidential system prompts or internal configurations, providing attackers with blueprints for further exploitation.

Sources

Open the full topic