Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
ISACA · AAISM

Testing and vulnerability management

AAISM · Lesson 9 of 16 · 1:00:42

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

Prepare for the ISACA AAISM exam (Advanced in AI Security Management). In this lesson: what to test in an AI system, AI red teaming, automated evaluation in the release pipeline, vulnerability management for models, libraries, and model files, and what to do when there is no patch. Includes three original practice questions, with Ridgeline Pharma, a fictional drug company, as the example.

Study notes

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

Safe, says the vendor

Ridgeline's medical chatbot is ready to launch. The vendor says that its model is safe, and the data science team has checked the accuracy of the answers. But the security manager wants to know something else: how does it behave when someone attacks it? This lesson covers what to test, AI red teaming, automated evaluation, and vulnerability management for AI.

What to test

Testing an AI solution goes beyond checking its accuracy. Security testing covers the application around the model: authentication, APIs, access to data, and what happens to the output downstream. Adversarial testing tries to make the model misbehave, with prompt injections, jailbreaks, and attempts to pull out data. Safety and quality testing checks for harmful content, bias, and invented answers. And testing happens before launch, and again after every significant change to the model, the prompt, or the data.

AI red teaming

AI red teaming is a structured exercise where a team plays the attacker. It starts with a scope and a written authorization, and with objectives, like getting the chatbot to reveal internal documents, or to give unsafe advice. The red team is independent from the builders, and it combines security testers with experts of the domain, like pharmacists for a medical chatbot. Findings are rated by risk, reported to the owner, and turned into fixes. And the exercise is repeated, because new attack techniques appear every month.

Automated evaluation

Manual red teaming is deep but slow, so automated evaluation adds speed. A library of attack prompts, and of tricky questions, runs against the system at every change, like a regression test. Results are compared with thresholds, and a release that fails is blocked. And new attacks found by the red team, or in incidents, are added to the library, so the tests grow over time.

Vulnerability management for AI

AI solutions also have classic vulnerabilities, and they go into the same vulnerability management process. Software composition analysis covers AI libraries and frameworks, and model files are scanned before use, because some formats, like pickle, can run code when they are loaded, while safer formats, like SafeTensors, only hold data. Findings are prioritized by risk, using the exposure and the impact of the system, not only a score. Known weaknesses are shared through advisories, and the CVE program now has a working group for AI. And after every fix, the team runs a retest, to confirm that the weakness is really gone.

When there is no patch

Some AI weaknesses cannot be fixed with a patch, because they come from the behavior of the model. A model that can be jailbroken stays vulnerable, even after its software is patched. The treatment is then a combination of controls: input and output guardrails, a narrower scope, human review, retraining, or a different model. The residual risk is documented, and accepted by the risk owner if it stays within the appetite. And monitoring watches for the same weakness in production, because a fix that works in tests can still fail with real users.

Recap

Let's recap. Testing an AI solution covers the application, adversarial attacks, and safety and quality, before launch and after every significant change. AI red teaming is scoped, authorized, independent, and repeated, with experts of the domain. Automated evaluation runs a growing library of attacks at every change, and blocks a release that fails. AI libraries and model files enter vulnerability management, findings are prioritized by risk, and every fix is retested. And when no patch exists, compensating controls and a decision by the risk owner treat the risk.

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. Before launch, Ridgeline’s data science team tested the medical chatbot only for the accuracy of its answers. What is still missing?

    • A larger set of accuracy tests by the same team
    • Adversarial testing by an independent team
    • A satisfaction survey of doctors after launch
    • A review of the vendor’s marketing claims
    Show the answer

    Adversarial testing by an independent team

    Accuracy tests show how the chatbot behaves with normal questions, while adversarial testing shows how it behaves when someone attacks it. “A larger set of accuracy tests by the same team” would test the same thing again, with the same team. “A satisfaction survey of doctors after launch” would come after launch, once doctors are already exposed. And “A review of the vendor’s marketing claims” would rely on claims, not on tests.

  2. Ridgeline’s researchers download a model file in pickle format from a public hub, for a quick test on a laptop. What is the main security concern?

    • The file is larger than most models
    • The model may be less accurate than claimed
    • The laptop may be too slow for the model
    • Loading the file could run hidden code
    Show the answer

    Loading the file could run hidden code

    A pickle file can run code when it is loaded, so it is scanned, or a safer format is used, before anyone opens it. “The file is larger than most models” would be a storage question, not a security one. “The model may be less accurate than claimed” would be a concern about quality, while the immediate danger is to the laptop and the network. And “The laptop may be too slow for the model” would affect speed, not security.

  3. Ridgeline’s red team finds that a jailbreak still works on the vendor model behind the staff assistant, and the vendor has no fix yet. What should the security manager recommend?

    • Add guardrails, then let the owner decide
    • Wait for the vendor to release a patch
    • Keep the finding secret until a fix exists
    • Stop red teaming the models of vendors
    Show the answer

    Add guardrails, then let the owner decide

    When no patch exists, compensating controls reduce the risk, and the risk owner decides whether the residual risk is acceptable. “Wait for the vendor to release a patch” would leave the weakness open for an unknown time. “Keep the finding secret until a fix exists” would hide a risk from the people who own it. And “Stop red teaming the models of vendors” would stop finding weaknesses, without removing any of them.