agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/active-directory-security/kerberos-attack-detection/SKILL.md

kerberos-attack-detection

Skill0 starsChanged 11 days agoMITView on GitHub

Detect Kerberoasting, AS-REP roasting, golden/silver/diamond tickets, overpass-the-hash and delegation abuse using domain controller events 4768, 4769, 4771 and ticket encryption types. Use when investigating suspicious TGS/TGT requests, RC4 (0x17) tickets, or Kerberos anomalies in Active Directory.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Remove SPNs from privileged users.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kerberos Attack Detection

Requires DC auditing: Audit Kerberos Authentication Service and Audit Kerberos Service Ticket Operations (Success & Failure).

Encryption types (TicketEncryptionType)

0x11 AES128, 0x12 AES256, 0x17 RC4-HMAC, 0x18 RC4-HMAC-EXP, 0x1/0x3 DES. In a modern domain most tickets are AES; RC4 requests for service tickets are the classic Kerberoasting tell.

Attacks and signals

AttackEventSignal
Kerberoasting (T1558.003)4769TicketEncryptionType=0x17, service is a user account (not $), many distinct services by one account in a short window, TicketOptions 0x40810000/0x40800000
AS-REP roasting (T1558.004)4768PreAuthType=0 for accounts with DONT_REQ_PREAUTH; RC4
Password spray via Kerberos4771FailureCode=0x18 (bad password) across many users from one IP
Golden ticket (T1558.001)4769/4624Service tickets with no preceding 4768 from that host/user; account names that don't exist; abnormal ticket lifetimes; RC4 when domain is AES-only
Silver ticket (T1558.002)Service hostLogons to a service without any 4769 on DCs (forged TGS never touches the DC)
Overpass-the-hash4768RC4 TGT requested from a workstation for a user who normally gets AES
Delegation abuse (S4U)4769TransmittedServices populated; unexpected S4U2Self/S4U2Proxy

Queries

Sentinel:

SecurityEvent
| where EventID == 4769 and TicketEncryptionType == "0x17"
| where ServiceName !endswith "$" and ServiceName != "krbtgt"
| summarize services=dcount(ServiceName), list=make_set(ServiceName, 50) by TargetUserName, IpAddress, bin(TimeGenerated, 10m)
| where services >= 5

Splunk (Windows TA):

index=wineventlog EventCode=4769 Ticket_Encryption_Type=0x17 Service_Name!="*$" Service_Name!="krbtgt"
| bin _time span=10m
| stats dc(Service_Name) as services values(Service_Name) by _time, Account_Name, Client_Address
| where services >= 5

Sigma (single RC4 TGS for a user service account — tune with service allow-list)

title: Kerberos RC4 Service Ticket Request for User Account
id: 7c0e4b4a-3f0b-4d36-9a42-5d1b3f2a6e18
status: experimental
description: Detects TGS requests using RC4 encryption for non-machine service accounts, a common Kerberoasting indicator.
author: Claude-Blue
date: 2026-10-31
tags:
  - attack.credential-access
  - attack.t1558.003
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4769
    TicketEncryptionType: '0x17'
    Status: '0x0'
  filter_machine:
    ServiceName|endswith: '$'
  filter_krbtgt:
    ServiceName: 'krbtgt'
  condition: selection and not 1 of filter_*
falsepositives:
  - Legacy applications or service accounts that only support RC4
level: medium

Prevention

Remove SPNs from privileged users; gMSA/dMSA for services (long random passwords); set msDS-SupportedEncryptionTypes to AES only and phase out RC4 (Microsoft is disabling RC4 by default — track the current Windows Server guidance); enforce pre-authentication; honey SPN account (honeytoken-deployment); reset krbtgt twice after compromise.

Related skills

dcsync-detection, ad-privileged-access-review, password-spray-detection, honeytoken-deployment

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.