Willison's SQL Injection Analogy for Prompt Attacks
Simon Willison formally coined 'prompt injection' in September 2022, drawing a direct parallel to SQL injection, arguing both exploit the concatenation of untrusted user input with trusted instructions.
The top 3
- SQL Injection's First Public Documentation: The concept of SQL Injection was first publicly documented by cybersecurity researcher Jeff Forristal, also known as 'Rain Forest Puppy,' in the December 1998 issue of Phrack magazine (issue 54).
- Top 3 Most Damaging SQL Injection Attacks: Historically, major SQL injection breaches include Heartland Payment Systems (2008) exposing 130 million card numbers, Sony Pictures (2011) affecting 77 million PlayStation Network accounts, and Yahoo! Voices (2012) leaking half a million user credentials.
- Key Differences: Prompt vs. SQL Injection Mechanisms: Unlike SQL injection, which exploits the separation of code and data in structured queries, prompt injection in LLMs is harder to defend against because instructions and user content blend into a single, probabilistically interpreted text stream, offering an infinite attack surface.
Sources
Open the full topic