Reading width
Wide uses the full column for everything, text, diagrams, code, and exercises. Narrow keeps the standard reading width.
Text size
Scales the body text. Headings and code blocks keep their size.
In this section
0.7 Diagnostic Exercise: Explain a Short Intrusion
Introduction
This lesson is an exercise. You'll be given an alert, the response to it and two sets of records from the days around it, and you'll work out what happened before the lesson tells you. It's diagnostic in the plain sense: how you get on shows which parts of this module you can already use and which are worth another pass. Nothing is scored, and nobody sees what you write.
The method is simple. Each section ends at a point where you have enough to form a view. Stop there, write your view down in a sentence or two, and only then open the next section. The writing matters. It's easy to believe you'd have spotted something once you've been told it, and a sentence you wrote beforehand is the only honest test.
The setting is a mid-sized freight company. The parts of its network that matter here are in the figure.
The estate. Staff work on laptops and desktops, files live on one server, and remote staff connect through a VPN.
Three things about this estate shape the exercise. The company collects Windows security logs from its workstations and servers, so logons and process starts are recorded. A sensor on the internet link records every encrypted connection leaving the network, with its source and the name of the server it went to. And remote staff sign in to the VPN with their ordinary username and password.
The records are generated for this course and modeled field for field on real ones. Treat them as you would a real case: what a record says is a fact, and everything else is yours to justify.
The Alert
Friday morning: what the security product reported, and what an alert of this kind does and does not tell youOn Friday 9 October at 08:31 UTC, the company's endpoint security product raised an alert.
TimeGenerated 2026-10-09T08:31:12.269Z
AlertName Suspicious PowerShell command line
AlertSeverity Medium
CompromisedEntity WS-FIN-07.corp.brennick.example
Tactics Execution, Persistence
Techniques T1059.001, T1053.005
Status Resolved
Its description reads: A PowerShell process started by the Task Scheduler ran an encoded command that downloads and runs code in memory.
In plain terms, Windows has a scheduler that runs programs at set times or events, and something had used it to start PowerShell with a command that was encoded so it couldn't be read at a glance, and that fetched code from elsewhere and ran it without saving a file.
Read the alert for what it establishes. It names a machine, the finance laptop. Through the entities attached to it, it names the account whose session the task ran in. And it names a mechanism: a scheduled task that relaunches a hidden program.
The tactic labels on the alert, Execution and Persistence, say the same thing in the vocabulary of MITRE ATT&CK. Something was being run, and it was set up to keep running.
Now read it for what it leaves out, which is most of what you need. An alert like this reports the moment the product noticed. It doesn't say when the task was created, how the program that created it got onto the laptop, what that program had been doing, or whether this laptop is the only machine involved.
A scheduled task that relaunches a program is something an operator sets up after they're already in. So the alert is evidence that an intrusion was under way, and it's a poor guide to where the intrusion started or how far it had gone.
One more record narrows the first of those questions. Windows logged the creation of a scheduled task on the same laptop, by the same user's account, at 15:01 on Tuesday 6 October. That is three days before the alert. Whatever this was, it had been on the laptop since at least Tuesday afternoon, and the security product said nothing until Friday.
Before you open the next section, write down one sentence: what do you believe the operator had, as of Friday at 08:31? You don't have enough to be sure. Write it anyway, and mark which parts are fact and which are your inference.
The Response
What the security team did in the next forty minutes, as the records show itThe company's security team acted quickly. Here is what the records show of the next forty minutes.
08:31 Alert raised on the finance laptop
09:02 The laptop's last connection to the outside server
09:11 The laptop user's password is reset by a SOC analyst
Alert status set to Resolved
The laptop's last connection to an outside server it had been calling regularly was at 09:02, which is consistent with the machine being cut off from the network at about that time. At 09:11 a security analyst's account reset the laptop user's password; the domain controller recorded it.
TimeGenerated 2026-10-09T09:11:40.136Z
Computer DC01.corp.brennick.example
Activity 4724 - An attempt was made to reset an account's password.
SubjectUserName soc.rpatel
TargetUserName j.okafor
The alert was then marked Resolved.
Judge this response fairly, because it's a competent one and it's what most teams would do. Each action answers something the alert named.
The alert named a machine, and the machine was isolated. It named an account, and the account's password was changed, so that anything the operator had learned of it became useless. The mechanism was on that machine, and isolating the machine dealt with it. Forty minutes from alert to closure is fast.
Speed was the right instinct, and it's worth being clear about that. A machine running an attacker's code should come off the network at once, and a password the attacker may know should be changed. The questions in this exercise are about what should have happened next, alongside those actions.
Notice also how the response was scoped. It took its scope from the alert. The alert said one machine and one account, and the response covered one machine and one account. Nothing in these records shows anyone asking what the operator had been doing since Tuesday, or whether anything else on the network was connected to it.
Here is the second point to stop and write. Using what you have so far, complete three sentences. "The response removed..." "The response did not address..." "Before I'd call this contained, I would want to see..." Be specific in the third: name records, not intentions. Then open the next section, which gives you a structure for exactly this question.
Before You Open the Evidence
Three questions to ask of any containment, and a second opinionThe gap between an alert and an intrusion is the gap between what a security product happened to notice and what an operator actually did. A response scoped to the alert closes the first and may leave the second untouched. Three questions find the difference.
- What did the operator hold when the alert fired? List every machine, account and credential, and go beyond the ones the alert names.
- Which of those did the response remove? Match each action to one thing on the list.
- What would continued access look like, and where would it be recorded? Name the record before you search for it.
The first question is the hard one, and it's the one the Friday response skipped. An operator who has been on a laptop for three days hasn't been idle. They'll have looked around the network. They may have found credentials, reached other machines, or set up another way in. None of that appears in an alert about a scheduled task.
The response covered what the alert named. The size of the outer box is the open question.
The second question is a matching exercise, and it's quick once the first is answered. The third turns worry into work: for each thing the operator might still hold, say what using it would look like in the records, and go and look.
It helps to have someone else generate the list of checks, because the person who closed the alert tends to think of reasons it's closed. An assistant does this well.
An endpoint alert fired on one laptop for a scheduled task running hidden, encoded PowerShell. We isolated the laptop, reset that user's password and closed the alert. Before I agree this is contained, what should I check, and what record would answer each check? Assume I know nothing yet about what else the attacker did.
Your actions match what the alert named: one machine, one account, one task. The open question is what the attacker held that the alert didn't name.
| Check | Record that answers it |
|---|---|
| Did the laptop talk to an outside server, and did any other machine talk to the same one? | Network or proxy logs, searched by destination, across all sources |
| Were other accounts used from the laptop? | Logon and explicit-credential records on the laptop, and logons elsewhere sourced from it |
| When did the task first appear? | The task creation record: the foothold is at least that old |
| Is there remote access that doesn't need the laptop? | VPN and cloud sign-in logs for unusual sources |
If the task is days old, widen every search to start from its creation, not from the alert.
I can't know which of these logs you collect. If one is missing, say so in the ticket and don't write "contained."
You check
An illustrative exchange, written for this lesson: run the prompt yourself and expect different wording. Every row in the table is a search you can run in this exercise, and two of them are the next two sections.
Take two things from that answer. The checks are organized around what the attacker might hold, and each one comes with the record that would answer it, which is the third question applied. And it widens the time window: once you know the task was created on Tuesday, every search should start from Tuesday, since an operator's most important actions usually come soon after they arrive.
If your own list from section 2 was shorter than the assistant's, that's the usual result, and it's the reason to ask.
You now have a method and a list. The next two sections give you records for two of the checks. In each, run the search yourself, read the rows before you read the commentary, and write down what each row establishes.
Evidence One: Monday Morning
Logons on Monday 12 October for three accounts, and one line from the VPN gatewayThree days after the alert was closed, on Monday 12 October, the following happened between 07:30 and 09:30 UTC. This search lists successful logons, failed logons and uses of explicit credentials for three accounts: the laptop user j.okafor, an operations user named o.lindqvist, and the backup service account svc_backup.
SecurityEvent
| where TimeGenerated between (datetime(2026-10-12T07:30:00Z)
.. datetime(2026-10-12T09:30:00Z))
| where EventID in (4624, 4625, 4648)
| where TargetUserName in ("o.lindqvist", "j.okafor", "svc_backup")
| project TimeGenerated, Computer, EventID, TargetUserName, LogonType, IpAddress
| order by TimeGenerated asc
It returns seven rows. Read them in order before going on. To read them you need to know what the event numbers and logon types mean. Event 4624 is a successful logon, written on the machine that was logged on to. Event 4625 is a failed one.
Event 4648 is written when a process supplies a named account's credentials explicitly, on the machine where that process runs. Logon type 3 is a logon from the network, such as opening a file share. Type 10 is Remote Desktop. Type 2 is an interactive logon, with someone at the screen.
You also need to know which machine holds each address. 10.20.10.57 is the finance laptop, 10.20.11.42 is an operations desktop named WS-OPS-12, and 10.20.1.20 is the file server.
One address in the rows isn't on that list. The VPN gateway explains it:
2026-10-12T07:45:03.457Z VPN-GW01
%ASA-4-722051: Group <GP-Staff> User <o.lindqvist> IP <198.51.100.23>
IPv4 Address <10.20.200.81> IPv6 address <::> assigned to session
The gateway recorded a session for a user, from an address on the internet, and assigned that session an address inside the network.
Now do the work. For each row, write what it establishes and nothing more. Then answer four questions in writing. Which rows look like ordinary work, and why? Which account connected from outside the network, and where did it go next?
Who would know j.okafor's old password, and what do three failed attempts from a desktop that isn't theirs suggest? And what is the backup service account doing in a session on an operations desktop at eight in the morning?
Don't open section 6 yet. There's a second set of records first.
Evidence Two: What Was Read
File access on the Finance share across the week, by account and folderThe file server audits access to its Finance share. Each time a file there is opened, Windows writes a record that names the account, the file and the program that opened it. This search counts those records by day, account and folder, and counts the number of separate minutes in which they fell:
SecurityEvent
| where EventID == 4663
| extend Folder = extract(@"Finance\\([^\\]+)", 1, ObjectName)
| summarize Reads = count(), Minutes = dcount(bin(TimeGenerated, 1m))
by Day = bin(TimeGenerated, 1d), SubjectUserName, Folder
| order by Day asc
It returns eight rows. As before, read them yourself first.
Some guidance on reading, without the conclusion. The Minutes column is the useful one. A person reading documents opens a file, works, and opens another some time later, so their reads are spread through the day and the number of minutes is close to the number of reads. A program copying files opens many in a few seconds, so a large number of reads lands in one or two minutes.
The account names need a word as well. A name ending in a dollar sign is a computer's own account, the identity Windows uses for work done by the machine itself, such as its services. People don't sign in as it.
Here is one of the records behind the last row, so you can see what a single entry holds:
TimeGenerated 2026-10-12T09:02:00.067Z
Computer FS01.corp.brennick.example
Activity 4663 - An attempt was made to access an object.
SubjectUserName FS01$
ObjectName D:\Shares\Finance\Pricing\Q4_Rate_Card.xlsx
ProcessName C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Note the wording of the event: an attempt was made to access an object. The record establishes that a program asked to open the file. Whether the contents then left the network is a separate claim, and it would need its own evidence.
Write down your reading of the table. Which rows describe a person doing their job, and what is their daily pattern? Which rows don't fit that pattern, and in what ways: the account, the folder, the speed? On which dates do the unusual rows fall, relative to Friday's alert? And what program opened the files in the record above, running as which account, on which machine?
Then put the two sets of evidence together and write your account of what happened, from Tuesday to Monday, in five or six sentences. Mark each sentence as fact or inference. When you've done that, open the next section and compare.
The Reading
Open this after you have written your own accountHere is what the records support.
Start with Friday. The alert, the isolation and the password reset are facts, and so is the task's creation on Tuesday. The response closed the operator's access through the finance laptop and through that user's password.
Monday shows that the operator had more than that. At 07:45 a VPN session began for o.lindqvist from an address on the internet, and a minute later that account logged on to the operations desktop by Remote Desktop from the address the VPN had assigned. Those are facts. That it was the operator and not the real user is an inference, and what follows makes it a strong one.
Monday morning in order. One step failed, and the operator went round it.
At 07:50, from that desktop, someone tried to log on as j.okafor three times and failed. The password had been changed on Friday. The real j.okafor had logged on to the file server normally at 07:37 from their own laptop, with the new password. So the three failures came from someone who knew only the old one. This is the operator checking whether Friday's route still worked.
It didn't, and they had another. At 08:06 a process in the session on the operations desktop supplied the credentials of svc_backup, and the file server accepted a network logon for that account from that desktop. The backup account's password had not been changed on Friday. Nobody knew the operator had it.
Then the file reads. All week, j.okafor read between 7 and 11 files a day from the Contracts folder, each in a different minute: a person at work. Two rows are different. On Thursday 8 October, the day before the alert, the file server's own account opened 31 files in Contracts within a single minute.
On Monday at 09:02, it opened 5 files in a folder named Pricing, again within a minute, through PowerShell. A program running as the server itself was reading the company's contracts and pricing.
One more fact completes the picture. The file server had been calling the same outside server as the laptop, and it was still doing so on Monday, with a last connection at 16:54.
Tue 6 Oct 15:01 Scheduled task created on the finance laptop
Thu 8 Oct File server's own account opens 31 files in Contracts
Fri 9 Oct 08:31 Alert; laptop isolated; user's password reset
Mon 12 Oct 07:45 VPN session for a second user, then Remote Desktop
07:50 Old password tried three times and refused
08:06 Service account used; the file server accepts the logon
09:02 5 files opened in Pricing
Set out like that, the week reads quite differently from Friday's ticket.
So the account is this. By Thursday the operator controlled the file server as well as the laptop, and had read the contracts. Friday's response removed the laptop. On Monday the operator returned through a second user's VPN access, tested the closed route, used the service account, and read the pricing files.
What isn't established is whether any files left the network, how the operator obtained either the second user's password or the service account's, and how they first got onto the laptop.
What the Response Missed, and Why That Is Normal
The response was right about everything it looked at, and the lesson is in what set its scopeCompare your account with that one, and be exact about the differences. If you concluded that the operator had other access, check which record you based it on. If you named the service account or the VPN, you were using the method. If you were confident on Friday that the intrusion was over, look at which sentence you wrote in section 2, and what in the records supported it.
Then consider the Friday response again. Every action in it was correct. The laptop was compromised, and it was isolated. The user's password was known to the operator, and it was changed. The failure wasn't in what the team did. It was in what decided the scope: the alert. The alert named one machine and one account, and the response went exactly that far.
Three things would have changed the outcome, and each was available on Friday. The task's creation date said the operator had been present for three days, which should have widened every question.
A search of the network sensor for other machines calling the same outside server would have found the file server that morning. And a search for other accounts used from the laptop since Tuesday would have found the service account. None of these needed new tools or new logs. The records existed. Nobody had a reason to look, because the alert had been answered.
A closure note written to this module's standard would have looked like this on Friday:
Contained The operator's session on the finance laptop, and that user's password
Not contained Whatever else the operator held on Friday: not yet listed
Evidence for Last outside connection from the laptop; password reset record
Not checked Other machines calling the same outside server; other accounts
used from the laptop; remote access by other users
Status Open, pending those checks
That note is less satisfying than "Resolved." It's also true, and it would have kept the case open over the weekend with three specific checks against it.
This is the pattern the rest of the course takes apart. An intrusion is a set of decisions made by someone who expects to be noticed and plans for it. An alert shows you one of those decisions. The work is to reconstruct the others: what the operator wanted, what they held, which routes they built, and which of those are still open after you've acted.
Practice
Practice
Write the incident as it stands on Monday the campaign recordsYou've compared your reading with the lesson's. Now write the short account you'd give a manager on Monday at 10:00, using only what the records support.
- Rerun both searches. Run the searches in sections 4 and 5 again and check every time and count you intend to cite.
- State what was attempted and what succeeded. Separate the three failed logons from the logons that worked, and say what each successful one gave the operator.
- State the impact you can support. Say which folders were read, by which account and when. Say plainly what the records don't show about files leaving the network.
- List what is still open. Name every route the operator is known to hold as of Monday morning, and the record that shows each.
- Say what must happen together. List the actions that have to be taken in one step, and what you would search for afterward to verify.
In your own environment, find the last alert that was closed within an hour. Look up how long the thing it reported had been present before the alert fired. If it was more than a day, ask what was searched for in that earlier period. If the answer is nothing, you've found the same gap this exercise is built on.
The final lesson of this module turns the notes you've been writing into a standard form: the evidence and decision record you'll use in every module that follows.