Detecting pass the ticket attacks

From oyi77/1ai-skills · View interactive version

Detecting pass the ticket attacks is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when detect Kerberos Pass-the-Ticket (PtT) attacks by analyzing Windows Event IDs 4768, 4769, and 4771 for anomalous ticket usage patterns in Splunk and Elastic SIEM. Use when detecting kerberos pass-the-ticket (ptt) attacks by analyzing windows event ids.

How to use this skill

Skill file

Detecting Pass-the-Ticket Attacks

Overview

Pass-the-Ticket (PtT) is a credential theft technique (MITRE ATT&CK T1550.003) where adversaries steal Kerberos tickets (TGT or TGS) from one system and replay them on another to authenticate without knowing the user's password. This skill teaches detection of PtT attacks by correlating Windows Security Event IDs 4768 (TGT request), 4769 (TGS request), and 4771 (pre-authentication failure) for anomalies such as ticket reuse across different hosts, RC4 encryption downgrades, and unusual service ticket request volumes.

When to Use

Trigger phrases:

Prerequisites

Steps

# 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()}
  1. Enable Kerberos audit logging on Domain Controllers via Group Policy
  2. Forward Event IDs 4768, 4769, and 4771 to SIEM platform
  3. Deploy detection rules for RC4 encryption downgrade (TicketEncryptionType 0x17)
  4. Create correlation rule for ticket reuse across multiple source IPs
  5. Build baseline of normal TGS request volume per user/host
  6. Alert on standard deviation anomalies in ticket request patterns
  7. Investigate flagged events with enrichment from Active Directory

Expected Output

JSON report containing detected PtT indicators including anomalous ticket requests, RC4 downgrades, cross-host ticket reuse events, and risk-scored users with MITRE ATT&CK technique mapping.

When NOT to Use

Red Flags

Process

  1. Reconnaissance — Gather target information, identify attack surface, enumerate services
  2. Analysis/Exploitation — Execute the technique, analyze results, document findings
  3. 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. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.