Suspicious Modification of Windows Legal Notice Registry Keys
Adversaries modify Windows LegalNotice registry values to display custom ransom messages during the login process as part of an extortion campaign.
Adversaries often target the Windows Registry to influence system behavior at login. By modifying the LegalNoticeCaption and LegalNoticeText registry keys located in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System, an attacker can force the operating system to display a message box to the user before they can log in. In the context of ransomware or extortion operations, threat actors use this capability to present victims with instructions for data recovery, contact information for extortion negotiations, or proof-of-compromise declarations. This technique provides a persistent, highly visible method of communication that survives system reboots and forces interaction from any user attempting to access the workstation. Detecting unauthorized modifications to these specific registry keys is a high-fidelity indicator of potential system tampering for the purpose of coercion.
Attack Chain
- Attacker gains administrative access to the target endpoint.
- Attacker identifies the target registry hive (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System).
- Attacker uses command-line utilities like reg.exe or PowerShell to modify registry values.
- Attacker updates the LegalNoticeCaption value to a warning header.
- Attacker updates the LegalNoticeText value to contain specific ransom-related keywords.
- The system configuration is updated to enforce the display of these strings on the next login attempt.
- The user is presented with the adversary's message upon the next login process.
- Final objective of extortion or psychological pressure on the victim is achieved.
Impact
Successful exploitation of this technique results in the immediate, high-visibility notification of compromised systems to end users and administrators. While the modification itself is not destructive, it is an indicator of an adversary with administrative privileges on the endpoint who is engaged in extortion activity. Failure to detect this can delay incident response during a broader ransomware or data exfiltration event, as the adversary controls the primary interface for system interaction.
Recommendation
Deploy the provided Sigma rule to monitor for suspicious modifications to LegalNotice registry keys. Filter for legitimate administrative activity (e.g., corporate policy banners) to reduce noise. Investigate any process modifying these keys that is not associated with authorized configuration management software.
Immediate actions
Deploy the Sigma rule to monitor for LegalNotice modifications.
Threat Hunt
Search for historical changes to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\
Data: Registry set events
Detection coverage 1
Detect Suspicious LegalNotice Registry Modification
highDetect changes to the LegalNoticeCaption or LegalNoticeText registry values containing keywords indicative of extortion or ransomware activity.
Detection queries are available on the platform. Get full rules →