Network-Level Authentication (NLA) Disabled via Registry Modification
Detection of attempts to disable Network-Level Authentication (NLA) by modifying the registry on Windows systems, potentially enabling persistence methods and unauthorized access.
This threat brief focuses on the detection of unauthorized attempts to disable Network-Level Authentication (NLA) on Windows systems. NLA is a security feature that requires users to authenticate before a Remote Desktop Protocol (RDP) session is fully established, adding a layer of protection against unauthorized access. Attackers might disable NLA to bypass this authentication requirement, enabling various persistence mechanisms, particularly those leveraging Accessibility Features like Sticky Keys, which can grant access to the system without valid credentials. This activity is often associated with lateral movement and defense evasion tactics. The rule identifies registry modifications to the UserAuthentication value within specific registry paths related to RDP configuration. Disabling NLA makes the system more vulnerable to unauthorized access and potential compromise.
Attack Chain
- Initial access to the target system through compromised credentials or an existing vulnerability (not covered in source).
- The attacker gains a foothold and establishes a command-and-control (C2) channel (not covered in source).
- The attacker attempts to disable Network-Level Authentication (NLA) by modifying the
UserAuthenticationregistry value. - The registry key
HKLM\SYSTEM\ControlSet*\Control\Terminal Server\WinStations\RDP-Tcp\UserAuthenticationor similar is targeted. - The
UserAuthenticationvalue is changed to "0" or "0x00000000" to disable NLA. - The attacker leverages the disabled NLA to enable persistence mechanisms, such as utilizing Accessibility Features like Sticky Keys.
- The attacker gains unauthorized access to the Windows sign-in screen without proper authentication.
- The attacker achieves persistence and maintains unauthorized access to the compromised system.
Impact
Disabling NLA significantly weakens the security posture of Windows systems, making them more susceptible to unauthorized access and lateral movement. Successful exploitation can lead to credential theft, data exfiltration, and the deployment of ransomware. While the number of affected systems and sectors are not specified, the impact is widespread as it affects any Windows system with RDP enabled.
Recommendation
- Deploy the Sigma rule "Detect NLA Disabled via Registry" to your SIEM and tune for your environment to detect the modification of the
UserAuthenticationregistry value (see rule below). - Monitor registry modification events related to RDP configuration using Sysmon or other endpoint detection and response (EDR) solutions to detect potential NLA disabling attempts.
- Review and update endpoint security policies to ensure that registry changes related to NLA are monitored and alerts are generated for any unauthorized modifications, as described in the overview section.
- Investigate any alerts generated by the Sigma rules, focusing on identifying the user account and process responsible for the registry modification, as outlined in the triage steps.
Detection coverage 2
Detect NLA Disabled via Registry
mediumDetects when Network-Level Authentication (NLA) is disabled via registry modification by setting UserAuthentication to 0
Detect NLA Disabled via Registry (Alternate Path)
mediumDetects when Network-Level Authentication (NLA) is disabled via registry modification in an alternate registry path.
Detection queries are available on the platform. Get full rules →