Prompt security · from Peter Woodford’s book

Prompt Injection in AI Agents: Risks, Examples and Defensive Questions

A third-party page can be useful evidence for an agent, but it should never silently become a trusted instruction source.

Book connection: Rogue, Misaligned, or Misconfigured?; The Environment Remembers

Cover of AI Safety: Humanity, Control, and the Race to Keep Superintelligence Aligned by Peter Woodford

When outside information tries to become an order

A browsing agent may read a supplier page, a support ticket, a repository file or a retrieved document. Those materials can contain text that looks like instructions for the assistant rather than information for the task. When the system treats that outside text as authoritative, the result is indirect prompt injection.

Imagine an agent preparing a neutral summary of public material. A web page includes text instructing assistants to ignore the original request, disclose sensitive context or follow a different link. The content should remain untrusted source material. If it is promoted into the instruction hierarchy, the agent may behave in ways the real user did not authorize.

Why agentic workflows make it more consequential

Ordinary prompt injection can distort a response. Tool-using agents can turn the distortion into action: unwanted emails, repository changes, data disclosure or new scheduled tasks. Persistent memory and shared files can carry the unsafe instruction into later work, even when the original page is no longer visible.

This does not mean every suspicious string succeeds or every agent is compromised. It means that systems reading untrusted material need security boundaries that do not rely solely on the model correctly refusing every manipulation attempt.

Questions to review before deployment

Good defenses combine model behavior with technical architecture. Developers can limit which tools an agent can call, validate outputs, check destinations and require approval for consequential actions. The goal is to reduce the damage possible from one mistaken interpretation.

Read further and practise safely

OWASP maintains practical guidance on LLM and agentic security; its published risks should be read as a separate security resource, not as a claim that it endorses this book. For a local, non-invasive planning aid, try the Prompt Injection Review Checklist. It helps record which defenses exist without running attacks against other websites.

The book places prompt injection within a larger control problem: a mistake becomes serious when an AI system has enough authority to act on it. Restricting that authority is therefore as important as improving the model’s ability to reject bad instructions.

Questions readers ask

Is prompt injection the same as a normal user request?

No. The concern is instructions embedded in lower-trust content attempting to override or redirect the legitimate user and system instructions.

Can a checklist prove an agent is secure?

No. It can identify questions for a review, but production security requires testing, monitoring, independent analysis and controls tailored to the actual system.

Read AI Safety by Peter Woodford

Explore the full argument, including frontier model evaluations, agent autonomy, global governance, the Control Ladder and the future of human oversight. Choose your preferred Amazon edition:

These links open Amazon. Pricing and availability are determined by Amazon. No purchase is required to read these free guides.

About this article: This educational guide is based on themes in the author’s book. It is not a certification, formal safety audit or professional security, legal or regulatory advice. Examples illustrate risks, not allegations of actual misconduct.