Domain 3 of 4 · Chapter 1 of 3

AI-Driven Detection and Response

Where AI sits between telemetry and a verdict

At 03:14 an alert lands: unusual authentication pattern for svc-backup-prod, risk score 87. Before you decide whether it is real, ask which mechanism produced it. That single fact predicts how the alert can be wrong, what evidence will settle it, and whether the number 87 means anything at all.

This page owns the path from a raw event to a verdict an analyst can defend, and from that verdict to a remediation that is safe to run. Two sibling pages own the neighbouring slices of the same domain: AI-driven security automation covers what happens once a decision exists, meaning orchestration across tools, playbooks, and how much authority to delegate to them; AI in security operations covers the proactive side, meaning threat modelling, entity behaviour analytics, and continuous monitoring. The Domain 1 page AI security use cases surveys where AI helps security at a what-and-why level. This page is the operational treatment: the mechanics, the failure modes, and the numbers.

Four places AI enters the pipeline

Detection and response runs as a chain: telemetry is collected, a detection layer turns events into alerts, triage groups and ranks those alerts, an analyst investigates, and a response contains and recovers. NIST SP 800-61r3 organises the same chain around the six Functions of the NIST Cybersecurity Framework (CSF) 2.0, with Detect, Respond and Recover carrying the incident itself and Govern, Identify and Protect carrying the preparation around it (NIST SP 800-61r3, Sec. 2[1]).

AI enters that chain at four points, and they are worth naming separately because they fail differently. Point 1 scores an event during detection. Point 2 correlates, enriches and ranks alerts during triage, which is where the context an analyst would otherwise look up gets attached. Point 3 assists a human during investigation. Point 4 drafts or executes containment during response. The figure below marks all four. Everything else on this page is a closer look at one of them.

The three detection methodologies, and where machine learning sits

NIST SP 800-94, the guide to intrusion detection and prevention systems (IDPS), names exactly three detection methodologies, and a real product usually runs more than one at once (NIST SP 800-94, Sec. 2.3[2]):

  • Signature-based detection compares observed events against cataloged patterns of known bad activity. SP 800-94 calls it "very effective at detecting known threats but largely ineffective at detecting previously unknown threats, threats disguised by the use of evasion techniques, and many variants of known threats."
  • Anomaly-based detection compares observed events against "definitions of what activity is considered normal" to identify significant deviations, using profiles of users, hosts, network connections or applications.
  • Stateful protocol analysis compares observed events against vendor-supplied universal profiles of how a protocol should and should not be used, tracking session state rather than single packets.

Machine learning lives inside the second of those. It also adds a variant SP 800-94 does not cover: supervised classification, which scores a new event against labelled examples of past benign and malicious ones rather than against a profile of normal. The practical difference is what each one needs from you. A baseline needs a quiet observation window. A classifier needs a curated history of closed cases, correctly labelled.

A large language model (LLM) is a different kind of participant. It reads the context you hand it and writes text back. It holds no detection state, compares nothing against anything, and issues no verdict. Treat its output as a lead, never as a finding; Section 6 covers why that distinction is load-bearing.

That leaves four mechanisms for the rest of this page to compare: a signature or rule match, an anomaly baseline, a supervised classifier, and an assistant that issues no verdict. Stateful protocol analysis sits with the first, and SP 800-94 records that some parties already count it as signature-based detection.

What a risk score is, and what it is not

A score of 87 does not mean "87 percent likely to be malicious" unless the model has been calibrated, and most detection scores are not. Calibration is a specific, measurable property: a well-calibrated model correctly classifies 100 percent of the predictions to which it assigns 100 percent confidence, 50 percent of those it assigns 50 percent confidence, and so on (Azure Machine Learning, evaluation results[3]). Absent that, a score is a ranking device: it says this event is stranger than that one, and nothing more.

The reason this matters at 03:14 is that a ranking device is perfectly good for ordering a queue and useless as a probability you can act on. Section 3 turns that into the numbers that decide whether the queue is workable at all.

Whichever mechanism fired, one thing does not move: the analyst signs the verdict. Section 5 sets out which actions may be taken on a model's word alone, and which need a named human on the record.

Telemetry collection Detection Triage and correlation Investigation Response 1. Score the event anomaly baseline or supervised classifier 2. Group and rank correlate, enrich, prioritise 3. Summarise, query LLM assistant, no verdict 4. Accelerate reversible actions only The verdict stays with the analyst no irreversible action runs on a model score alone
The four points where AI enters the detection and response pipeline; the verdict and any irreversible action stay with a named human.

How an anomaly baseline is built, and why it decays

A baseline, which SP 800-94 calls a profile, is a statement about what is usual for one entity, and it is only ever as good as the window it was learned from. Everything that goes wrong with anomaly detection in production traces back to that sentence.

NIST SP 800-94 describes the mechanism plainly: an IDPS using anomaly-based detection "has profiles that represent the normal behavior of such things as users, hosts, network connections, or applications," and "the profiles are developed by monitoring the characteristics of typical activity over a period of time." Its own worked example is a network profile in which web traffic averages 13 percent of border bandwidth during typical workday hours, so a significant jump above the threshold derived from that profile raises an alert (NIST SP 800-94, Sec. 2.3.2[2]). Profiles can be built for many attributes, including e-mails sent per user, failed logins per host, and processor usage per host.

The training period decides what "normal" means

The initial profile is generated "over a period of time (typically days, sometimes weeks) sometimes called a training period." Two things go wrong inside that window, and both produce alerts that look like detector defects but are actually window defects.

First, rare legitimate activity that did not happen during training is later read as an attack. SP 800-94's example is a maintenance job that performs large file transfers once a month: if it did not run during the training period, it "is likely to be considered a significant deviation from the profile and trigger an alert." A monthly backup, a quarterly close, and an annual audit export all behave this way.

