Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2020-1472-ZeroLogon-Demo-Detection-Mitigation — Educational demo of CVE-2020-1472 (ZeroLogon) detection using Windows Event Logs and Suricata IDS, plus mitigation via Windows Updates. Includes vulnerability testing script and custom Suricata rules. | Kitploit
Tools/GitHubGitHub/tdevworks/cve-2020-1472-zerologon-demo-detection-mitigation
Vulnerability AnalysisIDS/IPS EvasionNetwork SecurityIntrusion DetectionLearning & EducationLog Analysis
GitHubtdevworks/cve-2020-1472-zerologon-demo-detection-mitigation

CVE-2020-1472-ZeroLogon-Demo-Detection-Mitigation

Educational demo of CVE-2020-1472 (ZeroLogon) detection using Windows Event Logs and Suricata IDS, plus mitigation via Windows Updates. Includes vulnerability testing script and custom Suricata rules.

View Repository
471 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2020-1472 (ZeroLogon) Detection and Mitigation Demo

This project demonstrates the detection and mitigation of the critical Windows vulnerability CVE-2020-1472, also known as ZeroLogon. The vulnerability allows attackers to gain unauthenticated administrative access. This was developed as part of a school cybersecurity project. The PoC code credit goes to Tom Tervoort (Secura) and the Suricata ruleset credits goes to Proofpoint Emerging Threats.

Key components:

  • Testing a domain controller’s vulnerability using a PoC script
  • Monitoring for indicators via Windows Event Logs
  • Implementing Suricata IDS with custom rules
  • Applying Windows Updates

Demonstrated Detection Techniques

1. Vulnerability Testing Script

  • Python script by Tom Tervoort (Secura)
  • Leverages the impacket library to test a domain controller’s vulnerability via Netlogon authentication bypass

2. Windows Event Log Analysis

