Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

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

Detecting Runtime Threats

ISC2 AI Security · Lesson 26 of 34 · 3:31:14

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 26 of the free ISC2 AI security series (pilot exam, domain 5, secure AI operations and incident response). In this lesson: runtime threat detection, access and agency misuse, secrets and tool anomalies, AI asset integrity, AI-driven security operations, and detection in layers. 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.

Hundreds of alerts a day

Ravenmoor now collects rich AI telemetry, and its monitoring raises hundreds of alerts a day. The question is which of them are real attacks, misuse, or compromise. This lesson covers what to detect at runtime, and how AI helps the security team keep up.

Runtime threat detection

Runtime threat detection watches every stage of an AI request. On inputs and prompts, look for injection patterns, jailbreak attempts, encoded payloads, and unusual length or language. On retrieval chains, watch for documents with hidden instructions, retrieval of content outside the user's permissions, and sudden changes in what gets retrieved. On outputs, flag sensitive data, policy violations, and answers that do not match the sources. On resource consumption, track tokens, compute, and latency per user, since spikes can signal abuse or extraction.

Access and agency misuse

Some threats come from identities rather than prompts. Detect unauthorized identities: unknown service accounts, agents that nobody registered, or tokens used from unexpected places. Detect over-privileged agents in action, such as an agent calling tools outside its normal set, or touching data that it has never needed. And watch for privilege escalation, such as an agent requesting new scopes, or an identity suddenly added to an administrator group.

Secrets and tool anomalies

Secret exposure is a frequent AI incident. Scan prompts, completions, logs, and tool results for keys, tokens, and passwords, and alert when a model outputs something that looks like a secret. Tool execution anomalies are another signal: an agent calling a tool at an unusual rate, with unusual parameters, or in an unusual order, such as exporting customer data and then emailing an outside address. Compare tool use with each agent's normal profile, and with its allowed boundaries. A tool call that fails a boundary check is itself an alert, since it may reveal an injection attempt.

AI asset integrity

Attackers also target the AI assets themselves. Monitor the integrity of data and knowledge bases: unexpected document changes, new sources, or bulk edits in the retrieval index. Monitor models: hashes and signatures that no longer match the registry, or a model version in production that nobody approved. Monitor deployment pipelines: changed definitions, new steps, or runs outside the normal schedule. Any mismatch with the approved baseline is a potential compromise, and not just a configuration issue.

AI-driven security operations

AI also helps defenders. User and entity behavior analytics, or UEBA, learns the normal behavior of users, devices, and agents, and flags deviations, such as an agent acting at three in the morning for the first time. Automated alert triage uses AI to group related alerts, enrich them with context, and rank them, so that analysts start with what matters. Threat hunting looks for attackers that no alert caught, and AI assistants can help hunters search large volumes of telemetry in plain language. These tools need the same care as any AI: their outputs are checked, and their own access is limited.

Detection in layers

Detection works best in layers. Rules catch known patterns, behavior analytics catches the unusual, and hunting catches what both missed. Each confirmed finding feeds back into new rules and new tests. And every detection links to a playbook, so that the response starts at once.

Recap

Let's recap. Runtime detection watches inputs, prompts, retrieval chains, outputs, and resource consumption. Access misuse shows as unauthorized identities, over-privileged agents, and privilege escalation. Secret exposure and tool execution anomalies are strong signals of compromise or injection. Integrity monitoring covers data, knowledge bases, models, and deployment pipelines against their baselines. And behavior analytics, automated triage, and threat hunting help security teams keep up.

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 telemetry shows an agent identity that appears in no inventory, calling the payments API with a valid token. What does this indicate?

    • Normal traffic, since the token is valid
    • Drift in the fraud model
    • An unauthorized identity to investigate
    • A capacity problem
    Show the answer

    An unauthorized identity to investigate

    An identity missing from the inventory is unauthorized, even with a valid token, so investigate at once. “Normal traffic, since the token is valid” is wrong, since a valid token can be stolen or misused. “Drift in the fraud model” is wrong, because drift concerns model performance, not identities. And “A capacity problem” is wrong, since nothing here suggests a capacity issue.

  2. Overnight, three hundred documents in the support assistant’s knowledge base were edited from an account that rarely makes changes. What should happen?

    • Investigate it as a possible compromise
    • Ignore it, since documents change often
    • Retrain the fraud model
    • Raise the assistant’s rate limits
    Show the answer

    Investigate it as a possible compromise

    Bulk edits to a knowledge base from an unusual account may be poisoning, so investigate them as a possible compromise. “Ignore it, since documents change often” is wrong, since routine changes rarely look like this. “Retrain the fraud model” is wrong, because the fraud model is not involved. And “Raise the assistant’s rate limits” is wrong, since rate limits do not address altered content.

  3. Ravenmoor’s analysts receive two thousand AI alerts a day, and most are duplicates or low risk. What helps most?

    • Turning off AI alerts
    • An analyst for every alert
    • A longer log retention period
    • Automated alert triage
    Show the answer

    Automated alert triage

    Automated triage groups, enriches, and ranks alerts, so that analysts start with what matters. “Turning off AI alerts” is wrong, since turning alerts off creates a blind spot. “An analyst for every alert” is wrong, because adding people alone does not scale with the volume. And “A longer log retention period” is wrong, since keeping logs longer does not sort alerts.