SAT Course

AI Guardrails: Implementing Security Controls for LLM Applications

Course

AI Guardrails are security controls that intercept and validate inputs to and outputs from Large Language Models (LLMs), addressing unique attack vectors that traditional security controls cannot prevent. Learn to build a complete guardrails stack, test it against prompt injection attacks and PII disclosure, and monitor and tune these controls.

Full access included with 
Insider Pro
 and 
Teams

1

H

11

M
Time

Intermediate

i
Designed for learners who have no prior work experience in IT or Cybersecurity, but are interested in starting a career in this exciting field.
Designed for learners with prior cybersecurity work experience who are interested in advancing their career or expanding their skillset.
Designed for learners with a solid grasp of foundational IT and cybersecurity concepts who are interested in pursuing an entry-level security role.
Experience Level

242

Enrollees

860

XP

1

i

Earn qualifying credits for certification renewal with completion certificates provided for submission.
CEU's

Learners at 96% of Fortune 1000 companies trust Cybrary

About this course

Read More

Skills you'll gain

Course Outline

1
Module 1: Introduction to AI Guardrails
H
20
Min
1
Module 2: Implementing PII Masking
H
25
Min
1
Module 3: Prompt Injection Detection
H
16
Min
1
Module 4: Understanding Guardrails in Practice
H
10
Min

1.1 Understanding AI Guardrails and the LLM Threat Landscape

Free

10 XP

H

20m

1.2 The LiteLLM Security Stack Architecture

Free

10 XP

H

200m

2.1 Microsoft Presidio for PII Detection

Free

15 XP

H

200m

2.2 Lab - Deploy and Test Presidio PII Masking

Free

10 XP

H

20m

3.1 Lakera AI Prompt Defense

Free

10 XP

H

200m

3.2 Lab - Block Prompt Injection Attacks with Lakera

Free

6 XP

H

20m

4.1 Observability, Performance, and Decision Frameworks

Free

10 XP

H

200m

Course Description

AI Guardrails are security controls that intercept and validate inputs to and outputs from Large Language Models (LLMs), addressing unique attack vectors that traditional security controls cannot prevent. This course provides hands-on demonstrations implementing production-grade guardrails using LiteLLM proxy as a unified security gateway, Microsoft Presidio for PII masking to prevent sensitive data leakage, and Lakera AI for prompt injection detection to block malicious inputs and outputs. Unlike traditional application security controls that focus on code vulnerabilities, AI guardrails address unique risks introduced by probabilistic AI systems that can be manipulated through natural language. By the end of this course, you will have the knowledge to build a complete guardrails stack, test it against real prompt injection attacks and PII disclosure scenarios, and learn to monitor and tune these controls for production environments.

Target Audience

This course is for security engineers, application security professionals, penetration testers, and developers who need to secure LLM applications against prompt injection, data leakage, and policy violations.

Course Level

Intermediate

Prerequisites

Basic understanding of APIs, HTTP requests, Linux command line, and familiarity with LLM concepts (prompts, responses, system instructions).

Links

OWASP LLM Top 10 2025: https://genai.owasp.org/ LiteLLM Documentation: https://docs.litellm.ai/ Microsoft Presidio: https://microsoft.github.io/presidio/ Lakera AI: https://www.lakera.ai/

Course Goals

By the end of this course, you should be able to:

  • Define AI guardrails, explain why traditional security controls are insufficient for LLM applications, and identify the primary attack vectors addressed by guardrails.
  • Implement PII masking using Microsoft Presidio and prompt injection detection using Lakera AI within a LiteLLM proxy architecture.
  • Demonstrate monitoring and tuning strategies for production guardrail deployments, including observability through database logging and adjusting detection thresholds.

Course Outline

Module 1 | Introduction to AI Guardrails

  • Understanding AI Guardrails and the LLM Threat Landscape
  • The LiteLLM Security Stack Architecture

Module 2 | Implementing PII Masking

  • Microsoft Presidio for PII Detection
  • Lab: Test Presidio PII Masking

Module 3 | Prompt Injection Detection

  • Lakera AI Prompt Defense
  • Lab: Block Prompt Injection Attacks with Lakera

Module 4 | Understanding Guardrails in Practice

  • Observability, Performance, and Decision Frameworks

Train Your Team

Cybrary’s expert-led cybersecurity courses help your team remediate skill gaps and get up-to-date on certifications. Utilize Cybrary to stay ahead of emerging threats and provide team members with clarity on how to learn, grow, and advance their careers within your organization.

Included in a Path

No items found.
No items found.

Instructors

Will McMillan
Founder & Principal IT/AI Consultant
Read Full Bio
Learn

Learn core concepts and get hands-on with key skills.

Practice

Exercise your problem-solving and creative thinking skills with security-centric puzzles

Prove

Assess your knowledge and skills to identify areas for improvement and measure your growth

Get Hands-on Learning

Put your skills to the test in virtual labs, challenges, and simulated environments.

Measure Your Progress

Track your skills development from lesson to lesson using the Cybrary Skills Tracker.

Connect with the Community

Connect with peers and mentors through our supportive community of cybersecurity professionals.

Success from Our Learners

"Becoming a Cybrary Insider Pro was a total game changer. Cybrary was instrumental in helping me break into cybersecurity, despite having no prior IT experience or security-related degree. Their career paths gave me clear direction, the instructors had real-world experience, and the virtual labs let me gain hands-on skills I could confidently put on my resume and speak to in interviews."

Cassandra

Information Security Analyst/Cisco Systems

"I was able to earn both my Security+ and CySA+ in two months. I give all the credit to Cybrary. I’m also proud to announce I recently accepted a job as a Cyber Systems Engineer at BDO... I always try to debunk the idea that you can't get a job without experience or a degree."

Casey

Cyber Systems Engineer/BDO

"Cybrary has helped me improve my hands-on skills and pass my toughest certification exams, enabling me to achieve 13 advanced certifications and successfully launch my own business. I love the practice tests for certification exams, especially, and appreciate the wide-ranging training options that let me find the best fit for my goals"

Angel

Founder,/ IntellChromatics.

"Cybrary really helped me get up to speed and acquire a baseline level of technical knowledge. It offers a far more comprehensive approach than just learning from a book. It actually shows you how to apply cybersecurity processes in a hands-on way"

Don Gates

Principal Systems Engineer/SAIC

"Cybrary’s SOC Analyst career path was the difference maker, and was instrumental in me landing my new job. I was able to show the employer that I had the right knowledge and the hands-on skills to execute the role."

Cory

Cybersecurity analyst/

"I was able to earn my CISSP certification within 60 days of signing up for Cybrary Insider Pro and got hired as a Security Analyst conducting security assessments and penetration testing within 120 days. This certainly wouldn’t have been possible without the support of the Cybrary mentor community."

Mike

Security Engineer and Pentester/

"Becoming a Cybrary Insider Pro was a total game changer. Cybrary was instrumental in helping me break into cybersecurity, despite having no prior IT experience or security-related degree. Their career paths gave me clear direction, the instructors had real-world experience, and the virtual labs let me gain hands-on skills I could confidently put on my resume and speak to in interviews."

Cassandra

Information Security Analyst/Cisco Systems

"I was able to earn both my Security+ and CySA+ in two months. I give all the credit to Cybrary. I’m also proud to announce I recently accepted a job as a Cyber Systems Engineer at BDO... I always try to debunk the idea that you can't get a job without experience or a degree."

Casey

Cyber Systems Engineer/BDO

"Cybrary has helped me improve my hands-on skills and pass my toughest certification exams, enabling me to achieve 13 advanced certifications and successfully launch my own business. I love the practice tests for certification exams, especially, and appreciate the wide-ranging training options that let me find the best fit for my goals"

Angel

Founder,/ IntellChromatics.

Begin the Malware Analysis Basics Virtual Lab for Free Today.

Validate and strengthen your malware analysis skills today! Enroll in Cybrary’s Malware Analysis Basics Virtual Lab to take the first step toward confidently responding to cyber threats.

AI Guardrails: Implementing Security Controls for LLM Applications

AI Guardrails are security controls that intercept and validate inputs to and outputs from Large Language Models (LLMs), addressing unique attack vectors that traditional security controls cannot prevent. Learn to build a complete guardrails stack, test it against prompt injection attacks and PII disclosure, and monitor and tune these controls.

1
11
M
Time
Intermediate
difficulty
1
ceu/cpe

Course Content

Course Description

AI Guardrails are security controls that intercept and validate inputs to and outputs from Large Language Models (LLMs), addressing unique attack vectors that traditional security controls cannot prevent. This course provides hands-on demonstrations implementing production-grade guardrails using LiteLLM proxy as a unified security gateway, Microsoft Presidio for PII masking to prevent sensitive data leakage, and Lakera AI for prompt injection detection to block malicious inputs and outputs. Unlike traditional application security controls that focus on code vulnerabilities, AI guardrails address unique risks introduced by probabilistic AI systems that can be manipulated through natural language. By the end of this course, you will have the knowledge to build a complete guardrails stack, test it against real prompt injection attacks and PII disclosure scenarios, and learn to monitor and tune these controls for production environments.

Target Audience

This course is for security engineers, application security professionals, penetration testers, and developers who need to secure LLM applications against prompt injection, data leakage, and policy violations.

Course Level

Intermediate

Prerequisites

Basic understanding of APIs, HTTP requests, Linux command line, and familiarity with LLM concepts (prompts, responses, system instructions).

Links

OWASP LLM Top 10 2025: https://genai.owasp.org/ LiteLLM Documentation: https://docs.litellm.ai/ Microsoft Presidio: https://microsoft.github.io/presidio/ Lakera AI: https://www.lakera.ai/

Course Goals

By the end of this course, you should be able to:

  • Define AI guardrails, explain why traditional security controls are insufficient for LLM applications, and identify the primary attack vectors addressed by guardrails.
  • Implement PII masking using Microsoft Presidio and prompt injection detection using Lakera AI within a LiteLLM proxy architecture.
  • Demonstrate monitoring and tuning strategies for production guardrail deployments, including observability through database logging and adjusting detection thresholds.

Course Outline

Module 1 | Introduction to AI Guardrails

  • Understanding AI Guardrails and the LLM Threat Landscape
  • The LiteLLM Security Stack Architecture

Module 2 | Implementing PII Masking

  • Microsoft Presidio for PII Detection
  • Lab: Test Presidio PII Masking

Module 3 | Prompt Injection Detection

  • Lakera AI Prompt Defense
  • Lab: Block Prompt Injection Attacks with Lakera

Module 4 | Understanding Guardrails in Practice

  • Observability, Performance, and Decision Frameworks
This course is part of a Career Path:
No items found.

Instructed by

Provider
Cybrary Logo
Certification Body
Certificate of Completion

Complete this entire course to earn a AI Guardrails: Implementing Security Controls for LLM Applications Certificate of Completion