inflearn logo

Practical Security for LLM Agents

Build your own customer support agent team with the OpenAI Agents SDK, scaling from one agent to seven. For each feature, trigger real-world incidents and learn to prevent them with code. Cover all ten items in the OWASP Agentic Top 10 across 65 lessons, including tool permissions, guardrails, PII masking, human approval, code execution sandboxes, MCP, and kill switches.

6 learners are taking this course

Level Basic

Course period Unlimited

AI
AI
Python
Python
AI Agent
AI Agent
Model Context Protocol
Model Context Protocol
FastAPI
FastAPI
AI
AI
Python
Python
AI Agent
AI Agent
Model Context Protocol
Model Context Protocol
FastAPI
FastAPI

What you will gain after the course

  • The ability to build multi-agent systems with tools, handoffs, and guardrails using the OpenAI Agents SDK

  • A design that protects other users’ data by verifying ownership against the logged-in user’s information within the tool

  • How to Apply Input/Output Guardrails and Korean-Specific Personal Information Masking Without the Pitfalls of Default Behavior

  • How to require staff approval for irreversible actions like refunds and coupons (diff, risk color, and budget)

  • Agent-specific defenses such as sandboxed execution of model-written code, pinning MCP server versions and hashes, and delegated tokens.

  • How to Operate Monitors, Hash-Chain Logs, and Kill Switches Using 20 Red-Team Scenarios as CI Gates

  • OWASP Agentic Top 10 Mapping, a 25-Item Security Checklist for Enterprise Adoption, and 12 Recipes

[Recommended Reading]

- Velog series “OWASP Agentic Top 10 2026 for Beginners”: https://velog.io/@bumicklee/series/owasp-agentic

A series of articles explaining each of the ten items, ASI01–ASI10, one at a time. They’re a good companion to the course’s “OWASP at a Glance” lesson.




A hands-on course where you build a shopping mall customer support agent team with the OpenAI Agents SDK, triggering real incidents each time you add a feature and then preventing them with code.

As the team grows from one agent to seven, it covers all ten items in the OWASP Agentic Top 10.

[What Will You Learn?]

- Tool permissions: Check ownership using the logged-in user's information within order lookup and shipping address change tools, and create narrowly scoped tools instead of broad tools like run_sql.

- Guardrails: Keep secrets out of instructions, connect Moderation and SDK input/output guardrails, and avoid pitfalls in defaults such as parallel execution and fail-open behavior.

- Personal data: Mask card and national ID numbers using Korean-specific patterns in FastAPI middleware, including in logs and traces.

- Multi-agent: Covers handoffs, tenant filters, staff approvals (diffs, risk colors, previews), delegation tokens, and memory provenance and expiration.

- Code execution and MCP: Run model-generated code in isolation, and pin the version and tool-description hashes of the courier MCP server.

- Operations: We also establish the supervisor’s message contract, circuit breakers, hash-chain action logs, monitors, kill switches, and 20 red-team CI gates.

[What problem does it solve?]

- We make it possible to explain which layer (model, guardrail, or my code) prevents incidents like “entering only the number opens someone else’s order” or “the approval card showed one transaction, but eight refunds were issued.”

We use code outside the model to block issues the model may or may not catch, then verify them again with red-team scenarios.

- Before putting agent features into production, we check them one by one using the security checklist for enterprise adoption.

[This Course’s Secret Weapon]

1. A system that’s actually used: Run the customer support lab cs-crew on my PC, with customer chat, email inquiries, an employee console, and an operations dashboard.

Four command lines per lesson: make lesson → make check → fix it → make check → make redteam. If you get stuck, use make goto to restart from the beginning of that lesson.

3. Start without a key: The basic exercises use a fake LLM, so they cost nothing and produce the same results every time. For a real model, choose your own OpenAI key or an OpenAI-compatible endpoint (LM Studio, AWS Bedrock).

4. Real screens: The screens in the video were captured by running the lab. Responses from the real model were tested using gpt-oss-20b on AWS Bedrock and included in the lesson (2026-11-06).

5. Disclosure of textbook-level attack prompts: We show the attack prompts and results exactly as they are, without covering bypass, obfuscation, or jailbreak techniques.


[Recommended Reading]

- Velog series “OWASP Agentic Top 10 2026 for Beginners”: https://velog.io/@bumicklee/series/owasp-agentic

This series explains each of the ten items from ASI01 to ASI10 in a separate post. It pairs well with the course’s “OWASP in One Page” lesson.


Recommended for
these people

Who is this course right for?

  • A Python developer who has used the ChatGPT API before and is building an agent that uses tools for the first time.

  • A developer who has built an agent demo and is concerned about security before deploying it to production.

  • A team looking to introduce agents into a service that handles customer data, payments, and refunds

  • A team lead who needs security review criteria for agent features and a checklist to complete before enterprise adoption.

  • For those who have tried securing a customer-service bot and want to expand into multi-agent systems, memory, code execution, and MCP.

Need to know before starting?

  • You need to be able to read and write Python functions and classes.

  • You must be able to run commands in the terminal and create a virtual environment (venv). Python 3.11 or later is required.

  • No experience with FastAPI, SQL, or agents is required. We’ll cover as much SQL as needed in Lessons 1–3.

  • You don’t need an OpenAI API key. The basic hands-on exercise uses a fake LLM, so no key is needed.

Hello
This is brunoleebi8302

Career Verified

I took my first steps as a server developer during the Y2K era, a time of upheaval in the IT industry. Since then, I have moved between developer and infrastructure engineer roles across a wide range of industries, gaining hands-on experience with everything from the fundamentals of technology to complex infrastructure ecosystems. Building on my experience constructing and refining countless systems, I have recently been creating new value in the fields of IT security and convergent technologies.
More

Curriculum

All

66 lectures ∙ (5hr 20min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

brunoleebi8302's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Limited time deal

$58.30

24%

$77.00