exploiting-zerologon-vulnerability-cve-2020-1472

Exploits CVE-2020-1472 in Netlogon to reset domain controller machine account passwords.

1|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Yenn503/Net-Runners --skill exploiting-zerologon-vulnerability-cve-2020-1472-yenn503
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: exploiting-zerologon-vulnerability-cve-2020-1472
Source: https://github.com/Yenn503/Net-Runners/tree/main/.netrunner/skills/infra/exploiting-zerologon-vulnerability-cve-2020-1472
Command: npx skills add https://github.com/Yenn503/Net-Runners --skill exploiting-zerologon-vulnerability-cve-2020-1472-yenn503

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires impacket, crackmapexec, nmap.

What problem does it solve? Authorized red team operators and penetration testers need a structured, repeatable procedure to validate whether domain controllers are vulnerable to Zerologon (CVE-2020-1472), demonstrate the impact of the flaw, and confirm that detection controls fire correctly. ## Core Features & Use Cases - Vulnerability Verification: Scan and confirm unpatched domain controllers using nmap, CrackMapExec, and a Zerologon checker before exploitation. - Guided Exploitation Chain: Step-by-step workflow covering the Netlogon authentication bypass, machine account password reset, DCSync with secretsdump.py, and pass-the-hash domain admin access via psexec or wmiexec. - Detection and Remediation Content: Includes Windows Event IDs (4742, 5805, 4624), a Suricata rule, a Sigma rule, and hardening guidance including KB4571694 and enforcement mode. - Use Case: During an authorized Active Directory assessment, an operator uses this workflow to prove a DC is exploitable, dump domain hashes to demonstrate impact, then restore the machine account password to avoid breaking replication. ## Quick Start Ask the agent to check whether the domain controller at a given IP is vulnerable to Zerologon and, if authorized, run the full exploitation and restoration workflow.

Frequently Asked Questions about exploiting-zerologon-vulnerability-cve-2020-1472

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit Zerologon CVE-2020-1472 against a domain controller?▼

Run the Impacket-based exploit script against the target DC, which sends roughly 256 Netlogon authentication attempts until the zero-IV AES-CFB8 bypass succeeds and sets the machine account password to empty. Then use secretsdump.py with no password to perform a DCSync and dump domain hashes.

How to check if a domain controller is vulnerable to Zerologon?▼

Use the zerologon_tester.py script against the DC hostname and IP, or run CrackMapExec with the zerologon module. You can also scan with nmap on ports 135, 139, 389, and 445 to identify domain controllers first.

Which Windows Server versions are affected by CVE-2020-1472?▼

Windows Server 2008 R2 through Windows Server 2019 domain controllers running the unpatched Netlogon service are affected. Samba versions below 4.8 acting as an AD DC are also vulnerable. Systems patched with KB4571694 and February 2021 enforcement mode are protected.

Why does Active Directory break after a Zerologon exploit?▼

The exploit sets the DC machine account password to empty, which breaks secure channel communication, replication, and domain services. You must restore the original password using the restore script, netdom resetpwd, or a DC reboot after testing.

How can defenders detect Zerologon exploitation attempts?▼

Monitor Windows Event ID 5805 for repeated Netlogon authentication failures, Event ID 4742 for DC machine account changes, and Event ID 4624 type 3 logons from unexpected IPs. The skill also provides a Suricata rule and a Sigma rule keyed on these indicators.