Live lesson · progress saved to your account

Windows Fundamentals

The Windows file system, users and UAC, the registry, services and tasks, Event Viewer and PowerShell, plus a first look at domains. Ends with an investigation of a compromised HR laptop.

beginner100 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Mission briefing: the HR laptop

INCIDENT · GODAVARI-IR-1127 Godavari Textiles (a fictional company in Surat) has 40 staff. On Thursday night, the HR laptop HR-LT-07 showed a black window that "flashed and disappeared", and since then the fan never stops. The HR executive, Neha, says she was at home and the laptop was asleep in the office.

To let staff work from home during the festival season, the IT vendor had forwarded port 3389 (Remote Desktop) on the office router to this laptop.

You've been given remote, read-only access to HR-LT-07 as the user analyst. More than 70% of office desktops run Windows, and most ransomware is written for it. Whether you end up in a SOC, in forensics or in red teaming, you need to know where Windows keeps its secrets.

Your questions:

  1. How did the attacker get in?
  2. What account did they create?
  3. How will their malware survive a reboot?

By the end of this room you'll answer all three from the laptop's own logs, registry and services.

Answer the questions

+10 XP

+10 XP

TASK 02Windows architecture and the file system

Windows stores files on NTFS (New Technology File System), which supports permissions on every file and folder, encryption (EFS/BitLocker), and a journal for recovery.

Explore the important folders, then decide which processes are running from places they shouldn't:

Where Windows keeps things 0/0 correct

Per-user app data. Hidden by default and writable without admin, so malware loves it.

Process running from… legit or suspicious?

C:\Windows\System32\svchost.exe
C:\Users\Public\svchost.exe
C:\Program Files\Google\Chrome\Application\chrome.exe
C:\Windows\lsass.exe
C:\Users\neha.p\AppData\Local\Microsoft\Teams\current\Teams.exe
C:\Users\Public\Libraries\wuhelper.exe
FolderWhat lives there
C:\Windows\System32Core system programs and drivers
C:\Program Files / (x86)Installed 64-bit / 32-bit software
C:\Users\<name>Each user's profile; NTUSER.DAT holds their registry hive
…\AppData\Roaming / LocalPer-user app data, hidden and writable without admin
C:\Users\PublicShared by everyone, writable by everyone
C:\Windows\TempTemporary files

Editions matter for security: Home lacks BitLocker, Group Policy and domain join; Pro and Enterprise have them. An office laptop on Home edition is already a finding.

Rule of thumb: famous Windows process names (svchost.exe, lsass.exe, csrss.exe) only ever run from System32. The same name anywhere else is malware in disguise.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 03Users, groups and UAC

Accounts

  • Local accounts live on one PC, in the SAM (Security Account Manager) database, which stores their password hashes in C:\Windows\System32\config\SAM.
  • Domain accounts live on a domain controller (Task 8).
  • Built-in accounts: Administrator (disabled by default on modern Windows), Guest, and SYSTEM, the operating system itself, more powerful than any admin.

Groups

Permissions are given to groups, and users inherit them. The one that matters most: Administrators. A member can install anything, read anything, turn off antivirus and create new accounts.

UAC (User Account Control)

Even admins don't run with full power all the time. Windows gives them a filtered token, and asks before anything gets the full one. Try it in each mode:

User Account Control Run the installer

Desktop · HR-LT-07 · signed in as neha.p

Process token:filtered (Medium integrity)

On HR-LT-07, Neha's everyday account was a local administrator. That one decision means that whoever got her password also got full control of the laptop. Least privilege: day-to-day accounts should be standard users, with a separate admin account for IT.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 04The registry

The registry is Windows' giant settings database: hardware, drivers, services, user preferences, installed software, and what runs at startup.

It looks like folders (keys) containing values, grouped into hives:

HiveShortHolds
HKEY_LOCAL_MACHINEHKLMMachine-wide settings, services, SAM. Admin to change
HKEY_CURRENT_USERHKCUThe logged-in user's settings. That user can change it, no admin needed
HKEY_USERSHKUAll loaded user profiles
HKEY_CLASSES_ROOTHKCRFile associations

Run keys: startup persistence

Programs listed here start automatically every time someone logs on:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run    (all users)
HKCU\Software\Microsoft\Windows\CurrentVersion\Run    (this user)

Run the malware, then reboot, and watch what starts:

Registry Editor · Run keys Infect, then reboot

Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

NameTypeData
OneDriveREG_SZ"C:\Users\neha.p\AppData\Local\Microsoft\OneDrive\OneDrive.exe" /background
Power onKernel + driversServices start (HKLM\…\Services)Logon screenneha.p signs inRun keys execute (HKLM + HKCU)Desktop ready

Expand the hives like folders. Run keys list programs that start automatically when a user logs on. Now run the malware.

Services are registry entries too: HKLM\SYSTEM\CurrentControlSet\Services\<name>, with an ImagePath value saying which program to run.

Run keys are listed as technique T1547.001 in MITRE ATT&CK (you met ATT&CK in Security Principles). They're one of the first places any investigator checks.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Services, scheduled tasks and processes

Three more ways programs run on Windows, and three more places to hide:

WhatToolPersistence trick
ServicesBackground programs, often as SYSTEM, start before logonservices.msc, sc query, Get-ServiceCreate a service with an innocent name (event 7045)
Scheduled tasksRun on a timer, at logon, on an eventTask Scheduler, schtasks, Get-ScheduledTaskTask that re-launches malware (event 4698)
ProcessesEverything currently runningTask Manager, Sysinternals Process ExplorerFake names, odd parents, unsigned files

Look around HR-LT-07's Task Manager:

Task Manager · HR-LT-07 Switch tabs
NamePIDCPUParentSigned
explorer.exe41200.4%userinit.exeMicrosoft
chrome.exe62302.1%explorer.exeGoogle LLC
svchost.exe10440.2%services.exeMicrosoft
lsass.exe7120.1%wininit.exeMicrosoft
wuhelper.exe338838.0%services.exe— not signed —
odupdate.exe55120.3%explorer.exe— not signed —

Check three things for any odd process: its path, its parent (services.exe = it's a service) and whether it's signed. Sysinternals Process Explorer shows all three at once.

What "normal" looks like

  • services.exe is the parent of every service. svchost.exe processes are its children.
  • lsass.exe (holds credentials) has exactly one copy, parent wininit.exe.
  • Microsoft binaries are digitally signed. An unsigned file pretending to be from Microsoft is a red flag.

Sysinternals (free, from Microsoft) is the investigator's toolkit: Process Explorer (processes with paths, parents and signatures), Autoruns (every persistence location in one list), TCPView (live network connections).

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 06Event logs

Windows records security-relevant activity in event logs, viewed with Event Viewer (eventvwr.msc). The three main logs are Security, System and Application. Every event has an Event ID.

Watch the HR laptop's night unfold, event by event:

Reading the story in the Security log Click a card

Events arrive in order. Click any card to open its fields.

Event IDs every analyst knows

IDLogMeaning
4624SecuritySuccessful logon
4625SecurityFailed logon
4634SecurityLogoff
4688SecurityNew process created (with command line, if enabled)
4720SecurityUser account created
4732SecurityMember added to a local group (e.g. Administrators)
4698SecurityScheduled task created
7045SystemService installed
1102SecurityAudit log cleared (attackers covering tracks)

Logon types (in 4624/4625)

2 = at the keyboard · 3 = over the network (file shares, and RDP pre-authentication with NLA) · 10 = Remote Desktop (RemoteInteractive) · 5 = service.

Many 4625s from one IP, then a 4624 from the same IP, is a successful brute force: the same pattern as auth.log in Room 05, in Windows form.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 07PowerShell basics

PowerShell is Windows' powerful shell and scripting language. Its commands (cmdlets) follow a Verb-Noun pattern and return objects, not just text, so you can filter and sort them with pipes:

Get-Process | Sort-Object CPU -Descending | Select-Object -First 5
Get-Service | Where-Object Status -eq Running
Get-LocalUser
Get-LocalGroupMember Administrators
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run'
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} | Measure-Object
Linux (Room 05)PowerShell
ps auxGet-Process
cat /etc/passwdGet-LocalUser
grepWhere-Object / Select-String
wc -lMeasure-Object
lsGet-ChildItem (alias ls, dir)

Why attackers love PowerShell too: it's on every Windows machine, it can download and run code in memory, and -enc lets them hide a command as Base64 (like the powershell -nop -w hidden -enc … you saw in event 4688). Defenders turn on PowerShell Script Block Logging (event 4104) to see what actually ran.

You'll use these cmdlets in the lab (Task 9).

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 08Domains: a first look

At home, every PC manages its own accounts. In a company with hundreds of PCs, that's impossible. So organisations join their computers to a domain, managed by Active Directory (AD):

Workgroup vs domain Toggle

HR-LT-07

DC01 (domain controller)

FILES01

ACC-PC-02

One domain controller holds every account and pushes settings (Group Policy) to every PC. Log in once, get a Kerberos ticket, use any resource you're allowed. Powerful, which is why attackers aim for Domain Admins (Room 12).

  • A domain controller (DC) holds every user, computer and group.
  • Users log in once and get a Kerberos ticket to access file servers, printers and apps.
  • Group Policy pushes settings (password rules, firewall, software) to every PC.
  • Domain Admins can control every machine in the domain.