Second, malicious activity that was present during training gets learned as normal. SP 800-94 calls inadvertently including malicious activity in a profile "a common problem with anomaly-based IDPS products," and notes that administrators can sometimes edit the profile to exclude activity known to be malicious. The operational consequence is that a baseline built during an unnoticed compromise is quietly blind to exactly the behaviour you most need to see.

Static and dynamic profiles fail in opposite directions

There are two supported approaches, and choosing between them is a choice of which failure you would rather have. Decide that before tuning anything.

A static profile is unchanged once generated, unless the product is specifically directed to build a new one. A dynamic profile is adjusted constantly as further events are observed. SP 800-94 states the trade-off exactly: because systems and networks change over time, "a static profile will eventually become inaccurate, so it needs to be regenerated periodically," while dynamic profiles avoid staleness but "are susceptible to evasion attempts from attackers." The evasion is specific: an attacker performs small amounts of malicious activity occasionally, then slowly increases the frequency and quantity, and "if the rate of change is sufficiently slow, the IDPS might think the malicious activity is normal behavior and include it in its profile."

Those two statements read as a contradiction only until you notice they describe different clocks. A static profile is wrong because the world moved and the profile did not. A dynamic profile is wrong because the attacker moved slowly enough to move the profile with them. That is why mature deployments pair a learning baseline with rules that do not learn: a rule cannot be walked, and a baseline cannot be surprised by a novel technique. Neither alone is sufficient. The figure below traces both branches from the same training window.

Drift is an operating duty, not an incident

Baselines decay whether or not anyone is attacking you, so measuring the detector is standing work. The joint CISA and NCSC guidelines for secure AI system development put it in the operate-and-maintain stage: "You measure the outputs and performance of your model and system such that you can observe sudden and gradual changes in behaviour affecting security. You can account for and identify potential intrusions and compromises, as well as natural data drift" (Guidelines for secure AI system development, Secure operation and maintenance[4]). The same section adds that you monitor and log inputs to the system, such as inference requests, queries or prompts, to enable audit, investigation and remediation. SP 800-94 gives the operator-side instruction for the same idea: administrators "should also ensure that any products collecting baselines for anomaly-based detection have their baselines rebuilt periodically as needed to support accurate detection."

In practice a retrain or rebuild is triggered by one of a short list of events, among others: a measured drop in the detector's precision or recall, a deliberate environment change that invalidates the old normal (a migration, a new SaaS tool, a reorganisation), the discovery that the training window overlapped an incident, or a scheduled interval that exists so nobody has to notice.

Products expose this as a tunable rather than a retrain. Microsoft Sentinel's customizable anomalies, one flavour among several across the security information and event management (SIEM) and endpoint detection and response (EDR) market, let thresholds and parameters be adjusted in the analytics-rule interface, compared against the original settings "during a testing, or flighting, phase," and promoted to production once the new settings meet the performance objective (Microsoft Sentinel customizable anomalies[5]). Whatever the product calls it, the shape is the same: change the threshold in a shadow mode, measure, then promote.

Opacity is part of the price

One more property of anomaly detection deserves naming before you buy it. SP 800-94 observes that "it is often difficult for analysts to determine why a particular alert was generated and to validate that an alert is accurate and not a false positive, because of the complexity of events and number of events that may have caused the alert to be generated." A signature tells you its reason, because the matched pattern is the reason. A baseline deviation does not. That missing explanation is work you have moved from the detector onto the analyst, and Section 4 is about paying for it with enrichment rather than with overtime.

The takeaway: a baseline encodes a window of history, so ask when the window was, what was running in it, whether the profile still learns, and when it was last rebuilt. Those four answers explain most of a noisy queue.

Malicious activity inside the window is learned as normal Training period typically days to weeks Profile of normal one per entity Static Dynamic Static profile frozen until regenerated Dynamic profile adjusts continuously Failure mode becomes inaccurate as the environment changes Failure mode slow escalation is absorbed into the profile Both failures take the same remedy measure the detector and rebuild the baseline on a schedule
Baseline lifecycle per NIST SP 800-94: one training window, two profile types, two opposite failure modes, one shared remedy.

Precision, recall and the base rate in your queue

Accuracy is the number that flatters a detector. Precision is the number that decides whether your queue is workable. A detection deployment that reports one and not the other is hiding the only figure an analyst can feel.

Every verdict falls into one of four outcomes, and the vocabulary is shared with the rest of the CompTIA security family. A true positive is a real attack that was flagged. A false positive is an alert that fires on activity that was not an attack, which the NIST glossary renders, for a security tool, as "an instance in which a security tool incorrectly classifies benign content as malicious" (NIST CSRC glossary, false positive[6]). A false negative is a real attack that produced no alert. A true negative is quiet, correct silence. The figure below lays the four out as a matrix and marks which slice each metric reads.

Precision and recall, defined by what they protect

The two metrics answer different questions and protect different people.

  • Precision is "the ability of a model to avoid labeling negative samples as positive," computed as true positives divided by all alerts raised, TP / (TP + FP). It is the fraction of the queue that was worth opening, so it protects the analyst's time.
  • Recall is "the ability of a model to detect all positive samples," computed as TP / (TP + FN). It is the fraction of real attacks that were caught, so it protects the organisation from the miss (Azure Machine Learning, classification metrics[3]).

They trade against each other through one knob, the decision threshold. Lower the threshold and more events cross it: recall rises, precision falls, and the queue grows. Raise it and the reverse happens. Microsoft's own framing of the precision-recall curve says the same thing in business terms: some problems "might require higher recall and some higher precision depending on the relative importance of avoiding false negatives versus false positives." In security, the honest version of that sentence is that you are choosing between missing an intrusion and drowning the people who would have caught it.

The base rate is why a good detector still produces a bad queue

Here is the arithmetic that surprises people. The base rate is the share of the events you are scoring that are genuinely malicious, and when it is tiny it overwhelms every other property of the detector. The numbers below are worked on assumed inputs to show the shape of the problem; they are not a benchmark for any product.

