Skip to main content

AI in the Modern SOC

Investigate an Elastic alert, then check an AI-prepared Case note against the original events.

Task 1: Introduction

Room Overview

AI is already turning up in everyday Security Operations Centre (SOC) work. It can help an engineer shape a detection, help an analyst work through a busy queue, suggest an investigation pivot, draft a response step or prepare a case note. The useful questions concern what the tool can see, what it is allowed to do and who checks the result.

This is the first room in the learning path, so it sets out that wider picture before narrowing to one alert-triage example in Elastic Security. Working an L1 shift at Castellane Capital, we will investigate that alert ourselves, open an AI-prepared note covering the same activity and test its main statement against the original events.

Incident Scenario

Castellane Capital: Security Operations

The finance team is closing its month-end work, and the shift is busy. A detection has now fired on finance analyst Owen Farrelly's laptop, FIN-LT-0142, after suspicious PowerShell activity, and it has been assigned to us.

We have the alert, the affected host and a narrow time window, but we have not yet traced the surrounding process and network events.

An automated triage workflow has collected some context and prepared a Case note for us. It may have saved several searches, but no analyst has checked its important observation against the original event.

Please investigate the alert, compare the findings with the prepared note and record what the evidence supports. If anything important remains unresolved, leave Tier 2 a handover they can continue without repeating our work.

How This Room Works

Before we log in, an automated triage workflow has already run a few fixed searches on this alert and used a local language model to draft a Case note. Our job is to check that note before the Case moves on, and we start by triaging the alert ourselves in Elastic, then test the note's main claim against the original events.

Once we have checked it, we record our own observation on the Case and hand it to Tier 2, keeping the decision on the alert with us as the analyst. The check takes some effort, but the workflow has already run the searches for us. That is how AI help works in most SOCs today, where a tool prepares a draft and an analyst confirms it before acting on it.

Tips Before We Start

Some values we find early, such as a port or an identifier, come up again a task or two later, and a short working note saves going back for them. If the portal refuses a correct answer with a going-too-fast message, we wait a few seconds and submit it again.

Learning Objectives

By the end, we will be able to:

  • Map where AI already assists SOC work and apply the boundaries that keep it safe: protect sensitive data around AI services, verify generated output against native evidence and keep action authority with people and approved playbooks.
  • Distinguish detection analytics, deterministic automation, an AI language model, an AI-generated draft and an analyst decision.
  • Triage an alert manually in Elastic Security, from the detection rule to the process and network trail behind it.
  • Validate an AI-prepared Case note against the original events and grade what its claim supports.
  • Record an analyst-owned observation and hand the Case to Tier 2 with the decision kept in human hands.

Prerequisites

  • A basic understanding of SOC alerts and events is useful. If these ideas are new, complete SOC Fundamentals first.
  • No previous Elastic or query-language experience is required; every route and query is supplied.
  • No previous AI knowledge is required. Each component is introduced before we open the lab.

Answer the questions below

  1. Continue to the next task.

Task 2: AI in the Modern SOC

AI Across the SOC

In this task, we will map where AI can help during a shift, set three boundaries that apply to all of it and name the parts behind an AI-assisted result.

The alert on FIN-LT-0142 gives us one practical example, but AI can assist with much more than alert summaries. Start with the wider Security Operations Centre (SOC) shift: where might the help appear, what does it need, and what must remain under human control?

Where AI Can Help During a Shift

The figure follows five common jobs through a shift, with three boundaries beneath them that apply to every job while the analyst stays accountable for the shift.

SOC Work Example of AI Assistance Input or Evidence It Needs Control and Ownership
Detection engineering Draft or translate rule logic; explain or tune a rule. The threat to detect, the rule format, sample events and known false positives. A detection engineer tests what the rule catches and how noisy it is, then approves it.
Alert triage and queue automation Summarise alerts, group duplicates, suggest a priority or an outcome. Alert fields, related events, details about the host and user, and the rules for closing an alert. Policy sets thresholds, and analysts approve any outcome that matters.
Investigation and enrichment Build a search, add context about a host or user, suggest where to look next. The connected data sources, the time range and entities in scope, and the returned records. The analyst reviews the query, what it covered, the results and the conclusion drawn.
Playbooks and response orchestration Suggest the next step or run an approved action. A confirmed trigger, the Case state, the allowed settings and the affected asset. Least-privilege permissions, allowlists and approval steps.
Case documentation, handover and feedback Draft an evidence summary, organise citations, prepare a handover. Source references, actions taken, open questions, verdicts. The analyst corrects the record and owns the conclusion and handover.

AI can also cause an alert, for example when a user pastes Case data into an unapproved public chatbot, or when prompt injection steers an assistant through hidden instructions planted in a document it reads. We investigate those alerts with the same checks against native evidence. This room covers the other case, where AI helps the analyst.

Data, Evidence and Authority

Use three boundaries whenever AI touches SOC work:

  • Data. Use only services approved by our organisation. Share the minimum needed and redact anything the task does not require. Do not paste live alerts, internal hostnames, usernames, credentials, victim details or sensitive Case context into a public or unapproved tool. An IP address or hash is not automatically confidential, but the surrounding incident context often is. Whether it can be shared depends on context and classification.
  • Evidence. Treat generated IDs, indicators, queries, citations and conclusions as unverified until we reproduce the search or reopen the native source.
  • Authority. Containment, blocking, account changes and Case closure require an approved playbook and an authorised person, because a suggestion from a model is not approval to act.

Not Every Fast Step Is AI

Detection analytics applies configured rule logic to indexed telemetry and raises an alert on a match. Deterministic automation follows operations written in advance, such as four approved searches that run for every matching alert; neither is language-model reasoning.

Examples in Current Security Platforms

This table is background for later rooms; no question here depends on it.

Vendors use different names for similar capabilities, and the examples below show where each product fits in the map instead of comparing whole platforms.

Product Family Part of the SOC Map It Illustrates What the Analyst Still Checks
Elastic AI Assistant and Attack Discovery Alert investigation, query generation, assisted discovery. Supplied events, indices, tools, permissions, records.
Microsoft Security Copilot and security agents Incident summarisation, investigation support, threat intelligence context. Which product supplied the context; who approves action.
Gemini in Google Security Operations Natural-language search, Case summaries, detection creation, playbooks. Query or playbook, records, response approval boundary.
Splunk AI Assistant for SPL Natural-language task to reviewable SPL. Index, fields, time range, generated SPL, results.

Availability depends on product version, licence, connected data, permissions and approval policy. Product names and links in this table were current on 11 November 2026. These features change quickly, so we check the vendor's current documentation before relying on any of them.

Components Behind an AI-Assisted Result

To see how an AI-assisted answer was produced, we look past the product label at its parts. An AI language model is the text-generating component: it receives supplied context and returns language. In this lab, a small local model receives one bounded evidence bundle. It has no Elastic credentials and no response tools. Because its output format allows one value per field, it returns an identical note on every run.

Its output stays an AI-generated draft until a person has checked it. An AI assistant is the wider analyst-facing system, which may add product context and permitted tools. An agentic workflow can choose among permitted steps towards a goal. The workflow used here is simpler: fixed code always runs four lookups in a set order and cannot choose another step.

The records supplied to the model form an evidence bundle, and if a relevant record was left out, the draft cannot account for it.

In the strip below, detection analytics and deterministic automation run quickly but contain no language model. The bracket under the third and fourth boxes marks the two parts that are AI, and the decision stays with the analyst.

Why Clear Does Not Mean Correct

Language models can produce polished text that sounds natural, organised and confident. Accuracy still depends on the model, prompt, supplied context and controls. Readable prose may still contain a wrong identifier, a weak inference or a missing qualification.

A native event on an unrelated host may show that winword.exe started cmd.exe. A draft could turn that into "the host was compromised". The parent-child fields confirm that one process started the other, but they do not prove intent or a compromise. The analyst keeps what the fields show apart from what the draft adds.

What Changes for an L1 Analyst

In an AI SOC, assistants collect context and draft a note before we open the alert, and agents may run permitted steps without waiting for us. Our L1 work then starts with checking that context, and we still investigate wherever the draft stops. A human in the loop is the person who approves what the Case says before anyone acts on it, and here that person is us.

We still need manual skill for that check: if the assistant is down, or its draft cites a record we cannot find in Elastic, we search the native data ourselves and finish the triage. Task 4 practises that manual route, and Task 5 checks the AI-prepared note against it.

One Worked Use Case in Elastic Security

For the practical, Elastic supplies one worked use case covering alert triage, investigation and Case documentation. We will not build a detection or automate incident closure here.

The visual follows the lab implementation from the Elastic alert through four fixed lookups, the evidence bundle, a language-model draft and limited validation, ending at the analyst decision.

Two Routes to the Same Evidence

Let's investigate manually first, then compare what we find with the prepared Case note. Both routes should lead back to the same native records.

  • Elastic alert: starting host, user and time context.
  • Manual investigation: we trace the process and destination events directly and keep a manual evidence note.
  • Assisted collection: four fixed searches collect approved context, and the prepared case note summarises that bundle and cites evidence references. Validation code, not drawn in the figure, checks the note's format and citations but not whether its reading is true.
  • Analyst check: reopens the native event, records a verdict and owns the handover.
  • Handover to Tier 2: the Case is passed on once it is verified.

