Detection of Unauthorized System Restore Disablement via Registry
Threat actors, including those deploying Remote Access Trojans such as NjRAT, modify Windows Registry keys to disable System Restore and hinder recovery efforts.
Adversaries often target the Windows System Restore feature to prevent system recovery and hinder incident response activities. By modifying specific registry keys to disable System Restore, threat actors ensure that defenders cannot easily roll back a compromised system to a clean state. This tactic is frequently observed in campaigns utilizing Remote Access Trojans (RATs), such as NjRAT, to maintain long-term persistence and cover tracks after initial infection. The behavior involves updating the DisableSR or DisableConfig values within the SystemRestore registry hive to 1. This modification is a critical indicator of defense evasion and potential system tampering, requiring immediate investigation when observed outside of authorized administrative changes.
Attack Chain
- Initial access is gained through methods such as phishing or exploit kits (e.g., weaponized attachments).
- The malware executes, often masquerading as a legitimate process to bypass endpoint security controls.
- The attacker gains administrative or elevated privileges required to modify sensitive registry keys.
- The malware targets Windows Registry paths:
SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestoreorSOFTWARE\Policies\Microsoft\Windows NT\SystemRestore. - The attacker updates
DisableSRorDisableConfigvalues to0x00000001to explicitly disable System Restore functionality. - The attacker may further modify additional security settings or install persistence mechanisms to sustain the foothold.
- Final objective is achieved, such as data exfiltration, ransomware deployment, or long-term command-and-control communication.
Impact
The primary impact of this activity is the permanent loss of system recovery points, forcing defenders to rely on full imaging or clean builds for remediation. Disabling System Restore is a persistent evasion tactic that creates significant operational friction for security teams responding to RAT infections. If the modification remains undetected, an attacker can maintain persistence across reboots, facilitating ongoing data theft or further malicious activity on the targeted host.
Recommendation
- Deploy the provided Sigma rule to monitor for unauthorized modifications to System Restore registry keys using Sysmon Event ID 13.
- Establish a baseline for authorized administrative changes to System Restore settings to tune out legitimate maintenance activity.
- Audit endpoint configurations for registry-based hardening policies that prevent modification of System Restore registry hives.
- Investigate instances where
DisableSRorDisableConfigare set to1by non-privileged or suspicious processes immediately.
Immediate actions
Deploy registry monitoring rules for System Restore paths
Threat Hunt
Search for historical registry modifications to SystemRestore keys
Data: Registry modification logs
Mitigations
Restrict write access to HKLM\SOFTWARE\Microsoft\Windows NT\SystemRestore
T1490
Detection coverage 1
Detect System Restore Disablement via Registry Modification
mediumDetects unauthorized modification of registry keys used to disable System Restore functionality
Detection queries are available on the platform. Get full rules →