
Discover why securing agentic AI is a new discipline, centered on action amplification and multi-tool agents. Map attack surfaces and apply OWASP, Atlas, and NIST for defense and remediation.
? Download the lab kit (securing-agentic-ai-labs.zip) from the Resources section of this lecture, then unzip it and follow along.
Direct prompt injection hijacks user input to override the system prompt and trigger tool calls. Learn causes, steps, and defenses—spotlighting, delimiting, least-privileged tool scopes, approvals, and detection in Task Pilot.
Layer defenses around a core principle: untrusted data is never an instruction. Apply spotlighting, delimiting, and dual-llm patterns to separate data, enforce schemas, and isolate task pilot from untrusted text.
Treat the tool boundary as a trust boundary between an untrusted model and the real world. Enforce a four-step pattern: narrow schema, boundary validation, least privilege, and output logging.
Trace how a tool argument becomes a shell command in TaskPilot, revealing metacharacter injection and defending with no shell and parameterized APIs.
Secure MCP server integrations by vetting and pinning servers and applying least privilege for tool access. Tighten tool schemas and descriptions to prevent prompt injection, tool shadowing, and data exfiltration.
Trace how an attacker hijacks an agent's plan in a multi-step loop by injecting poisoned observations and overriding goals, and review defenses such as pinned objectives and guard checks.
Learn how memory poisoning creates durable attacker-controlled instructions across sessions and how to defend by validating on write, sanitizing on read, and scoping memory.
Trace how a normal agent loop degrades into a self-fueling, cost-draining cycle and learn four defenses: terminate the loop, track cost, measure progress, and escalate to SAM or an operator.
Examine orchestration risks in Crew AI and AutoGen across four layers—the orchestrator, role-named agents, shared context, and tools—and apply four defenses: least privilege, untrusted data, max limits, and a human-in-the-loop.
Explore human-in-the-loop gates that pause risky actions, route irreversible calls to a human reviewer, and log every decision in an immutable audit trail.
Explore automated red teaming for agentic AI governance with Garrick and PYRIT, mapping findings to OWASP LLM01/LLM06 and MITRE Atlas, aligned with NIST AI RMF, EU AI Act, ISO 42001.
This course contains the use of artificial intelligence.
Autonomous AI agents introduce entirely new attack vectors. The moment an LLM can call a shell, read a database, fetch a URL, send email, and run code across multiple steps, a single manipulation stops being unsafe text and becomes an executed action — at scale. This is action amplification, and it's why securing agents is its own discipline.
This is a practical, attack-then-defend course. You'll build a deliberately vulnerable agent — TaskPilot — on LangGraph and a local Llama model, then attack and harden it across eight hands-on labs. You'll exploit direct and indirect prompt injection, tool and command injection, SSRF, memory poisoning, plan hijacking, denial-of-wallet, agent-to-agent injection, and sandbox escape — then build the defenses: spotlighting and output handling, secure tool design, least-privilege permission brokers, MCP scoping, execution guards, container sandboxing with egress control, human-in-the-loop gates, tracing, runtime guardrails, and automated red-teaming with Garak and PyRIT.
Everything runs locally on a 16 GB laptop with Ollama — no paid API keys, no cloud accounts. Every lecture and lab is anchored to the frameworks that matter: the OWASP Top 10 for LLM Applications and the OWASP Agentic Security Initiative, MITRE ATLAS, the NIST AI Risk Management Framework, the EU AI Act, and ISO/IEC 42001. The capstone is a publishable red-team and remediation report you can adapt for client engagements.