Silver Ticket
https://attack.mitre.org/techniques/T1558/002/
ATT&CK ID: T1158.002
Permissions Required: User
Description
Adversaries who have the password hash of a target service account (e.g. SharePoint, MSSQL) may forge Kerberos ticket granting service (TGS) tickets, also known as silver tickets. Kerberos TGS tickets are also known as service tickets.
Silver tickets are more limited in scope in than golden tickets in that they only enable adversaries to access a particular resource (e.g. MSSQL) and the system that hosts the resource; however, unlike golden tickets, adversaries with the ability to forge silver tickets are able to create TGS tickets without interacting with the Key Distribution Center (KDC), potentially making detection more difficult.
Notes
Silver ticket is a valid TGS where a Golden ticket is a TGT
Encrypted and signed by the NTLM hash of the service account
Services only allow access to the services themselves
Techniques
Scenario
Domain Controller (DC01)
Workstation (Workstation-01)
This scenario assumes compromise where the computer account hash for DC01$ has already been revealed through one of the many methods found in this Link.
Here we are running as the local administrator on the WS01 system. Attempting to list the directory contents of C$
on the Domain Controller shows we are unable to do so (the local administrator has no permission over the C: drive on the DC).
Mimikatz (Method-01)
From the workstation we are able to make use of Mimikatz to forge a silver ticket using the NTLM machine account for the DC.
Command Breakdown
Switch | Description |
---|---|
kerberos::golden | Module name |
/domain: | Domain FQDN |
/sid: | Domain SID |
/target: | Target FQDN |
/service: | SPN name of service to create TGS for |
/rc4: | NTLM / RC4 hash of the service account (DC01) |
/aes265: | AES265 hash if /rc4: is not going to be used |
/user: | Username for which the TGT is generated (Can be fake) |
/ptt | Injects ticket into current process |
Now the ticket has been created and injected into the current process (/ptt
) we can use the command below to open a new command prompt from Mimikatz whilst retaining the ticket.
Next, use klist
command to check if the ticket has retained in the new session
We are then able to list the C$
share of the Domain Controller.
Some examples commands which can now be performed on the domain controller
Rubeus (Method-02)
Using Rubeus we can either forge the silver ticket and load into a separate session (cleaner) or forge the ticket and inject into the current process (may cause issues).
Forge and inject directly into the current process
Forge and inject into new process
Take note of the LUID value in the output above. We need to now inject the silver ticket we forged earlier into the new LUID session.
After the ticket has been imported into the new LUID session we then need to impersonate the process token using the ProcessID
from the output above (2080).
As above, checking klist
shows the silver ticket has retained in our new shell process. We should now be able to list the contents of the Domain Controller's C: drive.
Empire (Method-03)
Post Exploitation Techniques
Other ticket combinations
Technique | Required Service Ticket |
---|---|
PSexec | CIFS |
WinRm | HOST & HTTP |
DCSync (DCs only) | LDAP |
Mitigation
Limit service accounts to minimal required privileges, including membership in privileged groups such as Domain Administrators.
If possible use group managed service accounts which have random, complex passwords (>100 characters) and are managed automatically by Active Directory [source]
References
Last updated