界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

detecting-golden-ticket-attacks

detecting-golden-ticket-attacks

【效率与协作】Detect Kerberos golden ticket attacks by analyzing Windows Security event logs for anomalous TGT usage patterns. Parses Event IDs 4624, 4672, and 4768 from EVTX files to identify tickets with abnormal lifetimes, domain SID mismatches, and privilege escalation sequences where non-admin accounts receive admin-level privileges without corresponding grou…

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: detecting-golden-ticket-attacks description: >- Detect Kerberos golden ticket attacks by analyzing Windows Security event logs for anomalous TGT usage patterns. Parses Event IDs 4624, 4672, and 4768 from EVTX files to identify tickets with abnormal lifetimes, domain SID mismatches, and privilege escalation sequences where non-admin accounts receive admin-level privileges without corresponding group membership changes. domain: cybersecurity subdomain: security-operations tags: [detecting, golden, ticket, attacks] version: "1.0" author: mahipal license: Apache-2.0

Instructions

  1. Install dependencies: pip install python-evtx lxml
  2. Collect Windows Security EVTX logs from domain controllers.
  3. Parse Event IDs:
    • 4768: Kerberos TGT requests (authentication service requests)
    • 4624: Logon events (look for LogonType 3 with NTLM or Kerberos)
    • 4672: Special privileges assigned (admin logon indicators)
  4. Detect golden ticket indicators:
    • TGT with lifetime >10 hours (default max is 10h)
    • Event 4672 for accounts not in Domain Admins
    • Logon events with no corresponding 4768 TGT request
    • Domain SID inconsistencies in ticket data
  5. Generate detection report with timeline reconstruction.
python scripts/agent.py --evtx-file /path/to/Security.evtx --output golden_ticket_report.json

Examples

Detect Anomalous Privilege Assignment

Event 4672 for a standard user account receiving SeDebugPrivilege, SeTcbPrivilege, or SeBackupPrivilege indicates potential golden ticket usage.

TGT Without Corresponding AS-REQ

A logon event (4624) with Kerberos authentication but no matching 4768 (TGT request) on the DC suggests a forged TGT.

我的收藏