Look for these key events:

  • 4624: Successful logon using DC credentials
  • 4672: Special privileges assigned to attacker (e.g., admin)
  • 5805: Netlogon error events (indicator of exploitation)
  • 3. Intrusion Detection Using Suricata

    • Uses Suricata to analyse network traffic on the domain controller
    • Implements custom rules from the Proofpoint Emerging Threats ruleset
    • Detects sequences of zero bytes commonly used in the ZeroLogon exploit

    Requirements

    To replicate this demonstration, the following setup is required:

    Attacker Machine

    • Virtual - VirtualBox (using NATNetwork for VM networking)
    • Kali Linux (any recent version)
    • Testing script from GitHub repository (saved to Desktop): ZeroLogon testing script by TomTervoortSecura

    Target Machine

    • VirtualBox (same NATNetwork configuration with Promiscuous mode enabled)
    • Windows Server 2019 Essentials (updated Sept 2019)
      • A new domain and DC created (using Target Machine server as DC)
    • Suricata
    • Microsoft C++ Redistributable
    • Npcap
    • Notepad++
    • Rules file from Proofpoint Emerging Threats Rules repository emerging-all.rules by Proofpoint

    Configuration Note: The Suricata configuration was modified using Notepad++:

    • HOME_NET was set to the IP address of the Target machine
    • The rule-files section was updated to use the emerging-all.rules file

    Demonstration of Detection Approaches

    Step 1: Find out Target Machine Computer Name and IP address

    1. Open Server Manager.
    2. Navigate to Local Server. Take note of the Computer Name and IP address found under Ethernet. In this demonstration, the computer name is FTB4-Victim-Win, and the IP address is 10.0.2.4

    Screenshot 2025-05-17 154115


    Step 2: Launch Vulnerability Testing Script

    1. In the Attacker Machine, open Terminal
    2. Execute the Python testing script with the target machine computer name and IP:
    root@kitploit:~
    python /home/kali/Desktop/CVE-2020-1472-master/zerologon_tester.py <target computer name> <target IP>
    
    1. The script will conclude with the message indicating that the domain controller can be fully compromised by a ZeroLogon attack.

    Screenshot 2025-05-17 154323


    Step 3: Analysing Windows Event Log

    1. Now in the Target machine, launch Event Viewer. The icon is on the taskbar.
    2. Navigate to Windows Logs, then Security.
    3. As shown below, there are two Security events relating to the ZeroLogon bypass: Event 4672 and Event 4624.

    Screenshot 2025-05-17 154640

    Screenshot 2025-05-17 154651

    1. Go to System, also under Windows Logs. Scroll down until you see the event with Level as Error and Source as NETLOGON. Select it. This is another event relating to the ZeroLogon bypass.

    Screenshot 2025-05-17 154942

    1. You may close Windows Event Viewer.

    Step 4: Intrusion Detection Using Suricata

    1. In the Target machine, open Command Prompt as Administrator.
    2. Execute the following command to launch Suricata:
    root@kitploit:~
    cd C:\Program Files\Suricata\
    
    1. Execute the following command with the approrpriate IP address
    root@kitploit:~
    suricata -c suricata.yaml -i <target IP> -l log
    

    Screenshot 2025-05-17 155501

    1. Open File Explorer from the icon in the taskbar. Navigate to C:\Program Files\Suricata\log
    2. Type powershell on the navigation bar and press Enter. Windows PowerShell will launch.

    Screenshot 2025-05-17 155647

    1. In Windows PowerShell, type get-content .\fast.log -wait and press Enter. Ignore all the previous logs as they were from previous testing and scroll down to the empty space.

    Screenshot 2025-05-17 155901

    1. In the Attacker machine and launch the Python testing script again.
    2. Now go back to the Target machine and take note of the new alerts generated. These alerts indicate an attempt or exploitation of ZeroLogon.

    Screenshot 2025-05-17 160035

    1. You may close the Windows PowerShell and Command Prompt windows.
    2. Open fast.txt. The logs are saved in this file.

    Screenshot 2025-05-17 160136

    Demonstration of Mitigation Approach

    The most effective mitigation for CVE-2020-1472 (ZeroLogon) is to install the latest Windows security updates.

    Steps:

    1. On the Target Machine, open the Settings app.
    2. Navigate to Update and Security → Windows Update
    3. Click "Check for updates" and allow the system to download and install the latest updates.
    4. Reboot the machine if required.

    Screenshot 2025-05-17 160314

    These updates apply Microsoft's fix for the ZeroLogon vulnerability by enforcing secure remote protocol usage and enable enforcement mode by default in domain controllers.


    Note on Limitations

    The detection and mitigation approaches demonstrated in this project are designed for educational purposes within a controlled lab environment. While effective in illustrating the concepts behind CVE-2020-1472 (ZeroLogon), they have limitations and are not fully practical for deployment in real-world enterprise environments. As this is a school project, the focus is on learning and understanding cybersecurity techniques rather than implementing production-grade solutions.

    Acknowledgements

    Special thanks to

    • Tom Tervoort (Secura) for the original ZeroLogon testing script
      https://github.com/SecuraBV/CVE-2020-1472
    • Bandar Alanazi for the ZeroLogon detection approaches via Windows Event logs https://0xbandar.medium.com/detecting-the-cve-2020-1472-zerologon-attacks-6f6ec0730a9e
    • Proofpoint Emerging Threats for their Suricata rules used to detect ZeroLogon exploit attempts
      https://rules.emergingthreats.net/open/
    • Microsoft for documentation on update KB4601345 and guidance on CVE-2020-1472 patching
      https://support.microsoft.com/en-us/topic/february-9-2021-kb4601345-os-build-17763-1757-expired-c38b7b85-0d84-d979-1a29-e4ba97b82042

    References

    • CVE-2020-0796 Remote Code Execution POC
    • Detecting the CVE-2020–1472 (Zerologon) attacks" by Bandar Alanazi
    • Proofpoint Emerging Threats Rules
    • February 9, 2021—KB4601345 (OS Build 17763.1757) - EXPIRED

    Author

    @tdevworks

    Disclaimer

    This repository is created for educational purposes only.

    All tools, scripts, and techniques demonstrated are intended to help understand cybersecurity vulnerabilities in a controlled lab environment. Do not attempt to use any of the provided materials on systems or networks that you do not own or have explicit permission to test.

    The author is not responsible for any misuse of the information provided.

    Download Tool