You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting errors using a golden ticket created with Mimikatz of KDC_TGT_Revoked and led me to an investigation to find out that the golden ticket created by mimikatz was failing to create the PAC field correctly, it is not properly setting the RequestorSID and the AttributeFlags how it should, even when the program claims it is doing so.
This was done in an environment in which PAC validation is enforced and therefore since the RequestorSID field is empty, the PAC validation fails and the golden ticket is revoked.
Replication Steps
Mimikatz Golden Ticket
I first generate a mimikatz golden ticket for a user called willywonka: kerberos::golden /domain:chocolatefactory.local /user:willywonka /sid:S-1-5-21-2377760704-1974907900-3052042330 /id:2000 /aes256:EA2344691D140975946372D18949706857EB9C5F65855B0E159E54260BEB365C /ticket:golden_mimikatz.kirbi
And the execution claims that the PAC is generated and signed:
User : willywonka
Domain : chocolatefactory.local (CHOCOLATEFACTORY)
SID : S-1-5-21-2377760704-1974907900-3052042330
User Id : 2000
Groups Id : *513 512 520 518 519
ServiceKey: ea2344691d140975946372d18949706857eb9c5f65855b0e159e54260beb365c - aes256_hmac
Lifetime : 18/04/2024 22:07:32 ; 16/04/2034 22:07:32 ; 16/04/2034 22:07:32
-> Ticket : golden_mimikatz.kirbi
* PAC generated
* PAC signed
* EncTicketPart generated
* EncTicketPart encrypted
* KrbCred generated
However, as i said previously this golden ticket was giving me the KDC_TGT_Revoked error, so i investigated and used rubeus to take a look at what was actually inside the ticket:
The AttributeFlags is properly set to PAC_WAS_REQUESTED and the RequestorSID is properly set
The text was updated successfully, but these errors were encountered:
g4uss47
changed the title
Mimikatz Golden Ticket fails to create PAC
Mimikatz Golden Ticket fails to create PAC attribute and fails when using it in a domain where PAC validation is enforced
Apr 18, 2024
g4uss47
changed the title
Mimikatz Golden Ticket fails to create PAC attribute and fails when using it in a domain where PAC validation is enforced
Mimikatz Golden Ticket fails to create PAC attribute RequestorSID and fails when using it in a domain where PAC validation is enforced
Apr 18, 2024
g4uss47
changed the title
Mimikatz Golden Ticket fails to create PAC attribute RequestorSID and fails when using it in a domain where PAC validation is enforced
Mimikatz Golden Ticket fails to create PAC attribute RequestorSID
Apr 18, 2024
Summary
I was getting errors using a golden ticket created with Mimikatz of KDC_TGT_Revoked and led me to an investigation to find out that the golden ticket created by mimikatz was failing to create the PAC field correctly, it is not properly setting the RequestorSID and the AttributeFlags how it should, even when the program claims it is doing so.
This was done in an environment in which PAC validation is enforced and therefore since the RequestorSID field is empty, the PAC validation fails and the golden ticket is revoked.
Replication Steps
Mimikatz Golden Ticket
I first generate a mimikatz golden ticket for a user called willywonka:
kerberos::golden /domain:chocolatefactory.local /user:willywonka /sid:S-1-5-21-2377760704-1974907900-3052042330 /id:2000 /aes256:EA2344691D140975946372D18949706857EB9C5F65855B0E159E54260BEB365C /ticket:golden_mimikatz.kirbi
And the execution claims that the PAC is generated and signed:
However, as i said previously this golden ticket was giving me the KDC_TGT_Revoked error, so i investigated and used rubeus to take a look at what was actually inside the ticket:
As we can see in the contents of the ticket the Attribute Flags and RequestorSID are missing.
Rubeus Golden Ticket
In order to make a comparison I generated the same golden ticket using Rubeus:
And analysing it in the same fashion as the golden ticket generated by mimikatz
The AttributeFlags is properly set to PAC_WAS_REQUESTED and the RequestorSID is properly set
The text was updated successfully, but these errors were encountered: