AI / Agentic AI Interview Questions
Define Prompt Injection in the context of AI agents?
Prompt injection is an attack where malicious instructions are embedded in content an agent processes, tricking it into behaving differently than the user intended.
- Can be hidden inside a document, webpage, or file the agent reads as part of its task
- Exploits the fact that an LLM can't reliably distinguish between instructions from the user and text that happens to look like instructions
- Becomes more dangerous for agents than for simple chatbots, since an agent with tool access can actually act on the injected instructions
This risk grows directly with how much external, untrusted content an agent is exposed to during its task, which is part of why tool access and permissions need careful scoping.
More Related questions...