Take one day of authentication telemetry: 2,000,000 events, of which 20 belong to a real account-takeover. Deploy a detector with 90 percent recall and a 0.1 percent false-positive rate.

  • It catches 18 of the 20 real events. Recall is 90 percent, as advertised.
  • It also flags 0.1 percent of the 1,999,980 benign events, which is about 2,000 alerts.
  • The queue therefore holds roughly 2,018 alerts, of which 18 are real. Precision is about 0.9 percent.
  • Its accuracy, counting all four cells, is about 99.9 percent, which is worse than useless as a summary.

Tighten the false-positive rate tenfold, to 0.01 percent, and the false alarms drop to about 200 and precision rises to roughly 8 percent. Still about 11 wasted openings for every real one, from a detector that most vendors would call excellent. That is the base-rate effect: when genuine events are vanishingly rare relative to volume, precision is governed by the false-positive rate far more than by recall, and accuracy is dominated by the true negatives nobody cares about. The same imbalance degrades the usual summary chart, since a receiver operating characteristic (ROC) curve "can be less informative when training models on datasets with high class imbalance, as the majority class can drown out contributions from minority classes."

Three levers that move precision without blinding you

Knowing the arithmetic only helps if it changes what you do. Three levers work, in roughly this order.

Raise the base rate by narrowing the population. Score privileged identities, service principals, or the hosts holding regulated data, rather than every account in the directory. Fewer events with a higher genuine-incident rate is a strictly better queue than more events with the same detector.

Require corroboration before an alert becomes a case. As Microsoft's guidance on machine-learning anomalies puts it, "a single anomaly is not a strong signal of malicious behavior, but a combination of several anomalies at different points on the kill chain sends a clear message," and existing detections can be made more accurate by conditioning them on anomalous behaviour (Microsoft Sentinel customizable anomalies[5]). Corroboration multiplies precision without touching recall on the corroborated path.

Tune, do not silence. The fix for alert fatigue is alert tuning: refining correlation rules, suppressing patterns confirmed benign, and adjusting thresholds so genuine events stand out. Disabling a noisy detection outright is the trap answer, because it converts a precision problem into a permanent blind spot. Tuning is also not free in the other direction: pushed aggressively enough to eliminate false positives, it starts producing false negatives, so it is a standing balance rather than a one-time threshold drop.

One thing that does not work: reading the score as a probability. As Section 1 noted, an uncalibrated score ranks events, so "score above 90 equals nine-in-ten chance of compromise" is a misreading, not a tuning strategy.

The takeaway: publish precision and recall for every detection you run, at the threshold you actually run it at, and re-measure after every tuning change. A detector with no measured precision is an unbounded claim on your analysts' time.

Ground truth Detector raises an alert Detector stays silent Actually malicious Actually benign True positive real attack, caught False negative real attack, missed False positive analyst time burned True negative quiet and correct Precision = TP / (TP + FP) read down the alert column Recall = TP / (TP + FN) read across the malicious row
The four outcomes of a detection verdict: precision reads down the alert column, recall reads across the actually-malicious row.

Turning scores into an ordered queue

Scores are not a queue. This section covers the work between a detector firing and an analyst opening a case: attaching context, grouping alerts that belong to one attack, and putting them in an order a human should actually work in. The figure below traces those three steps end to end.

The reason that work is not optional is a matter of volume. NIST SP 800-61r3 recommends, under the CSF outcome for analysing potentially adverse events, that "the volume of potentially adverse events to be analyzed is generally quite high, so organizations should rely on technical solutions that filter large event datasets down to a subset that is suitable for human viewing and analysis" (NIST SP 800-61r3, Table 3[1]). The same table rates as high priority for incident response a short set of outcomes that describe exactly this pipeline, among them: information is correlated from multiple sources (DE.AE-03); the estimated impact and scope of adverse events are understood (DE.AE-04); incidents are declared when adverse events meet the defined incident criteria (DE.AE-08); incident reports are triaged and validated (RS.MA-02); and incidents are categorized and prioritized (RS.MA-03). Read as a checklist, that is the job description for machine assistance in triage.

Enrichment: attaching the context a human would look up anyway

Enrichment adds facts to an alert that the analyst would otherwise fetch by hand: who owns the asset and how critical it is, what the identity's peer group normally does, what reputation or threat intelligence exists for the observed indicator, and what changed recently in that environment. It converts a one-line score into something you can reason about.

Enrichment is also the direct answer to the opacity Section 2 named. A baseline that cannot explain itself becomes workable when the alert arrives carrying the entity's recent history and the deviation that triggered it. The detector still will not say why, but the analyst can now see it in one place instead of five consoles.

Correlation: grouping alerts into one attack story

Correlation is the step that stops six alerts about one intrusion from being opened as six cases. Machine assistance here is mature and widely deployed. In one product family among several, "the correlation engines and algorithms in the Microsoft Defender portal automatically aggregate and correlate related alerts together to form incidents that represent these larger attack stories," identifying multiple signals as belonging to the same story and continuing to add evidence to already-open incidents (Incidents and alerts in the Microsoft Defender portal[7]). The resulting incident carries a timeline of alerts and the raw events beneath them, the tactics used, the involved users and devices, and the collected supporting evidence. Other SIEM and extended detection and response (XDR) platforms group alerts the same way under different names.

Correlation is worth its complexity for the reason Section 3 gave: corroboration is the cheapest precision you can buy. A pattern that spans several stages of an intrusion is a far stronger claim than any one anomaly in it.

Ranking: sort against consequence, not against strangeness

Once alerts are grouped, they need an order, and the ordering criterion is where automated triage most often goes wrong. SP 800-61r3 names the factors to weigh: "examples of possible risk evaluation factors include asset criticality, functional impact of the incident, data impact of the incident, stage of observed activity, threat actor characterization, and recoverability." Anomaly magnitude appears nowhere on that list.

That omission is the point. A queue sorted by model score alone puts a genuinely weird but harmless event above a routine-looking privileged action on a domain controller, because strangeness and consequence are different quantities. A useful ranking model consumes the anomaly score as one feature and weights it against asset criticality and observed stage. If your tooling can only sort by score, the ranking is still the analyst's job, and the model has moved work rather than removed it.

Ranking also implies bookkeeping. SP 800-61r3 recommends that "the incident response status should be tracked for each incident along with pertinent information, such as an incident summary, indicators of compromise related to the incident, the status and expected time frame for each assigned action, and next steps to be taken." An automated queue that reorders itself without preserving that record makes the next shift start over.

What belongs to the next page

Coordinating the tools that execute those next steps, designing the playbooks that carry them, and deciding how much authority to delegate to them are the subject of AI-driven security automation. This section stops at the point where a ranked, enriched, correlated case is sitting in front of a human.

The takeaway: enrichment buys explanation, correlation buys precision, and ranking buys the right order only if it ranks against consequence. All three are how a detection layer becomes a queue an understaffed team can actually finish.

Alerts from detection Enrichment Correlation Ranking Analyst opens the case Attach context asset owner, criticality peer group, recent change Group into one case six alerts about one intrusion, one case Order by consequence asset criticality, impact, stage of observed activity Anomaly magnitude is one feature, never the sort key strangeness and consequence are different quantities
Inside triage: enrichment attaches context, correlation groups alerts into one case, and ranking orders the queue by consequence.

Which remediation may run on a model verdict

The question that decides whether a detection verdict may trigger an action by itself is not how confident the model is. It is what the action costs when the model is wrong. Two properties give the answer: reversibility, and blast radius.

Reversible and narrow actions are safe to fire on a high-confidence verdict. Revoking a session token, forcing re-authentication, quarantining a single endpoint, or blocking one indicator on one host all fail cheaply: a false positive costs a user a few minutes and one support ticket. Irreversible or wide actions are not. Isolating a production network segment, disabling a privileged service account, re-imaging a host, or deleting suspected artefacts turn a false positive into a self-inflicted outage, and sometimes into destroyed evidence.

Vendors design around the same line. Automatic attack disruption in the Microsoft Defender portal, one implementation among several, is explicitly scoped to "high-confidence signals" used "to automatically disrupt active attacks at machine speed, containing the threat and limiting the impact" (Incidents and alerts in the Microsoft Defender portal[7]). The existence of a separate high-confidence tier is the product telling you that confidence, not capability, is the gate on autonomous action.

Containment has a clock, and somebody has to hold it

An automated containment that nobody owns becomes permanent by accident. SP 800-61r3 treats duration as part of the containment decision itself, distinguishing "an emergency workaround that must be removed within hours, a temporary workaround to be removed within two weeks, or a permanent solution," and applies the same reasoning to eradication measures (NIST SP 800-61r3, Table 3[1]). So every automated action needs three things recorded at the moment it fires: what it did, who or what authorised it, and when it expires or gets reviewed.

Authority is a policy question, not a tooling one. SP 800-61r3 lists among the elements an incident response policy should define "roles, responsibilities, and authorities, such as which roles have the authority to confiscate, disconnect, or shut down technology assets," alongside guidelines for prioritising incidents and estimating their severity. A model is not a role and cannot hold an authority. Where the policy requires a named human, the automation's job is to prepare the decision, not to make it.

Speed can destroy the evidence that proves you were right

Fast containment and good investigation pull against each other, and the tension is worth stating rather than discovering. Rebooting, re-imaging, or wiping a host removes volatile evidence; blocking an attacker's channel can end an observation that was about to reveal scope. SP 800-61r3 notes the mirror-image case, where organisations deliberately redirect an attacker to a sandbox to gather more evidence, and cautions that this "delays containment and eradication activities," should be discussed with the legal department first, and "can be dangerous because an attacker could escalate unauthorized access or compromise other systems."

The resolution is sequencing, not choosing a side: preserve first, then contain. An automated action that captures memory, snapshots the disk, or exports the relevant logs before it isolates a host keeps both options open. One that does not has spent the evidence to buy the minutes.

The accountability that does not automate

NIST's generative AI profile names the human failure that sits underneath all of this: over time "humans may over-rely on GAI systems or may unjustifiably perceive GAI content to be of higher quality than that produced by other sources. This phenomenon is an example of automation bias, or excessive deference to automated systems" (NIST AI 600-1, Sec. 2.7[8]). Automation bias does not announce itself; it looks like a fast, tidy shift. The countermeasures are structural rather than attitudinal: keep high-impact actions behind a named approver, record who approved each one, and review a sample of auto-closed cases on a schedule so that "the model handled it" is a claim somebody periodically tests.

How to build the orchestration that carries these gates, the playbook structures, and the graduated autonomy levels behind them belongs to AI-driven security automation. This section only fixes the criterion: automate the cheap and reversible, gate the expensive and permanent, and record the decision either way.

The takeaway: sort candidate response actions by what a false positive costs, not by how sure the model sounds, and give every automated containment an owner and an expiry.

LLM assistants in an investigation, and their limits

Paste a forty-event alert chain into an assistant and a paragraph comes back in seconds: the identity involved, the first action that broke pattern, and three things to check next. That is a genuine ten minutes saved. The same paragraph may also contain a hostname that appears nowhere in those forty events, written with exactly the same confidence as the parts that are true.

As Section 1 established, a large language model issues no detection verdict; it reads what you give it and writes text back. That makes it useful in five places in an investigation, and dangerous in one specific way in all of them.

Where an assistant earns its place

