LevelBlue Completes Acquisition of Cybereason. Learn more

LevelBlue Completes Acquisition of Cybereason. Learn more

Services
Cyber Advisory
Managed Cloud Security
Data Security
Manage Detection & Response
Email Security
Managed Network Infrastructure Security
Exposure Management
Security Operations Platforms
Incident Readiness & Response
SpiderLabs Threat Intelligence
Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft Security
Unlock the full power of Microsoft Security
Securing the IoT Landscape
Test, monitor and secure network objects
Why LevelBlue
About Us
Awards and Accolades
LevelBlue SpiderLabs
LevelBlue Security Operations Platforms
Security Colony
Partners
Microsoft
Unlock the full power of Microsoft Security
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings

Network Detection for ZeroLogon CVE-2020-1472

ZeroLogon has quickly become popular and well known because of multiple proofs of concept and exploits implemented in Python, .NET, Powershell, and Mimikatz implemented a module for it. So if you are an attacker or need to test your environment then you have plenty of options. As defenders, we also have options for detection on the network. If you aren’t familiar with ZeroLogon and need a quick overview then please check out our ZeroLogon Blog.

When looking at the PoC code and corresponding network traffic, some elements standout that can be used for detection. One of the most glaring is the repeated NetrServerReqChallenge and NetrServerAuthenticate requests and responses.

Image001

Within the NetrServerAuthenticate request, you may want to create detections based on the DCE_RPC version, packet flags, and certainly the Opnum. Also, in the NetrServerAuthenticate section, the Client Credential may be visible as well as the Negotiation Options. Detection within NetrServerAuthenticate isn’t always possible as shown below. This section can and should be encrypted.

Image002

Image003

According to Secura’s report, it takes an average of 256 attempts to exploit. So looking for many NetrServerReqChallenge and NetrServerAuthenticate requests/responses and ending with a NetrServerPasswordSet request/response, can be useful for network detection. Though I have seen some reports on the attack working with much lower attempt numbers.

There is another detection mechanism that can be useful for detecting post exploit activity. If the password is changed for the domain controller itself, it creates errors within the network. According to Secura’s report, this is due to password discrepancies between active directory and registry. I noticed that once the DC’s password was modified I started getting KRB5KRB_AP_ERR_MODIFIED errors. This can be another mechanism for detection within the network, especially if the errors are coming from multiple clients.

Image004

Summary

In summary, there are two primary methods that can be used to identify the potential exploitation of Zerologon. Monitoring for a large number of NetrServerReqChallenge and NetrServerAuthenticate in a short period of time will identify attempts to force a ClientCredential to all zeros. The interval may vary depending on the network but it only takes about 3 seconds to complete the exploit. The threshold may need to be adjusted in the network to account for potential false positives or as the exploits become more mature but starting around 5-10 seconds should be safe. For more specific alerts that trigger on the full exploitation chain, you should monitor for where you see a large number of the Challenge/Authenticate which are followed by a NetrServerPasswordSet request/response.

Additionally, you can monitor for post-exploitation activity via Kerberos certificate errors that indicate that the server password has been modified.

As time goes on attacks will evolve and so will the detection mechanisms. For now, these network indicators can be a useful tool to add to your arsenal. Trustwave customers using our IDPS devices or ruleset service will find protection against exploits targeting this vulnerability.

ABOUT LEVELBLUE

LevelBlue is a globally recognized cybersecurity leader that reduces cyber risk and fortifies organizations against disruptive and damaging cyber threats. Our comprehensive offensive and defensive cybersecurity portfolio detects what others cannot, responds with greater speed and effectiveness, optimizes client investment, and improves security resilience. Learn more about us.

Latest Intelligence

Discover how our specialists can tailor a security program to fit the needs of
your organization.

Request a Demo