Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
ISC2 · ISC2 AI Security · BETA

AI Security Testing and Red Teaming

ISC2 AI Security · Lesson 32 of 34 · 4:18:24

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Lesson 32 of the free ISC2 AI security series (pilot exam, domain 6, AI threats, testing, and lifecycle management). In this lesson: scope, objectives, scenarios, adversarial testing, AI red teaming, the red team cycle, AI-assisted testing, and a testing program. With three quick checks and a recap, and Ravenmoor Payments, a fictional payment provider, as the running example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Attacking before launch

Before the negotiation agent launches, Ravenmoor asks a team to attack it. Without a clear plan, the testers could miss the real risks, or break production. This lesson covers how to plan AI security assessments, test AI architectures, and run red team exercises.

Scope, objectives, scenarios

Every AI security assessment starts with a written plan. The scope names what is in and out: which models, endpoints, tools, data, and environments, and whether production is allowed. Objectives state what the test must answer, such as whether a customer can make the agent reveal another customer's data, or approve a payment plan outside policy. Test scenarios turn objectives into concrete attacks, based on the threat model: who attacks, through which input, and toward which goal. Rules of engagement add limits, contacts, and a stop procedure, and the system owner approves the plan in writing.

Adversarial testing

Adversarial testing adapts to the architecture. For generative AI, test direct injection, jailbreaks, harmful content, and leaks of the system prompt. For RAG, plant test documents with hidden instructions, and check whether retrieval respects each user's permissions. For agentic AI, test whether a manipulated input can trigger a tool call, raise privileges, or spread to other agents, and whether the boundaries hold.

AI red teaming

AI red teaming goes further than a list of tests. A red team plays a realistic adversary, with an objective rather than a checklist, and chains weaknesses together, as a real attacker would. It combines security experts with people who know the business, and, for harmful content, with domain specialists. Exercises can be manual, automated, or both: people find creative attacks, while tools repeat thousands of variations. A blue team watches at the same time, to check whether monitoring detects the attack, and whether the response works.

The red team cycle

A red team exercise follows a cycle. Plan, with the objectives and scenarios approved. Run the attacks, and keep every prompt, response, and action as evidence. Report what worked, what failed, and what was detected. Then retest after the fixes, to confirm that the gaps are gone.

AI-assisted testing

AI also helps test AI. Automated tools generate thousands of attack prompts, mutate them, and score the responses, far faster than people can. Attack path analysis maps how a weakness in one component can lead to a goal, such as from a poisoned document to a payment, and AI-assisted tools can find novel attack paths that people miss. Their results still need human review, since an automated judge can be wrong, in both directions. And testing tools need limited access too, since they hold attack payloads, and sometimes production credentials.

A testing program

Testing works best as a program, not a single event. Test before each major release, and after each significant change. Run automated tests continuously, and red team exercises at regular intervals. Feed every finding into the register, and every successful attack into the regression tests.

Recap

Let's recap. An assessment plan sets the scope, the objectives, the test scenarios, and the rules of engagement. Adversarial testing targets generative AI, RAG, and agentic architectures with attacks that fit each one. Red teaming plays a realistic adversary, chains weaknesses, and works with a blue team. Automated and AI-assisted tools scale testing and find attack paths, with human review. And testing runs as a program, feeding the register and the regression tests.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Ravenmoor’s testers start attacking the production payment agent, with no written limits and no agreed contacts. What is missing?

    • A larger model to test
    • A scope and rules of engagement
    • A canary deployment
    • A threat intelligence feed
    Show the answer

    A scope and rules of engagement

    A written scope and rules of engagement set the limits, the contacts, and the stop procedure. “A larger model to test” is wrong, since a larger model changes nothing about how the test is run. “A canary deployment” is wrong, because a canary deployment is a release method, not a test plan. And “A threat intelligence feed” is wrong, since threat intelligence informs scenarios, but it does not set limits.

  2. Ravenmoor wants to know whether an attacker could chain an injection, a tool call, and a payment, and whether its security team would notice. Which approach fits?

    • A functional test suite
    • A load test
    • A code review
    • A red team with a blue team watching
    Show the answer

    A red team with a blue team watching

    A red team chains weaknesses like a real attacker, while a blue team checks detection and response. “A functional test suite” is wrong, since functional tests check correct behavior, not attacks. “A load test” is wrong, because a load test measures capacity. And “A code review” is wrong, since a code review cannot show whether the team would notice an attack.

  3. Ravenmoor’s automated tool reports that four hundred attack prompts succeeded, as judged by another model. What should happen before the results are reported?

    • People review a sample
    • Delete the failed results
    • Report all four hundred as is
    • Ignore them, since tools are noisy
    Show the answer

    People review a sample

    People review a sample, since an automated judge can be wrong in both directions. “Delete the failed results” is wrong, since deleting results hides evidence. “Report all four hundred as is” is wrong, because unverified results may include false alarms. And “Ignore them, since tools are noisy” is wrong, since ignoring the tool wastes real findings.