Answer the questions below

  1. What do we call language-model output before an analyst has checked it against the native evidence?

Task 3: Explore the Elastic Environment

Inside the Lab

In this task, we will start the lab, open the four Elastic views we need and check that Discover can see the full dataset.

The practical now narrows the Security Operations Centre (SOC) map to one alert in Elastic Security. This is one worked use case in Elastic Security: we will see which parts are routine detection and automation, where a local language model was used, and where the analyst has to take over.

Let's open the lab first and locate the records we will use during the investigation.

What Is in the Lab?

The practical contains:

  • Windows endpoint, authentication and network events stored in Elastic.
  • A detection alert created from that indexed telemetry.
  • Timeline and Discover views for checking the original events.
  • An Elastic Case containing a labelled AI-prepared note.
  • A fixed workflow that gathers four approved evidence sets before drafting the note.

Note: We should never paste real organisational data, live alert content or internal identifiers into this training lab or an unapproved external AI service.

The local language model receives only the bounded evidence bundle assembled by the fixed lookups; it cannot see wider Elastic data or anything we type elsewhere.

We will use four Elastic views during the investigation, in the order shown.

External production example: Elastic describes a broader pattern in which rule guidance and earlier AI verdicts can be compared with outcomes selected by analysts. That is useful production context, but it is not the workflow running in this lab. Here, the searches are fixed and the analyst-selected outcome remains the ground truth.

Start the Machine

Select Start Lab Machine in the task panel. Once the machine boots, a panel at the top of the page shows a Click to Open link that opens Elastic in a new tab. Elastic needs about five more minutes before it answers. If that panel does not appear, or the task panel still shows the machine as off, we refresh the page instead of selecting Start Lab Machine again.

Open https://LAB_WEB_URL.p.thmlabs.com in a new tab, and Elastic loads straight into its home page without asking for credentials.

We use Security for the detection queue and the Case, and Analytics for Discover. If the page has not loaded yet, wait a minute and reload it.

Find the Investigation Areas

Let's take a minute to open each area before starting the investigation. Because everything in this case happened on one morning, Elastic opens every view on 7 August between 07:40 and 07:55 UTC; we leave the time picker alone from start to finish.

Open Alerts

Open Security > Alerts. This is the detection queue, which Task 4 filters to the alert assigned to us; the alert is already in view. Elastic also opens short product tours here and later in the alert panel and Timeline, starting with Introducing attack discovery, and we can close each one with Close or Exit tour.

Open Timelines

Open Security > Timelines. Timeline places related process events in time and shows the parent-child relationship. The list is empty for now, and in Task 4, we will start a new Timeline from this page.

Open Discover

Open Analytics > Discover. Select the data-view button at the top left, which chooses the data Discover searches, then select Language: ES|QL (Elasticsearch Query Language) at the bottom of the menu. This mode runs the supplied searches and exposes the native indexed events.

Confirm the Dataset

Before investigating one alert, confirm that Discover can see the complete lab dataset.

  1. In Discover, select Open in the top menu and choose the saved search Dataset Size Check. It holds the ES|QL query below with a stored 30-day range from 10 July to 9 August, which the time picker switches to when the search opens.
  2. Record the returned event_count. This is the source-event count across the three approved data-stream families, not the number of alerts.
FROM logs-windows.*-castellane, logs-zeek.*-castellane, logs-web.*-castellane
| WHERE @timestamp >= TO_DATETIME("2026-07-10T00:00:00.000Z")
  AND @timestamp <= TO_DATETIME("2026-08-09T23:59:59.999Z")
| STATS event_count = COUNT(*)

Elastic shows a yellow warning that no limit was defined and a default of 1000 rows was added; the warning does not change the count. Later Discover searches filter on a specific host, process or run identifier and return identical rows under either range.

Open Cases

Open Security > Cases. The prepared note is stored here, and we will add our observation and Tier 2 handover to it.

We do not need to memorise the menus. Each practical task repeats the route before asking us to use it.

Where Elastic Agent Fits

We can read this section as background, since no question depends on it.

Elastic Agent collects and forwards telemetry. Organisations can deploy it to endpoints so that operating-system, application and security records are mapped into Elastic Common Schema (ECS) and sent to Elastic data streams. That collection happened before this investigation; the supplied dataset already contains the events we need, so we will not install or administer Elastic Agent here.

The fixed triage workflow is separate. It retrieves four approved evidence sets and passes that evidence bundle to the local language model. The language model drafts text from that evidence bundle. We still check the cited event and make the decision. The word Agent in Elastic Agent does not mean that it investigated the Case.

If Elastic Does Not Load

  1. Confirm that the task panel still shows the machine as running.
  2. Open the lab again from the Click to Open link in the machine panel at the top of the page, not from a bookmark, because the address changes each time the machine starts.
  3. Allow the Elastic services more time to start.
  4. If the practical needs a clean start, terminate the machine and start it again.

A fresh machine restores the original alert, prepared note and workflow record, and removes any analyst notes or handover changes.

Answer the questions below

  1. Run the source-event count query in Discover. What value is returned in the event_count column?

Task 4: Triage the Alert Manually

Work on the Alert

In this task, we will work on the assigned alert in Elastic, following its native records from the alert to the process chain and the network connection.

Do not open the generated Case note yet. Our own findings from the native records come first, and we compare them with the prepared Case note in Task 5.

Our working note should answer three questions:

  • What did the detection rule report?
  • Which process relationship supports the alert?
  • Which outbound event belongs to the same process chain?

All the records in this case sit in one window. The laptop activity runs from 07:40 to 07:43, Elastic created the alert at 07:44 and the AI workflow wrote its note at 07:47, in the order a SOC would see them.

Find the Assigned Alert

  1. Open Security > Alerts.
  2. In the Kibana Query Language (KQL) search bar above the alert table, enter host.name : "FIN-LT-0142" and user.name : "CASTELLANE\\owen.farrelly", then press Enter. The double backslash tells KQL to match the backslash stored in the Windows-style user value.
  3. Confirm that the filtered queue now shows one alert row. If more than one row remains, sort by the alert timestamp, newest first, and use the most recent row for this host and user. If the latest rows share a timestamp, recheck both filter values before continuing.
  4. Open View details for the selected alert.

Distinguish the Alert From Its Source Event

The alert is a detection record created after a rule matches source telemetry; its @timestamp records when Elastic created the alert. The source event carries an earlier @timestamp for when the endpoint activity occurred, and Elastic shows both in UTC.

The View details action opens the alert details panel on the right, which Elastic calls the alert flyout. In that panel, open Overview > About > Show rule summary. Record:

  • The exact rule name and severity.
  • The host and user shown in the alert context.
  • The process named by the matched event.
  • The alert-creation time shown at the top of the panel.
  • The short description of the condition that matched.

Because the rule summary describes the rule, not the activity, the dates it shows are when the rule was created and last updated. The source-event time is stored in the alert document: open the Table tab in the same panel, filter the fields for original_time and record kibana.alert.original_time.

Treat the alert as evidence of the matched condition only. The rule summary names a parent process, and because a name printed by a rule is a label, not a proven relationship, we confirm it against the source events. Intent and impact need other evidence.

Verify the Parent Process

  1. Open Security > Timelines and select Create new Timeline. The new Timeline opens on the 07:40 to 07:55 window used by the alert queue, with no filters carried over.
  2. If a Recent Timeline improvements tour opens, select Exit tour. Timeline returns nothing while the query bar is empty, so type host.name : "FIN-LT-0142" into the Timeline query bar and press Enter.
  3. The list now shows ten records: nine endpoint events and, at the top, the alert. It includes a network_connection row with a destination address, and we will not rely on that row until the process chain ties it to one process instance.
  4. Timeline's default columns leave out the process name, so we narrow the list with host.name : "FIN-LT-0142" and process.name : "powershell.exe" and event.action : "process_start" and not event.kind : "signal" and press Enter. The last condition leaves out the alert, which Elastic stores with matching process fields. One row remains, and its @timestamp matches kibana.alert.original_time, the source-event time recorded from the Table tab. We open it with the expand arrow at the left of the row.
  5. In the event details, locate @timestamp, process.entity_id, process.parent.entity_id, process.parent.pid, process.name and process.parent.name. An entity ID identifies one process instance, which is safer than matching a process name alone, while process.parent.pid is the numeric process ID that Windows gave the parent.
  6. Copy @timestamp, process.entity_id and process.parent.entity_id into our working note.

For the elapsed-time check, use the UTC timestamps as displayed, since both records use whole-second precision.

Replace the query in the Timeline query bar with the KQL below, substituting the copied value:

process.entity_id : "<copied process.parent.entity_id>"

Open the returned parent event, confirm its process.entity_id matches the copied identifier, then record @timestamp and process.name. The identifier proves the relationship; a familiar process name alone does not. This parent is the wscript.exe start, and comparing its @timestamp with the powershell.exe @timestamp copied earlier gives the elapsed time. The other process_start rows in the host list belong to different processes.

