Windows Directories for SOC Analysts: Where Evidence Lives

  • 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.

PS C:\> soc-evidence-map

  1. drivers\etc\hostsLocal name-to-IP list, read before DNS
  2. drivers\etc\networksNetwork names and numbers (legacy)
  3. config\SAMLocal accounts and password hashes
  4. config\SECURITYSecurity policy and audit settings
  5. config\SOFTWAREInstalled programs and autorun keys
  6. config\SYSTEMServices, drivers and USB devices
  7. System32\winevt\LogsEvery Windows event log
  8. Windows\repair\SAMOld registry backup (XP era)
  9. All Users\...\StartupXP startup for every user
  10. <user>\...\Startup (XP)XP startup for one user
  11. ProgramData\...\StartUpStartup for every user today
  12. AppData\Roaming\...\StartupStartup for one user today
  13. Windows\PrefetchWhich programs ran, and when
  14. Amcache.hvePrograms and files seen, with hashes
  15. NTUSER.DATOne user’s registry hive
  16. UsrClass.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

  • Read-only

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.

powershell
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:

powershell
Get-Item C:\Windows\System32\drivers\etc\hosts | Select-Object LastWriteTime

02 networks: Network Names

  • Read-only
  • Legacy

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.

powershell
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

  • Admin to copy
  • Sensitive

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.

powershell
Get-LocalUser | Select-Object Name, Enabled, LastLogon

For offline analysis, save a copy from an elevated prompt. The folder must already exist:

cmd (admin)
reg save HKLM\SAM E:\Evidence\SAM.hiv

04 SECURITY: Policy and Audit Settings

  • Admin
  • Sensitive

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.

cmd (admin)
auditpol /get /category:*

05 SOFTWARE: Installed Programs and Autoruns

  • Read-only

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.

powershell
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:

powershell
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' | Where-Object DisplayName | Select-Object DisplayName, DisplayVersion, InstallDate

32-bit programs on 64-bit Windows are listed in a second place:

powershell
Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | Where-Object DisplayName | Select-Object DisplayName, DisplayVersion, InstallDate

06 SYSTEM: Services, Drivers and USB Devices

  • Read-only

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.

powershell
Get-CimInstance Win32_Service | Where-Object StartMode -eq 'Auto' | Select-Object Name, State, PathName

See which USB storage devices this PC has known, useful when data theft is suspected:

powershell
Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR' | Select-Object PSChildName

Event Logs and Old Backups

07 winevt\Logs: Every Windows Event Log

  • Read-only
  • Admin for the Security 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:

powershell (admin)
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 20 | Select-Object TimeCreated, Message

And see which logs changed most recently:

powershell
Get-ChildItem C:\Windows\System32\winevt\Logs -Filter *.evtx | Sort-Object LastWriteTime -Descending | Select-Object -First 10 Name, Length, LastWriteTime

08 repair\SAM: The Old Registry Backup

  • Legacy
  • Admin

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:

cmd (admin)
vssadmin list shadows

Comparing 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

  • Read-only
  • Legacy

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:

powershell
Get-ChildItem 'E:\Documents and Settings\All Users\Start Menu\Programs\Startup'

10 User Startup on Windows XP

  • Read-only
  • Legacy

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:

powershell
Get-ChildItem 'E:\Documents and Settings\*\Start Menu\Programs\Startup'

11 All Users Startup Today

  • Read-only

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.

powershell
Get-ChildItem "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" | Select-Object Name, LastWriteTime

12 User Startup Today

  • Read-only
  • Admin for other users

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:

powershell
Get-ChildItem 'C:\Users\*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup' | Select-Object FullName, LastWriteTime

Execution Evidence

13 Prefetch: Which Programs Ran

  • Read-only
  • Admin

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):

powershell
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters' -Name EnablePrefetcher

Then list the most recent files:

powershell (admin)
Get-ChildItem C:\Windows\Prefetch -Filter *.pf | Sort-Object LastWriteTime -Descending | Select-Object -First 15 Name, LastWriteTime

14 Amcache.hve: Programs and Their Hashes

  • Admin to copy

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:

cmd
AmcacheParser.exe -f E:\Evidence\Amcache.hve --csv E:\Evidence\amcache-out

User Registry Hives

15 NTUSER.DAT: One User’s Registry

  • Read-only
  • Collect a copy

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:

powershell
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run'

And see what was typed into the Run box (Win+R), where attackers often paste commands:

powershell
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

  • Collect a copy

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:

powershell
Get-ScheduledTask | Where-Object TaskPath -notlike '\Microsoft\*' | Select-Object TaskName, TaskPath, State

Read the last 50 PowerShell commands of the current user:

powershell
Get-Content (Get-PSReadLineOption).HistorySavePath -Tail 50

Windows Directories for SOC Analysts: Quick Reference

#PathUse it to find
01...\drivers\etc\hostsRedirected or blocked websites
02...\drivers\etc\networksOdd network name entries
03...\config\SAMNew or changed local accounts
04...\config\SECURITYAudit policy that was switched off
05...\config\SOFTWARENew programs and machine Run keys
06...\config\SYSTEMSuspicious services and USB devices
07...\winevt\LogsSign-ins, new services, cleared logs
08C:\Windows\repairOld hive copies (XP); today use shadow copies
09All Users\...\Startup (XP)Autostart for every user on old systems
10<user>\...\Startup (XP)Autostart for one user on old systems
11ProgramData\...\StartUpAutostart for every user
12AppData\Roaming\...\StartupAutostart for one user
13C:\Windows\PrefetchProof a program ran, and when
14...\Programs\Amcache.hveFile paths and SHA1 hashes
15C:\Users\<user>\NTUSER.DATUser Run keys and typed commands
16...\Windows\UsrClass.datFolders 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

Save

Get new guides by email

One short email when a new guide is out. Unsubscribe at any time.

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top