Suspicious Registry Hive Access via RegBack
This rule detects attempts to access registry backup hives (SAM, SECURITY, SYSTEM) via RegBack on Windows systems, which can contain or enable access to credential material.
This detection identifies suspicious attempts to access registry backup hives (SAM, SECURITY, and SYSTEM) located in the RegBack folder on Windows systems. These hives contain sensitive credential material, making them attractive targets for attackers seeking to compromise system security. The detection logic focuses on file access events, specifically successful file opens, while excluding known benign processes such as taskhostw.exe and various AV/EDR solutions (SophosScanCoordinator.exe, MsSense.exe, ccSvcHst.exe, etc.) to minimize false positives. The rule is designed to provide defenders with high-fidelity alerts when unauthorized access to these critical registry hives is detected. The scope includes any Windows system where endpoint file access logging is enabled.
Attack Chain
- An attacker gains initial access to the system through various means.
- The attacker attempts to access the
SAM,SECURITY, orSYSTEMregistry hives located in theC:\\Windows\\System32\\config\\RegBack\\directory. - The attacker leverages a tool or script to open one or more of these registry hives. This could involve using built-in Windows utilities, scripting languages, or custom-developed tools.
- If the attacker successfully opens the
SAMandSYSTEMhives, they can extract user account credentials, including usernames, password hashes, and other sensitive information. TheSECURITYhive is also useful. - The attacker may stage the registry hive files by copying them to a different location on the system for further analysis or exfiltration.
- The attacker uses credential dumping tools (e.g., Mimikatz, secretsdump.py) or custom scripts to extract credentials from the staged registry hives.
- The attacker leverages the extracted credentials to escalate privileges, move laterally within the network, or access sensitive data.
- The final objective is typically to gain unauthorized access to critical systems, steal sensitive data, or establish long-term persistence within the compromised environment.
Impact
Successful exploitation of this technique can lead to the compromise of user account credentials, enabling attackers to escalate privileges, move laterally within the network, and gain unauthorized access to sensitive data. The impact can range from data breaches and financial losses to reputational damage and disruption of critical business operations. The number of victims can vary depending on the scope of the attacker’s activities and the security posture of the targeted organization. Sectors commonly targeted include finance, healthcare, government, and critical infrastructure.
Recommendation
- Enable file access monitoring for the
C:\\Windows\\System32\\config\\RegBack\\directory to capture file open events. - Deploy the Sigma rule
Registry Hive Access via RegBackto your SIEM and tune the exclusions based on your environment. - Monitor
process_creationevents for unusual processes accessing files inC:\\Windows\\System32\\config\\RegBack\\, using the ruleSuspicious Process Accessing RegBack Hives. - Enable Sysmon process creation logging and file creation to activate the rules above.
Detection coverage 2
Registry Hive Access via RegBack
highDetects processes accessing the SAM, SECURITY, or SYSTEM registry hives in the RegBack directory.
Suspicious Process Accessing RegBack Hives
mediumDetects unusual processes accessing registry backup hives.
Detection queries are kept inside the platform. Get full rules →