Task What it buys Failure mode to expect What verifies it
Summarise an incident or alert chain Minutes of reading compressed into a paragraph Invented entities, times or hosts that were never in the input Re-read the timeline for every name the summary asserts
Draft a detection or hunting query A first draft in a query language you use rarely Syntactically valid query with wrong join or time window Run it against a known-good window and check the count
Propose investigation hypotheses Breaks tunnel vision, surfaces the check you skipped Confident but irrelevant leads, ranked as if evidence Treat each as a question to test, not a finding
Explain an unfamiliar artefact Fast orientation on a binary, protocol or cloud API Plausible explanation of a thing it has never seen Confirm against vendor documentation before acting
Draft the incident write-up A structured first pass at the report Smoothed-over gaps; asserted causes that were only guessed Check each claim against the case record and its source

The pattern across the whole table is the same: the assistant is allowed to narrow the search, and it is not allowed to close the case.

Confabulation, and why fluent reasoning is not evidence

NIST's generative AI profile gives the phenomenon a precise name. Confabulation is "the production of confidently stated but erroneous or false content (known colloquially as 'hallucinations' or 'fabrications') by which users may be misled or deceived," and it is "a natural result of the way generative models are designed," because they generate outputs that approximate the statistical distribution of their training data (NIST AI 600-1, Sec. 2.2[8]).

The part that catches experienced analysts is the second-order case. The profile warns that outputs "may also include confabulated logic or citations that purport to justify or explain the system's answer, which may further mislead humans into inappropriately trusting the system's output," and that models "sometimes provide logical steps for how they arrived at an answer even when the answer itself is incorrect." A reasoning chain that reads well is not evidence that the conclusion is right; it is another generated artefact, produced by the same process, carrying the same risk. Check the conclusion against the log, not against the explanation.

The OWASP Top 10 for LLM Applications (2025 edition) catalogues the operational version of this as LLM09:2025 Misinformation, which pairs hallucination with overreliance, defined as users placing excessive trust in generated content and failing to verify its accuracy. Its recommended controls are the ones this section keeps repeating: human oversight and fact-checking, especially for critical information, and cross-checking outputs against trusted external sources (OWASP LLM09:2025 Misinformation[9]).

Automation bias makes it worse rather than adding a separate risk. Section 5 defined it as excessive deference to automated systems; NIST notes it "can exacerbate other risks of GAI, such as risks of confabulation." A tired analyst at hour nine is exactly the reader an over-confident summary is most likely to convince.

Your telemetry is attacker-controlled text

Log records carry strings the attacker chose: filenames, command lines, user-agent headers, e-mail subject lines, commit messages, HTTP paths. Feeding those to an assistant hands an adversary a writing channel into your prompt, which is why an investigation assistant must be treated as reading untrusted input at all times. OWASP catalogues this as LLM01:2025 Prompt Injection in the same 2025 list (OWASP Top 10 for LLM Applications 2025[10]). The defences, including input handling, privilege separation and output constraints, belong to adversarial AI risk mitigation. The consequence that belongs here is narrower and non-negotiable: never let assistant output that was derived from attacker-controlled text drive an action without a human reading the underlying record.

The summary is not the evidence

SP 800-61r3 defines evidence, borrowing the definition from SP 800-160v1, as "grounds for belief or disbelief; data on which to base proof or to establish truth or falsehood," and notes that collected incident data is still considered evidence even when formal chain-of-custody handling is not used. It recommends collecting and retaining that evidence "in accordance with the organization's evidence preservation procedures and data retention policies" (NIST SP 800-61r3, Table 3[1]).

A generated summary is a derived artefact, so it belongs in the case notes and never in the evidence position of a report, a regulatory notification, or a legal process. Quote the log line, the packet capture or the disk image; use the summary to find them faster.

Two housekeeping consequences follow. First, keep the prompts and outputs. The CISA and NCSC secure operation guidance says to "monitor and log inputs to your system (such as inference requests, queries or prompts) to enable compliance obligations, audit, investigation and remediation in the case of compromise or misuse" (Guidelines for secure AI system development, Secure operation and maintenance[4]); in an investigation those records are part of how the work gets reconstructed. Second, remember that whatever you paste has left your evidence boundary and entered a third party's, so case data going into a hosted assistant is a disclosure decision with the same review as any other.

The takeaway: an assistant compresses reading and drafts artefacts. Every entity it names, every step it reasons through, and every conclusion it offers is a lead to verify against the record that produced it.

Exam-pattern recognition for detection and response

Domain 3 of CompTIA SecAI+ is weighted at 24 percent and is described as using AI-driven tools to identify anomalies, detect threats, and accelerate incident remediation, on an exam of at most 60 items in 60 minutes with a scaled passing score of 600 out of 100 to 900 (CompTIA SecAI+ (CY0-001)[11]). At that item count, detection and response questions reward pattern recognition rather than recall, so this section names the patterns.

Seven stems and the reasoning each rewards

1. Alert volume spikes after an environment change. A rollout, migration or reorganisation is followed by a flood of anomaly alerts on activity the team confirms is legitimate. The answer is to rebuild or retune the baseline against the new normal, as covered in Section 2. Two distractors recur: disabling the detection, which converts noise into a permanent blind spot, and switching to signature-only detection, which gives up on unknown threats entirely.

2. Excellent detector, drowning analysts. The stem quotes a high recall or accuracy figure and a very low incidence of real attacks, then asks why the queue is unusable. This is the base rate, and precision is the metric being tested. Accuracy is always the trap answer when the stem stresses how rare genuine events are.

3. Slow-and-low activity that never fires. An attacker increases activity gradually over weeks and the anomaly detector stays silent. The mechanism is a dynamic profile absorbing the escalation as normal. The fix is corroborating detections that do not learn, plus a periodically regenerated baseline. Simply raising sensitivity is wrong, because the profile has already moved.

4. A rare legitimate job flagged as an attack. Quarterly close, monthly maintenance, an annual export. The activity was absent from the training window, so it reads as a significant deviation. The response is to tune or document the exception, not to widen thresholds globally and not to treat it as a detector defect.

