Skip to content
StrongWind1Public

About

Comprehensive reference for Kerberos authentication in Microsoft Active Directory: protocol internals, security configuration, and attack techniques

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Latest commit

 

History

127 Commits

Folders and files

Repository files navigation

Kerberos in Active Directory

How Kerberos works in Active Directory, how to harden it, and how it gets attacked.

Docs build License: Apache 2.0 Docs

Protocol • Security • Attacks • Documentation


A reference for Kerberos in Active Directory, written for administrators, defenders, and penetration testers. It starts from first principles, cites RFC 4120 and MS-KILE down to the section, and backs the encryption type and registry guidance with lab results from Server 2022 and Server 2025 domain controllers.

RC4 enforcement

RC4 is no longer a Kerberos default. A domain controller with the April 2026 cumulative update or later treats any account without an explicit msDS-SupportedEncryptionTypes as AES-only (CVE-2026-20833, KB5073381). Each DC follows its installed update, not the calendar. Per Microsoft, updates from July 2026 onward also remove the RC4DefaultDisablementPhase rollback value; the lab results here cover builds up to June 2026.

Protocol

How Kerberos works on the wire in Active Directory: the exchanges, ticket structures, and key derivation.

Page What it covers
Active Directory components DCs, KDCs, the Global Catalog, and how AD maps to Kerberos concepts
Principals and realms UPNs, SPNs, realm trust, and principal naming
Protocol overview The three-party model and the full AS/TGS/AP exchange sequence
AS exchange TGT acquisition, pre-authentication, PA-ETYPE-INFO2, and the krbtgt key
TGS exchange Service ticket issuance, etype selection, and the KDC's decision logic
AP exchange Authenticator construction, mutual authentication, and session key establishment
Ticket structure Wire format, PAC contents, PAC signatures, and the impact of KB5008380
Pre-authentication PA-DATA types, FAST armoring, and what happens when pre-auth is disabled
Encryption types DES, RC4, AES128, AES256: key derivation, usage, and negotiation rules
S4U extensions S4U2Self, S4U2Proxy, the FORWARDABLE flag, and RBCD vs constrained delegation
Cross-realm auth Inter-forest referrals, trust keys, and cross-realm ticket flow
Delegation Unconstrained, constrained, and resource-based constrained delegation

Security

How the KDC picks an encryption type, what each setting does, and how to run a domain where RC4 is opt-in only: audit, configure, migrate, and keep exceptions small.

Encryption

Page What it covers
Encryption negotiation How KDC, client, and service account flags combine to select an etype
Etype decision guide Every input that decides which etype appears in a ticket
Algorithms and keys DES, RC4, and AES key derivation, cracking speed compared, and the double-reset problem

Configuration

Page What it covers
msDS-SupportedEncryptionTypes Bit flags, defaults per account type, bulk queries, and bulk update scripts
Registry settings Every Kerberos-relevant registry value on DCs and clients, with safe defaults
Registry audit Lab-validated registry reference with the observed behavior of each key
Group Policy GPO settings that affect Kerberos, override precedence, and gotchas

Hardening

Page What it covers
RC4 enforcement: am I affected? Symptom-to-fix runbook for KDC_ERR_ETYPE_NOSUPP and Kdcsvc 203/204/208/209
RC4 deprecation CVE-2026-20833: what shipped, Kdcsvc events 201-209, and how to scope RC4 exceptions
Auditing Kerberos keys Finding accounts with weak or missing AES keys
AES standardization guide AES migration playbook: two paths, every command, every verification step
Mitigations Defenses ranked by impact, from gMSA deployment to KRBTGT rotation

Start here and troubleshooting

Page What it covers
Quick start guide 5-minute encryption type overview with diagrams
Troubleshooting Common Kerberos errors, event IDs, and diagnostic procedures

Interactive tools

Tool What it does
Encryption type calculator Computes the winning etype for any combination of account flags and registry settings
Event decoder Decodes Kerberos events 4768, 4769, 4770, and 4771 into readable output
Get-KdcKerberosRegistryAudit.ps1 Read-only PowerShell audit of the Kerberos registry values on every domain controller (usage)

Attacks

Each major Kerberos attack, with why it works at the protocol level, how to defend against it, and how to detect it. Tool installation is on the Tools setup page.

Roasting (offline credential cracking)

Attack Target Hashcat mode
Kerberoasting TGS-REP enc-part (user service account key) 13100 (RC4), 19700 (AES256)
AS-REP roasting AS-REP enc-part (accounts without pre-auth) 18200 (RC4), 32200 (AES256)
AS-REQ roasting PA-ENC-TIMESTAMP (passive capture) 7500 (RC4), 19900 (AES256)

Credential theft

Attack What it abuses
Pass-the-ticket A stolen TGT or service ticket injected into a session
Pass-the-key An RC4 or AES key used directly, without the plaintext password
Password spraying AS-REQ pre-auth failures as a low-noise enumeration oracle
User enumeration KDC error codes that tell valid usernames from invalid ones

Ticket forgery

Attack What it forges
Golden ticket An arbitrary TGT, using the krbtgt key
Silver ticket An arbitrary service ticket, using the target account key
Diamond ticket A legitimate TGT modified with a forged PAC
Sapphire ticket A forged TGT carrying a legitimate PAC obtained via S4U2Self

Delegation abuse

Attack What it abuses
Delegation attacks Unconstrained, constrained, and RBCD misconfigurations
S4U2Self abuse Computer account S4U for local privilege escalation
SPN-jacking Redirecting delegation by moving SPNs between accounts

Development

git clone https://github.com/StrongWind1/Kerberos.git && cd Kerberos
uv sync --group docs   # install dependencies
make serve             # live preview at http://127.0.0.1:8000
make docs              # strict build: broken internal links and anchors fail
make check             # build, lint, JS and PowerShell tests, HTML and accessibility checks

Page sources live in content/ (not docs/), shared snippets and tables in includes/, the browser tools in content/javascripts/ (tests in tests/js/), and the audit script in scripts/ (tests in tests/ps/). docs/ holds the unpublished lab notes the security pages are built from.

Credits

Built from RFC 4120, RFC 3961, RFC 3962, MS-KILE, MS-PAC, and MS-SFU. Attack examples use impacket, and the RC4 audit pages use Microsoft's Kerberos-Crypto scripts. The full list is under Authoritative references.

Related tools

  • CredWolf: Validate AD passwords, hashes, keys, and tickets over NTLM and Kerberos
  • KerbWolf: Kerberos roasting and TGT attack toolkit for Active Directory
  • NTDSWolf: Offline NTDS.dit parser and credential extractor for NT/LM hashes, Kerberos keys, LAPS, and gMSA
  • PassWolf: Spec-compliant AD password change, reset, and policy read over SAMR, Netlogon, LSA, Kerberos, LDAP
  • AD-SecretGen: Derive every password-derived AD secret (NT/LM, Kerberos keys, WDigest) from a password
  • ntcompress: Pure-Python ESE record compression and ntdll RtlCompressBuffer/RtlDecompressBuffer formats

All tools: strongwind.dev

Disclaimer

This material is for authorized security testing, research, and education. Use it only against systems and networks you own or have written permission to test. You are responsible for how you use it.

License

Apache License 2.0

About

Comprehensive reference for Kerberos authentication in Microsoft Active Directory: protocol internals, security configuration, and attack techniques

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages