EC-Council

Securing LLMs Against Prompt Injection

EC-Council

Securing LLMs Against Prompt Injection

This course is part of AI Cybersecurity Specialization

EC-Council

Instructor: EC-Council

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Explain prompt processing and distinguish direct and indirect prompt injection.

  • Identify risks involving retrieved content, RAG poisoning, invisible text, and LLM agents.

  • Describe real-world LLM failure patterns and layered defense-in-depth approaches.

  • Explore automated AI red teaming with promptfoo, garak, and PyRIT.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

December 2026

Assessments

12 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the AI Cybersecurity Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 7 modules in this course

This chapter introduces the course and its prerequisites while establishing the fundamentals of how Large Language Models process prompts. It also introduces prompt injection as a core vulnerability and explains why it poses a security risk to LLM-powered applications.

What's included

4 videos1 reading2 assignments

This chapter explores direct prompt injection techniques, common attack vectors, and persona-based manipulation. It includes a practical Gandalf challenge to help learners understand how direct attacks can bypass or manipulate an LLM’s intended behavior.

What's included

3 videos1 reading2 assignments

This chapter examines advanced prompt injection techniques, including indirect injection, RAG poisoning, and attacks targeting AI agents. Learners also explore invisible text injection through a practical exercise designed to demonstrate how hidden instructions can influence AI systems.

What's included

1 video1 reading2 assignments

This chapter examines real-world examples of prompt injection and AI security failures through case studies involving Bing Sydney and the Chevy chatbot. It highlights how seemingly unexpected model behaviors can emerge from insufficient security controls.

What's included

1 video1 reading2 assignments

This chapter introduces a layered approach to protecting LLM applications through defense in depth. It explores how multiple security controls can work together to reduce the impact of prompt injection and other AI-related attacks.

What's included

1 video1 reading2 assignments

This chapter introduces automated approaches for testing the security and resilience of AI applications. It covers tools such as Promptfoo, Garak, and PyRIT and explains how they can be used to identify and evaluate potential vulnerabilities.

What's included

1 video1 reading2 assignments

This chapter concludes the course with hands-on CTF challenges that allow learners to apply the concepts and techniques covered throughout the training. It then summarizes the key security principles and takeaways from the course.

What's included

1 video

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

EC-Council
EC-Council
11 Courses115,419 learners

Offered by

EC-Council

Explore more from Security

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions