AI Safety & Ethics · Lesson 2
Prompt Injection: How Attackers Hack AI
Direct and indirect prompt injection attacks, real-world examples, risks for browser and email agents, detection patterns, and mitigation strategies.
What Is Prompt Injection
Prompt injection is an attack in which an adversary embeds instructions in user input or in external data, hijacking control of an AI system. The OWASP Top 10 for LLM Applications (2025 edition) ranks it as risk number one: LLM01:2025 Prompt Injection.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


