Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Generative AI Risks & Cybersecurity: LLM Security
Role Play
Rating: 4.3 out of 5(4,781 ratings)
14,612 students

Generative AI Risks & Cybersecurity: LLM Security

Data Poisoning, Model Bias, Prompt Injection, AI Ethics & Governance | Protect AI Systems from Cyber Threats
Last updated 10/2026
English
Arabic [Auto],English [Auto],

What you'll learn

  • Understand the core concepts of generative AI and associated cybersecurity risks.
  • Identify and analyze potential vulnerabilities within AI systems.
  • Learn strategies to mitigate risks including data poisoning and model bias.
  • Explore ethical considerations and best practices in AI development and usage.
  • Apply AI governance frameworks and establish security controls to protect generative AI deployments

Course content

10 sections • 48 lectures • 5h 13m total length
  • Welcome & Course Overview10:42

    Engage in a hands-on course on generative AI risks and cybersecurity, practicing prompt injection, jailbreaking, data poisoning, and hallucination exploitation while building guardrails, output validation, monitoring, and red team assessments.

  • How GenAI Works — Security Perspective8:14

    Uncover how transformer-based large language models process token sequences, revealing prompt injection and context window exhaustion risks, and how system prompts and temperature affect safety.

  • Setting Up Your Lab Environment9:41

    Set up an offline GenAI security lab in minutes and run 14 browser-based modules with a local Alima model. No API keys or cloud accounts required.

  • Lab-00: Your First API Call1:49

    Make your first api call to a local ai model on alima and examine the response structure, including prompt tokens, response tokens, total tokens, and token usage metadata.

  • Lab-00 Exercise: Your First LLM Call
  • Quiz 01: GenAI Fundamentals

Requirements

  • Basic Understanding of AI
  • Knowledge of Cybersecurity Principles

Description

This course contains the use of artificial intelligence.

Generative AI is now inside customer chatbots, code assistants and document tools, and attackers have noticed. In this course you attack and then defend real AI systems, not just read about them.

What to expect: About 5 hours of video. Plan 1 hour to install the lab tools (Ollama and a local model), then about 9–12 hours to complete the 14 labs and their assignments. The five role plays are optional too; allow about 10 to 15 minutes for each one you choose to do. All 14 labs run in a single lab file on your own computer, using a free local Llama model through Ollama, so no API key or paid account is needed. Each lab has an optional assignment with a worked model answer; assignments are practice and are not required for your certificate.

What you will do in the labs:

  • Extract a secret from a chatbot's system prompt with prompt injection, and see why "never reveal" instructions fail.
  • Hide instructions in a document and watch an AI summarizer obey them (indirect prompt injection).
  • Compare jailbreak techniques, probe hallucinations, and test a model for bias with paired prompts.
  • Build guardrails and run a 10-attack battery against them, then add output validation and a content classifier you can score for accuracy.
  • Classify an AI system under the EU AI Act, generate an AI use policy, respond to an AI security incident, and run a full red team exercise.

How the course is organized: nine sections take you from how generative AI works and the threat landscape, through prompt injection and jailbreaking, AI-specific attacks (data poisoning, model bias, SSRF through function calling, cost-based denial of service, hallucinations), and defense-in-depth, to secure development, red teaming, governance and compliance (EU AI Act, NIST AI RMF, ISO 42001), and emerging threats such as agentic AI. A running case study, NovaStar AI, ties every section to one realistic company.

What you need: a computer that can run Ollama (Windows, macOS or Linux), a modern browser, and basic familiarity with security concepts. No programming or machine learning background is required.

Who this course is for: security professionals, penetration testers, developers building AI features, and risk and compliance staff who need to understand how AI systems are attacked and how to protect them.

Who this course is for:

  • Technology Professionals: IT professionals, cybersecurity analysts, and software developers looking to deepen their knowledge of AI-specific security challenges will benefit from this course. It provides the tools and insights needed to safeguard AI systems within their organizations.
  • AI and Machine Learning Enthusiasts: Individuals with a keen interest in artificial intelligence and machine learning who wish to understand the potential risks and ethical considerations associated with these technologies will find this course enriching.
  • Students and Academics: Undergraduate and graduate students studying computer science, artificial intelligence, or cybersecurity, as well as academics and researchers in these fields, will gain from the detailed exploration of AI vulnerabilities and mitigation strategies.
  • Business Leaders and Managers: Executives and managers overseeing AI projects or considering AI implementations in their business operations will learn how to assess risks and implement effective security protocols to protect company data and AI investments.