Suspicious Staging of Windows Registry Hive Files
Detection of registry hive files created outside of standard user profile directories, a common indicator of unauthorized hive manipulation for credential access or persistence.
This threat brief addresses the unauthorized movement or creation of Windows registry hive files (specifically 'NTUSER.DAT' and 'UsrClass.dat') in non-standard locations. Under normal operating conditions, these files reside within the user's profile path (e.g., 'C:\Users<username>'). When an adversary attempts to perform offline registry analysis, credential harvesting via hive dumping, or persistence mechanism injection, they must first stage these sensitive database files. Detecting the creation of these files outside of protected system or profile paths allows defenders to identify tools used for exfiltration or manipulation before an adversary can effectively leverage the data for privilege escalation or lateral movement. This detection is particularly relevant for environments where automated backup tools or forensic software do not already have established patterns of activity.
Impact
Successful staging of these files indicates an adversary has already achieved local file system access. This can lead to the compromise of user-specific registry settings, the recovery of sensitive cached credentials, or the modification of 'Run' keys for long-term persistence within the environment.
Recommendation
- Deploy the provided Sigma rule to monitor 'file_event' logs for 'NTUSER.DAT' or 'UsrClass.dat' creation events.
- Baseline existing environment activity to identify legitimate backup or forensic software that may trigger this rule; whitelist these processes or service accounts as needed.
- If a detection triggers, inspect the parent process associated with the file creation event to determine the tool or user identity responsible for the staging.
Immediate actions
Deploy Sigma rule to monitor for unauthorized hive file movement
Threat Hunt
Search file audit logs for NTUSER.DAT or UsrClass.dat in user-writable temporary directories
Data: File creation events
Detection coverage 1
Detect Registry Hive File Staged Outside Standard User Profile Path
highDetects the creation of NTUSER.DAT or UsrClass.dat registry hive files outside of standard user profile paths or system configuration directories.
Detection queries are available on the platform. Get full rules →