An alert has been triggered within a network, indicating a possible attack on the Domain Controller (DC). The security team has detected suspicious activity suggesting lateral movement attempts from a compromised workstation to the DC. An investigator is tasked with analyzing network traffic, reviewing event logs, and identifying how the attacker is navigating through the environment. The goal is to trace the attacker's steps, determine their access point, and prevent further escalation to the Domain Controller.
Artifact: goldenticket.7z
Password: infected
Artifact type: Windows Security Event Logs (.evtx)
A Golden Ticket attack (T1558.001) occurs when an attacker obtains the KRBTGT account password hash from a Domain Controller, enabling them to forge Kerberos Ticket Granting Tickets (TGTs) for any account in Active Directory β including privileged accounts like ADMINISTRATOR.
Unlike normal Kerberos flows that require the DC to issue each ticket, a forged Golden Ticket bypasses this entirely. The attacker can impersonate any user, access any resource, and maintain persistence indefinitely β even if passwords are changed β until the KRBTGT hash is rotated twice.
Normal Kerberos Flow:
Client β AS-REQ β DC β AS-REP (TGT) β Client β TGS-REQ β DC β TGS-REP β Service
Golden Ticket Attack:
Attacker forges TGT locally using stolen KRBTGT hash
β Submits forged TGT directly β DC validates it β Full access granted
| Tool | Purpose |
|---|---|
| Windows Event Viewer | Manual review of Security Event Logs |
| Event Log filtering (XML) | Narrow down relevant Event IDs |
| MITRE ATT&CK | Reference for detection strategies |
Key Event IDs analyzed:
| Event ID | Description |
|---|---|
| 4768 | Kerberos Authentication Ticket (TGT) Request (AS-REQ/AS-REP) |
| 4769 | Kerberos Service Ticket Request (TGS-REQ) |
| 4776 | NTLM Credential Validation |
| 4624 | Successful Account Logon |
| 4634 / 4647 | Account Logoff |
The Security event log contained a high volume of Kerberos logon events. To reduce noise and identify the entry point, the log was first filtered by Event ID 4776 (NTLM Credential Validation), which revealed authentication attempts against a service account.
The filter immediately surfaced activity related to the SQLSERVICE account β an atypical service account to be authenticating interactively, making it a strong indicator of compromise.
Pivoting from the 4776 event to Event ID 4624 (Successful Logon) and filtering by the SQLSERVICE account, the first successful logon event was identified, including its timestamp, source IP, and port.
β Answer:
2024-10-05 16:50:29 UTC
The NTLM validation event (4776) and the corresponding logon event (4624) both identified the same account as the target of the attacker's initial access within the Domain Controller environment.
β Answer:
sqlservice
The Event ID 4624 logon entry for SQLSERVICE included the Network Information fields, which record the source IP address and source port of the authentication request. This identified the attacker's lateral movement origin point.
β Answer:
192.168.110.129:48858
Prior to compromising SQLSERVICE, the attacker performed an AS-REP Roasting attack (T1558.004). This technique targets accounts that have Kerberos Pre-Authentication disabled β the DC will respond to AS-REQ messages without verifying the requester's identity, returning an encrypted TGT that can be cracked offline.
Detection method per MITRE ATT&CK: monitor for Event ID 4768 with:
PreAuthType = 0(pre-authentication disabled)TicketEncryptionType = 0x17(RC4 β weak/legacy encryption)
Filtering the Security log for these conditions revealed the targeted account.
β Answer:
Corrado
The Event ID 4768 entry for the Corrado account with PreAuthType = 0 and EncryptionType = 0x17 (RC4) provided the exact timestamp of the AS-REP roasting attempt β occurring before the SQLSERVICE compromise, consistent with the attacker's reconnaissance and credential gathering phase.
β Answer:
2024-10-05 14:42:44 UTC
Q6 β After gaining DC access, the attacker generated a Golden Ticket to impersonate a DC user. What was the target account?
After compromising SQLSERVICE and gaining access to the Domain Controller, the attacker extracted the KRBTGT hash and forged a Golden Ticket targeting the highest-privilege account in the domain β a classic objective of this attack chain.
This was confirmed by filtering Event ID 4624 for logon events occurring after the SQLSERVICE compromise, using the keyword administrator, which surfaced a logon event with anomalous Kerberos ticket characteristics (abnormal ticket lifetime, RC4 encryption).
β Answer:
ADMINISTRATOR
The forged Golden Ticket logon event (Event ID 4624, Logon Type 3) for the ADMINISTRATOR account appeared approximately one hour after the initial SQLSERVICE access, consistent with the time needed for the attacker to dump the KRBTGT hash, forge the ticket, and attempt domain-wide access.
β Answer:
2024-10-05 17:57:03 UTC
[1] RECONNAISSANCE & INITIAL FOOTHOLD
βββ Attacker identifies Corrado account with Pre-Auth disabled
βββ AS-REP Roasting attack at 2024-10-05 14:42:44 UTC
βββ TGT requested with RC4 (0x17) encryption β cracked offline
[2] LATERAL MOVEMENT TO DOMAIN CONTROLLER
βββ Attacker authenticates as SQLSERVICE from 192.168.110.129:48858
βββ Successful logon to DC at 2024-10-05 16:50:29 UTC
βββ SQLSERVICE account used as pivot into DC environment
[3] KRBTGT HASH EXTRACTION
βββ Attacker dumps KRBTGT hash from Domain Controller
βββ Method: OS Credential Dumping (T1003) β likely DCSync or lsass dump
[4] GOLDEN TICKET FORGERY & PRIVILEGE ESCALATION
βββ Attacker forges TGT for ADMINISTRATOR account locally
βββ Golden Ticket used to authenticate at 2024-10-05 17:57:03 UTC
βββ Full domain compromise achieved β any resource accessible
| Time (UTC) | Event | Event ID |
|---|---|---|
| 2024-10-05 14:42:44 | AS-REP Roasting attempt against Corrado |
4768 |
| 2024-10-05 16:50:29 | Successful logon as SQLSERVICE from 192.168.110.129 |
4624 |
| 2024-10-05 ~17:xx:xx | KRBTGT hash extracted from DC | β |
| 2024-10-05 17:57:03 | Golden Ticket used β logon as ADMINISTRATOR |
4624 |
| Type | Value |
|---|---|
| Attacker source IP | 192.168.110.129 |
| Attacker source port | 48858 |
| AS-REP target account | Corrado |
| Compromised service account | sqlservice |
| DC first access time | 2024-10-05 16:50:29 UTC |
| AS-REP attack time | 2024-10-05 14:42:44 UTC |
| Golden Ticket target | ADMINISTRATOR |
| Golden Ticket use time | 2024-10-05 17:57:03 UTC |
| Weak encryption used | RC4 (0x17) |
| Pre-Auth disabled account | Corrado |
| Tactic | Technique | ID |
|---|---|---|
| Credential Access | AS-REP Roasting | T1558.004 |
| Lateral Movement | Remote Services β Valid Accounts | T1021 |
| Credential Access | OS Credential Dumping (KRBTGT) | T1003 |
| Privilege Escalation | Golden Ticket | T1558.001 |
| Defense Evasion | Use of Valid Accounts | T1078.002 |
Detect Golden Ticket abuse:
- Monitor Event ID 4768 for
PreAuthType = 0andEncryptionType = 0x17(RC4) - Flag Kerberos tickets with abnormally long lifetimes (default max is 10 hours)
- Alert on Event ID 4624 logons where ticket was issued without a prior TGS request
- Monitor for DCSync patterns: a non-DC machine requesting replication via
MS-DRSR
Containment:
- Rotate the KRBTGT password twice (invalidates all existing Golden Tickets)
- Isolate the attacker's source machine (
192.168.110.129) - Enable Kerberos Pre-Authentication on all accounts (disable AS-REP vulnerability)
- Enforce AES256 encryption β disable RC4/DES in domain Kerberos policy
- MITRE ATT&CK β T1558.001 Golden Ticket
- MITRE ATT&CK β T1558.004 AS-REP Roasting
- MITRE Detection Strategy DET0113 β AS-REP Monitoring
- LetsDefend β Golden Ticket Challenge
Write-up by alexrepsec β LetsDefend DFIR Series