Godavari Textiles' domain is GODAVARI.local. HR-LT-07 is joined to it, but the attacker created a local account on the laptop rather than a domain one. Local accounts on domain PCs are easy to miss, because nobody looks for them in AD.

Active Directory is the #1 target in real breaches: compromise one domain admin and you own the company. You'll go deep in Room 12: Active Directory Security.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 09Lab: investigate HR-LT-07

Three tools, three angles. Use all of them.

Part 1 · Event Viewer

Filter by event ID. Click events to read their fields.

Event Viewer · HR-LT-07 28 events
Date and timeLogEvent IDTask
27-11-2026 09:12:40Security4624An account was successfully logged on.
27-11-2026 09:13:02Security4688A new process has been created.
27-11-2026 18:31:55Security4634An account was logged off.
27-11-2026 23:31:00Security4625An account failed to log on.
27-11-2026 23:31:23Security4625An account failed to log on.
27-11-2026 23:32:46Security4625An account failed to log on.
27-11-2026 23:32:09Security4625An account failed to log on.
27-11-2026 23:33:32Security4625An account failed to log on.
27-11-2026 23:33:55Security4625An account failed to log on.
27-11-2026 23:34:18Security4625An account failed to log on.
27-11-2026 23:34:41Security4625An account failed to log on.
27-11-2026 23:35:04Security4625An account failed to log on.
27-11-2026 23:35:27Security4625An account failed to log on.
27-11-2026 23:36:50Security4625An account failed to log on.
27-11-2026 23:36:13Security4625An account failed to log on.
27-11-2026 23:37:36Security4625An account failed to log on.
27-11-2026 23:37:59Security4625An account failed to log on.
27-11-2026 23:38:22Security4625An account failed to log on.
27-11-2026 23:38:45Security4625An account failed to log on.
27-11-2026 23:39:08Security4625An account failed to log on.
27-11-2026 23:39:31Security4625An account failed to log on.
27-11-2026 23:41:07Security4624An account was successfully logged on.
27-11-2026 23:42:50Security4688A new process has been created.
27-11-2026 23:43:12Security4688A new process has been created.
27-11-2026 23:44:30Security4720A user account was created.
27-11-2026 23:44:41Security4732A member was added to a security-enabled local group.
27-11-2026 23:47:02System7045A service was installed in the system.
27-11-2026 23:52:18Security4634An account was logged off.

Event 4624 · Security · 27-11-2026 09:12:40

An account was successfully logged on.

Account Name:
neha.p
Logon Type:
2
Source Network Address:
-
Workstation:
HR-LT-07

Part 2 · Registry

Find the two places the malware was set to start automatically, and flag them.

HR-LT-07 · regedit (read-only copy) 0/2 persistence found

Click a value row to flag it. Find the two places the attacker made their malware start automatically.

Computer\HKEY_LOCAL_MACHINE

NameTypeData
(Default)REG_SZ(value not set)

Found 0/2.

Part 3 · PowerShell

Enumerate the laptop. Each task ticks itself when done (type help for example commands).

PowerShell enumeration 0/8 done

Windows PowerShell · HR-LT-07 (remote, read-only investigation)

Type 'help' to see example commands.

PS C:\Users\analyst>
  1. 1. List local user accounts
  2. 2. List members of the Administrators group
  3. 3. List services
  4. 4. List processes (with their paths)
  5. 5. Read the HKCU Run key
  6. 6. Count failed logons (event 4625)
  7. 7. Show network connections
  8. 8. List files in C:\Users\Public\Libraries

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 10Final mission: the incident report

Write the incident report for Godavari Textiles. Answer the three questions from the briefing, with evidence:

QuestionEvidence to cite
How did they get in?4625 ×18 then 4624 type 10, all from one IP
Which account did they create?4720 + 4732, Get-LocalUser, Get-LocalGroupMember
How do they persist?7045 + the Services key; the HKCU Run key

What happened: the router forwarded RDP straight to HR-LT-07. A bot on the internet guessed Neha's weak password in under 10 minutes. Because her account was a local admin, the attacker could run hidden PowerShell, create a backdoor admin itsupport, and install a crypto-miner twice over (a SYSTEM service and a Run key) from C:\Users\Public\Libraries. That's why the fan never stopped.

Fix list:

  • Remove the port forward; use a VPN for remote access, never RDP open to the internet.
  • Disable and delete itsupport; remove the service and the Run key; delete the files; reset Neha's password.
  • Make Neha a standard user; turn on account lockout after a few failed logons.
  • Enable MFA for remote access; collect logs centrally (a SIEM) so a 4720 at midnight raises an alert.
  • Because an attacker had admin access, reimage the laptop.

Complete the mission for the Registry Ranger badge and 440 XP.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP