☼
⌃
☰

Pass-the-Ticket

Table of Contents

Pass-the-Ticket

Description

Unlike Pass-the-Hash, which targets the NTLM authentication protocol, Pass-the-Ticket targets the Kerberos protocol, which is the default authentication method in modern Active Directory environments.

How it Works

In a Kerberos environment, when a user logs in, they receive a Ticket-Granting Ticket (TGT). This ticket is stored in the memory of the LSASS process. When the user wants to access a resource (like a file share), their system presents the TGT to the Domain Controller to get a Service Ticket.

In a Pass-the-Ticket attack:

  1. Extraction: An attacker gains administrative access to a workstation and uses a tool (like Mimikatz) to export the Kerberos tickets stored in memory to a file.
  2. Injection: The attacker then moves to a different machine and "injects" that stolen ticket into their own current session memory.
  3. Access: The system now believes the attacker is the legitimate user associated with that ticket, granting access to network resources until the ticket expires.

Key Advantages for Attackers

  • Bypasses MFA: Since the ticket is generated after initial authentication, injecting a valid ticket bypasses the need for multi-factor authentication.
  • No Password/Hash Required: The attacker never needs to see the user's actual credentials or NTLM hashes.
  • Stealth: It does not trigger "failed login" events because the ticket is technically a valid, pre-authenticated token.

Examples

1. Exporting Tickets with Mimikatz

To perform PtT, the attacker first harvests existing tickets from a machine where a high-value user (like a Domain Admin) has recently logged in.

POWERSHELL
# Export all Kerberos tickets from memory to disk (.kirbi files)
sekurlsa::tickets /export

2. Injecting a Ticket

Once a .kirbi file is obtained, the attacker can use it on any other machine in the domain to impersonate that user.

POWERSHELL
# Inject a specific stolen TGT into the current session
kerberos::ptt [0;12d34]-krbtgt-DOMAIN.LOCAL@DOMAIN.LOCAL.kirbi

3. Golden Ticket Attack

A "Golden Ticket" is a special, forged TGT. By stealing the NTLM hash of the krbtgt account (the service account for Kerberos), an attacker can create a ticket for any user with any permissions, usually lasting for 10 years.

POWERSHELL
# Creating a Golden Ticket for a fake 'Administrator'
kerberos::golden /user:Administrator /domain:contoso.local /sid:S-1-5-21-12345678-12345678-12345678 /krbtgt:ff11223344556677889900aabbccdd /id:500