Courseiva
200-201Chapter 5 of 16Objective 3.1

Windows Host Analysis

Ignoring what a Windows computer remembers can leave you completely blind during a security investigation. If you cannot read the digital diary the operating system keeps automatically, you will miss the attacker's every move. For the 200-201 exam, learning to analyse these Windows artefacts is how you move from guessing to knowing what happened on a compromised machine.

12 min read
Intermediate
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

A simple way to picture Windows Host Analysis

The Detective's Noticeboard Analogy

A cluttered detective squad room at 3 AM.

Detective Miller is piecing together a case about a missing laptop. He does not have a single witness. Instead, he has a corkboard full of clues: a torn receipt from a coffee shop, a smudged fingerprint on a door frame, a timestamp from a security camera, and a scribbled note in a suspect's handwriting. Each clue alone tells him very little. The receipt just shows a coffee purchase. The fingerprint is just a smudge. But when Miller pins them all on the board and draws red string between them, patterns emerge. The timestamp on the security camera shows the suspect bought coffee at the exact moment the receipt was printed. The fingerprint matches the suspect's record. The handwriting note contains the laptop's serial number. The corkboard is his analysis tool. He does not memorise every detail of the city. He asks specific questions of the evidence left behind. When did the coffee get bought? Whose fingerprint is that? Where was the camera pointing? These questions are his 'analysis commands'. The answers are his 'artefacts' - pieces of digital evidence. In the same way, a Windows host is a giant city of files, settings, and logs. The IT security analyst is Detective Miller. They do not guess what happened on the computer. They go to the digital corkboard - the Windows operating system's hidden recording tools - and start pulling the red string between the clues. The Event Logs, the Registry, the Prefetch files. These are the receipts, the fingerprints, and the camera timestamps of the digital world. The analyst's job is to ask the right questions of these artefacts to reconstruct the timeline of a cyber attack, just as Miller reconstructs the path of the missing laptop.

How It Actually Works

A Windows host is any computer running the Microsoft Windows operating system. When you analyse a Windows host for security purposes, you are essentially becoming a digital detective. You are looking at the clues the computer leaves behind about everything that has happened on it. These clues are called artefacts. An artefact is a piece of digital evidence, like a log file, a registry key, or a saved file preference. The Windows operating system is designed to be helpful to the user. Every time you open a program, plug in a USB drive, or log in, Windows writes something down for future use. This helps the computer run faster and helps you pick up where you left off. However, for a security analyst, these automatic recordings are a goldmine. They show a historical record of user and system activity, which is exactly what you need when you suspect a security breach.

Let us start with the most important set of artefacts: Windows Event Logs. These are centralised, structured files where Windows records events. An 'event' is any significant occurrence in the system, such as a user logging in, a service starting, or an application crashing. Each event has a unique Event ID number, which is like a code telling you exactly what happened. For example, Event ID 4624 means a successful logon. Event ID 4625 means a failed logon attempt. These Event Logs are split into categories. The most common are the Security log (which tracks logon and logoff events, and permission changes), the System log (which tracks driver failures and system crashes), and the Application log (which tracks errors from installed programs). The logs are stored as files with a .evtx extension on modern Windows versions. To view them, you use the built-in tool called Event Viewer. An analyst will filter these logs to look for patterns, like hundreds of failed logon attempts (Event ID 4625) in a short period. That pattern is a classic sign of a password-guessing attack.

The second critical set of artefacts lives in the Windows Registry. The Registry is a huge, hierarchical database that stores configuration settings for Windows and for many programs. It is like the computer's brain. It remembers what wallpaper you chose, what programs start automatically when you boot up, and what file types are associated with which applications. For security analysis, specific Registry key locations are vital. One is the 'Run' key. Programs listed here start automatically when any user logs in. Attackers love to add their malicious programs to this key so that their malware runs every time the computer restarts. An analyst checks this key to find suspicious startup programs. Another important area is the 'UserAssist' key, which tracks the programs a user has recently run. This can show you exactly what executable files a user launched, even if they tried to hide their tracks.

Thirdly, we have Prefetch files. These are files Windows creates to speed up the loading of programs you use frequently. Every time you open a program, Windows creates a .pf file containing information about what files the program accessed during startup. The name of the Prefetch file includes the name of the program and a hash of the program's path. An attacker might rename a malicious file to 'svchost.exe' to blend in, but the Prefetch file will show the actual path from which that svchost.exe was run. If the path is C:\\Users\\Hacker\\Downloads\\svchost.exe, that is highly suspicious. Prefetch files are excellent for finding evidence of malware execution, especially if the attacker has tried to delete the original program.

Fourthly, we have the Windows Task Scheduler. This tool lets users and programs schedule tasks to run at specific times or when specific events happen. Attackers use it to schedule malware to run at a specific time, often outside of business hours to avoid detection. They can also use it to maintain 'persistence', which means ensuring their malware survives a computer restart. An analyst will examine the list of scheduled tasks to find any that look out of place, such as a task named 'WindowsUpdate' that points to a script in a user's Temp folder.

Finally, there are MFT (Master File Table) records and $UsnJrnl (Update Sequence Number Journal). These are low-level filesystem artefacts. The MFT is like a database of every single file and folder on an NTFS drive. It records the name, size, timestamps (created, modified, accessed), and the location on the disk for each file. The $UsnJrnl logs every change made to files on the volume. These artefacts can reveal when a file was created, deleted, or renamed, even if the user emptied the Recycle Bin. This is how you detect an attacker who deleted their tools or tried to cover their tracks by renaming malicious files.

Why do these artefacts exist? They were not designed for security. Event Logs exist to help administrators troubleshoot problems. The Registry exists to organise settings. Prefetch exists to make loading programs faster. However, security analysts repurpose these tools to reconstruct events after a breach. This is called post-incident forensics. Understanding these Windows artefacts replaces the older, less effective method of manually checking every file on the computer. It is a targeted, efficient way to find evidence.

This flowchart shows the six primary Windows artefacts an analyst collects and the specific forensic evidence each provides during a host analysis.

Walk-Through

1

Identify the Suspicious Activity

Start with a trigger that indicates a potential security incident. This could be a SIEM alert, a user report, or an unusual system behaviour. For example, a user reports that their computer is running slowly or they see programs opening without them clicking. This step sets the scope and focus for your analysis. Without a trigger, you are looking for a needle in a haystack.

2

Collect the Security Event Logs

Open the Event Viewer (eventvwr.msc) on the suspect Windows host. Navigate to Windows Logs and then Security. Apply filters for Event IDs relevant to the trigger, such as 4625 (failed logons) if you suspect a brute force attack or 4688 (process creation) to see all programs started. This gives you a high-level timeline of authentication and process activity, highlighting the initial point of compromise.

3

Check for Persistence Mechanisms

Examine the Registry for unauthorised startup programs. Focus on the 'Run' keys under HKCU\Software\Microsoft\Windows\CurrentVersion\Run and HKLM\Software\Microsoft\Windows\CurrentVersion\Run. Look for entries pointing to suspicious file paths like Temp directories or user folders. Also, check the Task Scheduler for new tasks that run on logon or at repeating intervals. This step reveals how the attacker plans to stay on the system.

4

Analyse Execution Evidence

Navigate to C:\Windows\Prefetch and sort the .pf files by last modified date. Look for files with unusual names or paths that match the suspicious program names found in the Registry. Examine the Prefetch file's metadata using a tool like PECmd to see the full path of the executed file. This confirms that the malicious program actually ran, not just was scheduled.

5

Reconstruct the File Timeline

Use a forensic tool or built-in utility (like MFT2CSV) to parse the Master File Table and $UsnJrnl. Look for file creations and deletions around the time of the incident. Pay attention to files with suspicious extensions (.exe, .ps1, .zip) or files created in unexpected locations. This final step uncovers what files the attacker downloaded, used, or tried to hide, providing a complete picture of the data breach.

What This Looks Like on the Job

You are a junior security analyst at a mid-sized company. You get an alert from your company's security information and event management (SIEM) system. The alert says a user account belonging to 'Sarah from Marketing' was locked out because of too many failed passwords at 3:00 AM on a Sunday. Sarah is on holiday and was not working. You must investigate. This is a classic scenario where Windows Host Analysis is essential.

