performing-kerberoasting-attack
Kerberoasting is a post-exploitation technique that targets service accounts in Active Directory by requesting Kerberos TGS (Ticket Granting Service) tickets for accounts with Service Principal Names
What this skill does
# Performing Kerberoasting Attack > **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws. ## Overview Kerberoasting is a post-exploitation technique that targets service accounts in Active Directory by requesting Kerberos TGS (Ticket Granting Service) tickets for accounts with Service Principal Names (SPNs) set. These tickets are encrypted with the service account's NTLM hash, allowing offline brute-force cracking without generating failed login events. It is one of the most common privilege escalation paths in AD environments because any domain user can request TGS tickets. ## When to Use - When conducting security assessments that involve performing kerberoasting attack - When following incident response procedures for related security events - When performing scheduled security testing or auditing activities - When validating security controls through hands-on testing ## Prerequisites - Familiarity with red teaming concepts and tools - Access to a test or lab environment for safe execution - Python 3.8+ with required dependencies installed - Appropriate authorization for any testing activities ## MITRE ATT&CK Mapping - **T1558.003** - Steal or Forge Kerberos Tickets: Kerberoasting - **T1087.002** - Account Discovery: Domain Account - **T1069.002** - Permission Groups Discovery: Domain Groups ## Workflow ### Phase 1: SPN Enumeration 1. Enumerate accounts with SPNs using LDAP queries 2. Filter for user accounts (not computer accounts) 3. Identify accounts with elevated privileges (adminCount=1) 4. Prioritize accounts with weak password policies ### Phase 2: TGS Ticket Request 1. Request TGS tickets for identified SPN accounts 2. Extract ticket data in crackable format (hashcat/john compatible) 3. Ensure RC4 encryption is requested when possible (easier to crack) 4. Document all requested tickets ### Phase 3: Offline Cracking 1. Use hashcat mode 13100 (Kerberos 5 TGS-REP etype 23) for RC4 tickets 2. Use hashcat mode 19700 (Kerberos 5 TGS-REP etype 17) for AES-128 3. Use hashcat mode 19800 (Kerberos 5 TGS-REP etype 18) for AES-256 4. Apply targeted wordlists and rules based on password policy ### Phase 4: Credential Validation 1. Validate cracked credentials against domain 2. Assess access level of compromised accounts 3. Map accounts to BloodHound attack paths 4. Document for engagement report ## Tools and Resources | Tool | Purpose | Platform | |------|---------|----------| | Rubeus | Kerberoasting and ticket manipulation | Windows (.NET) | | Impacket GetUserSPNs.py | Remote Kerberoasting | Linux/Python | | PowerView | SPN enumeration | Windows (PowerShell) | | hashcat | Offline password cracking | Cross-platform | | John the Ripper | Offline password cracking | Cross-platform | ## Detection Indicators - Event ID 4769: Kerberos Service Ticket Request with RC4 encryption (0x17) - Anomalous TGS requests from a single account in short timeframe - TGS requests for services the user normally does not access - Honeypot SPN accounts with alerting on ticket requests ## Validation Criteria - [ ] SPN accounts enumerated and documented - [ ] TGS tickets extracted in crackable format - [ ] Offline cracking attempted with appropriate wordlists - [ ] Cracked credentials validated - [ ] Access level of compromised accounts assessed
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.