Skip to main content
Impacket provides comprehensive tools for attacking and manipulating Kerberos authentication in Active Directory environments.

Attack Overview

Kerberoasting

Request service tickets for offline password cracking

AS-REP Roasting

Extract hashes from accounts without pre-authentication

Ticket Manipulation

Forge Golden/Silver tickets and convert formats

Delegation Attacks

Exploit unconstrained and constrained delegation

GetUserSPNs.py (Kerberoasting)

Finds user accounts with Service Principal Names (SPNs) and requests TGS tickets for offline cracking.

Basic Usage

Advanced Options

Example Output

Cracking Kerberoast Hashes

GetNPUsers.py (AS-REP Roasting)

Extracts crackable hashes from accounts with “Do not require Kerberos preauthentication” enabled.

Basic Usage

Example Output

Cracking AS-REP Hashes

Ticket Manipulation Tools

getTGT.py

Request Ticket Granting Tickets (TGT) with credentials.

getST.py

Request Service Tickets (TGS) for specific services.

ticketer.py

Forge Kerberos tickets (Golden Ticket, Silver Ticket).

ticketConverter.py

Convert tickets between .ccache and .kirbi formats.

describeTicket.py

Analyze and display ticket contents.

Delegation Attack Tools

findDelegation.py

Find accounts with delegation configured.

rbcd.py

Manage Resource-Based Constrained Delegation (RBCD).

addcomputer.py

Add computer accounts to the domain (for RBCD attacks).

Advanced Kerberos Attacks

goldenPac.py

Exploit MS14-068 Kerberos vulnerability.

raiseChild.py

Automate child-to-parent domain privilege escalation.

getPac.py

Retrieve and decrypt Privilege Attribute Certificate (PAC).

Complete Attack Chain Examples

Detection & Defense

Kerberos attacks are often detected by modern security tools. Understanding detection mechanisms is crucial.

Detection Indicators

  • Event ID 4769: TGS requests for user accounts (unusual encryption type RC4)
  • Event ID 4768: TGT requests from unusual locations
  • High volume of TGS requests
  • TGS requests for dormant accounts
  • Event ID 4768: AS-REQ without pre-authentication
  • Multiple AS-REQ failures from single source
  • Unusual user account queries
  • Tickets with unusual lifetime (10+ years)
  • Tickets created outside normal KDC
  • Event ID 4624: Logons with tickets showing anomalies
  • Tickets with missing or invalid PAC validation info
  • Event ID 4662: Changes to msDS-AllowedToActOnBehalfOfOtherIdentity
  • Event ID 4741/4742: Computer account creation/modification
  • Unusual S4U2Self/S4U2Proxy requests

Defensive Measures

  • Use strong, long passwords for service accounts (25+ characters)
  • Enable AES encryption for Kerberos (disable RC4)
  • Monitor for accounts with “Do not require preauth” flag
  • Implement Service Account password rotation
  • Use Group Managed Service Accounts (gMSA)
  • Enable PAC validation
  • Monitor delegation configurations
  • Restrict SPN registration permissions

Next Steps

Credential Dumping

Extract credentials for Kerberos attacks

LDAP Operations

Enumerate delegation and SPNs via LDAP

Remote Execution

Use Kerberos tickets for remote execution