productinterview.tools
MenuClose

What Is Prompt Injection? Direct and Indirect Attacks Explained

When text the model reads, from a user or from a web page, email or document, changes what it does against your intent.

1 min read
On this page
  1. How it works
  2. Why it matters, by role
  3. How interviews test it
  4. Common confusions
  5. Related concepts
  6. Sources

How it works

  • Instructions and data share one context; the model can't reliably tell them apart.
  • Indirect injection hides instructions in content an agent processes.

Full lesson: Safety, risk and safeguards.

Why it matters, by role

  • AI Safety PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation: Core risk for agents.
  • Applied AI PM: Any feature reading untrusted content.
  • Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation: Customer security reviews ask about it.

How interviews test it

Common confusions

  • A stronger system prompt doesn't solve it.
  • The goal is limiting what a hijacked system can do: least privilege, confirmations, logging.

Sources