Skip to content

meltedinhex/analyst-ai-pack / skills/hunting-active-directory-attacks

hunting-active-directory-attacks

Verified

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 golden/silver tickets, or find Active Directory replication abuse.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.9 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript2.9 KB

references/api-reference.md

View on GitHub
# API Reference: Hunting Active Directory Attacks

## Overview

`scripts/analyst.py` parses Windows AD telemetry (Event IDs 4662 / 4769 / 4624) from CSV or
JSON-lines and flags DCSync replication-rights grants to non-DC accounts and Golden/Silver Ticket
anomalies (RC4 TGS where AES is expected). It parses telemetry only and executes nothing.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | csv, json, file IO |

## Core functions

### `hunt(path)`
Returns DCSync replication grants, forged-ticket anomalies, and an AD-attack suspicion flag.

## Detection logic

- **DCSync**: 4662 granting `DS-Replication-Get-Changes` / `-All` GUIDs to a non-`$` account.
- **Forged tickets**: 4769 with RC4 (`0x17`) where the domain expects AES — a Golden/Silver
  Ticket indicator (corroborate with missing 4768).

## Replication GUIDs

`1131f6aa-…` (Get-Changes), `1131f6ad-…` (Get-Changes-All), `89e95b76-…` (filtered set).

## Usage

```bash
python scripts/analyst.py hunt events.csv
```

## Sources

- MITRE ATT&CK T1003.006 DCSync; T1558.001 Golden Ticket — https://attack.mitre.org/
- Windows Security Event 4662 (directory service access) — https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4662
- DCSync replication extended-rights GUIDs from Microsoft AD schema documentation
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall