Safety, Security & Responsible AI·Question 60 of 70Quick-fire

How do you defend an agentic system against prompt injection and misuse?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

There is no single fix, so you layer defenses: give tools least privilege and scope so a compromised step cannot do much, require human approval for sensitive or irreversible actions, separate trusted instructions from untrusted data in the context, and add input and output guardrails to filter obvious attacks and unsafe outputs. Sandbox tool execution, log everything for audit, and constrain what the agent can reach. Assume some injection will get through and design so the blast radius is small rather than betting on perfect detection.

Full worked answer

There is no single fix, so you layer defenses: give tools least privilege and scope so a compromised step cannot do much, require human approval for sensitive or irreversible actions, separate trusted instructions from untrusted data in the context, and add input and output guardrails to filter obvious attacks and unsafe outputs. Sandbox tool execution, log everything for audit, and constrain what the agent can reach. Assume some injection will get through and design so the blast radius is small rather than betting on perfect detection.

Learn more: Securing agentic AI systems guide

What a good answer covers

  • There is no single fix, so you layer defenses
  • Sandbox tool execution, log everything for audit, and constrain what the agent can reach
  • Assume some injection will get through and design so the blast radius is small rather than betting on…

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep