NTUSER.DAT: the user registry hive
NTUSER.DAT is the registry hive that holds one Windows user's settings and history. Each profile has its own, at C:\Users\<user>\NTUSER.DAT, and when the user is logged on it is loaded as HKEY_CURRENT_USER.
What NTUSER.DAT is
Windows keeps its configuration in the registry, a database split into files called hives. The machine-wide hives (SYSTEM, SOFTWARE, SAM, SECURITY) live in C:\Windows\System32\config. Each user also has a personal hive, NTUSER.DAT, in the root of their profile folder. It is created from the Default profile the first time the user logs on, and Windows loads it as HKEY_CURRENT_USER whenever that user is signed in.
Programs write the user's preferences there, and so does Windows itself: which folders the user opened, which programs they ran from the Start menu, which documents they opened recently, what they typed in the Run box and the Explorer search bar, which network shares they mapped and which servers they connected to with Remote Desktop. That makes NTUSER.DAT one of the richest single files in a Windows investigation, and the first place to look for what one particular account did.
The file is hidden and is a system file, so it is not visible in Explorer by default. It is normal for it to be several megabytes, and its size alone means nothing.
Why you cannot simply copy it
While the user is logged on, Windows holds NTUSER.DAT open and locked, and recent changes may still sit in the transaction logs (NTUSER.DAT.LOG1 and .LOG2) rather than in the hive itself. Copying the file with Explorer fails, and copying it with a tool that ignores the logs can miss the most recent activity, which is often the activity the investigation is about.
Forensic collectors read the file below the file system lock, straight from the NTFS volume, and take the transaction logs with it. Arcsentry Collector does this on live Windows hosts and reads the files directly from disk images without mounting. When the hive is parsed, the logs are replayed so that the latest state is included; Arcsentry marks records recovered this way.
What investigators find in NTUSER.DAT
| Evidence | Key (under HKCU\Software\…) | What it shows |
|---|---|---|
| UserAssist | Microsoft\Windows\CurrentVersion\Explorer\UserAssist | Programs the user launched from Explorer and the Start menu, with run counts and last run times (ROT13-encoded names) |
| RunMRU | Microsoft\Windows\CurrentVersion\Explorer\RunMRU | Commands typed into the Win+R Run box, most recent first |
| RecentDocs | Microsoft\Windows\CurrentVersion\Explorer\RecentDocs | Files and folders opened recently, by extension |
| Typed paths | Microsoft\Windows\CurrentVersion\Explorer\TypedPaths | Paths typed into the Explorer address bar, including UNC paths to other machines |
| WordWheelQuery | Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery | Searches typed into Explorer |
| Open/Save dialogs | Explorer\ComDlg32\OpenSavePidlMRU, LastVisitedPidlMRU | Files picked in Open and Save dialogs, and the programs that opened them |
| Office MRU | Microsoft\Office\<version>\<app>\File MRU | Documents opened in Word, Excel and other Office programs |
| Run keys | Microsoft\Windows\CurrentVersion\Run, RunOnce | Programs set to start when this user logs on: a common persistence spot |
| Mapped drives | Network, Map Network Drive MRU | Network shares the user mapped |
| RDP connection history | Microsoft\Terminal Server Client\Servers | Servers the user connected to with Remote Desktop, with the user name hint |
| MUICache | UsrClass.dat: Local Settings\Software\Microsoft\Windows\Shell\MuiCache | Programs that ran under the user, by their display name |
| Shellbags | NTUSER.DAT and UsrClass.dat: Shell\BagMRU | Folders the user browsed, including on removable drives and network shares that no longer exist |
Most of these keys keep a most-recently-used (MRU) list: an ordered set of values with a list that records the order. The last write time of the key gives the time of the most recent entry; older entries have no time of their own. That is the main limit of registry evidence, and the reason to corroborate it with event logs, Prefetch, LNK files and Jump Lists.
NTUSER.DAT and UsrClass.dat
Each user has a second hive, UsrClass.dat, in AppData\Local\Microsoft\Windows. It is loaded as HKEY_CURRENT_USER\Software\Classes and holds file associations, COM registrations and, importantly for investigators, most of the Shellbags on Windows 7 and later and the MUICache. Always collect both hives. A COM object registered under the user's Classes key (COM hijacking) is a persistence technique that lives only in UsrClass.dat.
Reading NTUSER.DAT in an investigation
- Start with the account in question. Each user has their own hive, so activity is already attributed to an account, which event logs do not always manage.
- Check persistence first: the user Run and RunOnce keys, startup-approved entries and the Winlogon user keys. Attackers who did not gain administrative rights persist here.
- Then execution: UserAssist, RunMRU, MUICache and the Open/Save dialog history show programs run interactively.
- Then files and places: RecentDocs, Office MRU, typed paths, mapped drives, Shellbags and the RDP server list show what the user (or someone at their desktop) opened and where they went.
- Put it in time: key last write times, combined with LNK files, Jump Lists and event logs, turn lists into a timeline.
An attacker working at a user's desktop (through RDP, for example) writes to that user's NTUSER.DAT exactly as the user would. A run of RunMRU entries for cmd and powershell, typed UNC paths to other workstations and a new Terminal Server Client entry, all in the minutes after an unusual RDP logon, separates the attacker's session from the user's normal day.
Time in NTUSER.DAT
Registry evidence has less time information than most people expect. Every key has a last write time, set when any value under it changes, but values have no times of their own. So for an MRU list, only the newest entry can be dated from the key; the rest are known to be older and in a known order. A few values do store their own times inside their data: UserAssist records a last run time and a count for each program, RecentApps keeps last access times, and some Office MRU entries embed a last-used time.
Two consequences follow. First, a key last write time inside the incident window proves something changed under that key then, not which value. Second, absence of a time is not absence of evidence: an older RunMRU entry for powershell -ep bypass is still a command typed into the Run box, at some point before the newest one. Arcsentry keeps these records untimed rather than giving them the key's time, so they appear in the timeline only where their time is actually known.
Old, deleted and other users' hives
Every account that ever logged on interactively has its own NTUSER.DAT, and profiles of deleted accounts often remain on disk. The ProfileList key in the SOFTWARE hive maps each profile folder to an account SID, which ties a hive to an account even after the account is gone (ProfileList). Service accounts and SYSTEM have hives too, under C:\Windows\ServiceProfiles and C:\Windows\System32\config\systemprofile, and persistence planted there runs with their rights.
Deleted keys and values are not always gone. Registry hives reuse space lazily, so deleted cells can survive inside the file, and the transaction logs can hold older versions of changed data. Recovering them is specialist work, but it is one more reason to collect the hive with its .LOG1 and .LOG2 files and never to open an evidence copy in a tool that writes to it.
Analysing NTUSER.DAT with Arcsentry
You do not open NTUSER.DAT in Arcsentry as a file. Its 40 parsers that read the hive (listed below) each extract one kind of record, so the evidence arrives as UserAssist runs, RunMRU entries, typed paths and so on, each with the user, the key, the value and the time, and each linked back to the hive it came from. Ask in plain English, for example *"what did a.berg type into the Run box?"*, or query a single type in AQL:
filter event_type == "run_mru"
sort {-timestamp}
take 50The AI investigator reads these records with the rest of the case, so a typed UNC path in NTUSER.DAT can sit next to the matching logon on the other host in the same cited finding.
What Arcsentry extracts from NTUSER.DAT
Arcsentry has 40 parsers that read NTUSER.DAT (and 4 that read UsrClass.dat). The ones investigators use most:
| Artifact | What Arcsentry extracts |
|---|---|
| UserAssist | ROT13-encoded program execution tracking with run counts, focus time, and last execution timestamps. |
| RunMRU | Run dialog command history with MRU ordering. |
| RecentDocs | Recently opened documents tracked by extension with MRU ordering. |
| Typed Paths | Explorer address-bar typed paths. |
| WordWheelQuery | Windows Explorer search bar query history with MRU ordering. |
| OpenSavePidlMRU | Tracks files opened or saved via common dialogs with shell item paths (Vista+). |
| LastVisitedPidlMRU | Tracks recently used executables from Open/Save dialogs with shell item paths (Vista+). |
| OfficeMRU | Microsoft Office recently used Item entries, reading locations and mail stores in Outlook's search index, excluding MRU settings and metadata. |
| Run Keys | Parses autostart Run/RunOnce registry keys. |
| Startup Approved (User) | Per-user Explorer StartupApproved state of Run, Run32 and Startup folder entries, with the recorded disable or state-change time. |
| Network Drives | Network shares a user mapped to a drive letter to reconnect at every sign-in, with the share, its server, the network provider and, when the mapping used another account, that account. The time is when the mapping was made or last changed, not when it was last used. |
| Mounted Network Shares | Remote shares Explorer mounted for this user, from the MountPoints2 key: decoded UNC path, server, shell label and per-share last-write time, retained after the mapping is removed. |
| TerminalServerClient | Remote Desktop (RDP) connection history with server names and username hints. |
| Shellbags | Parses Shell Bags registry keys for folder access history. |
| MUI Cache | Parses MUICache registry keys for application execution. |
| RecentApps | Windows Search per-application launch counts, last-run times, and the documents each application opened (Windows 10 1607-1703). |
| Typed Urls | TypedURLs. |
| PuTTY SSH Host Keys | SSH servers cached by PuTTY, PSCP, PSFTP and Plink, with key type, port and stored public key; logical host names can differ from contacted endpoints, and key last-write time is not a connection time; PuTTY forks such as KiTTY and WinSCP store elsewhere. |
| WinRAR History | WinRAR GUI archive, archive-name and extraction-path history with MRU ordering. |
| Sysinternals EULA Acceptance | Sysinternals tool EULA acceptance under this user account, with each key's last-write time as a first-run indicator; acceptance can be pre-seeded and does not establish intent or a run count. |
| Winlogon (User) | Parses per-user Winlogon logon applications and Notify DLL registrations from user registry hives. |
| USB Devices | Parses USB device connection history from registry and setupapi logs. |
Frequently asked
What is NTUSER.DAT?
The registry hive that stores one Windows user's settings and activity. It sits in the root of each user profile (C:\Users\<user>\NTUSER.DAT) and is loaded as HKEY_CURRENT_USER when the user logs on.
Where is NTUSER.DAT located?
In the root of each user's profile folder: C:\Users\<user>\NTUSER.DAT. It is a hidden system file, so Explorer shows it only when hidden and protected operating system files are displayed. Service accounts have theirs under C:\Windows\ServiceProfiles and C:\Windows\System32\config\systemprofile.
Is NTUSER.DAT a virus?
No. It is a normal Windows file present in every user profile. Malware can write to it (for example a Run key for persistence), which is why investigators read it, but the file itself is part of Windows.
Can I delete NTUSER.DAT?
No. Deleting it destroys the user's profile settings, and Windows will create a temporary profile at the next logon. It is also locked while the user is logged on. Its size is normal and grows with use.
What are NTUSER.DAT.LOG1 and LOG2?
Transaction logs. Windows writes changes to them before it writes them to the hive, so recent changes may be only in the logs. Forensic tools replay them when parsing the hive, which is why they must be collected with it.
How do you open NTUSER.DAT for analysis?
Copy it with a forensic collector (it is locked while in use), together with its .LOG1 and .LOG2 files, then parse it with a registry tool, or load it into Arcsentry, which extracts each kind of evidence (UserAssist, RunMRU, Shellbags and more) into searchable records.
What is the difference between NTUSER.DAT and UsrClass.dat?
NTUSER.DAT holds most of the user's settings (HKCU). UsrClass.dat holds the user's class registrations (HKCU\Software\Classes), including most Shellbags, the MUICache and per-user COM registrations. Investigations need both.
Sources
- Microsoft Learn: Registry hives; HKEY_CURRENT_USER
- Microsoft Learn: User profiles in Windows
- MITRE ATT&CK: T1547.001 Registry Run Keys; T1546.015 Component Object Model Hijacking
Checked 1 December 2026 by Venema Labs. Parser coverage is generated from the Arcsentry build the artifact library describes.
Every user hive, parsed and searchable, on your own evidence.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial