AI security controls and monitoring
AAISM · Lesson 16 of 16 · 1:50:07
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.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the ISACA AAISM exam (Advanced in AI Security Management). In this lesson: input and output guardrails, safe output handling, access control and limits on rate, tokens, and cost, logging, monitoring for drift and anomalies with the SIEM, and the regular review of controls against an acceptable level of risk. 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.
Do the controls work?
Ridgeline's AI systems now have an architecture, rules for agents, and data controls. Two questions remain for the security manager: do the controls actually work, and how will Ridgeline know when something goes wrong? This last lesson covers guardrails and safe output handling, access and limits, logging, monitoring, and the regular review of controls.
Guardrails and safe output handling
Guardrails check what goes into a model and what comes out of it. Input guardrails detect prompt injections and jailbreak attempts, and prompt templates keep system instructions apart from user data. Output guardrails block sensitive data, like patient details or secrets, and harmful content. Safe output handling treats every answer as untrusted: it is encoded and validated before it reaches a web page, a database, or another system. And no single guardrail is enough, so several of them work together.
Access and limits
Access control protects the models, the APIs, and the weights, with strong authentication and the least privilege. Rate limits, token limits, and cost limits stop abuse, and runaway loops of agents. API keys and other secrets are kept in a secrets manager, never in code or prompts. And these limits are set per application and per user, so that one misuse does not stop everyone.
Logging
Logging gives the evidence that investigations and audits need. AI systems log the prompts, the responses, the tool calls of agents, the version of the model, and the identity of the user or the agent. Secrets and personal data are masked in the logs, or kept out of them. Logs are protected against changes, with access only for the people who need them. And they follow retention rules, like any other copy of the data.
Monitoring
Monitoring watches AI systems in production, every day. It tracks drift in the data and in the results, and the quality metrics set by the risk owner. It detects anomalies, like a spike of injection attempts, unusual tool calls, or a jump in costs. Alerts go to the security operations center, through the SIEM, and connect to the incident response plan for AI. And owners see dashboards of their own systems, so that they can act on their own risks.
Review and residual risk
Controls are reviewed regularly, and retested after changes and after new attack techniques appear. Metrics from monitoring show whether each control works, and where it fails. The aim is to treat risk to an acceptable level, within the appetite of the board, not to remove it completely. Results are reported to the risk owners and the AI governance committee, which decide on new treatments. And the cycle continues, because AI systems, attacks, and rules keep changing.
Recap
Let's recap. Input and output guardrails work together, and safe output handling encodes and validates every answer before it is used. Access control, rate, token, and cost limits, and a secrets manager protect models and APIs. Logging keeps prompts, responses, tool calls, and versions, with personal data masked and logs protected. Monitoring tracks drift, quality, anomalies, and costs, and feeds the SIEM and incident response. And regular review and retests keep the risk at an acceptable level, reported to the risk owners.
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.
The answers of Ridgeline’s public chatbot are inserted directly into its web page. An attacker gets it to produce a script, which runs in visitors’ browsers. Which control was missing?
- Encryption of the model files at rest
- A lower rate limit for each visitor
- Encoding and validation of each answer
- A model card that describes the chatbot
Show the answer
Encoding and validation of each answer
Safe output handling encodes and validates every answer before it reaches the web page, so a script in the output cannot run. “Encryption of the model files at rest” would protect the model files, not the visitors of the page. “A lower rate limit for each visitor” would reduce the number of requests, while one request was enough. And “A model card that describes the chatbot” would document the system, without stopping the script.
The logs of the staff assistant keep full prompts, where staff sometimes paste patient data, and every member of the IT team can read them. What should change?
- Mask personal data and limit access to the logs
- Stop logging the assistant’s prompts
- Keep the logs longer for future audits
- Ask staff to stop pasting patient data
Show the answer
Mask personal data and limit access to the logs
Logs are still needed, but personal data in them is masked, and access is limited to the people who need it. “Stop logging the assistant’s prompts” would remove the evidence that investigations need. “Keep the logs longer for future audits” would keep the data exposed to the same people, for longer. And “Ask staff to stop pasting patient data” would ask staff to change their habits, while the logs still hold the data.
A board member asks the security manager to guarantee that the public chatbot can never be jailbroken. What is the best response?
- Give the guarantee, with more guardrails
- Shut the chatbot down until it is perfect
- Ask the vendor to sign the guarantee
- Explain risk at an acceptable level
Show the answer
Explain risk at an acceptable level
No control removes every risk, so the manager explains how controls bring the risk to an acceptable level, and how monitoring and review handle what remains. “Give the guarantee, with more guardrails” would promise what no one can deliver. “Shut the chatbot down until it is perfect” would remove a useful service, instead of treating its risk. And “Ask the vendor to sign the guarantee” would hand the question to the vendor, while the risk stays with Ridgeline.