You start by remoting into Sarah's Windows workstation. Your manager tells you to collect artefacts. You do not just open random files. You have a plan. Your first step is to examine the Windows Security Event Log. You open Event Viewer on the machine. You navigate to Windows Logs and then Security. You apply a filter for Event ID 4625 (failed logon attempts). The log shows 500 failed logon attempts between 2:55 AM and 3:00 AM. Each attempt used a different password for the username 'SMarketing'. This confirms a brute-force password attack. However, you also see one Event ID 4624 (successful logon) at 3:01 AM using the correct password. The source network address is 192.168.1.88, which you do not recognise as a company IP. An attacker has successfully logged in.

Now you need to find out what the attacker did after getting in. You look at the Windows Registry, specifically the 'Run' key at HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run. You find a new entry called 'SafeSoftware' pointing to a file named 'svchost.exe' in C:\\Users\\SMarketing\\AppData\\Local\\Temp. This is a classic persistence technique. The attacker has planted a backdoor that will run every time Sarah logs in. You also check the Prefetch files. You sort the C:\\Windows\\Prefetch folder by date modified. You see a prefetch file for 'SVCHOST.EXE-32874.pf' that was just created at 3:02 AM. The original executable path inside that prefetch file likely points to the Temp folder, confirming the malicious executable ran.

Your next question is: what did the attacker access? You check the UserAssist key in the Registry, which logs GUI-based program launches. You see entries for 'cmd.exe', 'powershell.exe', and 'whoami.exe'. The attacker ran a command shell. You then check the Task Scheduler. You find a scheduled task named 'OneDriveSync' that is set to run every 10 minutes. Its action launches a PowerShell command that connects to an IP address. This is a command and control (C2) beacon, sending data back to the attacker's server.

Finally, you need to see if any files were stolen. You use a forensic tool to parse the $UsnJrnl on the C: drive. You find records showing that a file named 'Customer_List.xlsx' was copied from a SharePoint sync folder to a file named 'backup.zip' less than an hour after the breach. The file was then deleted, but the record of its creation remains. You have now reconstructed the entire attack timeline: brute force login, persistence via Registry, execution of malware via Prefetch, lateral movement via command line, and data exfiltration via scheduled task. Your report, built entirely from Windows artefacts, allows the incident response team to contain the threat and start legal proceedings. - Key actions you took: Filter the Security Log by Event ID 4625 and 4624. - Key actions you took: Check the Registry Run keys for suspicious startup programs. - Key actions you taken: Examine Prefetch files for evidence of malicious program execution. - Key actions you taken: Review the Task Scheduler for unauthorised scheduled tasks. - Key actions you taken: Analyse the $UsnJrnl to detect deleted or renamed files.

How 200-201 Actually Tests This

The 200-201 exam expects you to know exactly which Windows artefact answers which question. They will test your ability to match a specific forensic need to the correct artefact. You will not be asked to memorise every Event ID. Instead, you must know the purpose of each major artefact and the type of evidence it provides.

For the exam, the most frequently tested artefacts are Windows Event Logs, the Registry, Prefetch files, and the Task Scheduler. You need to memorise the exact file locations for these artefacts on a typical Windows system (e.g., C:\\Windows\\System32\\winevt\\Logs for .evtx files, C:\\Windows\\Prefetch for .pf files). The exam loves to set traps where they describe a scenario and ask you to choose the best artefact. A common trap is to describe a scenario where a user downloaded a malicious .exe and ask what artefact would show when it was first executed. Many students incorrectly answer 'Event Logs' when the best answer is 'Prefetch files', because Prefetch files track every execution of an executable, whereas an Event Log might not record application starts unless auditing is explicitly enabled.

Another trap is the distinction between UserAssist data in the Registry and Prefetch. UserAssist tracks GUI program launches from the Start Menu or Desktop. Prefetch tracks all executable runs, even command-line ones. The exam will give you a scenario involving a command-line tool like 'net use' or 'whoami'. The correct artefact is often Prefetch, because UserAssist might not capture command-line launches. You also must know that Prefetch files have a maximum number (128) and that system files (like System32 files) have their own Prefetch rules.

The exam also tests Registry keys for persistence. You must memorise at least four common persistence Registry locations: HKCU\\...\\Run, HKLM\\...\\Run, HKCU\\...\\RunOnce, and HKLM\\...\\RunOnce. The trap here is that the exam might ask which key is used to run a program only once, at the next login. The answer is RunOnce. They will also test that 'Run' keys run every time a user logs in, while 'RunOnce' keys run only once.

For Event Logs, the exam focuses on the Security log. You need to know Event IDs for key activities: 4624 (successful logon), 4625 (failed logon), 4634 (logoff), 4648 (logon using explicit credentials), 4672 (special privileges assigned to new logon), 4688 (a new process has been created), and 4698 (a scheduled task was created). You do not need to memorise every ID, but these are the most common. A common exam question will give you an Event ID and ask you to identify the action. Another trap is confusing the source of an event: the Security log is for authentication and access, while the System log is for driver and service issues.

The exam also covers the File Allocation Table and NTFS artefacts. You need to understand that $MFT (Master File Table) stores metadata for each file, including four timestamps: Modified, Access, Creation, and Entry Modified (MACE). The exam will test which timestamp changes when a file is just opened (Access time) versus when its content is changed (Modified time). The trap here is that modern Windows versions disable Access time updates by default to improve performance, so you must know that Access time is not always reliable.

Finally, the exam tests your ability to read a timeline of events. They will present a list of artefacts and ask you to sequence them. For example, 'The attacker downloaded a file, then executed it, then deleted it.' You must know which artefact proves the download (MFT for creation), which proves execution (Prefetch), and which proves deletion ($UsnJrnl or MFT with a 'Deleted' flag). - Key exam topics: Event IDs 4624, 4625, 4688, 4698. - Key exam topics: Registry Run keys and RunOnce keys. - Key exam topics: Prefetch file location and what it records. - Key exam topics: Task Scheduler for persistence and scheduled execution. - Key exam topics: MFT timestamps (MACE) and the $UsnJrnl journal. - Trap pattern: Choosing Event Logs when Prefetch is the correct artefact for file execution. - Trap pattern: Confusing UserAssist (GUI launches) with Prefetch (all executable runs). - Trap pattern: Thinking 'Run' keys always run at boot; they run at user logon. - Key definition to memorise: Persistence - techniques an attacker uses to maintain access to a system across reboots. - Key definition to memorise: Artefact - a piece of digital evidence left behind by the operating system or user activity. - Key definition to memorise: $UsnJrnl - a log of all changes made to files on an NTFS volume.

Key Takeaways

Windows Event Logs, especially the Security log, record authentication events like logon successes (Event ID 4624) and failures (Event ID 4625).

The Windows Registry stores system and application settings, and the 'Run' key is a common location where attackers place malware to achieve persistence.

Prefetch files (.pf) contain a record of every executable file run on the system, including its path and the first time it was executed, making them vital for identifying malware execution.

The Task Scheduler can be used by attackers to schedule malicious code execution at specific times or events, allowing them to maintain access without constant activity.

The Master File Table (MFT) and the $UsnJrnl journal provide detailed records of file creation, modification, and deletion even after the Recycle Bin is emptied.

UserAssist keys in the Registry track GUI-based program launches, while Prefetch tracks all executable runs including command-line programs.

Windows artefacts are not designed for security analysis but are repurposed by analysts to reconstruct incident timelines after a breach.

Knowing the exact file paths for artefacts (e.g., C:\Windows\Prefetch for .pf files) is critical for exam questions about evidence collection.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Security Event Log

Records authentication events like logon and logoff (Event IDs 4624, 4625).

Tracks privilege use and security policy changes (Event ID 4672).

Used primarily for incident detection and investigation of unauthorised access.

System Event Log

Records system-level events like driver failures and service start/stop (Event IDs 6005, 6006).

Tracks hardware errors and system crashes (Event ID 1001).

Used primarily for troubleshooting system stability and hardware issues.

Prefetch Files (.pf)

Records every executable file run, including command-line tools (e.g., cmd.exe).

Stores the first time the program was run and the last run time.

Located in C:\Windows\Prefetch folder.

UserAssist Registry Keys

Records program launches from the Start Menu, Desktop, or Taskbar (GUI-based).

Stores a count of how many times a program was launched and the last launch time.

Located in the Registry under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist.

HKCU\...\Run (Persistence)

Runs the specified program only when the currently logged-on user logs in.

Specific to a single user account (HKEY_CURRENT_USER).

Less likely to be detected by standard scanning tools compared to HKLM.

HKLM\...\Run (Persistence)

Runs the specified program when any user logs in to the machine.

Affects all users on the system (HKEY_LOCAL_MACHINE).

Often targeted by security software for scanning due to its system-wide impact.

Watch Out for These

Mistake

Windows Event Logs record every single action a user takes, like every mouse click and keystroke.

Correct

Event Logs only record specific audited events, like logons, service starts, and process creations. They do not record general activity like mouse movements or web browsing history unless specifically enabled via advanced audit policies.

Movies and TV shows often portray computers as recording everything, so beginners assume Event Logs are a full video replay of the user's actions, when in reality they are a limited, configurable log.

Mistake

The Windows Registry is only used by the operating system and cannot be modified by users or attackers.

Correct

The Registry is a writable database that both the OS and applications constantly modify. Attackers regularly add or modify Registry keys to gain persistence, disable security software, or change system behaviour.

The term 'Registry' sounds static and official, like a government database. Beginners think of it as a read-only manual, not a dynamic, mutable storage area that is a prime target for exploitation.

Mistake

Deleting a file from the Recycle Bin permanently erases all evidence of that file from the Windows system.

Correct

Deleting a file from the Recycle Bin only removes the file's reference from the directory. The actual data remains on the disk until overwritten. The MFT still contains the file's metadata, and the $UsnJrnl records the deletion in its journal, making it recoverable with forensic tools.

The word 'delete' implies permanent removal in everyday language. Beginners do not understand the difference between deleting a file reference and erasing the actual data on the storage medium.

Mistake

If an attacker runs a program from a CD or USB drive, no evidence is left behind on the Windows host.

Correct

Windows often creates Prefetch files for executables run from removable media, and the $UsnJrnl records the creation of the Prefetch file. Additionally, the System Event Log might log the mounting of the USB device, and the Registry stores records of USB devices that have been connected.

Beginners think removable media is 'invisible' to the operating system, but Windows logs many interactions with external devices to ensure proper driver loading and performance optimisation.

Mistake

The Task Scheduler is a legitimate administrative tool that attackers never use.

Correct

Task Scheduler is one of the most common tools for attackers to establish persistence and execute code. They create tasks that run at specific times (e.g., during lunch breaks) or on specific events (e.g., user logon) to avoid detection.

The name 'Scheduler' sounds boring and administrative. Beginners associate malware with running constantly, not with the legitimate-looking scheduled tasks that hide malicious activity in plain sight.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between a Windows Event Log and a Windows Audit Log?

They are the same thing. 'Event Log' is the general term for the logs Windows maintains, and 'Audit Log' specifically refers to the Security log that records audited actions like logon attempts and file access, if such auditing is enabled.

Can I view Windows Event Logs from a computer that is turned off?

Yes. The .evtx log files are stored on the hard drive at C:\Windows\System32\winevt\Logs. You can remove the hard drive, connect it to a forensic workstation, and analyse the logs using tools like EvtxExplorer or even import them into a SIEM.

Does emptying the Recycle Bin delete the evidence from the MFT?

No. Emptying the Recycle Bin removes the file's directory entry but does not erase its metadata record in the Master File Table. The MFT still contains the file's timestamps, size, and a flag indicating it was deleted, which forensic tools can recover.

How can I tell if a scheduled task was created by a legitimate user or an attacker?

Look at the task's author, description, and the action it performs. Legitimate tasks usually have a company name or a system account as author. Attacker-created tasks often have no author, a vague description like 'Windows Update', or a command that calls a PowerShell script from a temp folder or connects to an external IP address.

What is the 128 Prefetch file limit and why does it matter for forensics?

Windows only stores up to 128 Prefetch files. When the folder exceeds this limit, Windows deletes the oldest files to make room. This means if the malicious program was run a long time ago, its Prefetch file may have been overwritten, so you cannot rely on Prefetch for very old evidence.

Are the Windows Registry and the Windows ".reg" files the same thing?

No. The Registry is a live database of settings stored in several hive files (like NTUSER.DAT) on the system drive. A .reg file is a text-based export of a portion of the Registry that can be used to import settings into the Registry on another computer. It is a backup or deployment tool, not the live database.

Terms Worth Knowing

Keep going

You've finished Windows Host Analysis. Continue through the 200-201 study guide to build a complete picture of the exam.

Done with this chapter?