Find PowerShell's Child Process

The parent process we just recorded started powershell.exe. The network event belongs to another process in that chain, and we first need to identify what PowerShell started.

Return to Timeline and use the process.entity_id copied from the powershell.exe event, which we will call the PowerShell entity ID:

host.name : "FIN-LT-0142" and process.parent.entity_id : "<paste PowerShell entity ID>"

Press Enter or select Refresh. One curl.exe process event should appear. Open it and confirm that its process.parent.entity_id equals PowerShell's process.entity_id. Then copy the curl.exe event's process.entity_id and label it curl entity ID.

The two fields answer different questions:

  • The curl.exe process.parent.entity_id value points back to the PowerShell process that started it.
  • The curl.exe process.entity_id value identifies this exact curl process instance. We carry this value into the network search because the connection event records the process instance that made the connection.

Find the Outbound Event

curl.exe is the next child in the chain; use its curl entity ID to find a network event from that process instance.

Let's open Discover in a new browser tab so the unsaved Timeline stays open; leaving Timeline in this tab makes the browser ask whether to discard it. Select ES|QL, leave the time picker as it is and run:

FROM logs-windows.sysmon-castellane
| WHERE host.name == "FIN-LT-0142" AND event.category == "network" AND process.entity_id == "<copied curl.exe process.entity_id>" AND destination.ip IS NOT NULL
| KEEP @timestamp, host.name, process.name, process.entity_id, destination.ip, destination.port, network.transport, winlog.record_id
| SORT @timestamp ASC

If no row returns, confirm we copied curl.exe process.entity_id, not its process.parent.entity_id or the PowerShell identifier, and keep the host filter unchanged. Elastic also shows a yellow warning that no limit was defined and a default of 1000 rows was added; the warning is expected and does not change the result.

The single returned row links curl.exe to one outbound event. Record its destination IP, port and transport. From this event we can say that the traced process made the connection. Destination ownership, transferred content and operator intent need other evidence.

Before Moving On

Later tasks return to several of these values. Let's check that our working note records each of them:

  • The rule name from the alert.
  • The powershell.exe @timestamp, process.entity_id, process.parent.entity_id and process.parent.pid.
  • The parent's @timestamp and process.name, plus the curl entity ID.
  • The destination IP, port and transport from the network event, which the Tier 2 handover in Task 7 needs.

Five answers are graded in this task. The portal limits how quickly answers can be submitted. If You are going too fast appears, we wait about ten seconds and submit again, because that message is about the submission rate and not about the answer.

Answer the questions below

  1. Open the alert for FIN-LT-0142 in Elastic Security. What is the exact name of the detection rule that fired?
  2. Using Timeline, open the alert's powershell.exe event. What numeric value does process.parent.pid record for its parent process?

  3. Using the ES|QL query in Discover, find the network event made by curl.exe. What destination IP address does it connect to?

  4. Compare the two process-start events in Timeline. How many whole seconds elapsed between wscript.exe starting and powershell.exe starting?

  5. What is the process.parent.entity_id value recorded on the powershell.exe source event?

Task 5: Check the AI-Prepared Case Note

Check the Note Against Our Findings

In this task, we will open the AI-prepared note, trace it to the workflow's records, repeat one of its searches and check the event it cites.

We now have a process chain and an outbound connection taken from Elastic's native records. Open the prepared note and see whether it stands up to that evidence.

The workflow has already finished, so we will not trigger a new model run. Our job is to trace its receipt, repeat one of its searches and check the source cited by the draft.

Open the Prepared Case

We read the note as an investigation lead and keep its conclusion out of the analyst comment for now.

  1. Open Security > Cases.
  2. Search for CC-CASE-0913, open it and confirm its status is Open.
  3. Select Comments.
  4. The Cases list shows an Upgrade to an appropriate license banner that nothing in this investigation needs. Under Comments, the prepared note is the only entry; the All tab adds the Case being opened and the alert being attached.
  5. Find the entry headed AI-prepared case note.
  6. Copy its run ID and evidence hash into our working note and record its lookup count.

The run ID identifies one execution, the evidence hash fingerprints the bundle used for that run, and the lookup count records how many approved searches ran. These values tie the note to its workflow record, and only the source events can show whether its wording is accurate.

If the note is missing, wait 90 seconds and refresh the Case; do not recreate it by hand. If it is still missing, terminate the machine and start it again, since the note is part of the lab's starting state and the questions that follow depend on it.

Inspect the Workflow Receipt

Use the run ID copied from the Case to find the matching audit trail.

  1. Open Analytics > Discover.
  2. Select the data-view button at the top left, then Language: ES|QL at the bottom of the menu.
  3. Paste the query below, replacing <copied run ID> with the Case note run ID and keeping the quotation marks.
  4. Select Refresh or press Ctrl+Enter.
  5. Confirm that three rows appear in sequence order, each with the copied run ID and the evidence hash shown in the Case note.
FROM logs-application.triage-castellane
| WHERE run.id == "<copied run ID>"
| KEEP @timestamp, event.code, run.id, run.sequence, run.model_status, run.case_status, run.bundle_sha256
| SORT run.sequence ASC

Discover remembers the last table sort, so rows can arrive newest first even though the query sorts ascending. If the sequence runs backwards, select the run.sequence column header and sort it ascending, or select Sort fields and clear the sorting.

Sequence Event What the Receipt Records
1 evidence_ready Fixed searches completed, the bundle was assembled and the draft passed the structure check and the check that each cited record is in the bundle.
2 case_comment_added A separate Case writer added the prepared note to CC-CASE-0913.
3 run_completed The workflow recorded completion after verifying the Case comment.

Here, validated refers only to the structure and citation checks, and it does not mean the activity was malicious. These three receipts are the run's audit trail, linking the note to its searches, its evidence hash and the time it was written, but they are not a raw model transcript.

Understand Where AI Fits

This section explains how the note was made, and none of the questions depends on it.

Four components with separated responsibilities produced the note:

  1. Fixed search code ran four approved, read-only Elastic queries.
  2. Evidence bundling code collected the returned records, counts and references.
  3. Model drafting passed that bounded bundle to a small local language model, which returned a structured note: a summary, an observation, an uncertainty field and a suggested next check. The model had no Elastic credentials, could not choose another query or write to the Case, and could not take a response action.
  4. Validation and Case-writing code checked the note's structure and that each citation is in the bundle, then posted the labelled note.

In this lab, the workflow code allows only one value in each field, built from the returned evidence and fixed wording. Because the model can only return those values, every learner sees the same note. When the lab's builders tested a free-text version, a model this small, running on the lab's processor, failed the structure and citation checks in most runs, so the lab fixes the fields.

Because an empty uncertainty field here is not evidence of certainty, we record an open question of our own in Task 6. Assistants that write free text leave room for a wrong identifier or an unsupported conclusion, and the checks below catch them.

The bundle contained the returned evidence from four fixed lookups, each a search the workflow ran for us during triage:

Fixed Lookup What It Returned Remaining Evidence Gap
Alert and rule context One alert, its rule and source-event references. Intent or impact.
Process ancestry Three process events with entity IDs. Why the commands ran.
Host and user baseline 344 earlier records for the same host and user. Whether uncommon activity is malicious.
Destination prevalence Seven earlier records involving the destination. Destination ownership, reputation or transferred content.

The lab does not expose the exact provider or model version, the raw prompt or the raw response. Do not invent those details. We can check the lookup scope, the evidence hash, the workflow state, the Case note and the cited native event. Of the four lookups, only the process ancestry is reproduced in this room, so the baseline and prevalence counts stay as figures the workflow reported, not figures we have confirmed.

Reproduce One Automated Lookup

The note reports three process-ancestry results; let's re-run the lookup and compare them with Elastic. The fixed lookup picked its events by entity identifier, while the query below selects those three events by time, starting at 07:42:30 just before wscript.exe starts.

  1. Stay in Discover with ES|QL selected.
  2. Replace the workflow-receipt query with the one below and select Refresh or press Ctrl+Enter.
  3. Confirm that three process events appear, read them in timestamp order and compare their names and relationships with the note's process-ancestry result.
FROM logs-windows.sysmon-castellane
| WHERE host.name == "FIN-LT-0142"
  AND @timestamp >= TO_DATETIME("2026-08-07T07:42:30Z")
  AND @timestamp <= TO_DATETIME("2026-08-07T07:53:00Z")
  AND event.category == "process"
| KEEP @timestamp, process.name, process.entity_id, process.parent.entity_id
| SORT @timestamp ASC

The three rows confirm the reported count and process order, while intent and maliciousness remain unresolved.

Reopen the Cited Source Event

In the prepared note, find Evidence to check in Discover. Copy the Elasticsearch document _id, record the source index beside it and reopen that document. The exact document identifier and endpoint data view keep the check narrow.

We search by the document _id only. The table shows what each identifier points to, and only _id finds the cited event:

