/security-agent-skills:hunting-kerberos-and-ad-delegation-abusefrom security-agent-skills
Hunts Active Directory Kerberos delegation abuse: unconstrained/constrained/resource-based delegation, Kerberoasting, and AS-REP roasting. Traces delegation chains to find overbroad impersonation rights and crackable service accounts.
Ships in security-agent-skills. 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.
Kerberos delegation exists so a front-end service can act as the user against a back-end service, a web app reaching a database as the logged-in user, for instance. That is useful and also a standing impersonation right, and the danger is entirely in its scope. Unconstrained delegation is the worst case: a service with it receives a forwardable ticket for every user who authenticates, caches it, and can replay that ticket against anything, so compromising one such service turns every user who touched it, up to and including a domain admin, into an identity the attacker can wear. Constrained delegation narrows the targets, but if the allowed targets include a higher-privileged service, or protocol transition lets the service request tickets for users who never authenticated to it, the constraint is a ramp. Resource-based constrained delegation moves the setting onto the target object, so an attacker who can write to an object they control can authorize their own delegation into it. And the credential side is just as live: a service account with a service principal name can be Kerberoasted, its ticket requested and the encrypted portion cracked offline to recover a weak password, and an account that does not require pre-authentication is roastable the same way without even authenticating. The hunt inventories delegation rights and roastable accounts and traces each to the highest identity it can reach. You hunt this by finding who may delegate for whom and who can be cracked, then following the chain up.
Test Kerberos and delegation only in directories you own or are explicitly authorized to assess, in a lab or a scoped engagement. Requesting service tickets, cracking them, and exercising delegation impersonate real identities and touch domain security, so use test forests and authorized engagements and never impersonate, crack, or delegate for identities outside your authorization. If you can't name the authorization, stop.
Establish the intended delegation and which accounts are sensitive first. Inventory every account with a delegation right, the model it uses, the exact targets it is meant to reach, and which identities are high-privilege and must never be impersonable. This is the false-positive killer: an environment with no unconstrained delegation, constrained delegation scoped to only the intended non-sensitive targets, resource-based delegation writable only by trusted admins, sensitive accounts marked not-delegatable, and strong service-account passwords is behaving correctly. Name the intended scope, then hunt the deviations.
Find unconstrained delegation. Enumerate accounts configured for unconstrained delegation. Each is a ticket-collector: any user who authenticates to it, including highly privileged ones, hands it a reusable ticket. Trace which high-privilege identities could authenticate to each such service, because those are the identities an attacker who owns the service can impersonate anywhere.
Examine constrained delegation and protocol transition. For each constrained-delegation account, list its allowed targets and check whether any is a higher-privileged service, and whether protocol transition lets it request tickets for users who never authenticated to it. A target that reaches sensitive services, or transition that fabricates a user context, turns a narrow delegation into an escalation.
Check resource-based constrained delegation writability. For sensitive target objects, check who can write the attribute that authorizes resource-based delegation into them. If an attacker-controllable account can set it, they can authorize their own service to delegate into the target. Confirm only trusted admins can write delegation authorization on sensitive objects.
Find roastable service accounts and pre-auth-disabled accounts. Enumerate accounts with a service principal name (Kerberoastable) and accounts that do not require pre-authentication (roastable offline). Assess password strength for the roastable set: a weak or reused service-account password recovered offline yields that account's privileges directly. Confirm service accounts have strong, managed passwords and pre-authentication is required.
Confirm and record. Confirm in a lab or authorized engagement by impersonating a higher-privileged identity through a delegation right, or recovering a service-account password by cracking a requested ticket, and using it to reach access the account should not grant, without touching identities outside scope. Kill the lead if there is no unconstrained delegation, constrained targets are all non-sensitive, resource-based delegation is admin-only writable, service accounts have strong passwords, and pre-authentication is required. Record the delegation right or roastable credential, the impersonated higher-privileged identity, and the overbroad delegation or crackable service account.
Confirm. A web application's service account is configured for unconstrained delegation, and domain administrators occasionally browse the application. In a lab, after compromising the application host, a forwardable ticket for a domain admin who authenticated is captured from the service and replayed against a domain controller, giving domain-admin access, because unconstrained delegation cached a reusable privileged ticket. Confirmed privilege escalation via unconstrained delegation,
critical, remediation = remove unconstrained delegation, use resource-based constrained delegation scoped to the specific back-end target, and mark privileged accounts as sensitive and not-delegatable.Kill. No account has unconstrained delegation; constrained delegation is scoped to specific non-sensitive back-end targets with no protocol transition into privileged services; resource-based delegation attributes on sensitive objects are writable only by trusted admins; service accounts use strong managed passwords so a requested ticket does not crack; and pre-authentication is required everywhere. A captured ticket reaches only its intended target and a roasted ticket does not yield a password. Killed,
kill_reason= "no unconstrained delegation, constrained targets are non-sensitive, resource-based delegation is admin-only, and service accounts are strong with pre-auth required; no delegation right or roast reaches a higher-privileged identity."
You need the inventory of delegation rights (which model, which targets), who can write resource-based delegation attributes on sensitive objects, the set of accounts with service principal names, and which accounts do not require pre-authentication, plus service-account password strength. In a lab or authorized engagement, trace each delegation right to the highest identity it can reach and test whether roastable accounts crack. Reading the directory configuration shows the intended scope; a captured privileged ticket or a cracked service password shows what the scope fails to contain.
hunting-iam-privilege-escalation-paths - the cloud-and-directory escalation-path view; a delegation right or
roasted account is one edge in the broader path to a high-privilege identity.mapping-service-account-impersonation-chains - delegation is one impersonation mechanism; that skill maps the
chains service accounts form across a system.hunting-non-human-identity-and-secret-reachability - a Kerberoastable service account is a non-human identity
whose secret is reachable and crackable; the two hunts meet on service-account exposure.hunting-mutual-tls-and-service-identity-gaps - the certificate-based analogue of service identity; both ask
whether a service can act as an identity it should not.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job