In this post, I want to explain prompt injection. It happens when an attacker puts instructions into text that an AI system will read. The model cannot tell which text is the task and which is the attack, so it may follow the wrong one.
If you know SQL injection, you already have the core idea: untrusted input is treated as instructions. But SQL injectio…