Identifier What It Identifies
_id One Elasticsearch document.
Evidence ID An item in the evidence bundle.
winlog.record_id The source Windows event record.
Case UUID The Elastic Case object, not a source event.
  1. Open Analytics > Discover.
  2. Select the ES|QL button at the top left, the button Task 3 used to choose the language, and pick Castellane endpoint telemetry from its list of data views. Elastic warns that the current query will be removed, and Switch without saving is the right choice here.
  3. Make sure the search bar is using Kibana Query Language (KQL). Elastic normally switches to it when we pick a data view, and if it still shows ES|QL, we switch it to KQL ourselves.
  4. Enter _id : "<copied document _id>".
  5. Select Refresh and confirm that one document appears.

If Discover shows Unable to retrieve search results with a Couldn't parse message, the search went into the ES|QL editor rather than the KQL bar. We then pick the data view as in step 2 and enter the search again.

If the count is not one, recopy the document _id and check the data view. The note in this lab always cites a real document, and a count other than one here means a copying or range slip. With a free-text assistant, a reference that will not resolve may be fabricated, and we would mark the claim as unverified in our comment, take no action on it and escalate the Case.

Check the Claim

  1. Expand the returned document and compare its process, parent, user, host and time fields with the prepared observation.
  2. Locate winlog.record_id and record its value.
  3. Choose a verdict for what the observation says. Use Supported when the cited fields show all of it, Incomplete when they show only part of it, and Not Supported when they contradict it or the citation does not resolve.
  4. Write one sentence explaining the verdict from the native fields.
  5. Compare what the observation covers with the alert. Activity the note leaves out, such as the PowerShell and curl steps we traced in Task 4, goes in our open question, not in the verdict.

Answer the questions below

  1. In the labelled AI-prepared Case note, what run ID is recorded for this workflow run?

  2. Reopen the document cited by the AI-prepared Case note. What value is shown in winlog.record_id for that native event?

Task 6: Record the Analyst Observation

Add Our Observation

In this task, we will record an analyst observation in the Case, separate from the AI-prepared note, and copy the Case identifier.

Let's add an analyst observation to the Case now. We keep it separate from the AI-prepared note so the next analyst can tell which wording came from the workflow and which conclusion we reached from the evidence.

Do not edit, replace or silently correct the prepared note.

Write the Observation

Open CC-CASE-0913. Scroll to the bottom of the Case activity feed to the comment editor and add a new comment with:

  1. The alert, process relationship and outbound destination supported by native evidence.
  2. The Elastic views and at least one stable native reference used as a source. Include winlog.record_id with the source index or Elasticsearch document _id recorded in Task 5.
  3. Feedback on the generated draft, using Supported, Incomplete or Not Supported, followed by a short evidence-based reason.
  4. One material gap that still requires investigation.

This exercise uses Castellane's format. In a working Security Operations Centre (SOC), use our organisation's required Case fields and standard operating procedure (SOP).

Use the Castellane structure if writing from a blank editor:

Analyst observation
Assisted run: <run ID; run_completed; evidence hash matched>
Native finding: <alert, process relationship and destination>
Sources checked: <three-event process lookup, winlog.record_id and source index or document _id>
AI draft: <Supported, Incomplete or Not Supported>; reason: <short evidence-based reason>
Open question: <one fact the available records do not establish>

Before saving, check that another analyst could reopen our source and understand what still needs investigation. Our comment stands beside the prepared note without changing it, and the next analyst can see which conclusion a person approved and on what evidence.

Select Add comment, not Mark in progress beside it, as we will change the status in Task 7. Refresh the Case and confirm that the new comment appears under the lab analyst identity, with the AI-prepared note still a separate activity entry.

If the comment is missing after refresh, return to the editor and save it before continuing. Do not change the Case status or add the Tier 2 tag yet.

Copy the Case Identifier

Open the unlabelled ... menu at the top right of the Case and select Copy case ID. Delete case is directly below it in red, so we check which row we are on before clicking. Record the copied UUID, or universally unique identifier, the Case's long generated ID, not its title.

Elastic puts the same UUID in the browser address bar once the Case is open, and both routes return one value. We use the menu because it works from any Case view and a colleague will recognise the step in a handover.

The questions below ask for the Case identifier and the verdict. Elastic Cases are outside the grading, and the saved observation is not checked automatically, but the value of this step comes from writing it, not from the mark.

Answer the questions below

  1. Open the ... menu at the top right of the Case and choose Copy case ID. What Case UUID is copied?

  2. Which verdict do the cited event's native fields support for the prepared observation: Supported, Incomplete or Not Supported?

Task 7: Hand the Case to Tier 2

Prepare the Handover

In this task, we will mark the Case for Tier 2 review and write a handover they can continue from.

The Case now has the AI-prepared note and our observation, and we have matched the note to its workflow receipt in Discover. Important questions remain. Let's leave the Case open and give Tier 2 a clear starting point.

Update the Case

  1. Open the Status menu and select In progress.
  2. In the Case details panel, select the pencil beside Tags, click inside the tag box, type tier2-review and press Enter.
  3. Save the change.
  4. Refresh the Case and confirm that both values remain in place.

The tag is Castellane's handover convention. It does not isolate a host, block a destination or run any response action.

Write the Handover

Add a final comment containing:

  • The detection rule and matched condition.
  • The parent-child process trail established through native events.
  • The outbound destination returned by ES|QL.
  • The verdict for the prepared observation and its cited event.
  • The evidence gap that prevents closure.
  • One bounded next check for Tier 2.

Use Castellane's handover format for this exercise. In a working Security Operations Centre (SOC), follow our organisation's SOP and required Case fields.

Use the Castellane structure if writing from a blank editor:

Tier 2 handover
Assisted run: <run ID; run_completed; evidence hash matched>
Detection: <rule and matched condition>
Native trail: <parent, process chain and destination>
Prepared observation: <evidence verdict and cited event>
Still unresolved: <evidence needed before closure>
Requested next check: <one bounded Tier 2 action>

Save the comment. Confirm that the AI-prepared note, analyst observation and Tier 2 handover remain three separate entries.

Before submitting, read it as the receiving analyst. Check that the run ID and evidence hash match, the process lookup was reproduced, the cited event was reopened and the requested check says what evidence is still needed.

Tier 2 should be able to continue without repeating our work. Keep the Case open while the evidence gap remains, and require authorised approval for any action with a real-world effect.

Grading cannot read the Case status, the tag or the saved handover, so the questions below confirm our findings instead of the changes we made in Elastic, and the handover is recorded on trust.

Answer the questions below

  1. Our handover names the outbound destination returned by ES|QL in Task 4. Which destination port did curl.exe connect to?

  2. After marking the Case for Tier 2 review, who still owns the conclusion?

Task 8: Conclusion

Conclusion

In this task, we will recap the investigation and the checks to use whenever AI output reaches a Case.

One Elastic alert on FIN-LT-0142 started the shift. We finished with a native evidence trail, a verdict on the AI-prepared note and a handover that tells Tier 2 what still needs checking.

What We Did

We kept the generated wording separate from the analyst's finding and followed it back to the source:

  • We read the detection and traced the parent, child and network events ourselves.
  • We matched the prepared note to its workflow receipt and evidence hash.
  • We repeated one fixed lookup and reopened the exact document cited by the note.
  • We recorded an analyst verdict, left the unresolved question visible and handed the Case to Tier 2.

The practical demonstrated alert triage and Case documentation in Elastic. The same checks also matter when AI helps with detection engineering, query generation, enrichment or response playbooks.

Before We Rely on the Output

Ask these questions during the investigation, not after an action has already been taken:

  • Data: Is the service approved, and have we kept unnecessary sensitive material out of the prompt or evidence bundle?
  • Evidence: Can we reopen the record behind each important statement and reproduce any generated identifier or query result?
  • Authority: Is the proposed action covered by an approved playbook, and who is authorised to make the decision?

If a citation does not resolve, a query searches the wrong scope or the records do not support the wording, we mark the claim as unverified and record the discrepancy. A confident draft must not turn an evidence gap into a finding.

The next room uses a different investigation to examine grounding, reconstruct an assisted trace and correct a conclusion that goes beyond the available evidence.

Answer the questions below

  1. Continue to complete the room.

Back to all walkthroughs
Room Icon

AI in the Modern SOC

Investigate an Elastic alert, then check an AI-prepared Case note against the original events.

easy

90 min

2,711

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Room Overview

is already turning up in everyday Security Operations Centre () work. It can help an engineer shape a detection, help an analyst work through a busy queue, suggest an investigation pivot, draft a response step or prepare a case note. The useful questions concern what the tool can see, what it is allowed to do and who checks the result.

A humanoid robot holds a printed note beside a monitor that shows a queue of alert cards.

This is the first room in the learning path, so it sets out that wider picture before narrowing to one alert-triage example in Elastic Security. Working an L1 shift at Castellane Capital, we will investigate that alert ourselves, open an AI-prepared note covering the same activity and test its main statement against the original events.

Incident Scenario

Castellane Capital: Security Operations

The finance team is closing its month-end work, and the shift is busy. A detection has now fired on finance analyst Owen Farrelly's laptop, FIN-LT-0142, after suspicious activity, and it has been assigned to us.

