- Windows
- Security
- Intermediate
- 12 min read
These Windows directories for SOC analysts are where a Windows PC keeps its own record of what happened: who logged in, what ran, what starts at boot and where it connected. This guide walks through all 16 paths from a popular SOC cheat sheet, fixes its mistakes, and shows how to check each one safely.
Last updated: December 2026
In short
- Eight of the 16 paths are registry hive files: SAM, SECURITY, SOFTWARE, SYSTEM, the old repair copy of SAM, Amcache.hve, NTUSER.DAT and UsrClass.dat.
- Startup folders, event logs, Prefetch and Amcache show what ran and what starts with Windows.
- Most of these files are locked or need admin rights. Copy them for analysis; never edit them on a live system.
Before you start
Look at these files only on systems you are allowed to investigate. Every command here only reads, except reg save and the parser output, which write files (save it to an external evidence drive, not the suspect disk). When a case may go further, collect copies first and work on the copies. For the tools a SOC uses around this work, see SOC tools explained.
drivers\etc\hostsLocal name-to-IP list, read before DNSdrivers\etc\networksNetwork names and numbers (legacy)config\SAMLocal accounts and password hashesconfig\SECURITYSecurity policy and audit settingsconfig\SOFTWAREInstalled programs and autorun keysconfig\SYSTEMServices, drivers and USB devicesSystem32\winevt\LogsEvery Windows event logWindows\repair\SAMOld registry backup (XP era)All Users\...\StartupXP startup for every user<user>\...\Startup(XP)XP startup for one userProgramData\...\StartUpStartup for every user todayAppData\Roaming\...\StartupStartup for one user todayWindows\PrefetchWhich programs ran, and whenAmcache.hvePrograms and files seen, with hashesNTUSER.DATOne user’s registry hiveUsrClass.datFolders a user opened (shellbags)
Tap a path to jump to it. “admin” = this one needs PowerShell or CMD as administrator.
Fixes to the cheat sheet
The widely shared image of this list has a few mistakes. SECURITY, SOFTWARE and SYSTEM are registry hives, not logs. The hosts file is a local lookup list, not a DNS file. SAM holds password hashes, not passwords. NTUSER.DAT is in C:\Users\<user>, not C:\Windows\Users. And C:\Windows\repair only exists on old versions such as Windows XP. The cards below use the correct details.
Network Files
01 hosts: The Local Name List
Path: C:\Windows\System32\drivers\etc\hosts
Windows reads this file before it asks a DNS server. A line like 203.0.113.10 login.example.com sends that name to that address on this PC only. Malware uses it to send a bank or update site to a fake server, or to block security sites by pointing them at 127.0.0.1.
How to use it: show only the active lines, without comments. A clean file has only comments or a few lines you can explain.
Get-Content C:\Windows\System32\drivers\etc\hosts | Where-Object { $_ -notmatch '^\s*(#|$)' }Then check when it last changed. A date close to the alert is worth a closer look:
Get-Item C:\Windows\System32\drivers\etc\hosts | Select-Object LastWriteTime02 networks: Network Names
Path: C:\Windows\System32\drivers\etc\networks
This file maps network names to network numbers. It is the “network config file” from the cheat sheet, but almost nothing reads it today. By default it has one example line for the loopback network.
How to use it: list the active lines. Anything beyond the default loopback entry is unusual and worth a note in your report.
Get-Content C:\Windows\System32\drivers\etc\networks | Where-Object { $_ -notmatch '^\s*(#|$)' }Registry Hives in System32\config
Windows stores the registry in hive files. The four main machine-wide ones sit in C:\Windows\System32\config, and Microsoft lists them on its registry hives page. While Windows runs, these files are locked. You can read most of their content live through the registry, or save a copy for offline tools.
03 SAM: Local Accounts and Password Hashes
Path: C:\Windows\System32\config\SAM
The Security Account Manager hive holds local user accounts, their groups and their password hashes (never the plain passwords). Attackers copy SAM together with SYSTEM to crack those hashes offline, so a copy of SAM on a strange path is itself an alert.
How to use it: on a live PC, list the local accounts without touching the file. Look for new accounts, enabled accounts that should be off, and sign-ins at odd times.
Get-LocalUser | Select-Object Name, Enabled, LastLogonFor offline analysis, save a copy from an elevated prompt. The folder must already exist:
reg save HKLM\SAM E:\Evidence\SAM.hiv04 SECURITY: Policy and Audit Settings
Path: C:\Windows\System32\config\SECURITY
This hive holds the local security policy, including which events Windows audits, plus secrets the system uses (for example cached domain logons). Even administrators cannot open it in Registry Editor; only the SYSTEM account can.
How to use it: check the audit policy it stores. If logon auditing is off, a missing 4624 event proves nothing, and an attacker may have switched it off on purpose.
auditpol /get /category:*05 SOFTWARE: Installed Programs and Autoruns
Path: C:\Windows\System32\config\SOFTWARE
Behind HKEY_LOCAL_MACHINE\SOFTWARE sits every machine-wide setting: installed programs, Windows version and the Run keys that start programs for every user at sign-in.
How to use it: list what starts for every user. Each entry should be a program you recognise, in a normal folder such as Program Files.
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'List installed programs with their install date, to spot something added around the time of the alert:
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' | Where-Object DisplayName | Select-Object DisplayName, DisplayVersion, InstallDate32-bit programs on 64-bit Windows are listed in a second place:
Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | Where-Object DisplayName | Select-Object DisplayName, DisplayVersion, InstallDate06 SYSTEM: Services, Drivers and USB Devices
Path: C:\Windows\System32\config\SYSTEM
This hive defines every service and driver, the computer name, the time zone and the USB storage devices that were ever connected. It also holds the key needed to read the hashes in SAM, which is why attackers take both.
How to use it: list services that start automatically and the program behind each one. A service running from Temp, AppData or Users\Public is a strong warning sign.
Get-CimInstance Win32_Service | Where-Object StartMode -eq 'Auto' | Select-Object Name, State, PathNameSee which USB storage devices this PC has known, useful when data theft is suspected:
Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR' | Select-Object PSChildNameEvent Logs and Old Backups
07 winevt\Logs: Every Windows Event Log
Path: C:\Windows\System32\winevt\Logs (the cheat sheet stops one folder too early)
Each event log is an .evtx file here. The Security log records sign-ins (event 4624), failed sign-ins (4625) and new accounts (4720). The System log records new services (7045), and its event 104 means a log was cleared. When the Security log itself is cleared, Windows writes event 1102 in it.
How to use it: look for failed sign-ins, a sign of password guessing:
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 20 | Select-Object TimeCreated, MessageAnd see which logs changed most recently:
Get-ChildItem C:\Windows\System32\winevt\Logs -Filter *.evtx | Sort-Object LastWriteTime -Descending | Select-Object -First 10 Name, Length, LastWriteTime08 repair\SAM: The Old Registry Backup
Path: C:\Windows\repair\SAM
On Windows XP and Server 2003, this folder held an older copy of the registry hives. On those systems it was a known way to steal hashes without touching the locked live file. Newer Windows versions do not have it. They used System32\config\RegBack instead, and since Windows 10 version 1803 that folder stays empty by default, as Microsoft explains here.
How to use it today: older hive copies now live in Volume Shadow Copies. List them to see which points in time you can recover:
vssadmin list shadowsComparing today’s hives with a copy from a shadow taken before the incident helps show what changed in the registry since then.
Startup Folders
Anything in a Startup folder runs when a user signs in, which makes these folders an easy way for malware to survive a restart. The cheat sheet lists two old (Windows XP) and two current locations.
09 All Users Startup on Windows XP
Path: C:\Documents and Settings\All Users\Start Menu\Programs\Startup
On Windows XP and Server 2003, programs in this folder started for every user. You will meet it on old machines, old disk images and some industrial PCs that still run XP.
How to use it: on a disk image mounted as drive E:, list the folder:
Get-ChildItem 'E:\Documents and Settings\All Users\Start Menu\Programs\Startup'10 User Startup on Windows XP
Path: C:\Documents and Settings\<user>\Start Menu\Programs\Startup
The same idea for one user on Windows XP. Check every profile, not only the one that raised the alert.
How to use it: the * checks all user folders on the mounted image at once:
Get-ChildItem 'E:\Documents and Settings\*\Start Menu\Programs\Startup'11 All Users Startup Today
Path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
On Windows Vista and later, this is the folder whose programs start for everyone who signs in. Type shell:common startup in the Run box (Win+R) to open it.
How to use it: list it with dates. On most PCs it is empty or holds one or two shortcuts from installed apps.
Get-ChildItem "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" | Select-Object Name, LastWriteTime12 User Startup Today
Path: C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Each user has their own Startup folder. Malware that runs without admin rights often drops a shortcut or script here, because a normal user can write to it. Open your own with shell:startup.
How to use it: check every user’s folder in one command. Watch for .vbs, .bat, .js or .lnk files you did not put there:
Get-ChildItem 'C:\Users\*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup' | Select-Object FullName, LastWriteTimeExecution Evidence
13 Prefetch: Which Programs Ran
Path: C:\Windows\Prefetch
Windows keeps a .pf file for each program it runs, to load it faster next time. Each file records the program name, a run count and the last run times, and it stays after the program is deleted. That makes Prefetch one of the best ways to show that a tool such as mimikatz.exe really ran. Prefetch is usually on for Windows 10 and 11 desktops and usually off on Windows Server.
How to use it: first check that it is on (3 means programs and boot are recorded, 0 means off):
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters' -Name EnablePrefetcherThen list the most recent files:
Get-ChildItem C:\Windows\Prefetch -Filter *.pf | Sort-Object LastWriteTime -Descending | Select-Object -First 15 Name, LastWriteTime14 Amcache.hve: Programs and Their Hashes
Path: C:\Windows\AppCompat\Programs\Amcache.hve
A small registry hive on Windows 8 and later that lists programs and files Windows has seen, with their full path and SHA1 hash. The hash lets you look a file up on a threat intelligence site even after it was deleted. On its own, Amcache shows that a file was present; use Prefetch or event logs to prove it ran.
How to use it: the file is locked, so collect a copy with a forensic tool such as KAPE or FTK Imager, together with the Amcache.hve.LOG1 and .LOG2 files next to it (without them, recent entries can be missing). Then parse the copy with Eric Zimmerman’s free AmcacheParser:
AmcacheParser.exe -f E:\Evidence\Amcache.hve --csv E:\Evidence\amcache-outUser Registry Hives
15 NTUSER.DAT: One User’s Registry
Path: C:\Users\<user>\NTUSER.DAT (the cheat sheet’s C:\Windows\Users does not exist)
Every user has their own hive, which becomes HKEY_CURRENT_USER when they sign in. It records what that user ran, typed and opened, and it holds the user-level Run key that malware without admin rights uses to start again.
How to use it: for the signed-in user, check the personal Run key:
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run'And see what was typed into the Run box (Win+R), where attackers often paste commands:
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU'These commands read the live registry of the signed-in user. For other users, the file is locked while they are signed in, so collect a copy and open it with the free Registry Explorer.
16 UsrClass.dat: Folders a User Opened
Path: C:\Users\<user>\AppData\Local\Microsoft\Windows\UsrClass.dat
The second user hive. Its best-known content is “shellbags”: records Windows keeps about folders a user browsed in File Explorer. They often include folders on USB sticks and network shares. That can show someone browsed a share full of sensitive files, even if the folder no longer exists.
How to use it: collect the file with your forensic tool, then open the copy with the free ShellBags Explorer from the same Eric Zimmerman tool set. Sort by the last interaction time and read the folder paths around the time of the incident.
3 More Places the Cheat Sheet Misses
Scheduled Tasks
C:\Windows\System32\Tasks holds every task as an XML file. Tasks are a favourite way to run malware again and again.
SRUM
C:\Windows\System32\sru\SRUDB.dat records app and network use roughly every hour, which can show how much data a program sent.
PowerShell History
ConsoleHost_history.txt keeps commands typed in the PowerShell console, as documented in about_PSReadLine.
List scheduled tasks that do not come from Microsoft:
Get-ScheduledTask | Where-Object TaskPath -notlike '\Microsoft\*' | Select-Object TaskName, TaskPath, StateRead the last 50 PowerShell commands of the current user:
Get-Content (Get-PSReadLineOption).HistorySavePath -Tail 50Windows Directories for SOC Analysts: Quick Reference
| # | Path | Use it to find |
|---|---|---|
| 01 | ...\drivers\etc\hosts | Redirected or blocked websites |
| 02 | ...\drivers\etc\networks | Odd network name entries |
| 03 | ...\config\SAM | New or changed local accounts |
| 04 | ...\config\SECURITY | Audit policy that was switched off |
| 05 | ...\config\SOFTWARE | New programs and machine Run keys |
| 06 | ...\config\SYSTEM | Suspicious services and USB devices |
| 07 | ...\winevt\Logs | Sign-ins, new services, cleared logs |
| 08 | C:\Windows\repair | Old hive copies (XP); today use shadow copies |
| 09 | All Users\...\Startup (XP) | Autostart for every user on old systems |
| 10 | <user>\...\Startup (XP) | Autostart for one user on old systems |
| 11 | ProgramData\...\StartUp | Autostart for every user |
| 12 | AppData\Roaming\...\Startup | Autostart for one user |
| 13 | C:\Windows\Prefetch | Proof a program ran, and when |
| 14 | ...\Programs\Amcache.hve | File paths and SHA1 hashes |
| 15 | C:\Users\<user>\NTUSER.DAT | User Run keys and typed commands |
| 16 | ...\Windows\UsrClass.dat | Folders and shares a user opened |
Treat copies as secrets
A copy of SAM together with SYSTEM is enough to recover password hashes, and user hives reveal private activity. Keep collected files in an encrypted, access-controlled evidence folder and delete them when the case is closed.
Key takeaways
- Eight of the 16 paths are registry hive files; read them live through the registry or save copies for offline tools.
- Startup folders, Run keys and services are where malware hides to survive a restart.
- Prefetch shows a program ran, even after it was deleted; Amcache adds the file hash.
- The XP paths only matter on old systems; today, old hive copies live in shadow copies.
FAQ
Does the SAM file contain Windows passwords?
No. It contains password hashes for local accounts. Hashes can be cracked offline, which is why attackers try to copy SAM and SYSTEM together.
Why can I not open the SAM or SYSTEM file?
Windows keeps them open while it runs, and only administrators or SYSTEM may read them. Use reg save from an elevated prompt or a forensic tool to make a copy.
Is C:\Windows\repair still used?
No. It was the registry backup folder on Windows XP and Server 2003. On current Windows, look for older hive copies in Volume Shadow Copies.
Where are Windows event logs stored?
In C:\Windows\System32\winevt\Logs, one .evtx file per log, unless an administrator moved them.
Which free tools read these files offline?
Eric Zimmerman’s tools are free and widely used: Registry Explorer for hives, AmcacheParser for Amcache, PECmd for Prefetch and ShellBags Explorer for UsrClass.dat.
Related guides on infotechtu.com
Share this guide
Get new guides by email
One short email when a new guide is out. Unsubscribe at any time.
