Learn how applications built on large language models get attacked, and how to defend one. You'll see why a feature that acts on plain language can be attacked with plain words, what a large language model actually does, and what an LLM application is made of. You'll learn how prompt injection mixes instructions and data, direct and hidden in the documents a model reads, why jailbreaks and filters keep changing, and why poisoned data, downloaded models, leaked secrets and the model's own output all need checking. Then you'll run a small help desk chatbot with a local model and attack it for real: it promises free books, sends customers to an attacker's site, gives away a private discount code and deletes orders. Last, you'll add one defense at a time, run the same attack again to watch it fail, and end with a set of probes against the defended chatbot. For anyone who builds or runs software, with no security or machine learning background required.

Security for AI Applications
Extended! : Two more days to get Coursera Plus for $239/year and build in-demand skills.

Gain insight into a topic and learn the fundamentals.
Beginner 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 injection, jailbreaks, data poisoning and data leaks in AI applications
Attack a local chatbot with injection, a hidden instruction, a leak and unchecked SQL
Add layered defenses and verify each one by running the same attack again
Skills you'll gain
- AI Security
- Cybersecurity
- Authorization (Computing)
- Data Loss Prevention
- Artificial Intelligence
- Open Web Application Security Project (OWASP)
- Information Privacy
- Large Language Modeling
- Application Security
- LLM Application
- Security Testing
- Prompt Engineering
- Exploitation techniques
- Data Validation
- Security Controls
Tools you'll learn
Details to know

Shareable certificate
Add to your LinkedIn profile
Recently updated!
November 2026
Assessments
4 assignments
Taught in English
There are 3 modules in this course
Instructor

Offered by
Explore more from Security
What brings you to Coursera today?
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."








