Join our Newsletter — 33% off our NHI Course
Home› Guides› Rubeus Detection Guide: Spotting Kerberos Ticket Abuse in…
Guide Identity Visibility, Posture & Threat Detection

Rubeus Detection Guide: Spotting Kerberos Ticket Abuse in Your Logs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

Rubeus is one of the most common toolsets attackers use to roast, steal, forge and replay Kerberos tickets in Active Directory, and most of what it does looks like ordinary Kerberos traffic unless you know which fields to watch. This guide is for detection engineers, SOC analysts and AD administrators who need to recognise Rubeus-driven activity in their own telemetry and close the weaknesses it relies on. It maps each behaviour to MITRE ATT&CK, explains the domain controller events and host signals that give it away, and sets out the hardening that removes the easy wins. It is written for defenders only: it describes behaviours and evidence, not how to run the tool. For Kerberos fundamentals, see the Kerberos Security Guide.

Key takeaways

  • Detect the behaviour, not the binary. Rubeus is open source and easy to rename or recompile, so file hashes and names are weak signals; Kerberos event fields and process behaviour last longer.
  • RC4 is the loudest signal. In a domain that uses AES, a service ticket issued with encryption type 0x17 (RC4-HMAC) for a user-based service account is worth a look every time.
  • Port 88 should come from lsass.exe. The project's own documentation notes that raw Kerberos traffic from any other process is a detectable host signal.
  • Do not rely on event 4769 alone. Some roasting variants generate 4768 instead, and forged or replayed tickets may never touch the KDC in the way you expect.
  • Hardening shrinks the attack surface. AES-only service accounts, gMSAs, Kerberos pre-authentication everywhere and Protected Users for admins remove most of what roasting and ticket replay can achieve.

At a glance

ItemDetail
What it isA C# toolset for raw Kerberos interaction, published by the GhostPack project on GitHub
ATT&CK software IDS1071 (Rubeus), recorded as used since at least 2020, including in ransomware operations
ATT&CK techniques linked to itT1558.001 Golden Ticket, T1558.002 Silver Ticket, T1558.003 Kerberoasting, T1558.004 AS-REP Roasting, T1482 Domain Trust Discovery
Related behaviour it supportsImporting stolen tickets into a logon session, which defenders track as T1550.003 Pass the Ticket
Where evidence appearsDomain controller Security log (4768, 4769, 4771), endpoint process and network telemetry, PowerShell and AMSI logs
Privilege neededMany functions run as an ordinary domain user; ticket harvesting from other sessions needs local admin
Primary ownersSOC and detection engineering for alerts; AD and identity teams for hardening

What Rubeus is

Rubeus implements large parts of the Kerberos protocol itself instead of asking Windows to do it. That design is why it is useful to penetration testers and red teams, and why attackers adopted it: it can build requests, parse and convert tickets, and apply tickets to a logon session without touching LSASS memory. MITRE ATT&CK lists it as software S1071 and cites incident reports of its use alongside Ryuk ransomware intrusions.

The project's documentation groups its functions into families. Knowing the families helps you decide which telemetry you need, without needing to know any syntax.

  • Ticket requests and renewals: requesting TGTs and service tickets with a password, a key or a certificate, and renewing existing tickets.
  • Roasting: requesting service tickets or AS-REP responses so their encrypted parts can be cracked offline.
  • Ticket forgery: building golden, silver and so-called diamond tickets once the attacker holds the relevant account key.
  • Ticket management: importing, purging and describing tickets in a logon session.
  • Extraction and harvesting: listing, dumping and periodically collecting tickets from logon sessions on a host where the attacker has admin rights.
  • Delegation abuse: using the S4U Kerberos extensions against accounts configured for constrained delegation. See the Kerberos Delegation Security Guide.

Because the code is public, attackers routinely recompile it, rename it, load it in memory through PowerShell or a command and control framework, or run it from a .NET loader. A detection that only looks for a file called Rubeus.exe will miss most real use.

Kerberos abuse it enables

The table maps each behaviour to its ATT&CK technique, the precondition the attacker needs, and the first place a defender should look. The deep dive for each technique sits in its own guide; this table is the triage view.

BehaviourATT&CK IDWhat the attacker needsFirst signal to check
KerberoastingT1558.003Any domain account and a user account with an SPN4769 bursts from one account across many SPNs, especially with encryption type 0x17
AS-REP roastingT1558.004An account with "Do not require Kerberos preauthentication" set4768 with Pre-Authentication Type 0 for accounts that should never have it
Pass the ticketT1550.003A stolen TGT or service ticket, usually harvested from a host where the attacker is adminThe same ticket or account used from a new host; logons without a matching TGT request from that host
Over-pass-the-hash (requesting a TGT with a stolen key)T1550.003 (ticket use) after T1003 (key theft)An account's RC4 or AES key4768 with RC4 encryption for an account that normally uses AES, from an unusual host
Silver ticketT1558.002A service account or computer account keyService logons with no corresponding 4769 on any DC
Golden ticketT1558.001The KRBTGT key, which implies domain compromise4769 without a preceding 4768 for that account and host; ticket lifetimes outside domain policy
Domain trust discoveryT1482Any domain accountLDAP and DC queries for trust objects from workstations that never make them

For the full technique family, see the MITRE ATT&CK T1558 Steal or Forge Kerberos Tickets Guide. For roasting specifically, see the Kerberoasting and AS-REP Roasting Defence Guide, and for ticket replay see the Pass-the-Hash and Pass-the-Ticket Guide.

Windows events and telemetry

Domain controllers only log Kerberos activity if the right audit subcategories are on. Enable Audit Kerberos Authentication Service (4768, 4771) and Audit Kerberos Service Ticket Operations (4769) for success and failure on every DC, and forward them to your SIEM. Since the 14 January 2025 security update, Windows Server 2016 and later write an updated version of 4768 and 4769 with extra fields, including MSDS-SupportedEncryptionTypes, Available Keys and Advertised Etypes, which make encryption downgrades much easier to spot.

Domain controller events

Event IDMeaningFields that matter for Rubeus activityWhy
4768A Kerberos authentication ticket (TGT) was requestedPre-Authentication Type, Ticket Encryption Type, Client Address, Advertised EtypesType 0 means no pre-authentication (AS-REP roasting exposure); RC4 for an AES-capable account suggests a stolen key in use
4769A Kerberos service ticket was requestedAccount Name, Service Name, Ticket Encryption Type, Ticket Options, Failure Code, Client AddressEncryption type 0x17 or 0x18 for user service accounts is the classic roasting signal; volume across many SPNs from one account is the second
4771Kerberos pre-authentication failedFailure Code, Account Name, Client AddressBursts of 0x18 indicate password guessing; the event is not generated for accounts with pre-authentication disabled
4624An account was successfully logged on (on member servers)Logon Type, Authentication Package, Logon GUIDLogon GUID correlates with 4769 and helps show where a ticket was used

Encryption type values

ValueNameWhat it means in a modern domain
0x11AES128-CTS-HMAC-SHA1-96Normal
0x12AES256-CTS-HMAC-SHA1-96Normal, preferred
0x17RC4-HMACInvestigate unless the target is a known legacy system on an exception list
0x18RC4-HMAC-EXPInvestigate
0x1, 0x3DES-CBC-CRC, DES-CBC-MD5Disabled by default since Windows 7 and Server 2008 R2; alert on any occurrence

Microsoft's own monitoring guidance for 4769 recommends alerting on any ticket encryption type other than 0x11 and 0x12. In practice most environments need a short, owned exception list first. The Kerberos RC4 Deprecation guide covers how to find and retire remaining RC4 dependencies.

Host and endpoint signals

  • Kerberos traffic from the wrong process: on Windows, traffic to TCP or UDP port 88 should originate from lsass.exe. Network connection telemetry from EDR or Sysmon (Event ID 3, network connection) showing another process talking to a DC on port 88 is a strong lead.
  • Ticket API use by unusual processes: Rubeus extracts tickets through the LsaCallAuthenticationPackage API rather than reading LSASS memory. EDR products that record this API call by non-standard processes give a signal that LSASS-access rules miss.
  • Odd tickets in logon sessions: tickets with RC4 encryption, unusual lifetimes or a client name that does not match the logged-on user, visible through EDR ticket inventory or scheduled collection of klist output on sensitive servers.
  • In-memory .NET and PowerShell loading: when the tool is run through PowerShell, script block logging (Event ID 4104) and AMSI apply; .NET Framework 4.8 also passes in-memory assemblies to AMSI. Keep PowerShell logging on and AMSI-aware anti-malware active.
  • Base64 ticket blobs: command lines, scripts or files containing long base64 strings that decode to Kerberos ticket structures (.kirbi format) on endpoints are rarely legitimate.

