AI EngineeringInterview preparation
Foundation·Discussion·2 min read

What is prompt injection?

Practice this question
  • It is an attempt to redirect the model through attacker-controlled instructions.
  • When those instructions appear in a PDF, webpage, email, or tool result, it is indirect injection.
  • I treat these sources as data and limit model authority.
Adapted from 13_AI.MD · “29.13 AI security”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.