Registry Hive File Staged Outside Standard User Profile Path

Original Source: [Sigma source]
Title: Registry Hive File Staged Outside Standard User Profile Path
Status: experimental
Description:Detects the creation of a registry hive file (UsrClass.dat or NTUSER.DAT) outside of the standard user profile path. These files generally contain various user-specific registry settings and are typically located in the user's profile directory. Staging these files outside of the standard path can be indicative of an attacker attempting to manipulate user registry settings for persistence, privilege escalation, or dump user registry hives for credential harvesting.
References:
  -https://github.com/MSNightmare/LegacyHive
  -https://git.projectnightcrawler.dev/NightmareEclipse/LegacyHive
Author: Swachchhanda Shrawan Poudel (Nextron Systems)
Date: 2026-07-23
modified:None
Tags:
  • -'attack.privilege-escalation'
  • -'attack.t1548'
  • -'attack.credential-access'
  • -'attack.t1003'
Logsource:
  • category: file_event
  • product: windows
Detection:
  selection:
    TargetFilename|endswith:
      -'\UsrClass.dat'
      -'\NTUSER.DAT'

  filter_main_usrclass:
    TargetFilename|endswith: '\AppData\Local\Microsoft\Windows\UsrClass.dat'
  filter_main_ntuser:
    TargetFilename|re|i: '^C:\\Users\\[^\\]+\\NTUSER\.DAT$'
  filter_main_system:
    TargetFilename|startswith:
      -'C:\Windows\System32\config\'
      -'C:\Windows\SYSVOL\'
      -'C:\Windows\ServiceProfiles\'

  condition:selection and not 1 of filter_main_*
Falsepositives:
  -Backup or profile migration software
  -Forensic acquisition tools
Level: high