For a broader event ID baseline on DCs, see the Active Directory Security Monitoring and Event IDs Guide.

Detection and defence

Detection logic that holds up

  1. RC4 service tickets for user accounts: 4769 where Ticket Encryption Type is 0x17 or 0x18, Service Name is not a computer account (does not end in $) and not krbtgt, and the service is not on the RC4 exception list. Start with this rule; it is cheap and high value.
  2. Volume anomaly: one requesting account asking for service tickets to many distinct SPNs in a short window, compared with its own baseline. Tune per environment rather than copying a fixed threshold. The How to Hunt for Kerberoasting guide covers baselining.
  3. Pre-authentication disabled in use: 4768 with Pre-Authentication Type 0. Pair it with a daily inventory query for accounts whose userAccountControl has the DONT_REQ_PREAUTH flag; every hit on that list should have a named owner and reason.
  4. Encryption downgrade on TGT requests: 4768 with RC4 for an account whose MSDS-SupportedEncryptionTypes or Available Keys show AES. This catches requests made with a stolen RC4 key.
  5. Tickets without a parent: service ticket requests (4769) from a host and account with no TGT request (4768) seen for that pairing within the ticket lifetime. Expect noise from DC replication gaps and log loss; use it as a hunting query before an alert.
  6. Non-lsass port 88: endpoint network events to DC port 88 from any process except lsass.exe, with a small allow list for known Kerberos clients such as some Java or cross-platform applications.
  7. Honey accounts: a decoy user with an attractive SPN and no legitimate use. Any 4769 for that SPN is a high-fidelity alert. Give it a long random password so cracking fails.

Some roasting methods described in the Rubeus documentation send AS-REQs rather than TGS-REQs, which produce 4768 events instead of the 4769 events most kerberoasting rules watch. Build at least one rule on each event so a change of method does not blind you.

Hardening that removes the payoff

ControlSetting or mechanismWhat it defeats
AES-only service accountsmsDS-SupportedEncryptionTypes = 0x18 (24) on user accounts with SPNs, after confirming clients support AESFast RC4 cracking of roasted tickets; makes RC4 tickets for those accounts an anomaly
Domain default encryptionDefaultDomainSupportedEncTypes registry value on DCs (0x18 for AES only), in line with Microsoft's plan to stop assuming RC4 by default from the end of Q2 2026RC4 fallback for accounts with no explicit setting
Group managed service accountsMove SPN-bearing user accounts to gMSAs; passwords are generated and rotated by the domain controller from KDS keysOffline cracking of service ticket keys
Long random passwords where gMSA is not possible25 or more characters, generated and vaulted, rotated on a schedule; enforce through a fine-grained password policyOffline cracking of any ticket that is roasted
Kerberos pre-authentication everywhereClear "Do not require Kerberos preauthentication" on all accounts; review exceptions quarterlyAS-REP roasting
Protected Users for human adminsMembers cannot use DES or RC4 in pre-authentication, cannot be delegated, and get a 4-hour non-renewable TGTRC4 key reuse and long-lived stolen admin TGTs; never add service or computer accounts
Admin tiering and credential hygieneAdmins log on only to systems of their own tierHarvesting high-value tickets from workstations and member servers
Delegation clean-upRemove unconstrained delegation; prefer resource-based constrained delegation with tight scopeS4U and ticket-capture abuse

See the Group Managed Service Accounts (gMSA) Guide and How to Find Kerberoastable Accounts in Active Directory and Fix Them for the service account work, which is where most Kerberos risk in a typical domain sits.