We have the alert, the affected host and a narrow time window, but we have not yet traced the surrounding process and network events.

An automated triage workflow has collected some context and prepared a Case note for us. It may have saved several searches, but no analyst has checked its important observation against the original event.

Please investigate the alert, compare the findings with the prepared note and record what the evidence supports. If anything important remains unresolved, leave Tier 2 a handover they can continue without repeating our work.

How This Room Works

Before we log in, an automated triage workflow has already run a few fixed searches on this alert and used a local language model to draft a Case note. Our job is to check that note before the Case moves on, and we start by triaging the alert ourselves in Elastic, then test the note's main claim against the original events.

Once we have checked it, we record our own observation on the Case and hand it to Tier 2, keeping the decision on the alert with us as the analyst. The check takes some effort, but the workflow has already run the searches for us. That is how AI help works in most SOCs today, where a tool prepares a draft and an analyst confirms it before acting on it.

Tips Before We Start

Some values we find early, such as a port or an identifier, come up again a task or two later, and a short working note saves going back for them. If the portal refuses a correct answer with a going-too-fast message, we wait a few seconds and submit it again.

Learning Objectives

By the end, we will be able to:

  • Map where AI already assists SOC work and apply the boundaries that keep it safe: protect sensitive data around AI services, verify generated output against native evidence and keep action authority with people and approved playbooks.
  • Distinguish detection analytics, deterministic automation, an AI language model, an AI-generated draft and an analyst decision.
  • Triage an alert manually in Elastic Security, from the detection rule to the process and network trail behind it.
  • Validate an AI-prepared Case note against the original events and grade what its claim supports.
  • Record an analyst-owned observation and hand the Case to Tier 2 with the decision kept in human hands.

Prerequisites

  • A basic understanding of SOC alerts and events is useful. If these ideas are new, complete SOC Fundamentals first.
  • No previous Elastic or query-language experience is required; every route and query is supplied.
  • No previous AI knowledge is required. Each component is introduced before we open the lab.
Answer the questions below

Continue to the next task.

Across the

In this task, we will map where AI can help during a shift, set three boundaries that apply to all of it and name the parts behind an AI-assisted result.

The alert on FIN-LT-0142 gives us one practical example, but AI can assist with much more than alert summaries. Start with the wider Security Operations Centre (SOC) shift: where might the help appear, what does it need, and what must remain under human control?

Where AI Can Help During a Shift

The figure follows five common jobs through a shift, with three boundaries beneath them that apply to every job while the analyst stays accountable for the shift.

Five SOC jobs where AI can assist, from detection engineering to Case documentation, above three boundaries that apply to all of them: protect sensitive data, verify against native evidence and keep authority with people.

SOC Work Example of AI Assistance Input or Evidence It Needs Control and Ownership
Detection engineering Draft or translate rule logic; explain or tune a rule. The threat to detect, the rule format, sample events and known false positives. A detection engineer tests what the rule catches and how noisy it is, then approves it.
Alert triage and queue automation Summarise alerts, group duplicates, suggest a priority or an outcome. Alert fields, related events, details about the host and user, and the rules for closing an alert. Policy sets thresholds, and analysts approve any outcome that matters.
Investigation and enrichment Build a search, add context about a host or user, suggest where to look next. The connected data sources, the time range and entities in scope, and the returned records. The analyst reviews the query, what it covered, the results and the conclusion drawn.
Playbooks and response orchestration Suggest the next step or run an approved action. A confirmed trigger, the Case state, the allowed settings and the affected asset. Least-privilege permissions, allowlists and approval steps.
Case documentation, handover and feedback Draft an evidence summary, organise citations, prepare a handover. Source references, actions taken, open questions, verdicts. The analyst corrects the record and owns the conclusion and handover.

AI can also cause an alert, for example when a user pastes Case data into an unapproved public chatbot, or when prompt injection steers an assistant through hidden instructions planted in a document it reads. We investigate those alerts with the same checks against native evidence. This room covers the other case, where AI helps the analyst.

Data, Evidence and Authority

Use three boundaries whenever AI touches SOC work:

  • Data. Use only services approved by our organisation. Share the minimum needed and redact anything the task does not require. Do not paste live alerts, internal hostnames, usernames, credentials, victim details or sensitive Case context into a public or unapproved tool. An IP address or hash is not automatically confidential, but the surrounding incident context often is. Whether it can be shared depends on context and classification.
  • Evidence. Treat generated IDs, indicators, queries, citations and conclusions as unverified until we reproduce the search or reopen the native source.
  • Authority. Containment, blocking, account changes and Case closure require an approved playbook and an authorised person, because a suggestion from a model is not approval to act.

Not Every Fast Step Is AI

Detection analytics applies configured rule logic to indexed telemetry and raises an alert on a match. Deterministic automation follows operations written in advance, such as four approved searches that run for every matching alert; neither is language-model reasoning.

Examples in Current Security Platforms

This table is background for later rooms; no question here depends on it.

Vendors use different names for similar capabilities, and the examples below show where each product fits in the map instead of comparing whole platforms.

Product Family Part of the SOC Map It Illustrates What the Analyst Still Checks
Elastic AI Assistant and Attack Discovery Alert investigation, query generation, assisted discovery. Supplied events, indices, tools, permissions, records.
Microsoft Security Copilot and security agents Incident summarisation, investigation support, threat intelligence context. Which product supplied the context; who approves action.
Gemini in Google Security Operations Natural-language search, Case summaries, detection creation, playbooks. Query or playbook, records, response approval boundary.
Splunk AI Assistant for SPL Natural-language task to reviewable SPL. Index, fields, time range, generated SPL, results.

Availability depends on product version, licence, connected data, permissions and approval policy. Product names and links in this table were current on 11 November 2026. These features change quickly, so we check the vendor's current documentation before relying on any of them.

Components Behind an AI-Assisted Result

To see how an AI-assisted answer was produced, we look past the product label at its parts. An AI language model is the text-generating component: it receives supplied context and returns language. In this lab, a small local model receives one bounded evidence bundle. It has no Elastic credentials and no response tools. Because its output format allows one value per field, it returns an identical note on every run.

Its output stays an AI-generated draft until a person has checked it. An AI assistant is the wider analyst-facing system, which may add product context and permitted tools. An agentic workflow can choose among permitted steps towards a goal. The workflow used here is simpler: fixed code always runs four lookups in a set order and cannot choose another step.

The records supplied to the model form an evidence bundle, and if a relevant record was left out, the draft cannot account for it.

In the strip below, detection analytics and deterministic automation run quickly but contain no language model. The bracket under the third and fourth boxes marks the two parts that are AI, and the decision stays with the analyst.

A left-to-right strip of detection analytics, deterministic automation, an AI language model, an AI-generated draft and an analyst decision, with the language model and the draft bracketed as the AI parts.

Why Clear Does Not Mean Correct

Language models can produce polished text that sounds natural, organised and confident. Accuracy still depends on the model, prompt, supplied context and controls. Readable prose may still contain a wrong identifier, a weak inference or a missing qualification.

A native event on an unrelated host may show that winword.exe started cmd.exe. A draft could turn that into "the host was compromised". The parent-child fields confirm that one process started the other, but they do not prove intent or a compromise. The analyst keeps what the fields show apart from what the draft adds.

What Changes for an L1 Analyst

In an AI SOC, assistants collect context and draft a note before we open the alert, and agents may run permitted steps without waiting for us. Our L1 work then starts with checking that context, and we still investigate wherever the draft stops. A human in the loop is the person who approves what the Case says before anyone acts on it, and here that person is us.

We still need manual skill for that check: if the assistant is down, or its draft cites a record we cannot find in Elastic, we search the native data ourselves and finish the triage. Task 4 practises that manual route, and Task 5 checks the AI-prepared note against it.

One Worked Use Case in Elastic Security

For the practical, Elastic supplies one worked use case covering alert triage, investigation and Case documentation. We will not build a detection or automate incident closure here.

The visual follows the lab implementation from the Elastic alert through four fixed lookups, the evidence bundle, a language-model draft and limited validation, ending at the analyst decision.

One Elastic alert moving through four fixed lookups, an evidence bundle, a language-model draft, limited validation and an analyst decision.

Two Routes to the Same Evidence

Let's investigate manually first, then compare what we find with the prepared Case note. Both routes should lead back to the same native records.

One Elastic alert split into a manual investigation lane and an assisted collection lane, both ending at the analyst check and the Tier 2 handover.

  • Elastic alert: starting host, user and time context.
  • Manual investigation: we trace the process and destination events directly and keep a manual evidence note.
  • Assisted collection: four fixed searches collect approved context, and the prepared case note summarises that bundle and cites evidence references. Validation code, not drawn in the figure, checks the note's format and citations but not whether its reading is true.
  • Analyst check: reopens the native event, records a verdict and owns the handover.
  • Handover to Tier 2: the Case is passed on once it is verified.
Answer the questions below
What do we call language-model output before an analyst has checked it against the native evidence?

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting the Lab Machine, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Lab machine
Status:Off

Inside the Lab

In this task, we will start the lab, open the four Elastic views we need and check that Discover can see the full dataset.

The practical now narrows the Security Operations Centre () map to one alert in Elastic Security. This is one worked use case in Elastic Security: we will see which parts are routine detection and automation, where a local language model was used, and where the analyst has to take over.

Let's open the lab first and locate the records we will use during the investigation.

What Is in the Lab?

The practical contains:

  • Windows endpoint, authentication and network events stored in Elastic.
  • A detection alert created from that indexed telemetry.
  • Timeline and Discover views for checking the original events.
  • An Elastic Case containing a labelled -prepared note.
  • A fixed workflow that gathers four approved evidence sets before drafting the note.

Note: We should never paste real organisational data, live alert content or internal identifiers into this training lab or an unapproved external AI service.

The local language model receives only the bounded evidence bundle assembled by the fixed lookups; it cannot see wider Elastic data or anything we type elsewhere.

We will use four Elastic views during the investigation, in the order shown.

Four Elastic views in investigation order: Alerts asks what caused the detection, Timelines asks which events are related, Discover shows the native event and Cases records what was checked and handed over.

External production example: Elastic describes a broader pattern in which rule guidance and earlier AI verdicts can be compared with outcomes selected by analysts. That is useful production context, but it is not the workflow running in this lab. Here, the searches are fixed and the analyst-selected outcome remains the ground truth.

Start the Machine

Select Start Lab Machine in the task panel. Once the machine boots, a panel at the top of the page shows a Click to Open link that opens Elastic in a new tab. Elastic needs about five more minutes before it answers. If that panel does not appear, or the task panel still shows the machine as off, we refresh the page instead of selecting Start Lab Machine again.

Target Machine card placeholder

Open https://LAB_WEB_URL.p.thmlabs.com in a new tab, and Elastic loads straight into its home page without asking for credentials.

Elastic home page with the Security and Analytics areas highlighted.

We use Security for the detection queue and the Case, and Analytics for Discover. If the page has not loaded yet, wait a minute and reload it.

Find the Investigation Areas

Let's take a minute to open each area before starting the investigation. Because everything in this case happened on one morning, Elastic opens every view on 7 August between 07:40 and 07:55 ; we leave the time picker alone from start to finish.

Open Alerts

Open Security > Alerts. This is the detection queue, which Task 4 filters to the alert assigned to us; the alert is already in view. Elastic also opens short product tours here and later in the alert panel and Timeline, starting with Introducing attack discovery, and we can close each one with Close or Exit tour.

Elastic Security Alerts opened on the incident window, with the Alerts menu item, the time range and the alert row highlighted and the rule name hidden.

Open Timelines

Open Security > Timelines. Timeline places related process events in time and shows the parent-child relationship. The list is empty for now, and in Task 4, we will start a new Timeline from this page.

Elastic Security Timelines with the menu route and page heading highlighted.

Open Discover

Open Analytics > Discover. Select the data-view button at the top left, which chooses the data Discover searches, then select Language: ( Query Language) at the bottom of the menu. This mode runs the supplied searches and exposes the native indexed events.

Discover with the Dataset Size Check saved search open, showing the Open menu, the search name, the stored 30-day time range and the event count with its value hidden.

Confirm the Dataset

Before investigating one alert, confirm that Discover can see the complete lab dataset.

  1. In Discover, select Open in the top menu and choose the saved search Dataset Size Check. It holds the ES|QL query below with a stored 30-day range from 10 July to 9 August, which the time picker switches to when the search opens.
  2. Record the returned event_count. This is the source-event count across the three approved data-stream families, not the number of alerts.
FROM logs-windows.*-castellane, logs-zeek.*-castellane, logs-web.*-castellane
| WHERE @timestamp >= TO_DATETIME("2026-07-10T00:00:00.000Z")
  AND @timestamp <= TO_DATETIME("2026-08-09T23:59:59.999Z")
| STATS event_count = COUNT(*)

Elastic shows a yellow warning that no limit was defined and a default of 1000 rows was added; the warning does not change the count. Later Discover searches filter on a specific host, process or run identifier and return identical rows under either range.

Open Cases

Open Security > Cases. The prepared note is stored here, and we will add our observation and Tier 2 handover to it.

Elastic Security Cases with the route and prepared Case row highlighted.

We do not need to memorise the menus. Each practical task repeats the route before asking us to use it.

Where Elastic Agent Fits

We can read this section as background, since no question depends on it.

Elastic Agent collects and forwards telemetry. Organisations can deploy it to endpoints so that operating-system, application and security records are mapped into Elastic Common Schema () and sent to Elastic data streams. That collection happened before this investigation; the supplied dataset already contains the events we need, so we will not install or administer Elastic Agent here.

The fixed triage workflow is separate. It retrieves four approved evidence sets and passes that evidence bundle to the local language model. The language model drafts text from that evidence bundle. We still check the cited event and make the decision. The word Agent in Elastic Agent does not mean that it investigated the Case.

If Elastic Does Not Load

  1. Confirm that the task panel still shows the machine as running.
  2. Open the lab again from the Click to Open link in the machine panel at the top of the page, not from a bookmark, because the address changes each time the machine starts.
  3. Allow the Elastic services more time to start.
  4. If the practical needs a clean start, terminate the machine and start it again.

A fresh machine restores the original alert, prepared note and workflow record, and removes any analyst notes or handover changes.

Answer the questions below

Run the source-event count query in Discover. What value is returned in the event_count column?

Work on the Alert

In this task, we will work on the assigned alert in Elastic, following its native records from the alert to the process chain and the network connection.

Do not open the generated Case note yet. Our own findings from the native records come first, and we compare them with the prepared Case note in Task 5.

Our working note should answer three questions:

  • What did the detection rule report?
  • Which process relationship supports the alert?
  • Which outbound event belongs to the same process chain?

All the records in this case sit in one window. The laptop activity runs from 07:40 to 07:43, Elastic created the alert at 07:44 and the workflow wrote its note at 07:47, in the order a would see them.

Find the Assigned Alert

  1. Open Security > Alerts.
  2. In the Query Language () search bar above the alert table, enter host.name : "FIN-LT-0142" and user.name : "CASTELLANE\\owen.farrelly", then press Enter. The double backslash tells KQL to match the backslash stored in the Windows-style user value.
  3. Confirm that the filtered queue now shows one alert row. If more than one row remains, sort by the alert timestamp, newest first, and use the most recent row for this host and user. If the latest rows share a timestamp, recheck both filter values before continuing.
  4. Open View details for the selected alert.

Distinguish the Alert From Its Source Event

The alert is a detection record created after a rule matches source telemetry; its @timestamp records when Elastic created the alert. The source event carries an earlier @timestamp for when the endpoint activity occurred, and Elastic shows both in UTC.

The View details action opens the alert details panel on the right, which Elastic calls the alert flyout. In that panel, open Overview > About > Show rule summary. Record:

  • The exact rule name and severity.
  • The host and user shown in the alert context.
  • The process named by the matched event.
  • The alert-creation time shown at the top of the panel.
  • The short description of the condition that matched.

Because the rule summary describes the rule, not the activity, the dates it shows are when the rule was created and last updated. The source-event time is stored in the alert document: open the Table tab in the same panel, filter the fields for original_time and record kibana.alert.original_time.

Treat the alert as evidence of the matched condition only. The rule summary names a parent process, and because a name printed by a rule is a label, not a proven relationship, we confirm it against the source events. Intent and impact need other evidence.

Verify the Parent Process

  1. Open Security > Timelines and select Create new Timeline. The new Timeline opens on the 07:40 to 07:55 window used by the alert queue, with no filters carried over.
  2. If a Recent Timeline improvements tour opens, select Exit tour. Timeline returns nothing while the query bar is empty, so type host.name : "FIN-LT-0142" into the Timeline query bar and press Enter.
  3. The list now shows ten records: nine endpoint events and, at the top, the alert. It includes a network_connection row with a destination address, and we will not rely on that row until the process chain ties it to one process instance.
  4. Timeline's default columns leave out the process name, so we narrow the list with host.name : "FIN-LT-0142" and process.name : "powershell.exe" and event.action : "process_start" and not event.kind : "signal" and press Enter. The last condition leaves out the alert, which Elastic stores with matching process fields. One row remains, and its @timestamp matches kibana.alert.original_time, the source-event time recorded from the Table tab. We open it with the expand arrow at the left of the row.
  5. In the event details, locate @timestamp, process.entity_id, process.parent.entity_id, process.parent.pid, process.name and process.parent.name. An entity ID identifies one process instance, which is safer than matching a process name alone, while process.parent.pid is the numeric process ID that Windows gave the parent.
  6. Copy @timestamp, process.entity_id and process.parent.entity_id into our working note.

For the elapsed-time check, use the UTC timestamps as displayed, since both records use whole-second precision.

Two annotated steps: create a new Timeline from the Timelines page, then search the host in a Timeline already set to the incident window, with the destination address hidden.

Replace the query in the Timeline query bar with the KQL below, substituting the copied value:

