How Tanium Can Help Find and Remediate "Zerologon" (CVE-2020-1472)
Overview
CVE-2020-1472 (also known as "Zerologon") is a vulnerability in the Microsoft Netlogon protocol that is being actively exploited and that enables unauthenticated, anonymous attackers to take full control of domain controllers. Customers should patch their domain controllers ASAP. However, the patch tightens security in a way that can create compatibility problems with some client systems. Compatibility issues are logged on patched domain controllers. Therefore, to remain operational, customers must not only patch but must also actively monitor for and address these compatibility issues.Tanium has created content to help customers determine both their patch status and all compatibility issues with the patch, at scale:
-
A custom sensor to report vulnerability, patch, and "full enforcement" status of all Windows Domain Controllers and Linux Samba Servers;
-
A package/sensor combination that reports compatibility issues logged by patched Windows Domain Controllers.
Tanium customers can also view patch status with the Tanium Comply module and apply the patch to servers with the Tanium Patch module.
There are many misconceptions about "Zerologon," the effects of the patch, and what customers must do to remain secure and operational. For a brief overview, see Clarifying CVE-2020–1472 ("Zerologon").
In short, the recommended steps, in order, are:
-
Patch all Windows Domain Controllers and Linux Samba Servers;
-
Monitor events on Windows Domain Controllers for compatibility issues with insecure clients, and address those issues to bring them into compliance;
-
Configure Windows Domain Controllers for "full enforcement" of the new security restrictions for non-Windows clients once they are compliant (or retired).
View on Demand Webinar: Zerologon (CVE-2020-1472): Find and Remediate in Real Time with Tanium
Custom content to identify "Zerologon" issues
Download and import custom content to address "Zerologon" issues here.
This content is considered "Labs" content and would need to be signed prior to importing into your environment. Here are the instructionsNo Content found for /db/organizations/tanium/repositories/master/content/documents/userguides/platform_user/index.dita to do so.
Sensor: CVE-2020-1472 Status
To find the patch status for domain controllers and to determine whether the "full-enforcement" registry setting (FullSecureChannelProtection) is configured, ask the following question:
Get CVE-2020-1472 Status from all machines
Results will resemble:
The single most important result to identify is the value "Is Patched" reporting **"False." ** All environments are at very high risk in that situation. Applying the registry setting is not nearly as important at this time. See this article for more information.
In order to get additional information needed for investigating the status of any of these systems, a simple drill-down in the Tanium console with sensors such as Computer Name and Operating System will give you the additional information you need.
Package: Check Domain Controllers for post-CVE-2020-1472 Authentication Issues, andSensor: Domain Controller Auth Issues After CVE-2020-1472 Patch
This package and sensor will return events on domain controllers pertaining to authentication issues with authorized machines. These are machines that are either being blocked already or that will be when "full enforcement" is applied either with the registry value or when Microsoft publishes its February 2021 update to this patch.
Use a targeting question such as
Get Online from all machines with Is DC equals True
to target your Domain Controllers with the Check Domain Controllers for post-CVE-2020-1472 Authentication Issues package.
The sensor reports on the results from the most recent execution of the package. If the package has not been executed, the sensor will return no results. To get updated results, the customer must re-run the package before querying the sensor. For best results, customers might want to create a Scheduled Action to run at regular intervals.
After deployment of the package, ask the following question:
Get Domain Controller Auth Issues After CVE-2020-1472 Patch from all machines with Is DC equals True
Results will resemble:
The Summary column indicates whether the noncompliant machines listed in the results are already being blocked due to the tightened security or will be blocked when "full enforcement" is applied. If "No events on this DC" is the only reported result, then no authentication issues were identified.
These compatibility events can be reported only by patched DCs. Unpatched DCs will report "UNPATCHED. Apply the CVE-2020-1472 patch to this DC."
Using Tanium Comply to determine patch status
If you cannot import and use the recommended custom content described above, Tanium Comply can be used to verify patch status.
The Tanium Vulnerability Library (TVL), used by Comply, has been updated to include definitions for identifying endpoints that are unpatched both on Linux and Windows. It is identified by running a standard vulnerability scan in the Comply service.
This does not include verifying "full enforcement" on Windows Domain Controllers. If your environment is airgapped, or not configured to automatically download updates, you will need to update the TVL in order to get new vulnerability signatures.
For more information on creating a report based on a vulnerability or a specific CVE, please refer to the Tanium Comply documentation.
Using Tanium Interact to identify unpatched, patched, and "full-enforcement-enabled" systems
While the recommended method of finding vulnerable systems in your environment is to use the provided sensor, we recognize that customers might not be able to import content easily. In that case, you can ask the queries described below in Interact using common content found in most Tanium installs to get similar data. (To query for compatibility issues without Tanium’s package/sensor combination described earlier, you will need to use another method to query the event logs of all your domain controllers.)
For Windows, if importing additional content is not an option:
To find unpatched systems, run the following Tanium question:
Get Computer Name and Operating System and File Version["C:\windows\system32\netlogon.dll"] from all machines with ( Is DC equals true and ( ( Windows OS Major Version equals 6.1 and File Version["c:\Windows\System32\netlogon.dll"] < 6.1.7601.24559 ) or ( Windows OS Major Version equals 6.2 and File Version["c:\Windows\System32\netlogon.dll"] < 6.2.9200.23119) or ( Windows OS Major Version equals 6.3 and File Version["C:\Windows\System32\netlogon.dll"] < 6.3.9600.19784 ) or ( Operating System Build Number equals 14393 and File Version["C:\Windows\System32\netlogon.dll"] < 10.0.14393.3866 ) or ( Operating System Build Number equals 17763 and File Version["C:\Windows\System32\netlogon.dll"] < 10.0.17763.1397 ) or ( Operating System Build Number equals 18362 and File Version["C:\Windows\System32\netlogon.dll"] < 10.0.18362.1016 )or ( Operating System Build Number equals 18363 and File Version["C:\Windows\System32\netlogon.dll"] < 10.0.18362.1016 )or ( Operating System Build Number equals 19041 and File Version["C:\Windows\System32\netlogon.dll"] < 10.0.19041.450 )) )
To find patched and partially mitigated machines (i.e., "full enforcement" not configured), run the following Tanium question:
Get Computer Name and Operating System and Registry Value Data[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters,FullSecureChannelProtection] from all machines with ( Is DC equals true and all Registry Value Data[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters,FullSecureChannelProtection] not matches "^N\A~1~.*$" and ( ( Windows OS Major Version equals 6.1 and File Version["c:\Windows\System32\netlogon.dll"] >= 6.1.7601.24559 ) or ( Windows OS Major Version equals 6.2 and File Version["c:\Windows\System32\netlogon.dll"] >= 6.2.9200.23119) or ( Windows OS Major Version equals 6.3 and File Version["C:\Windows\System32\netlogon.dll"] >= 6.3.9600.19784 ) or ( Operating System Build Number equals 14393 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.14393.3866 ) or ( Operating System Build Number equals 17763 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.17763.1397 ) or ( Operating System Build Number equals 18362 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.18362.1016 )or ( Operating System Build Number equals 18363 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.18362.1016 )or ( Operating System Build Number equals 19041 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.19041.450 ) ) )
To find patched and remediated (full enforcement enabled) machines, run the following Tanium question:
Get Computer Name and Operating System and Registry Value Data[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters,FullSecureChannelProtection] from all machines with ( Is DC equals true and all Registry Value Data[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters,FullSecureChannelProtection] matches "^N\A~1~.*$" and ( ( Windows OS Major Version equals 6.1 and File Version["c:\Windows\System32\netlogon.dll"] >= 6.1.7601.24559 ) or ( Windows OS Major Version equals 6.2 and File Version["c:\Windows\System32\netlogon.dll"] >= 6.2.9200.23119) or ( Windows OS Major Version equals 6.3 and File Version["C:\Windows\System32\netlogon.dll"] >= 6.3.9600.19784 ) or ( Operating System Build Number equals 14393 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.14393.3866 ) or ( Operating System Build Number equals 17763 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.17763.1397 ) or ( Operating System Build Number equals 18362 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.18362.1016 )or ( Operating System Build Number equals 18363 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.18362.1016 )or ( Operating System Build Number equals 19041 and File Version["C:\Windows\System32\netlogon.dll"] >= 10.0.19041.450 ) ) )
Using Tanium Patch to remediate unpatched servers
Use Tanium Patch to deploy the latest patches or patches that include CVE-2020-1472 to domain controllers. Windows Server 2008 R2 will require extended security updates (ESU).
The following Patch List that can be used to update or report on vulnerable domain controllers:
Here is a good example of creating a targeted patch cycle to remediate a specific vulnerability.If you can configure "full enforcement" of the patch’s security restrictions before the February 2021 update, you should. To do so, you need to change a registry value, which Microsoft documents in this article . Please note the warnings and concerns voiced by Microsoft when applying the registry setting, but if desired, here is a good example of setting a registry value appropriately using Tanium.
Using Tanium’s custom content to identify "Zerologon" issues with Samba Server
With Zerologon being a protocol-level vulnerability and Samba implementing the Netlogon protocol, Samba is also potentially vulnerable when used as a domain controller. The provided CVE-2020-1472 sensor is the best method for assessing Samba Server found in your environment. The sensor evaluates the presence of SMBD and then leverages the Samba config validation tool "testparm" to examine the configuration of Samba to look for an insecure configuration.
For Linux-based systems running Samba Server, if importing additional content is not an option:
To identify where Samba is currently running in your environment, you can run the following Tanium question:
Get Computer Name and Running Processes contains smbd from all machines with Running Processes contains smbd
This will help you find Samba Server running in your environment. Once identified, manual inspection would be needed to determine if the configuration is secure or not.
Samba has been shipping with a secure by default configuration since version 4.8 was released in early 2019. For additional information, it’s recommended that you follow the guidance provided by the Samba team. Remediation efforts should be handled manually in this instance.
References:
CVE-2020-1472 | Netlogon Elevation of Privilege Vulnerability
How to manage the changes in Netlogon secure channel connections associated with CVE-2020-1472
Samba – Unauthenticated domain takeover via netlogon ("ZeroLogon")