← All courses

Securing AI Agents: Prompt Injection, Permissions and Guardrails

For operations, IT and security leads and for automation builders who run agents in n8n, MCP clients, Claude or ChatGPT. Learn how prompt injection really works and why it has no complete fix, then limit the damage with least privilege, vetted MCP servers, approval gates, sandboxing, outbound controls, logging and incident response. The course ends with a hands-on red-team lab against a sample agent. Grounded in the OWASP GenAI Security Project, the MCP security best practices and published vendor and research guidance.

Log in to start →

Course preview

What you will learn

Explore the full curriculum before you enrol. Lessons unlock after purchase or free enrolment.

01

The Agent Threat Model: Prompt Injection and the Lethal Trifecta

Topics covered

  • Explain why a language model cannot reliably tell trusted instructions apart from the data it reads, and why that matters once it has tools
  • Distinguish direct from indirect prompt injection and recognise goal hijacking in a real workflow
  • Trace the common exfiltration channels: tool calls, links, rendered images and other outbound paths
1 lesson10 questions~25 min
02

Excessive Agency and Least Privilege

Topics covered

  • Recognise OWASP's three root causes of excessive agency: too much functionality, too many permissions, too much autonomy
  • Design narrow, single-purpose tools and keep reading separate from writing
  • Scope credentials to the task, the user and the environment
1 lesson10 questions~25 min
03

MCP and Supply-Chain Risk

Topics covered

  • Explain why every MCP server is third-party code plus third-party text inside your agent
  • Recognise tool poisoning, rug pulls and cross-server shadowing
  • Vet, pin and allowlist MCP servers before connecting them to agents
1 lesson10 questions~25 min
04

Human-in-the-Loop, Sandboxing and Isolation Patterns

Topics covered

  • Decide which actions need human approval and design approval requests that people can genuinely evaluate
  • Avoid approval fatigue so that gates stay meaningful
  • Contain code-executing agents with sandboxes and outbound network controls
1 lesson10 questions~25 min
05

Monitoring, Logging and Incident Response for Agents

Topics covered

  • Log what an agent read, decided and did, so any incident can be reconstructed
  • Define practical detection signals for injection and misuse
  • Prepare a kill switch and a credential-revocation plan before you need them
1 lesson10 questions~25 min
06

Red-Team Lab: Attack and Harden an Agent Workflow

Topics covered

  • Set up a safe, authorised test environment with canary data and a controlled destination
  • Run a checklist of injection and misuse attacks against a sample agent
  • Record findings with evidence, severity and root cause
1 lesson10 questions~25 min
07

Final Exam

Final exam
35 questions~60 min