process.entity_id : "<copied process.parent.entity_id>"

Open the returned parent event, confirm its process.entity_id matches the copied identifier, then record @timestamp and process.name. The identifier proves the relationship; a familiar process name alone does not. This parent is the wscript.exe start, and comparing its @timestamp with the powershell.exe @timestamp copied earlier gives the elapsed time. The other process_start rows in the host list belong to different processes.

The parent entity ID from the PowerShell event is matched against the parent event's entity ID.

Find PowerShell's Child Process

The parent process we just recorded started powershell.exe. The network event belongs to another process in that chain, and we first need to identify what started.

Return to Timeline and use the process.entity_id copied from the powershell.exe event, which we will call the PowerShell entity ID:

host.name : "FIN-LT-0142" and process.parent.entity_id : "<paste PowerShell entity ID>"

Press Enter or select Refresh. One curl.exe process event should appear. Open it and confirm that its process.parent.entity_id equals PowerShell's process.entity_id. Then copy the curl.exe event's process.entity_id and label it curl entity ID.

The two fields answer different questions:

  • The curl.exe process.parent.entity_id value points back to the PowerShell process that started it.
  • The curl.exe process.entity_id value identifies this exact curl process instance. We carry this value into the network search because the connection event records the process instance that made the connection.

PowerShell's entity ID is matched to the child event before the child's entity ID is copied for the network search.

Find the Outbound Event

curl.exe is the next child in the chain; use its curl entity ID to find a network event from that process instance.

Let's open Discover in a new browser tab so the unsaved Timeline stays open; leaving Timeline in this tab makes the browser ask whether to discard it. Select ES|QL, leave the time picker as it is and run:

FROM logs-windows.sysmon-castellane
| WHERE host.name == "FIN-LT-0142" AND event.category == "network" AND process.entity_id == "<copied curl.exe process.entity_id>" AND destination.ip IS NOT NULL
| KEEP @timestamp, host.name, process.name, process.entity_id, destination.ip, destination.port, network.transport, winlog.record_id
| SORT @timestamp ASC

The curl.exe entity ID is pasted into the Discover query, with the network answer values hidden.

If no row returns, confirm we copied curl.exe process.entity_id, not its process.parent.entity_id or the PowerShell identifier, and keep the host filter unchanged. Elastic also shows a yellow warning that no limit was defined and a default of 1000 rows was added; the warning is expected and does not change the result.

The single returned row links curl.exe to one outbound event. Record its destination IP, port and transport. From this event we can say that the traced process made the connection. Destination ownership, transferred content and operator intent need other evidence.

Before Moving On

Later tasks return to several of these values. Let's check that our working note records each of them:

  • The rule name from the alert.
  • The powershell.exe @timestamp, process.entity_id, process.parent.entity_id and process.parent.pid.
  • The parent's @timestamp and process.name, plus the curl entity ID.
  • The destination IP, port and transport from the network event, which the Tier 2 handover in Task 7 needs.

Five answers are graded in this task. The portal limits how quickly answers can be submitted. If You are going too fast appears, we wait about ten seconds and submit again, because that message is about the submission rate and not about the answer.

Answer the questions below
Open the alert for FIN-LT-0142 in Elastic Security. What is the exact name of the detection rule that fired?

Using Timeline, open the alert's powershell.exe event. What numeric value does process.parent.pid record for its parent process?

Using the ES|QL query in Discover, find the network event made by curl.exe. What destination IP address does it connect to?

Compare the two process-start events in Timeline. How many whole seconds elapsed between wscript.exe starting and powershell.exe starting?

What is the process.parent.entity_id value recorded on the powershell.exe source event?

Check the Note Against Our Findings

In this task, we will open the -prepared note, trace it to the workflow's records, repeat one of its searches and check the event it cites.

We now have a process chain and an outbound connection taken from Elastic's native records. Open the prepared note and see whether it stands up to that evidence.

A magnifying glass picks out one line of a prepared case note, and a tick links that line to the matching entry in a source event record.

The workflow has already finished, so we will not trigger a new model run. Our job is to trace its receipt, repeat one of its searches and check the source cited by the draft.

Four fixed read-only lookups feeding an evidence bundle, a local model draft, validation, a labelled Case note and the analyst source check.

Open the Prepared Case

We read the note as an investigation lead and keep its conclusion out of the analyst comment for now.

  1. Open Security > Cases.
  2. Search for CC-CASE-0913, open it and confirm its status is Open.
  3. Select Comments.
  4. The Cases list shows an Upgrade to an appropriate license banner that nothing in this investigation needs. Under Comments, the prepared note is the only entry; the All tab adds the Case being opened and the alert being attached.
  5. Find the entry headed AI-prepared case note.
  6. Copy its run ID and evidence hash into our working note and record its lookup count.

The AI-prepared case note in the Case comments, with answer values hidden.

The Run details area shows where to find the run ID, lookup count and evidence hash, with their values hidden.

The run ID identifies one execution, the evidence hash fingerprints the bundle used for that run, and the lookup count records how many approved searches ran. These values tie the note to its workflow record, and only the source events can show whether its wording is accurate.

If the note is missing, wait 90 seconds and refresh the Case; do not recreate it by hand. If it is still missing, terminate the machine and start it again, since the note is part of the lab's starting state and the questions that follow depend on it.

Inspect the Workflow Receipt

Use the run ID copied from the Case to find the matching audit trail.

  1. Open Analytics > Discover.
  2. Select the data-view button at the top left, then Language: ES|QL at the bottom of the menu.
  3. Paste the query below, replacing <copied run ID> with the Case note run ID and keeping the quotation marks.
  4. Select Refresh or press Ctrl+Enter.
  5. Confirm that three rows appear in sequence order, each with the copied run ID and the evidence hash shown in the Case note.
FROM logs-application.triage-castellane
| WHERE run.id == "<copied run ID>"
| KEEP @timestamp, event.code, run.id, run.sequence, run.model_status, run.case_status, run.bundle_sha256
| SORT run.sequence ASC

Discover remembers the last table sort, so rows can arrive newest first even though the query sorts ascending. If the sequence runs backwards, select the run.sequence column header and sort it ascending, or select Sort fields and clear the sorting.

Sequence Event What the Receipt Records
1 evidence_ready Fixed searches completed, the bundle was assembled and the draft passed the structure check and the check that each cited record is in the bundle.
2 case_comment_added A separate Case writer added the prepared note to CC-CASE-0913.
3 run_completed The workflow recorded completion after verifying the Case comment.

Discover shows the three workflow records in sequence order, with the run ID and evidence hash hidden.

Here, validated refers only to the structure and citation checks, and it does not mean the activity was malicious. These three receipts are the run's audit trail, linking the note to its searches, its evidence hash and the time it was written, but they are not a raw model transcript.

Understand Where AI Fits

This section explains how the note was made, and none of the questions depends on it.

Four components with separated responsibilities produced the note:

  1. Fixed search code ran four approved, read-only Elastic queries.
  2. Evidence bundling code collected the returned records, counts and references.
  3. Model drafting passed that bounded bundle to a small local language model, which returned a structured note: a summary, an observation, an uncertainty field and a suggested next check. The model had no Elastic credentials, could not choose another query or write to the Case, and could not take a response action.
  4. Validation and Case-writing code checked the note's structure and that each citation is in the bundle, then posted the labelled note.

In this lab, the workflow code allows only one value in each field, built from the returned evidence and fixed wording. Because the model can only return those values, every learner sees the same note. When the lab's builders tested a free-text version, a model this small, running on the lab's processor, failed the structure and citation checks in most runs, so the lab fixes the fields.

Because an empty uncertainty field here is not evidence of certainty, we record an open question of our own in Task 6. Assistants that write free text leave room for a wrong identifier or an unsupported conclusion, and the checks below catch them.

The bundle contained the returned evidence from four fixed lookups, each a search the workflow ran for us during triage:

Fixed Lookup What It Returned Remaining Evidence Gap
Alert and rule context One alert, its rule and source-event references. Intent or impact.
Process ancestry Three process events with entity IDs. Why the commands ran.
Host and user baseline 344 earlier records for the same host and user. Whether uncommon activity is malicious.
Destination prevalence Seven earlier records involving the destination. Destination ownership, reputation or transferred content.

The lab does not expose the exact provider or model version, the raw prompt or the raw response. Do not invent those details. We can check the lookup scope, the evidence hash, the workflow state, the Case note and the cited native event. Of the four lookups, only the process ancestry is reproduced in this room, so the baseline and prevalence counts stay as figures the workflow reported, not figures we have confirmed.

Reproduce One Automated Lookup

The note reports three process-ancestry results; let's re-run the lookup and compare them with Elastic. The fixed lookup picked its events by entity identifier, while the query below selects those three events by time, starting at 07:42:30 just before wscript.exe starts.

  1. Stay in Discover with ES|QL selected.
  2. Replace the workflow-receipt query with the one below and select Refresh or press Ctrl+Enter.
  3. Confirm that three process events appear, read them in timestamp order and compare their names and relationships with the note's process-ancestry result.
