Detection of Registry Modification to Disable Automatic Windows Update Reboots
Adversaries, including RedLine Stealer operators, modify the 'NoAutoRebootWithLoggedOnUsers' registry value to prevent system reboots, facilitating persistence and uninterrupted malicious operations.
Adversaries and malware, such as the RedLine Stealer infostealer, frequently employ defense evasion techniques to maintain long-term access to compromised hosts. A documented tactic involves modifying the Windows registry key SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoRebootWithLoggedOnUsers to a value of 0x00000001.
By setting this value, the attacker prevents the operating system from performing automatic reboots following Windows Update installations while a user session is active. This ensures that the attacker's malicious payloads, C2 persistence mechanisms, or data exfiltration processes are not disrupted by unplanned system restarts. While this configuration is occasionally used by system administrators for uptime-critical environments, its sudden appearance in a host's registry - particularly when performed by non-standard processes - is a high-fidelity indicator of post-exploitation persistence hardening.
Attack Chain
- Initial infection via malware such as RedLine Stealer.
- Execution of a dropper or secondary payload with local administrative privileges.
- Escalation of privileges to modify system-level registry keys.
- Accessing the registry hive at
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\. - Setting the
NoAutoRebootWithLoggedOnUsersvalue to0x00000001. - Persistence maintained through ongoing malicious operations without interruption.
- Deployment of subsequent payloads or exfiltration of sensitive data.
- Final objective reached: long-term persistence on the compromised endpoint.
Impact
Successful exploitation of this technique allows an attacker to harden their foothold on the target machine. By disabling automatic reboots, the attacker ensures that security updates do not inadvertently terminate their process or require a reboot that might alert the user or interfere with exfiltration. This tactic has been observed in campaigns targeting Windows endpoints across various sectors, impacting the integrity and stability of the host environment.
Recommendation
Prioritize monitoring for unauthorized registry modifications targeting Windows Update policies to detect early-stage persistence hardening.
- Deploy the provided Sigma rule to your SIEM to flag suspicious registry changes.
- Audit endpoint telemetry using Sysmon Event ID 13 to identify processes modifying the
NoAutoRebootWithLoggedOnUsersvalue. - Investigate the process lineage associated with any suspicious registry changes to determine if they originate from authorized system management software or unknown/malicious binaries.
- Tune the detection to exclude legitimate system management tools used in your environment to maintain low false positive rates.
Immediate actions
Deploy Sigma rule to identify unauthorized registry modifications.
Threat Hunt
Search for existing registry modifications of 'NoAutoRebootWithLoggedOnUsers' across the estate.
Data: Registry modification logs
Mitigations
Enforce GPO policies to override manual registry changes to Windows Update settings.
Persistence via registry modification
Detection coverage 1
Detect Windows Registry Modification to Disable Auto Reboot
mediumDetects modifications to the Windows Update registry key that prevent automatic reboots while a user is logged on, a technique used by malware for persistence.
Detection queries are available on the platform. Get full rules →