Interactive roadmap

    AI Red Teaming roadmap

    Designed for security professionals and developers, this path teaches you how to ethically probe, test, and defend large language model systems against emerging security risks.

    Your progress0% · 0 of 20 topics
    Done Learning Skipped OptionalClick any topic to learn more and mark your progress.
    1. 1

      Foundations of AI Security

      0 of 4 done

      Understand how AI red teaming differs from traditional security testing.

      Take your time setting up proper authorisation before testing, as safety rules protect both you and the systems you examine.
    2. 2

      Prompt Attacks and Jailbreaks

      0 of 4 done

      Learn the primary methods used to manipulate language model inputs.

      Test your prompts iteratively, changing one word at a time to see how the model's defensive boundaries respond.
    3. 3

      Data and Privacy Risks

      0 of 4 done

      Identify where sensitive information can leak from systems and training pipelines.

      Always inspect your application outputs for accidental data leakage before sending them back to users.
    4. 4

      Testing Methods and Tooling

      0 of 4 done

      Apply manual and automated methodologies to systematically test model boundaries.

      Combine automated scanning tools with creative manual testing to catch both common and complex security flaws.
    5. 5

      Remediation and Reporting

      0 of 4 done

      Document vulnerabilities responsibly and build layered defences to prevent exploitation.

      Clear, reproducible vulnerability reports help engineering teams fix security issues quickly and effectively.

    Learn it all, with a tutor that never sleeps

    Every topic links to LevelUp lessons, practice exercises and the 24/7 AI Tutor. Your progress updates as you master lessons.

    Every topic explained

    Step 1: Foundations of AI Security

    AI red teaming involves structured testing of models to find safety, security, and alignment flaws before malicious users do.
    Read more

    AI red teaming is the practice of actively probing machine learning systems to uncover hidden safety, security, and alignment flaws. Instead of waiting for real cyber criminals to exploit a weakness, you adopt an adversarial mindset to find gaps voluntarily. Think of it like a safety test crash for a car, where engineers intentionally push the vehicle to its limits to see where it breaks.

    This matters for our roadmap because understanding how models fail is the crucial first step in building robust, dependable artificial intelligence applications that users can safely trust with everyday tasks.

    • Proactive testing finds safety flaws before malicious users do.
    • Requires an adversarial mindset combined with ethical boundaries.
    • Helps improve alignment and overall system reliability.
    NIST AI Risk Management Framework
    Map out potential attackers, system components, and failure modes specific to applications powered by generative AI.
    Read more

    Threat modelling is the process of mapping out potential attackers, system components, and failure modes specific to generative artificial intelligence. By breaking down how a user query flows from the frontend into the model and through any connected databases, you can spot where things might go wrong. Imagine planning security for a smart office building by listing every door, window, and possible intruder.

    This skill is vital because it stops you from guessing and helps you focus your testing efforts on the parts of your application carrying the highest risk.

    • Maps out data flows from user input to backend systems.
    • Identifies specific failure modes unique to generative models.
    • Helps prioritise testing resources on high-risk components.
    Explore the standard community list of the most critical security vulnerabilities present in large language model applications.
    Read more

    The open web application security project top ten for large language models is a community-driven awareness document highlighting the most critical vulnerabilities. It categorises common issues like prompt injection, insecure output handling, and training data poisoning into an easy-to-understand reference guide. Think of it as a standard checklist that mechanics use to service cars safely.

    Knowing this list is essential for our roadmap because it gives you a shared industry vocabulary and a structured starting point for your security audits.

    • Highlights the most critical security flaws in language models.
    • Provides a shared industry vocabulary for developers and testers.
    • Serves as a reliable checklist for security audits.
    OWASP Top 10 for LLM Applications
    Learn how to define explicit rules of engagement and stay within legal boundaries during security assessments.
    Read more

    Authorised testing and ethics ensure you always stay within legal boundaries and possess explicit permission before probing any system. Red teaming requires clear rules of engagement, defining exactly what you can test, when you can test it, and how to handle sensitive data responsibly. Imagine having a signed contract with a homeowner before checking their locks for weaknesses.

    This topic is foundational because ethical breaches can lead to legal trouble and loss of trust, whereas proper authorisation keeps your security work professional and constructive.

    • Always secure written permission before testing any third-party system.
    • Define clear rules of engagement to avoid operational disruption.
    • Maintain strict confidentiality regarding discovered vulnerabilities.

    Step 2: Prompt Attacks and Jailbreaks

    How crafted inputs can override a model's instructions, and how to test your own app for it safely.
    Read more

    Direct prompt injection happens when a user types crafted inputs that successfully override a model's original system instructions. The model gets confused about who is in charge and follows the user's new malicious command instead of its safety guidelines. Imagine a security guard who is easily convinced to let anyone inside simply because the visitor spoke in a very authoritative tone.

    Testing for this helps you ensure your application instructions remain ironclad and cannot be easily subverted by clever phrasing.

    • Users override system instructions with clever phrasing.
    • Models mistake user input for developer commands.
    • Testing reveals weak instruction boundaries.
    Analyse how external untrusted data, such as websites or emails, can quietly hijack model behaviour during retrieval tasks.
    Read more

    Indirect prompt injection occurs when external untrusted data, such as a malicious website or an incoming email, quietly hijacks model behaviour during retrieval tasks. The language model reads the poisoned content and treats hidden instructions inside it as commands to execute. Think of reading a seemingly normal recipe that secretly contains a line telling your smart assistant to delete your files.

    This matters because modern applications frequently pull in outside web data, creating hidden vectors for attackers to compromise systems without touching the user interface.

    • Attacks originate from external sources like websites or emails.
    • Models execute hidden instructions found within retrieved data.
    • Presents severe risks for retrieval-augmented generation apps.
    The common ways people try to bypass safety rules, such as role-play framing, so you can check your defences hold.
    Read more

    Jailbreaks are creative framing techniques, such as asking a model to play a fictional villain, designed to bypass built-in safety filters. Attackers use hypothetical scenarios, emotional appeals, or encoded language to trick the model into generating restricted content. Picture an actor convincing a prop master to hand over a dangerous item by insisting it is just for a movie scene.

    Mastering jailbreak detection allows you to evaluate whether your model's safety guardrails can withstand persistent social engineering attempts.

    • Uses role-play framing to bypass safety filters.
    • Relies on hypothetical scenarios or emotional manipulation.
    • Tests the limits of model alignment and content guardrails.
    (optional)
    Probe vision and audio inputs for adversarial examples that manipulate model responses through non-text media.
    Read more

    Multimodal vulnerabilities involve probing vision and audio inputs for adversarial examples that manipulate model responses through non-text media. An attacker might hide malicious instructions inside an image using subtle pixel modifications that humans cannot easily spot. Imagine a hidden message printed inside a painting that only a specific security scanner can read and obey.

    As AI applications increasingly process images, voice, and video, understanding these cross-media attacks becomes vital for comprehensive security coverage.

    • Targets models that process images, audio, or video.
    • Uses subtle visual or acoustic modifications to alter outputs.
    • Extends security testing beyond traditional text prompts.

    Step 3: Data and Privacy Risks

    Test if secret instructions, internal rules, or proprietary guidance can be coaxed out of the model.
    Read more

    System prompt extraction tests whether secret instructions, internal rules, or proprietary guidance can be coaxed out of a model. Attackers use clever conversational tricks to persuade the model to recite its initial hidden setup paragraph word for word. Think of tricking a store manager into revealing their secret employee discount code during casual small talk.

    This matters because system prompts often contain valuable intellectual property, backend API details, or logic that you want to keep confidential.

    • Coaxes models into revealing hidden developer instructions.
    • Exposes proprietary logic or internal guidelines.
    • Requires careful prompt hardening to prevent disclosure.
    Probe the model to recover memorised personal identifiable information or copyrighted text from its training set.
    Read more

    Training data extraction involves probing a model to recover memorised personal identifiable information, API keys, or copyrighted text from its training set. Large models can sometimes regurgitate exact sentences they memorised during their learning phase. Imagine asking a librarian to quote a private letter that accidentally ended up bound inside a published book.

    Evaluating this risk helps protect user privacy and prevents your application from accidentally breaching data protection regulations.

    • Recovers memorised private or copyrighted data from training sets.
    • Poses significant privacy and regulatory compliance risks.
    • Tests require careful probing around known data boundaries.
    Evaluate downstream systems for classic vulnerabilities like cross-site scripting when they consume raw model outputs.
    Read more

    Insecure output handling occurs when downstream systems trust raw model responses blindly, opening the door to classic vulnerabilities like cross-site scripting or SQL injection. Because language models can generate executable code or HTML, failing to sanitise their output can let attackers run malicious scripts. Think of a bank teller blindly copying numbers from a customer note without checking if the note contains harmful code.

    This is essential because models are rarely isolated and usually connect to wider web applications that need protection.

    • Downstream apps trust raw AI outputs without sanitisation.
    • Can lead to classic web bugs like script injection.
    • Requires treating model output as untrusted user input.
    How some inputs waste compute or crash a service, and how to test limits and protect against it.
    Read more

    Model denial of service happens when certain inputs consume excessive computing power, drain resources, or crash an AI service entirely. Attackers might send extremely long recursive prompts or trigger heavy reasoning loops that overwhelm the server. Imagine flooding a restaurant phone line with absurdly complicated multi-part orders until the staff can no longer serve genuine customers.

    Testing your application's resource limits ensures legitimate users are not locked out by malicious or accidentally heavy requests.

    • Exploits resource limits to crash or slow down services.
    • Often triggered by exceptionally long or recursive inputs.
    • Requires rate limiting and token budget controls.

    Step 4: Testing Methods and Tooling

    Use iterative exploratory testing to find novel vulnerabilities that automated scanners regularly miss.
    Read more

    Manual adversarial probing uses iterative exploratory testing to find novel vulnerabilities that automated scanners regularly miss. By talking to the model like a human adversary, you can adapt your strategy on the fly based on how the system reacts. Think of an experienced locksmith manually picking a brand-new lock to feel out its unique mechanical quirks.

    This hands-on approach is crucial for discovering creative bypasses that rigid automated scripts simply cannot anticipate.

    • Exploratory testing uncovers novel, unexpected vulnerabilities.
    • Allows real-time strategy adjustment based on model responses.
    • Complements automated tools by adding human creativity.
    Use open-source security tools to automatically generate attack variations and test application endpoints at scale.
    Read more

    Automated red teaming tools use open-source security frameworks to generate hundreds of attack variations and test application endpoints at scale. These tools fire off predefined prompt lists and measure success rates automatically. Imagine using an automated sprinkler system to test every single window of a house for leaks all at once.

    Using these tools saves you hours of manual work and helps ensure baseline security coverage across large models before deployment.

    • Generates thousands of attack variations automatically.
    • Tests application endpoints efficiently at scale.
    • Provides fast baseline security checks before release.
    Measure model robustness consistently by using structured evaluation benchmarks and attack success metrics.
    Read more

    Benchmarking and scoring allow you to measure model robustness consistently using structured evaluation metrics and attack success rates. Instead of guessing if a model is secure, you run standardised test suites and calculate numerical safety scores. Think of taking a regular driving test with a marked scorecard to grade performance objectively.

    This matters because concrete scores let you track security improvements over time and compare different model versions fairly.

    • Measures model robustness using structured evaluation metrics.
    • Calculates clear attack success rates for objective scoring.
    • Enables fair comparison between different model versions.
    (optional)
    Integrate programmatic evaluation suites into continuous integration pipelines to catch regressions early.
    Read more

    Evaluation frameworks integrate programmatic testing suites into continuous integration pipelines to catch security regressions early. Every time code or model prompts change, automated tests run in the background to ensure new bugs haven't been introduced. Imagine an automated quality control belt in a factory that checks every item before it leaves the workshop.

    Implementing these frameworks ensures your security posture stays strong as your application evolves and updates over time.

    • Integrates security tests into continuous integration pipelines.
    • Catches regressions early when prompts or code change.
    • Automates ongoing validation for sustained protection.

    Step 5: Remediation and Reporting

    Harden system prompts using clear role boundaries, delimiters, and defensive instructions to resist tampering.
    Read more

    Defensive prompt engineering hardens system prompts using clear role boundaries, XML delimiters, and explicit defensive instructions to resist tampering. By cleanly separating system rules from user input, you make it much harder for an attacker to inject malicious commands. Think of placing a glass partition between a bank teller and customers to prevent physical interference.

    This is a vital first line of defence that every developer should implement to protect their applications from basic prompt injection.

    • Uses clear role boundaries and delimiters for separation.
    • Instructs the model to ignore override attempts.
    • Serves as an essential first line of defence.
    Implement dedicated input and output guardrails to intercept policy violations before they reach users or APIs.
    Read more

    Guardrails and filtering involve implementing dedicated input and output security wrappers to intercept policy violations before they reach users or APIs. These auxiliary models check queries for toxicity, PII, and injection attempts before the main language model ever sees them. Imagine a airport security scanner that checks bags before passengers enter the main boarding gate.

    Deploying guardrails adds an essential safety layer that catches threats even if the main model's internal defenses fail.

    • Intercepts policy violations on input and output streams.
    • Scans for toxicity, prompt injection, and private data.
    • Acts as an independent safety layer outside the main model.
    Write clear, reproducible vulnerability reports and coordinate remediation timelines with engineering teams.
    Read more

    Responsible disclosure is the practice of writing clear, reproducible vulnerability reports and coordinating remediation timelines with engineering teams. When you find a flaw, you report it privately, giving developers adequate time to fix the issue before any public announcement. Think of quietly telling a store owner about a broken back door so they can repair it before locking up.

    This professional approach ensures security research remains ethical, helpful, and focused on protecting users from harm.

    • Provides clear, reproducible steps to recreate the vulnerability.
    • Coordinates private remediation timelines with developers.
    • Protects users by preventing premature public exposure.
    Track production prompts and model outputs over time to detect new attack patterns and model drift.
    Read more

    Continuous defence monitoring involves tracking production prompts and model outputs over time to detect new attack patterns and model drift. Because attackers constantly invent new bypass techniques, watching live traffic helps you spot emerging threats as they happen. Imagine security cameras watching a building entrance to spot unusual behaviour day and night.

    This practice closes the loop on your security lifecycle, ensuring your defenses adapt to new risks long after initial deployment.

    • Tracks production prompts and outputs in real time.
    • Detects emerging attack patterns and model drift.
    • Ensures long-term resilience against evolving threats.

    Related roadmaps