Rolling it out

  1. Week 1, visibility: confirm both Kerberos audit subcategories on every DC, confirm the updated 4768 and 4769 fields are arriving, and turn on endpoint network telemetry for port 88.
  2. Weeks 2 to 3, inventory: list user accounts with SPNs, accounts without pre-authentication, accounts with RC4-only or undefined encryption settings, and every system still requesting RC4. Microsoft's Kerberos-Crypto scripts (Get-KerbEncryptionUsage.ps1) summarise encryption use from DC logs.
  3. Weeks 3 to 4, detections in report mode: deploy rules 1, 3 and 7 above as reports, tune exceptions with named owners, then promote to alerts.
  4. Month 2, hardening in rings: set AES-only on a pilot group of service accounts, watch for 4769 Failure Code 0xE (KDC_ERR_ETYPE_NOTSUPP) and application errors, then extend. Roll back a ring by restoring the previous msDS-SupportedEncryptionTypes value.
  5. Month 3, structural fixes: migrate service accounts to gMSAs, add human admins to Protected Users, remove unconstrained delegation and set DefaultDomainSupportedEncTypes once the RC4 inventory is clean.

When you find it

Treat confirmed Rubeus-style activity as credential compromise, not a malware clean-up. Reset passwords for every roasted or exposed service account (in practice, all accounts the requesting account touched), isolate the source host, and look for ticket harvesting on any server where admins log on. If forged tickets or KRBTGT exposure are suspected, follow the Active Directory Domain Compromise Response Playbook, which covers the two-step KRBTGT reset and evidence preservation.

Measuring progress

  • RC4 ticket rate: percentage of 4769 events with encryption type 0x17 or 0x18, trending to zero outside the exception list.
  • Roastable accounts: number of user accounts with SPNs that are not gMSAs, and how many allow RC4.
  • Pre-authentication exceptions: count of accounts with pre-authentication disabled, each with an owner.
  • Telemetry coverage: percentage of DCs forwarding 4768, 4769 and 4771, and percentage of endpoints reporting process-level network events.
  • Detection validation: date of the last authorised purple team test that triggered each Kerberos rule end to end.

Common failure patterns

  • Hash-based detection only: blocking a known Rubeus build gives false comfort when recompiled or in-memory copies run unchallenged.
  • Kerberos auditing off on some DCs: new or rebuilt domain controllers miss the audit policy, leaving gaps an attacker can route around.
  • RC4 exceptions with no owner: a growing allow list of legacy systems turns the strongest signal into noise.
  • Service accounts in Domain Admins: one cracked service ticket then equals domain compromise; roasting stays the shortest path.
  • Resetting the user, not the service accounts: responders reset the account that ran the tool but leave the roasted service account passwords unchanged.

Framework mapping

FrameworkReferenceRelevance
MITRE ATT&CKS1071; T1558.001 to T1558.004; T1550.003; T1482Tool and behaviours
ATT&CK mitigationsM1027 Password Policies; M1041 Encrypt Sensitive Information; M1015 Active Directory Configuration; M1026 Privileged Account ManagementStrong service account passwords, AES, pre-authentication, admin restrictions
NIST SP 800-53 Rev 5IA-5 Authenticator Management; AC-2 Account Management; AU-6 Audit Record Review, Analysis, and Reporting; SI-4 System MonitoringService account credentials, account inventory, Kerberos event review and alerting
NIST CSF 2.0PR.AA-01; DE.CM-01Managing identities and credentials for services; monitoring for adverse events

Practitioner checklist

  • Enable Audit Kerberos Authentication Service and Audit Kerberos Service Ticket Operations (success and failure) on every DC and forward 4768, 4769 and 4771.
  • Alert on 4769 encryption types other than 0x11 and 0x12 for user service accounts, with an owned exception list.
  • Alert on 4768 with Pre-Authentication Type 0 and keep the list of accounts without pre-authentication at or near zero.
  • Collect process-level network telemetry and flag non-lsass.exe connections to DC port 88.
  • Keep PowerShell script block logging and AMSI-aware anti-malware on for all endpoints and servers.
  • Move SPN-bearing user accounts to gMSAs; where that is not possible, use 25+ character random vaulted passwords and AES-only settings.
  • Add human privileged accounts to Protected Users; keep service and computer accounts out of it.
  • Deploy a honey SPN account and alert on any service ticket request for it.
  • Test every Kerberos detection with an authorised purple team exercise at least twice a year.

Standards and references

Related NHI Mgmt Group resources: Kerberos Security Guide · Kerberoasting and AS-REP Roasting Defence Guide · Group Managed Service Accounts (gMSA) Guide · Active Directory and Entra ID Hardening Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.