5. A generated summary containing an entity that is not in the logs. This is confabulation. The action is to verify against the source records and correct the write-up. Answers that treat the summary as a finding, escalate on it, or trust it because the reasoning looked sound are all wrong for the same reason.

6. Which response may be automated. Look at reversibility and blast radius, not at the confidence number. Token revocation and single-host quarantine are safe candidates; disabling a privileged account, isolating a production segment or re-imaging need a named human decision and an evidence-preservation step first.

7. Who is accountable for the verdict. The analyst and the organisation, always. Any option that assigns the decision to the model, the vendor or the tool is wrong, and the underlying concept being tested is automation bias.

Vocabulary that shows up in the stems

Expect the four confusion-matrix outcomes and their consequences, precision against recall, base rate, alert fatigue against alert tuning, model drift and retraining, baseline or profile, enrichment, correlation, triage, human in the loop, confabulation or hallucination, and overreliance. Where a stem contrasts two of these, it is usually testing which failure you are willing to accept, so read for the cost being traded rather than for a definition.

Telling this objective apart from its neighbours

The three Domain 3 subtopics, plus one Domain 2 neighbour, overlap enough that the discriminator is what the stem is asking you to do, not which technology it mentions:

  • If the stem is about the quality of a detection, the composition of a queue, an alert being wrong, or the reliability of an assistant's output, it is this objective.
  • If it is about coordinating several tools around one event, playbook design, or how much authority to delegate to automation, it is AI-driven security automation.
  • If it is about proactive work with no incident yet, meaning threat modelling, entity behaviour analytics, threat hunting or continuous monitoring, it is AI in security operations.
  • If it is about an attack aimed at the detection model itself, such as crafted inputs designed to evade classification or poisoned training data, it is adversarial AI risk mitigation.

The takeaway: on this objective, the right answer usually preserves both detection coverage and human accountability. Options that buy quiet by turning something off, or buy speed by letting the model decide, are the two standing traps.

How the verdict gets produced

PropertySignature or rule matchAnomaly baselineSupervised classifierLLM assistant
Compares againstA cataloged known-bad patternA learned profile of normal for that entityLabeled examples of past benign and malicious eventsNothing stored; it reads the context you supply
CatchesKnown threats, exactlyActivity that is rare for that entity, including unnamed threatsThreats resembling the labeled historyNo threats; it explains, queries and drafts
MissesVariants and previously unknown threatsAttacks that look ordinary, and slow escalation absorbed into the profileAttack classes absent from the training labelsAnything needing ground truth it was not given
Typical failureFalse negative on a renamed variantFalse positive on benign but unusual activitySilent decay as the labeled world agesConfabulation, stated confidently
Explains its verdictYes; the matched pattern is the reasonPoorly; analysts often cannot tell why it firedPartly; feature attributions, not causesFluently, and sometimes falsely
What the human ownsWriting and tuning the ruleDeciding whether rare means badLabel quality and the retraining triggerVerifying every claim against the source

Decision tree

Cataloged known-bad pattern exists? Signature-based detection explains itself, misses variants Yes No Deviation from correct protocol use? Stateful protocol analysis vendor-supplied protocol profiles Yes No Labelled examples of past events? Supervised classification decays silently as labels age Yes No Normal definable per entity? Anomaly-based detection flags rare, not malicious Yes No Collect a training period a profile needs a window of typical activity first An LLM assistant issues no verdict it summarises, queries and drafts; the analyst signs the verdict

Sharp facts the exam loves — give these one last read before exam day.

Cheat sheet

Sharp facts the exam loves — scan these before test day.

Name the mechanism that produced the alert before judging it

Four things produce output in an AI-assisted detection stack, and each fails in its own way: a signature or rule match fires on a cataloged known-bad pattern and misses variants; an anomaly baseline fires on activity that is rare for that entity and produces benign-but-unusual false positives; a supervised classifier fires on resemblance to labelled past cases and decays as those labels age; and a large language model produces no verdict at all, only summaries, queries and drafts. Knowing which one fired tells you in advance how the alert is most likely to be wrong and what evidence will settle it.

Trap Treating an assistant's written conclusion as a fourth kind of detection; it compares nothing against anything and holds no detection state, so it can only restate what you handed it.

NIST SP 800-94 names exactly three detection methodologies

Signature-based detection compares observed events against cataloged patterns of known bad activity. Anomaly-based detection compares them against learned profiles of normal behaviour for users, hosts, network connections or applications. Stateful protocol analysis compares them against vendor-supplied universal profiles of how a protocol should and should not be used, tracking session state rather than single packets. Machine learning operates inside the second one; a real product usually runs more than one methodology at once.

Trap Filing stateful protocol analysis under anomaly detection because both look for deviations; its profiles are vendor-supplied and universal to the protocol, not learned from your own hosts and network.

An anomaly is a claim about rarity, never about intent

A baseline deviation says the activity is unusual for that entity, and the detector has no access to whether it was harmful. NIST SP 800-94 notes that anomaly-based products often produce many false positives because benign activity deviates significantly from profiles, especially in diverse or dynamic environments. The corroboration that turns rarity into a case has to come from elsewhere: a second signal, an enriched context, or a rule that encodes known-bad behaviour.

The training period decides what normal means for the rest of the deployment

An anomaly profile is generated over an initial observation window, typically days and sometimes weeks, called the training period. Legitimate activity that did not happen inside that window is later read as a significant deviation, which is why quarterly closes, monthly maintenance jobs and annual export runs alert the first time they occur. The fix is to document and tune the specific exception once it is confirmed benign, and to make sure the rebuild window covers a full business cycle.

Trap Widening thresholds globally to stop one recurring maintenance job alerting; that lowers sensitivity for every entity instead of recording a single known exception.

A baseline learned during a compromise treats the intrusion as normal

