Windows Registry Abuse to Disable Lock Workstation Feature
Threat actors and ransomware operators modify the Windows Registry to disable the workstation lock feature, ensuring persistent access and preventing user interference during malicious operations.
Attackers, including ransomware groups, utilize registry modifications to disable the native Windows Lock Workstation feature. By setting the 'DisableLockWorkstation' registry value to '0x00000001' within the 'Policies\System' hive, adversaries prevent legitimate users from locking their sessions. This tactic serves as a defense evasion mechanism, allowing attackers to maintain active sessions, bypass user-interaction hurdles during malicious activity, and ensure their presence remains uninterrupted on the compromised system. This behavior has been documented in association with various malware strains, including ransomware variants and remote access trojans (RATs) such as FatalRAT, which leverage this configuration change to sustain control over target environments.
Attack Chain
- Attacker gains initial access to the Windows endpoint via phishing, exploit, or credential theft.
- Attacker executes malicious binary or script with elevated privileges required to modify system-wide policies.
- Attacker identifies the target registry path: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
- Attacker writes the key 'DisableLockWorkstation' with a DWORD value of 1 to the identified registry path.
- The modification takes effect, causing the 'Lock' option to be removed or disabled for the active user session.
- Attacker continues malicious operations, such as data exfiltration or ransomware encryption, without the risk of the system locking due to inactivity.
Impact
The primary impact of this modification is the subversion of local security controls and the maintenance of an unlocked session. This ensures that attackers can execute further malicious actions without user interruption. While not resulting in direct data theft by itself, it is a precursor to more severe impact activities like ransomware deployment, where persistent access is required to complete encryption cycles across a network.
Recommendation
- Deploy the provided Sigma rule to monitor for registry modifications targeting the 'DisableLockWorkstation' key.
- Use endpoint protection platforms to restrict registry modification permissions for non-administrative processes or users.
- Monitor Sysmon Event ID 13 (Registry Event) for value changes to the specified path and correlate with suspicious parent processes.
Immediate actions
Deploy the Sigma detection rule to the SIEM.
Threat Hunt
Search for historical occurrences of this registry modification in logs.
Data: Registry modification logs (Sysmon EID 13 or EDR telemetry).
Detection coverage 1
Detect Windows Disable Lock Workstation Registry Modification
mediumDetects unauthorized modification of the DisableLockWorkstation registry key, which disables the ability to lock the screen.
Detection queries are available on the platform. Get full rules →