Principle:0xKoda WireMCP Kerberos Hash Formatting
| Knowledge Sources | |
|---|---|
| Domains | Security, Credential_Extraction, Cryptography |
| Last Updated | 2026-10-28 00:00 GMT |
Overview
Technique for formatting extracted Kerberos credential fields into hashcat-compatible hash strings keyed by Kerberos message type.
Description
Kerberos hash formatting transforms raw Kerberos dissection fields (client name, realm, ciphertext, message type) into the specific hash format expected by offline cracking tools like hashcat and John the Ripper. The format depends on the Kerberos message exchange type:
- AS-REQ / TGS-REQ (msgType 10 or 30): The pre-authentication request contains an encrypted timestamp. The hash format is `$krb5pa$23$<cname>$<realm>$<cipher>`, cracked with hashcat mode 7500.
- AS-REP (msgType 11): The authentication reply contains an encrypted payload derivable from the user's password. The hash format is `$krb5asrep$23$<cname>@<realm>$<cipher>`, cracked with hashcat mode 18200.
The `23` suffix denotes RC4-HMAC (etype 23), the most common target for offline Kerberos cracking due to its known-weakness relative to AES etypes.
Usage
Use this principle when you have extracted Kerberos credential fields from a packet capture and need to produce hash strings for offline password cracking with hashcat or John the Ripper.
Theoretical Basis
Pseudo-code Logic:
# Abstract algorithm (NOT real implementation)
def format_kerberos_hash(cname, realm, cipher, msg_type):
if msg_type in ("10", "30"): # AS-REQ or TGS-REQ
return f"$krb5pa$23$${cname}${realm}${cipher}", "hashcat -m 7500"
elif msg_type == "11": # AS-REP
return f"$krb5asrep$23${cname}@{realm}${cipher}", "hashcat -m 18200"
else:
return None, None # Unsupported message type
The hash format encodes three pieces of metadata: the hash mode identifier (`$krb5pa$` vs `$krb5asrep$`), the etype (23 = RC4-HMAC), and the salt components (cname, realm). The cracking tool uses these to drive the correct cryptographic attack.