SP 800-94 calls inadvertently including malicious activity in a profile a common problem with anomaly-based products, because the sensor may observe an attacker while it is building its initial profiles. The result is a detector that is quietly blind to exactly the behaviour you most need to see, and it looks healthy from the outside because it is not alerting. Where administrators can edit a profile, excluding activity known to be malicious is the remedy; otherwise the profile has to be rebuilt from a window you can vouch for.

Trap Assuming a quiet training window was a clean one; low alert volume during profiling is equally consistent with an attacker operating below the thresholds being learned.

Static and dynamic profiles fail in opposite directions

A static profile is unchanged once generated unless the product is told to rebuild it, so SP 800-94 warns it will eventually become inaccurate as systems and networks change and needs periodic regeneration. A dynamic profile adjusts constantly and avoids staleness, but is susceptible to evasion: an attacker who performs a small amount of malicious activity and then increases the frequency slowly enough can have that activity absorbed into the profile as normal. Because the two failures pull opposite ways, mature deployments run a learning baseline alongside rules that do not learn, so slow escalation still hits something fixed.

Trap Choosing a dynamic profile to solve stale baselines and considering the problem closed; it trades staleness for the slow-and-low evasion, which is the harder failure to notice.

Measure detector output continuously or drift hides in the silence

The joint CISA and NCSC guidelines for secure AI system development make measuring the outputs and performance of the model and system a standing duty of the operate-and-maintain stage, precisely so that both compromise and natural data drift show up as observable changes in behaviour. SP 800-94 gives the operator-side version: baselines collected for anomaly-based detection should be rebuilt periodically to support accurate detection. In practice a rebuild is triggered by a measured drop in precision or recall, a deliberate environment change that invalidates the old normal, evidence that the training window overlapped an incident, or a scheduled interval that exists so nobody has to notice.

Trap Reading a drop in alert volume as good news; a detector that has drifted into silence is indistinguishable from a quiet week until you measure it against known outcomes.

Supervised classification needs a labelled history you can vouch for

A supervised classifier scores new events against labelled examples of past benign and malicious ones, so it cannot start until you have a curated set of closed cases with correct verdicts on both sides. Where that history does not exist, the working answer is rules plus baselining while analysts build the label set as they close cases. The labels are also the maintenance burden: as the attack landscape and the environment move, a classifier trained on an older label set decays silently, still scoring confidently against a world that has changed.

Trap Training on alerts analysts bulk-closed without recording why; those labels encode the queue's triage habits rather than ground truth, and the model learns to reproduce them.

Precision protects the analyst, recall protects the organisation

Precision is the ability of a model to avoid labelling negative samples as positive, computed as true positives over every alert raised, so it is the fraction of the queue that was worth opening. Recall is the ability of a model to detect all positive samples, computed as true positives over every real attack, so it is the fraction of intrusions actually caught. They trade against each other through one knob, the decision threshold: lower it and recall rises while precision falls and the queue grows; raise it and the reverse happens. Publish both, at the threshold you actually run.

Trap Reporting accuracy as the headline metric; when genuine attacks are rare, a detector that alerts on nothing scores almost perfect accuracy while catching nothing at all.

The base rate, not recall, decides whether the queue is workable

When real incidents are vanishingly rare relative to event volume, precision is governed far more by the false-positive rate than by recall. Take an illustrative day of 2,000,000 authentication events holding 20 real malicious ones: a detector with 90 percent recall and a 0.1 percent false-positive rate catches 18 of them and raises about 2,000 false alerts, so roughly one alert in 112 is real. Cutting the false-positive rate tenfold, to 0.01 percent, still leaves about 200 false alerts for those 18. The numbers are arithmetic on assumed inputs rather than any product's benchmark, but the shape holds for every rare-event detector.

Trap Dismissing a 0.1 percent false-positive rate as negligible; against millions of benign events per day it is thousands of alerts, which is the whole shift.

Tune a noisy detection, never silence it

The answer to alert fatigue is alert tuning: refining correlation rules, suppressing patterns confirmed benign, and adjusting thresholds so genuine events stand out. Disabling the detection removes its false positives and its true positives together and leaves a permanent blind spot that no other control is covering. Tuning is also not free in the other direction, because pushed hard enough to eliminate false positives it starts producing false negatives, so it is a standing balance rather than a one-time threshold drop.

Trap Raising the threshold until the backlog clears without measuring what stopped firing; the alerts you no longer see become false negatives that nothing is counting.

Narrow the population to raise the base rate

Scoping a detector to privileged identities, service principals, or hosts holding regulated data raises the proportion of genuine incidents in the events it sees, which lifts precision without touching the model at all. Fewer events with a higher genuine-incident rate is a strictly better queue than more events at the same false-positive rate. Reach for broad coverage when the question is what you can reconstruct after the fact, and for narrow scoping when the question is what an analyst opens tonight.

Trap Onboarding more log sources to fix a noisy detector; extra benign volume at an unchanged false-positive rate makes the queue worse, not better.

An uncalibrated score ranks events, it does not estimate probability

Calibration is a specific and measurable property: a well-calibrated model correctly classifies 100 percent of the predictions it assigns 100 percent confidence, 50 percent of those it assigns 50 percent confidence, and so on. Most detection scores are not calibrated, so the number is a ranking device that says one event is stranger than another and nothing more. That is entirely adequate for ordering a queue and useless as a probability you can act on.

Trap Reading a risk score of 87 as an 87 percent chance of compromise, then setting an automation gate at that number as though it were a confidence level.

Rank the queue against consequence, not against strangeness

NIST SP 800-61r3 names the factors to weigh when prioritising: asset criticality, functional impact of the incident, data impact of the incident, stage of observed activity, threat actor characterisation, and recoverability. Anomaly magnitude is not among them, because strangeness and consequence are different quantities. A useful ranking model consumes the anomaly score as one feature and weights it against those factors; if the tooling can only sort by score, the ranking is still the analyst's job and the model has moved work rather than removed it.

Trap Sorting the queue by model score alone; a genuinely weird but harmless event then outranks a routine-looking privileged action on a critical asset.

Correlate alerts into one incident before anyone escalates

Correlation groups the alerts that belong to a single attack so six signals about one intrusion become one case rather than six. It is also the cheapest precision available, because a pattern spanning several stages of an intrusion is a far stronger claim than any one anomaly inside it. Products that do this automatically attach the timeline of alerts and underlying raw events, the tactics observed, the users and devices involved, and the supporting evidence, which is exactly the context a triage decision needs.

Trap Counting correlated alerts as independent confirmation; several alerts derived from the same underlying event add volume to the case without adding evidence.

Enrichment buys the explanation an anomaly detector cannot give

SP 800-94 observes that analysts often cannot determine why a particular anomaly alert was generated or validate that it is not a false positive, because of the number and complexity of the events behind it. Enrichment answers that by attaching the facts the analyst would otherwise fetch by hand: asset owner and criticality, the identity's normal peer behaviour, reputation or threat intelligence on the observed indicator, and what changed recently. The detector still will not say why it fired, but the analyst can now see the answer in one place instead of five consoles.

Trap Expecting a model explainability feature to replace enrichment; feature attributions say which inputs moved the score, not what the entity was actually doing at the time.

Automate the reversible and narrow, gate the irreversible and wide

What decides whether a detection verdict may fire an action by itself is not the model's confidence but what the action costs when the model is wrong, which comes down to reversibility and blast radius. Revoking a session token, forcing re-authentication, quarantining one endpoint or blocking a single indicator on one host all fail cheaply. Isolating a production segment, disabling a privileged service account, re-imaging a host or deleting suspected artefacts turn a false positive into a self-inflicted outage, so those need a named human decision on the record, plus an owner and an expiry for any containment that gets applied.

Trap Using a higher confidence threshold as the gate for an irreversible action; raising the bar changes how often you are wrong, not what being wrong costs.

Preserve the evidence before the containment destroys it

Rebooting, re-imaging or wiping a host removes volatile evidence, and cutting an attacker's channel can end an observation that was about to establish scope. SP 800-61r3 treats the mirror-image choice the same way, warning that deliberately redirecting an attacker to a sandbox to gather more evidence delays containment and eradication and should be discussed with the legal department first. The resolution is sequencing rather than picking a side: an automated action that captures memory, snapshots disk or exports the relevant logs before it isolates the host keeps both options open.

Trap Re-imaging the affected host as the first containment step; it is fast and clean and it destroys the volatile evidence that would have proved how far the intrusion reached.

Confabulation covers the reasoning, not just the answer

NIST defines confabulation as the production of confidently stated but erroneous or false content, known colloquially as hallucination, and describes it as a natural result of how generative models work rather than a defect to be patched out. The part that catches experienced analysts is that outputs may include confabulated logic or citations that appear to justify the answer, and models sometimes lay out plausible steps even when the conclusion is wrong. Check the conclusion against the underlying log record, never against the explanation attached to it.

Trap Accepting an assistant's finding because it showed its working; the reasoning chain is generated by the same process as the answer and can be fabricated alongside it.

Automation bias needs a structural countermeasure, not more vigilance

NIST describes automation bias as excessive deference to automated systems, arising as people come to over-rely on generative output or perceive it as higher quality than other sources, and notes that it makes confabulation risk worse rather than sitting beside it. It does not announce itself, because a shift where nobody questioned the tool looks like a fast, tidy shift. The countermeasures are procedural: keep high-impact actions behind a named approver, record who approved each one, and review a sample of auto-closed cases on a schedule so the claim that the model handled it is periodically tested.

Trap Relying on analyst experience as the safeguard; deference grows with the system's apparent reliability, so the more accurate the tool gets the weaker that control becomes.

A generated summary is a working note, never the evidence

SP 800-61r3 defines evidence as grounds for belief or disbelief, the data on which proof is based, and treats collected incident data as evidence even when formal chain-of-custody handling is not used, to be retained under the organisation's evidence preservation and data retention policies. A model's summary is a derived artefact, so it belongs in the case notes and never in the evidence position of a report, a regulatory notification or a legal process. Keep the prompts and outputs too, since the CISA and NCSC secure operation guidance calls for logging system inputs such as queries and prompts to support audit, investigation and remediation.

Trap Letting the underlying records age out because the assistant's summary was archived; the derived note is not the artefact the retention and preservation policy covers.

Your telemetry is attacker-controlled text, so an assistant reading it reads untrusted input

Filenames, command lines, user-agent headers, e-mail subject lines, commit messages and HTTP paths all carry strings an adversary chose, so feeding raw telemetry to an assistant hands that adversary a writing channel into the prompt. OWASP catalogues this as LLM01:2025 Prompt Injection in the 2025 Top 10 for LLM Applications. The operational consequence for detection and response is narrow and firm: output derived from attacker-controlled text must never drive an action until a human has read the underlying record.

Trap Treating log content as trusted because it came from your own systems; the system recorded the event faithfully, but the field contents were written by whoever caused it.

References

  1. Incident Response Recommendations and Considerations for Cybersecurity Risk Management (NIST SP 800-61r3) Whitepaper
  2. Guide to Intrusion Detection and Prevention Systems (IDPS) (NIST SP 800-94) Whitepaper
  3. Evaluate AutoML experiment results (Azure Machine Learning)
  4. Guidelines for secure AI system development: Secure operation and maintenance Whitepaper
  5. Use customizable anomalies to detect threats in Microsoft Sentinel
  6. False Positive (NIST CSRC glossary)
  7. Incidents and alerts in the Microsoft Defender portal
  8. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) Whitepaper
  9. LLM09:2025 Misinformation Whitepaper
  10. OWASP Top 10 for LLM Applications and Generative AI (2025) Whitepaper
  11. CompTIA SecAI+ (CY0-001) certification