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.4 Behavior in Records
Introduction
Attacks aren't recorded as attacks. They're recorded as ordinary events: a process started, an account signed in, a file was written, a connection was made. The same events are written for every legitimate action too. Recognizing attacker behavior in records means knowing what a technique looks like at the level of individual events, and knowing which surrounding details separate it from the same action done for a legitimate reason.
This lesson takes two process starts from a public research recording, names the behavior using MITRE ATT&CK, and then asks the harder question: what in the records would tell an analyst whether this was an attack or an administrator doing their job? Module 4 triages whole queues of alerts this way, so the method starts here, on one small chain of processes.
You don't need to know ATT&CK in advance. Section 3 introduces the parts this lesson uses, and the course returns to it often enough that the structure becomes familiar quickly.
Two Process Starts
What the workstation recorded, in the order it happenedOn WORKSTATION5, in the same test domain as lessons 0.2 and 0.3, two programs started within a fraction of a second of each other. Sysmon recorded both. Here they are as a device timeline would list them:
WORKSTATION5.theshire.local
The two process starts in a device timeline layout, read from Sysmon event 1; the technique tag is this lesson's mapping
The first is net.exe, run with the argument user, as the account THESHIRE\pgustavo. The second is net1.exe, started by net.exe a few milliseconds later with the same argument. That second process is ordinary: net.exe commonly starts net1.exe to carry out the request, so the pair often appears together, as it does here.
The process chain, parent to child, as Sysmon recorded it
Microsoft's documentation describes net user as a command that adds or modifies user accounts or displays account information. Run without further arguments, as here, it lists the user accounts on the computer. That's all these two records show happened: something asked the workstation for its list of accounts.
The technique tag on the first row is this lesson's mapping, not something the recording contains. Products such as Microsoft Defender add tags like it automatically to the events they recognize. Section 3 explains where it comes from, and section 6 explains why a tag is the start of triage rather than the end of it.
Notice how little the event itself says. There's no field reading "attacker", "discovery" or "suspicious". There's a program, an argument, a user, a parent and a time. Everything an analyst concludes is built on fields like those, which is why reading them carefully matters more than knowing any list of attack names.
The recording comes from the OTRF Security-Datasets project, which records known techniques in a test lab so defenders can study what they leave behind. Its file name says which tool ran the command. A real investigation has no such label, and this lesson deliberately reads the records as you'd meet them, without it. Everything said here could be said from the fields alone.
The Same Command, Two Stories
Why the records of an attack and an administrator can look identicalListing a machine's accounts is something administrators do all the time. A helpdesk engineer checking whether a local account exists, a script auditing machines for unexpected accounts, an administrator tidying up after a staff change: all of them can run net user and produce exactly these two records.
It's also one of the first things an attacker does after gaining access to a machine. They need to know which accounts exist, which are administrators and which might be worth taking over next. The command is the same. The records it produces are the same.
The same command, two stories, and the context fields that separate them
The difference is in the context, not in the event. Who started the command, and from what? Was it typed by a person in an open console, or started by a script that hid its window and encoded its instructions? Did it happen during working hours with a ticket open, or at night with nothing scheduled? What happened just before and just after?
That's the central lesson of alert triage. Most detections fire on behaviors that legitimate users also perform. An analyst who decides on the event alone either flags every administrator as an attacker or misses every attacker who uses ordinary tools, which is most of them. The decision belongs to the context.
It's tempting to solve this by building a list of commands only attackers use. The list would be short and soon out of date. Attackers prefer tools the system already has, precisely because their use blends in with administration. Defenders sometimes call this living off the land. It's why the course teaches context-reading rather than command lists, and why the same habit recurs in every module from here on.
For this recording, the right-hand column is filled in from the records. The parent was a PowerShell process started with an encoded command. The time was 23:26 UTC. What came before and after isn't in this file, and an analyst would need it before deciding anything. Section 4 looks closely at the parent, because it's the most telling field these records contain.
Naming the Behavior with ATT&CK
Tactic, technique, procedure, and the analytic that looks for itAnalysts need a shared vocabulary for behavior, so that "account discovery" means the same thing to everyone reading a case. MITRE ATT&CK provides it: a public catalog of adversary behavior, organized by what the adversary is trying to achieve and how they do it.
How ATT&CK names the behavior in these records, from goal down to the analytic that looks for it
The tactic is the goal at this step: Discovery, learning about the environment. The technique is how: Account Discovery, T1087. Its sub-technique, Local Account, T1087.001, is the variant here: listing the accounts on one machine rather than in the domain. ATT&CK's page for it describes adversaries listing local accounts to work out which exist and plan what to do next, and gives net user and net localgroup as the Windows commands.
The page also links a detection analytic, AN0846, describing enumeration of local users with net.exe, WMI or PowerShell. Analytics like this are what detection rules are built from. A rule that fires whenever net.exe runs with the user argument would have fired on this recording, and on every administrator who ran the same command that day.
Mapping a record to a technique is useful because it connects one event to everything known about the behavior: which adversaries use it, what usually comes before and after, and which records reveal it. Module 4 uses that knowledge to ask what to look for next. If this is discovery, what would the next step look like, and is it in the records?
Mapping is a description, though, not a verdict. Saying "this event matches T1087.001" is a fact about the event. Saying "an adversary performed T1087.001" is a claim about intent, and it needs evidence the event doesn't hold.
ATT&CK is also a good way to plan what to look for. Discovery usually comes after an adversary has gained access and before they move further. So if this were an attack, the records before it should show some way in, and the records after it some next step. That tells an analyst which records to request: the sign-ins before 23:26 and the connections after it.
Use the IDs in notes. "T1087.001" is unambiguous to any analyst and any tool, while "account enumeration" might mean the local accounts, the domain's accounts or the cloud directory's. Check the ID against ATT&CK's own page when you write it: techniques are revised and sub-techniques added over time, and a remembered number can be out of date.
The Context That Decides
The parent process, its command line, the user and the integrity levelThe parent's -enc value decoded: base64 of UTF-16 text, which turns out to be a script that switches logging off
The figure shows where this section ends: net.exe's parent, a PowerShell command whose argument decodes to a script that switches logging off. Getting there takes the context fields, one at a time. Here's net.exe's process start again, showing only the fields that carry context:
One process start: the command is ordinary; the context around it is the evidence
The command line is ordinary: list the accounts. The user is a domain account, and the integrity level is High, meaning the process ran with administrative rights. That's worth noting but not decisive, since administrators run elevated consoles all the time.
The parent is where this recording stops looking like an administrator. It's PowerShell, started with four short options: -noP, -sta, -w 1 and -enc. Microsoft's documentation for PowerShell's command line explains them. -NoProfile skips the user's profile. -Sta sets the threading model, the default since PowerShell 3.0. -WindowStyle sets the window's style. And -EncodedCommand takes the whole command as a Base64 string of UTF-16LE text, so nothing readable appears on the command line. The documentation says parameters are case-insensitive, and unambiguous short forms such as -enc are widely used in practice.
An encoded command can be decoded, and reading it is often the quickest way to understand a process:
$ jq -r 'select(.EventID == 1 and (.Image | endswith("\\net.exe")))
| .ParentCommandLine' net-local-users.json | awk '{print $NF}' | base64 -d \
| iconv -f UTF-16LE -t UTF-8 | head -c 80; echo
IF($PSVeRsiONTABLe.PSVerSION.MAJoR -GE 3){$C322=[ref].AssEMBlY.GetTypE('System.M
The first characters already show a script that inspects PowerShell's own internals rather than doing an administrator's routine task. Module 5 teaches how to read such scripts safely and what to look for. For now, the point is the method: the event that matched the technique was ordinary, and the event that explains it was its parent.
Two of the four options deserve a closer look. Skipping the profile is common in scripts, because a profile can slow startup or change behavior. Setting the window style is how a script controls whether a window appears at all. Neither is suspicious alone. Together with an encoded command, run from no visible console, at night, they describe a process designed not to be watched, and that combination is what makes an analyst look closer.
Encoded commands have legitimate uses too. Management tools sometimes use them to pass complex commands safely. The decoded content is what tells you which kind you're looking at, which is why decoding is a routine triage step rather than a sign that something is wrong.
Decoding should be done as text, as here, never by running the command. The decoded script is evidence to read. Pasting it into a PowerShell window to see what it does would run it, on your machine, with your rights. Module 5 covers safe handling in detail.
Sequences, Not Single Events
What came before and after is usually what settles the questionThe card puts the whole sequence in one place: how the launcher arrived, what it was, and what it did, with every value taken from the file. Single events rarely decide a case. Sequences do. An administrator's net user tends to sit in a sequence that makes sense: a sign-in to a management console, a ticket, the command, and then the change the ticket asked for. An attacker's tends to sit in a different one: an unusual process start, a hidden or encoded PowerShell, a burst of discovery commands, and then an attempt to move somewhere else.
These two records are a short sequence of their own: PowerShell started net.exe, and net.exe started net1.exe. Sysmon links them reliably. Each process start carries a ProcessGuid, and each child records its parent's ProcessGuid, so the chain can be followed upward even when Windows reuses process IDs. Here, net1.exe's ParentProcessGuid is net.exe's ProcessGuid, which confirms the order.
$ jq 'select(.EventID == 1 and .Hostname == "WORKSTATION5.theshire.local")
| {Image, ProcessGuid, ParentProcessGuid}' net-local-users.json
{
"Image": "C:\\Windows\\System32\\net.exe",
"ProcessGuid": "{b34bc01c-369c-5f69-7901-000000000900}",
"ParentProcessGuid": "{b34bc01c-2f95-5f69-5f01-000000000900}"
}
{
"Image": "C:\\Windows\\System32\\net1.exe",
"ProcessGuid": "{b34bc01c-369c-5f69-7a01-000000000900}",
"ParentProcessGuid": "{b34bc01c-369c-5f69-7901-000000000900}"
}
$ grep -c '{b34bc01c-2f95-5f69-5f01-000000000900}' net-local-users.json
1
The two objects show the link: net1.exe's ParentProcessGuid is net.exe's own ProcessGuid. The count shows the PowerShell parent's GUID appearing on 1 line of the file, net.exe's own record, where it's the parent. PowerShell's own process start, which would carry that GUID as its ProcessGuid, isn't there.
The next step up the chain is the PowerShell process itself. Its own process start, if it was recorded, would show what started it: a user opening a console, a scheduled task, an Office document, a remote management service. That's the record an analyst would look for next. In this file it isn't present, because the recording began after PowerShell was already running.
That gap is typical, and it's worth saying plainly in notes. "The parent process start is not in the records collected" is a finding. It tells the next analyst where to look, and it stops anyone treating the absence of a suspicious parent as evidence that there wasn't one.
Module 4 builds this habit into triage: for every alert, follow the chain up to something you recognize, and down to whatever happened next, before deciding. Most of the time the chain ends somewhere ordinary within two or three steps. When it doesn't, that's the case worth escalating.
Process chains have a natural top. On Windows, interactive sessions usually begin with explorer.exe, services with services.exe, and scheduled tasks with the task scheduler's own process. A chain that reaches one of those, through steps that make sense, is usually explained. A chain that reaches a document viewer, a browser, or a remote management service before the PowerShell appears is a different story, and it's often the most important single finding in a case.
Writing the Triage Note
Behavior named, context listed, and the decision left to the evidenceAt the end of a first look, an analyst writes down what they found. For these records, a good note maps the behavior and lists the context without deciding more than the records support:
A triage note that maps the behavior without deciding more than the records show: an example written for this lesson
The note names the technique, because that helps every later reader. It states the context the records hold: the parent, its options and the elevated integrity level. It says what isn't shown. And it says what to look for next. It doesn't say "attack" or "malicious", because nothing in these records establishes either. It also doesn't say "benign", for the same reason.
That restraint isn't indecision. It's what makes the note useful. A reader who trusts the note knows exactly what was observed and what remains open, and can act on that. A note that says "attacker enumerated accounts" when the records show only a command run will be repeated by everyone who reads it, and the case will be built on a claim nobody checked.
Module 4 adds the final step: a disposition of malicious, legitimate or inconclusive, with the record that decides it. Inconclusive is a legitimate answer when the deciding records aren't available. Writing it, and saying which records would settle it, is better than guessing in either direction.
Writing inconclusive also protects the next analyst. If the case later turns out to be serious, the note shows exactly what was known at the time and what was missing. If it turns out to be routine, the note shows the records that would have settled it sooner, which is useful to whoever decides what to collect in future. Either way, the note did its job: it recorded what was known, without guessing, in a form the next person could act on.
The same note shape works for any behavior you meet: what was observed, which technique it matches, what context the records hold, what they don't, and what to look at next. Keep it short. Its job is to let someone else continue from where you stopped.
Notice the note's timestamps too. The observed time is from the record, in UTC. The note's own time is when the analyst wrote it. Keeping the two apart, as lesson 1.8 describes for case notes, means a reader can always tell when something happened from when someone noticed it.
When an Assistant Calls It an Attack
A correct mapping, an unsupported verdict and two disproportionate actionsAssistants know ATT&CK well, and asked about a command they'll usually map it correctly. Here's one asked about net user with no other context.
Sysmon shows "net.exe user" run by THESHIRE\pgustavo on WORKSTATION5. Is this an attack?
Yes, this is a strong indicator of compromise. Running net user is a classic attacker technique (MITRE ATT&CK T1087.001) used to enumerate accounts after gaining access. You should isolate WORKSTATION5 and reset pgustavo's password.
Check before you use it
The technique mapping is right and the conclusion is not supported by what it was given. net user is also an everyday administration command, and the question carried no context: not the parent, not the time, not what came before. Mapping a record to a technique describes the behavior. It does not decide that the behavior was malicious.
An illustrative exchange, written for this lesson: an assistant you ask will word it differently.
The mapping is right, and it's useful: T1087.001 is the technique, and knowing that points to what an adversary might do next. The verdict isn't supported. The assistant was given one command, a user and a machine. It wasn't given the parent, the time, or anything that came before or after, and those are what decide the case. Its recommended actions, isolating the machine and resetting the password, follow from a conclusion the evidence doesn't yet support.
The pattern is common because technique names carry weight. "A classic attacker technique" sounds like a finding. But almost every discovery technique is also an administrator's routine task, and ATT&CK says so in many of its pages. A mapping tells you what the behavior is. Only the context tells you who did it and why.
Use an assistant for what it does well here: naming the technique, explaining what attackers usually do next, and suggesting which records would show it. Then gather those records yourself, and decide from them. If you share the context with the assistant, its answer will usually become far more careful, which is itself a useful check on your own reasoning.
The proportionality point applies to any recommendation, from any source. Isolating a workstation and resetting a password interrupt someone's work. Before either, the case needs records that show the account or machine is in someone else's hands. Module 1 covers who decides on such actions. Module 4 covers how to triage quickly enough that the decision can be made on evidence rather than on a technique's name.
One more useful prompt: ask the assistant what a legitimate explanation for the same records would look like. A good answer gives you the right-hand column of section 2, and a list of the records that would tell the two explanations apart. That's exactly the shape of the next step in a real case.
Practice
Practice
Map a record to behavior, and say what decides it the process recordsUse net1.exe's record from section 1. Its fields are the same as net.exe's, with net.exe as its parent.
Work from the fields shown in this lesson, which hold everything the exercise needs to answer it well. You don't need any tool installed, and the point is to practice the reasoning, not the software.
- Take the record. Use net1.exe's process start from section 1, or a process start of your own from a lab machine.
- Name the behavior. Give the ATT&CK tactic and technique, with the page you checked it against.
- List the context. Write the parent, the command line, the user, the integrity level and the time, from the record.
- Say what decides it. Write the records you would need before calling it malicious, legitimate or inconclusive.
Keep the note somewhere you'll find it again. Lesson 0.5 opens these same Windows events in Event Viewer, and shows how the two logs that recorded them differ.