FROM logs-windows.sysmon-castellane
| WHERE host.name == "FIN-LT-0142"
  AND @timestamp >= TO_DATETIME("2026-08-07T07:42:30Z")
  AND @timestamp <= TO_DATETIME("2026-08-07T07:53:00Z")
  AND event.category == "process"
| KEEP @timestamp, process.name, process.entity_id, process.parent.entity_id
| SORT @timestamp ASC

Discover shows the process search and its three returned rows, with answer values hidden.

The three rows confirm the reported count and process order, while intent and maliciousness remain unresolved.

Reopen the Cited Source Event

In the prepared note, find Evidence to check in Discover. Copy the Elasticsearch document _id, record the source index beside it and reopen that document. The exact document identifier and endpoint data view keep the check narrow.

We search by the document _id only. The table shows what each identifier points to, and only _id finds the cited event:

Identifier What It Identifies
_id One Elasticsearch document.
Evidence ID An item in the evidence bundle.
winlog.record_id The source Windows event record.
Case UUID The Elastic Case object, not a source event.
  1. Open Analytics > Discover.
  2. Select the ES|QL button at the top left, the button Task 3 used to choose the language, and pick Castellane endpoint telemetry from its list of data views. Elastic warns that the current query will be removed, and Switch without saving is the right choice here.
  3. Make sure the search bar is using Kibana Query Language (KQL). Elastic normally switches to it when we pick a data view, and if it still shows ES|QL, we switch it to KQL ourselves.
  4. Enter _id : "<copied document _id>".
  5. Select Refresh and confirm that one document appears.

If Discover shows Unable to retrieve search results with a Couldn't parse message, the search went into the editor rather than the bar. We then pick the data view as in step 2 and enter the search again.

If the count is not one, recopy the document _id and check the data view. The note in this lab always cites a real document, and a count other than one here means a copying or range slip. With a free-text assistant, a reference that will not resolve may be fabricated, and we would mark the claim as unverified in our comment, take no action on it and escalate the Case.

Check the Claim

  1. Expand the returned document and compare its process, parent, user, host and time fields with the prepared observation.
  2. Locate winlog.record_id and record its value.
  3. Choose a verdict for what the observation says. Use Supported when the cited fields show all of it, Incomplete when they show only part of it, and Not Supported when they contradict it or the citation does not resolve.
  4. Write one sentence explaining the verdict from the native fields.
  5. Compare what the observation covers with the alert. Activity the note leaves out, such as the and curl steps we traced in Task 4, goes in our open question, not in the verdict.

Discover shows the search for the cited document beside the opened event, with answer values hidden.

Answer the questions below

In the labelled AI-prepared Case note, what run ID is recorded for this workflow run?

Reopen the document cited by the AI-prepared Case note. What value is shown in winlog.record_id for that native event?

Add Our Observation

In this task, we will record an analyst observation in the Case, separate from the -prepared note, and copy the Case identifier.

Let's add an analyst observation to the Case now. We keep it separate from the AI-prepared note so the next analyst can tell which wording came from the workflow and which conclusion we reached from the evidence.

Do not edit, replace or silently correct the prepared note.

Write the Observation

Open CC-CASE-0913. Scroll to the bottom of the Case activity feed to the comment editor and add a new comment with:

  1. The alert, process relationship and outbound destination supported by native evidence.
  2. The Elastic views and at least one stable native reference used as a source. Include winlog.record_id with the source index or Elasticsearch document _id recorded in Task 5.
  3. Feedback on the generated draft, using Supported, Incomplete or Not Supported, followed by a short evidence-based reason.
  4. One material gap that still requires investigation.

This exercise uses Castellane's format. In a working Security Operations Centre (SOC), use our organisation's required Case fields and standard operating procedure (SOP).

Use the Castellane structure if writing from a blank editor:

Analyst observation
Assisted run: <run ID; run_completed; evidence hash matched>
Native finding: <alert, process relationship and destination>
Sources checked: <three-event process lookup, winlog.record_id and source index or document _id>
AI draft: <Supported, Incomplete or Not Supported>; reason: <short evidence-based reason>
Open question: <one fact the available records do not establish>

Before saving, check that another analyst could reopen our source and understand what still needs investigation. Our comment stands beside the prepared note without changing it, and the next analyst can see which conclusion a person approved and on what evidence.

Select Add comment, not Mark in progress beside it, as we will change the status in Task 7. Refresh the Case and confirm that the new comment appears under the lab analyst identity, with the AI-prepared note still a separate activity entry.

If the comment is missing after refresh, return to the editor and save it before continuing. Do not change the Case status or add the Tier 2 tag yet.

Copy the Case Identifier

Open the unlabelled ... menu at the top right of the Case and select Copy case ID. Delete case is directly below it in red, so we check which row we are on before clicking. Record the copied , or universally unique identifier, the Case's long generated ID, not its title.

Elastic puts the same UUID in the browser address bar once the Case is open, and both routes return one value. We use the menu because it works from any Case view and a colleague will recognise the step in a handover.

The Case menu with the Copy case ID action highlighted.

The questions below ask for the Case identifier and the verdict. Elastic Cases are outside the grading, and the saved observation is not checked automatically, but the value of this step comes from writing it, not from the mark.

Answer the questions below

Open the ... menu at the top right of the Case and choose Copy case ID. What Case UUID is copied?

Which verdict do the cited event's native fields support for the prepared observation: Supported, Incomplete or Not Supported?

Prepare the Handover

In this task, we will mark the Case for Tier 2 review and write a handover they can continue from.

The Case now has the -prepared note and our observation, and we have matched the note to its workflow receipt in Discover. Important questions remain. Let's leave the Case open and give Tier 2 a clear starting point.

A case folder with a checklist passes between two analyst desks, and both screens show the same alert.

Update the Case

  1. Open the Status menu and select In progress.
  2. In the Case details panel, select the pencil beside Tags, click inside the tag box, type tier2-review and press Enter.
  3. Save the change.
  4. Refresh the Case and confirm that both values remain in place.

A focused Elastic Case control shows the In progress handover status.

The tag is Castellane's handover convention. It does not isolate a host, block a destination or run any response action.

Write the Handover

Add a final comment containing:

  • The detection rule and matched condition.
  • The parent-child process trail established through native events.
  • The outbound destination returned by ES|QL.
  • The verdict for the prepared observation and its cited event.
  • The evidence gap that prevents closure.
  • One bounded next check for Tier 2.

Use Castellane's handover format for this exercise. In a working Security Operations Centre (SOC), follow our organisation's SOP and required Case fields.

Use the Castellane structure if writing from a blank editor:

Tier 2 handover
Assisted run: <run ID; run_completed; evidence hash matched>
Detection: <rule and matched condition>
Native trail: <parent, process chain and destination>
Prepared observation: <evidence verdict and cited event>
Still unresolved: <evidence needed before closure>
Requested next check: <one bounded Tier 2 action>

Save the comment. Confirm that the AI-prepared note, analyst observation and Tier 2 handover remain three separate entries.

Before submitting, read it as the receiving analyst. Check that the run ID and evidence hash match, the process lookup was reproduced, the cited event was reopened and the requested check says what evidence is still needed.

Tier 2 should be able to continue without repeating our work. Keep the Case open while the evidence gap remains, and require authorised approval for any action with a real-world effect.

Grading cannot read the Case status, the tag or the saved handover, so the questions below confirm our findings instead of the changes we made in Elastic, and the handover is recorded on trust.

Answer the questions below

Our handover names the outbound destination returned by ES|QL in Task 4. Which destination port did curl.exe connect to?

After marking the Case for Tier 2 review, who still owns the conclusion?

Conclusion

In this task, we will recap the investigation and the checks to use whenever output reaches a Case.

One Elastic alert on FIN-LT-0142 started the shift. We finished with a native evidence trail, a verdict on the AI-prepared note and a handover that tells Tier 2 what still needs checking.

What We Did

We kept the generated wording separate from the analyst's finding and followed it back to the source:

  • We read the detection and traced the parent, child and network events ourselves.
  • We matched the prepared note to its workflow receipt and evidence hash.
  • We repeated one fixed lookup and reopened the exact document cited by the note.
  • We recorded an analyst verdict, left the unresolved question visible and handed the Case to Tier 2.

The practical demonstrated alert triage and Case documentation in Elastic. The same checks also matter when AI helps with detection engineering, query generation, enrichment or response playbooks.

Before We Rely on the Output

Ask these questions during the investigation, not after an action has already been taken:

  • Data: Is the service approved, and have we kept unnecessary sensitive material out of the prompt or evidence bundle?
  • Evidence: Can we reopen the record behind each important statement and reproduce any generated identifier or query result?
  • Authority: Is the proposed action covered by an approved playbook, and who is authorised to make the decision?

If a citation does not resolve, a query searches the wrong scope or the records do not support the wording, we mark the claim as unverified and record the discrepancy. A confident draft must not turn an evidence gap into a finding.

The next room uses a different investigation to examine grounding, reconstruct an assisted trace and correct a conclusion that goes beyond the available evidence.

Answer the questions below

Continue to complete the room.