Detecting Golden Ticket Attacks In Kerberos Logs
Overview
Cybersecurity skill for detecting golden ticket attacks in kerberos logs. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"detecting golden ticket attacks in kerberos logs"
"Detect Golden Ticket attacks in Active Directory by analyzing Kerberos TGT anoma"
When KRBTGT account hash may have been compromised via DCSync or NTDS.dit extraction
When hunting for forged Kerberos tickets used for persistent domain access
After incident response reveals credential theft at the domain level
When investigating impossible logon patterns (users logging in from multiple locations simultaneously)
During post-breach assessment to determine if Golden Tickets are in use
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- Windows Security Event IDs 4768, 4769, 4771 on domain controllers
- Kerberos policy configuration knowledge (max ticket lifetime, encryption types)
- Domain controller audit policy enabling Kerberos Service Ticket Operations
- SIEM with ability to correlate Kerberos events across multiple DCs
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Detection Scope — Identify the specific golden ticket attacks in kerberos logs techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.
- Collect Baseline Data — Gather historical logs and establish normal behavior patterns for golden ticket attacks in kerberos logs.
- Build Detection Queries — Write detection rules, Sigma rules, or SIEM queries targeting golden ticket attacks in kerberos logs indicators.
- Execute Hunts — Run queries against the collected data, starting with broad filters and narrowing down.
- Triage Results — Investigate alerts, filter false positives, and validate findings against known-good behavior.
- Document Findings — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.
Tools
- SIEM Platform — Central log aggregation and query execution
- Sigma Rules — Vendor-agnostic detection rule format
- MITRE ATT&CK Navigator — Technique mapping and coverage analysis
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-golden-ticket-attacks-in-kerberos-logs3description: Use when detect Golden Ticket attacks in Active Directory by analyzing4 Kerberos TGT anomalies including mismatched encryption types, impossible ticket5 lifetimes, non-existent accounts, and forged PAC signatures in domain controller6 event logs. Use when detecting golden ticket attacks in active directory by analyzing7 kerberos.8domain: cybersecurity9tags:10- threat-hunting11- golden-ticket12- kerberos13- active-directory14- mitre-t1558-00115- credential-abuse16subdomain: threat-hunting17version: '1.0'18author: oyi7719license: Apache-2.020nist_csf:21- DE.CM-0122- DE.AE-0223- DE.AE-0724- ID.RA-0525category: cybersecurity26metadata:27 source: https://skillmd.com/skills/oyi77/detecting-golden-ticket-attacks-in-kerberos-logs28---2930# Detecting Golden Ticket Attacks In Kerberos Logs3132## Overview3334Cybersecurity skill for detecting golden ticket attacks in kerberos logs. Follows industry best practices and security standards.3536## When to Use37**Trigger phrases:**38- "detecting golden ticket attacks in kerberos logs"39- "Detect Golden Ticket attacks in Active Directory by analyzing Kerberos TGT anoma"404142- When KRBTGT account hash may have been compromised via DCSync or NTDS.dit extraction43- When hunting for forged Kerberos tickets used for persistent domain access44- After incident response reveals credential theft at the domain level45- When investigating impossible logon patterns (users logging in from multiple locations simultaneously)46- During post-breach assessment to determine if Golden Tickets are in use474849## When NOT to Use5051- When you lack proper authorization for testing52- For production systems without change management53- When the task requires legal or compliance expertise beyond technical scope545556## Prerequisites5758- Windows Security Event IDs 4768, 4769, 4771 on domain controllers59- Kerberos policy configuration knowledge (max ticket lifetime, encryption types)60- Domain controller audit policy enabling Kerberos Service Ticket Operations61- SIEM with ability to correlate Kerberos events across multiple DCs6263## Workflow6465```python66# Example: IOC detection67import re6869IOC_PATTERNS = {70 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",71 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",72 "hash_md5": r"\b[a-f0-9]{32}\b",73 "hash_sha256": r"\b[a-f0-9]{64}\b",74}7576def extract_iocs(text: str) -> dict:77 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}78```79801. **Define Detection Scope** — Identify the specific golden ticket attacks in kerberos logs techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.812. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for golden ticket attacks in kerberos logs.823. **Build Detection Queries** — Write detection rules, Sigma rules, or SIEM queries targeting golden ticket attacks in kerberos logs indicators.834. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.845. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.856. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.8687## Tools8889- **SIEM Platform** — Central log aggregation and query execution90- **Sigma Rules** — Vendor-agnostic detection rule format91- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis929394## Process95961. **Reconnaissance** — Gather target information, identify attack surface, enumerate services971. **Analysis/Exploitation** — Execute the technique, analyze results, document findings981. **Reporting** — Document IOCs, write findings, provide remediation recommendations99100## Verification101102- [ ] All golden ticket attacks in kerberos logs procedures executed completely and documented103- [ ] Findings validated against multiple data sources104- [ ] False positives identified and filtered105- [ ] Results documented with evidence and timestamps106- [ ] Recommendations provided with risk-based prioritization107108## Anti-Rationalization Table109110| Rationalization | Reality |111|---|---|112| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |113| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |114| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |