Windows Authentication
NTLM and Kerberos.
Windows Authentication is a free Ethical Hacking Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
How Windows Proves Identity
Windows authentication verifies who a user is before granting access. In domains this happens constantly between clients and the domain controller.
The two main protocols are NTLM (older, challenge-response) and Kerberos (modern, ticket-based). Both are heavily targeted.
Password Hashes
Windows never stores plaintext passwords for local accounts; it stores hashes in the SAM database. The key format is the NT hash (an MD4 of the password).
If an attacker dumps these hashes, they can crack them offline or reuse them directly.
NTLM Challenge-Response
NTLM authenticates without sending the password:
- Server sends a random challenge.
- Client encrypts it with the NT hash and replies.
- Server (or DC) verifies the response.
It is legacy but still enabled in many networks for compatibility.
Pass-the-Hash
Because NTLM authenticates using the hash rather than the plaintext, an attacker who steals a hash can authenticate without ever cracking it.
This is Pass-the-Hash (PtH) - a powerful lateral movement technique against NTLM.
Kerberos Overview
Kerberos is the default in Active Directory. It uses a trusted Key Distribution Center (KDC) on the domain controller and time-limited tickets instead of repeatedly sending credentials.
TGT and Service Tickets
Kerberos flow:
- User authenticates and receives a Ticket Granting Ticket (TGT).
- To use a service, the client presents the TGT and gets a Service Ticket (TGS).
- The service validates the ticket - no password sent.
Kerberoasting
Kerberoasting requests service tickets for accounts running services (SPNs). The ticket is encrypted with the service account's password hash.
An attacker extracts the ticket and cracks it offline to recover the service account password.
Pass-the-Ticket and Golden Tickets
Kerberos tickets can also be stolen and reused (Pass-the-Ticket). Worse, if an attacker compromises the krbtgt account hash, they can forge a Golden Ticket - a self-made TGT granting domain-wide access.
Dumping Credentials
Many attacks begin with credential extraction from a compromised host. Tools dump hashes and tickets from lsass.exe memory or the SAM/SECURITY hives.
Mimikatz is the best-known tool; secretsdump is a common remote alternative.
Hardening Authentication
Defenders reduce these risks by:
- Disabling NTLM where possible.
- Enforcing strong, long passwords for service accounts.
- Protecting lsass (Credential Guard, PPL).
- Rotating the krbtgt key and limiting admin reuse.
Checking Your Session
You can inspect the current authentication context and cached Kerberos tickets from a session.
whoami /upn
klist # lists cached Kerberos ticketsQuick Check
Recognize the NTLM-specific attack.
Recap
You learned how Windows authenticates and is attacked:
- NT hashes in the SAM enable offline cracking and Pass-the-Hash.
- Kerberos uses a KDC, TGTs, and service tickets.
- Kerberoasting, Pass-the-Ticket, and Golden Tickets abuse Kerberos.
- Hardening: disable NTLM, protect lsass, strong service passwords.
Next: offensive PowerShell.
Frequently asked questions
Is the “Windows Authentication” lesson free?
Yes — the full text of “Windows Authentication” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.
What will I learn in “Windows Authentication”?
NTLM and Kerberos. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Ethical Hacking Academy?
No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Windows Authentication” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Ethical Hacking Academy lesson?
Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Windows Architecture
- The Registry
- Windows Authentication
- PowerShell for Attackers