/security-agent-skills:hunting-adcs-certificate-template-abusefrom security-agent-skills
Hunts ADCS certificate template misconfigurations where low-privileged users can enroll for certificates that authenticate as privileged accounts. Covers enrollee-supplied SANs, weak enrollment permissions, and dangerous template flags.
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.
A certificate authority in a Windows domain issues certificates that clients then use to authenticate, and the identity a certificate carries is whatever the authority put in it. That is safe only when the authority decides the identity from the authenticated enrollee, never from what the enrollee asked for. A template that lets the requester supply the subject alternative name, combined with a use that permits client authentication and enrollment rights granted to ordinary users, lets a standard user request a certificate naming a domain administrator and then authenticate as that administrator. Other template settings weaken the same boundary: a flag that carries the requester's identity into the issued certificate, or enrollment permissions loose enough that any user obtains a template meant for privileged roles. The bug is a certificate whose identity the low-privileged enrollee, not the authority, decided. You hunt these by reading each template's enrollment rights, subject source, and permitted uses.
Test certificate template abuse only in directories you own or are authorized to assess, on non-production or a lab domain, enrolling only for an identity you are permitted to test with and never authenticating as a real privileged principal outside the authorization. A confirmed abuse yields authentication as a privileged account, so keep every probe within scope. If you can't name the authorization, stop.
Establish where the certificate's identity actually comes from first. For each template a standard user can enroll in, determine whether the authority derives the subject and any alternative name from the authenticated enrollee, or whether the enrollee supplies them, and whether the resulting certificate permits client authentication. This is the false-positive killer: a template that fixes the identity from the enrollee and forbids requester-supplied names cannot mint a privileged identity, however broad its enrollment rights. Name the identity source before crafting a request.
Enumerate enrollable templates and their permissions. List the templates the authority publishes, the principals granted enroll and autoenroll rights on each, and whether the granted set includes ordinary users or broad groups. Templates enrollable by low-privileged principals are the candidates.
Check the subject and alternative-name source. Determine which templates let the enrollee specify the subject or a subject alternative name in the request rather than the authority setting it from the directory. A template that honors a requester-supplied alternative name lets the requester name any principal, including a privileged one.
Check the permitted uses and dangerous flags. Determine whether the certificate permits client authentication or a use that authenticates to the domain, and whether any template flag carries the requester's chosen identity into the issued certificate or removes an approval that would otherwise gate issuance. A privileged identity is only usable if the certificate can authenticate.
Check the issuance gate. Determine whether issuance requires manager approval, authorized signatures, or additional constraints that would stop a standard user from obtaining the certificate unattended. A template that issues immediately on request removes the human check that would otherwise catch the abuse.
Confirm and record. Confirm by enrolling as a low-privileged principal for a certificate naming a test
identity you are permitted to assume and authenticating with it on an isolated lab domain, observing the
privileged context. Kill the lead if the authority sets the identity from the enrollee, if requester-
supplied names are rejected, if the certificate cannot authenticate to the domain, or if issuance requires
an approval the standard user cannot satisfy. Record the template, the enrollment right, the identity
source, and the authentication observed, or set a kill_reason.
Confirm. A template enrollable by all authenticated users lets the enrollee supply a subject alternative name and issues certificates valid for client authentication, with no manager approval. A low-privileged principal enrolls for a certificate naming a test privileged identity and authenticates to the lab domain as that identity on an isolated instance. Confirmed privilege escalation through certificate template abuse,
high, remediation = derive the subject and alternative name from the authenticated enrollee rather than the request, restrict enrollment on authentication-capable templates to the roles that need them, and require manager approval for sensitive templates.Kill. The same authority publishes only templates that set the subject from the enrolling account, reject requester-supplied alternative names, and gate any authentication-capable template behind manager approval and enrollment rights limited to a privileged group. A standard user cannot obtain a certificate naming another principal. Killed,
kill_reason= "the authority sets identity from the authenticated enrollee and rejects requester-supplied names; no low-privileged enrollment yields a certificate that authenticates as a more privileged account."
You need every template a low-privileged principal can enroll in, the enrollment and autoenroll rights on each, whether the subject and alternative name come from the enrollee or the directory, whether the certificate permits client authentication, and whether issuance requires approval. For each, decide whether a standard user can obtain a certificate naming a more privileged principal that authenticates to the domain. Reading the template settings and permissions settles most leads; enrolling for a permitted test identity and authenticating with it on an isolated lab domain settles the rest.
hunting-active-directory-acl-abuse-paths - a permission to modify a template or its enrollment rights is
an object-permission abuse that skill treats, feeding the misconfiguration this one exploits.hunting-ntlm-coercion-and-relay - a coerced authentication relayed to a certificate authority's
enrollment interface obtains a certificate for the coerced account, joining relay to template abuse.auditing-tls-and-certificate-validation - a certificate authenticating as the wrong principal is a
validation-trust question that skill audits from the verifier's side.hunting-kerberos-and-ad-delegation-abuse - a certificate that authenticates to the domain feeds the
ticket-based escalation that skill pursues once a credential is in hand.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