Hunting active directory attacks

From meltedinhex/analyst-ai-pack · View interactive version

Hunting active directory attacks is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Hunts for Active Directory credential and replication attacks — DCSync, Golden/Silver Ticket, and DCShadow — by analyzing directory-service-access (4662), Kerberos TGS (4769), and logon (4624) events for replication abuse and forged-ticket anomalies. Activates for requests to hunt DCSync, detect gol

How to use this skill

Skill file

Hunting Active Directory Attacks

When to Use

replication abuse, Golden/Silver Ticket usage, and DCShadow.

Do not use this for Kerberoasting/AS-REP roasting — those have a dedicated hunt. This focuses

on replication abuse and forged-ticket anomalies.

Prerequisites

and detail fields.

Workflow

Step 1: Hunt DCSync replication abuse

python scripts/analyst.py hunt events.csv

Flags 4662 events granting the replication rights GUIDs (DS-Replication-Get-Changes

1131f6aa-… / -All 1131f6ad-…) to non-DC accounts.

Step 2: Detect forged-ticket anomalies

Surface 4769 requests with anomalies consistent with Golden/Silver Tickets (RC4 where AES is

expected, missing preceding 4768, or accounts that do not exist), and logons with mismatched

ticket lifetimes.

Step 3: Confirm

Correlate the flagged account/host with whether it is a legitimate DC or replication service.

Step 4: Operationalize

Write a detection for replication-rights grants to non-DC principals.

Validation

Pitfalls

References

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.