Docs menu

Certificate Services (AD CS): ESC1, ESC3, ESC4, ESC5 and ESC13 Escalation Paths

Map Active Directory Certificate Services (AD CS) templates and certification authorities in the graph, and find the ESC1, ESC3, ESC4, ESC5 and ESC13 paths that let an attacker become a domain administrator.

Roles
Viewer to browse and read posture. Operator to simulate removing access. Admin to edit bridge settings.
Applies to
Active Directory
Updated

Overview

Active Directory Certificate Services (AD CS) issues the certificates your users, computers and services authenticate with. A certification authority (CA) signs the certificates. A certificate template says who can ask for a certificate and what it allows. A template or CA with the wrong permissions lets an ordinary account request a certificate that names a domain administrator, then authenticate as them.

GraphnAI reads certificate services from your forest and draws them in the graph. Templates and enterprise CAs become nodes. Who can enroll (request a certificate) becomes a relationship. Where the settings add up to an attack, GraphnAI draws an escalation path from the account to each domain in the forest. You can open any path to see why it exists, simulate the fix, and watch five posture checks.

Every escalation path needs a CA that the forest trusts for authentication (the NTAuth store). A template that no trusted CA publishes can't be abused, so it has no path.

Prerequisites

  • At least one Active Directory bridge in the forest, on a version that supports certificate services. A bridge on an older version shows Update needed.
  • A sync account that can read the Public Key Services container in the forest's configuration. Authenticated users have this right by default.
  • Reach analytics turned on, to compute escalation paths. Without it, the node panels say certificate paths aren't being computed.
  • The Viewer role to see the data. Simulation needs Operator.

How collection works

You don't configure anything. GraphnAI reads certificate services once for each forest, not once for each domain.

  1. GraphnAI picks one bridge and one domain in each forest as the collector. It prefers a bridge that already collects and is online. Otherwise it picks the first eligible bridge by name.
  2. If the collector goes offline for more than 15 minutes, GraphnAI moves collection to another eligible bridge. A forest can have a collector on any of its domains, so no bridge has to sit on the forest root.
  3. The collector reads the forest's certificate services on every sync, full and delta.
  4. If two bridges report different forest names for the same domain, GraphnAI picks no collector and shows Forest unclear.

A failed read never deletes what GraphnAI already collected. The last good data stays until a read succeeds.

Check collection on the Bridges page

To check collection, open Bridges. The domain table has a Certificate services column. Hover over a label for the full sentence.

Label What it means What to do
Collecting This domain's bridge collects certificate services for the forest. Nothing.
Can't read The sync account can't read certificate services. Grant the sync account read access to Public Key Services.
Not found The forest has no certificate services configuration. Nothing, if the forest has no certification authority.
Next sync This domain was just chosen as the collector. Wait for the next sync.
Via {domain} or Via {bridge} Another domain or bridge collects for this forest. The label names it. Nothing.
Forest unclear Bridges disagree about which forest this domain belongs to. Check the forest name each bridge reports.
Update needed The bridge version doesn't collect certificate services. Update the bridge.
— No bridge has been assigned to this domain yet. Wait for the next heartbeat.

Step-by-step

Find certificate templates and certification authorities

  1. Open Graph Explorer.
  2. Search for a template or CA name, or filter by node type. Look for Certificate template and Enterprise certification authority.
  3. Select the node to open its panel.

A certificate template panel shows:

Section Content
Settings Badges for "Requester chooses the subject name", "Manager approval required" and "Enrollment agent signature required (N)", each only when true. The schema version appears as text.
Allowed uses What the certificate can do, such as Client Authentication, Smart Card Logon or Any Purpose. "Any purpose" appears when the template names no use.
Who can enroll The accounts and groups that can request this certificate. Rights that pass through Authenticated Users or Everyone are labeled.
Published on The CAs that offer the template. A CA the forest doesn't trust shows "Not trusted for authentication".
Escalation paths How many certificate paths use this template.

An enterprise certification authority panel shows:

Section Content
Host computer The server that runs the CA.
Trust "Trusted for authentication" or "Not trusted for authentication". Trusted means the CA is in the forest's NTAuth store, so the forest accepts its certificates for authentication, such as smart card logon.
Who can request certificates Accounts and groups with enrollment rights on the CA.
Published templates The templates this CA offers.
Escalation paths How many certificate paths use this CA.

Select any listed account, group, template or CA to jump to it.

Read an escalation path

  1. In Graph Explorer, select a dashed certificate relationship, or open a path from a template or CA panel.
  2. The relationship panel opens with Why this path exists. It lists each condition that holds, such as "Requester chooses the subject name" and "No manager approval".
  3. Below the list, Templates, Certification authorities and Containers link to the objects involved.

Two notes can appear under the list. "Granted to every account that authenticates. Shown from Domain Users and Domain Computers." means the right comes from Authenticated Users or Everyone. "Certification authority access assessed from the directory." means GraphnAI worked out CA access from directory permissions.

Find the host of a CA

A computer that hosts an enterprise CA is rated Tier 0, the same as a domain controller. Whoever controls that computer can forge certificates for any account. The CA node is rated Tier 0 too. See Asset Criticality Engine.

Check certificate posture

  1. Open Risk Posture and select the Certificate Services category.
  2. Read the five checks:
    • Certificate template where the requester chooses the subject fires for each template that lets the requester name the subject, allows authentication, needs no approval, and has broad enrollment.
    • Schema version 1 template where the requester chooses the subject (High, ESC15, CVE-2024-49019) fires for each version 1 template that lets the requester supply the subject and that a broad group can enroll in. On a CA without the November 2024 update, a requester can add application policies the template doesn't list, including client authentication.
    • Server Authentication template where the requester chooses the subject (Medium, ESC17) fires for each template that issues Server Authentication certificates, lets the requester supply the subject, and lets a broad group enroll without approval. Anyone who can enroll can get a TLS certificate for any server name that domain-joined clients trust.
    • Certification authority objects controlled by non-administrators fires for each CA object or certificate container that a principal outside Tier 0 can change.
    • Weak explicit certificate mapping (Low) fires for each user, computer and managed service account. See Check weak certificate mappings.
  3. If a forest can't be assessed, a notice appears above the findings. See When a forest can't be assessed.

The template and CA checks cover the whole forest, however many bridges it has.

Read the template checks

The two template checks, Schema version 1 template where the requester chooses the subject and Server Authentication template where the requester chooses the subject, show the same evidence in the drawer:

  • Who can enroll lists the broad groups that can request the certificate.
  • Published on lists the CAs that publish the template.
  • Template settings shows the schema version and the allowed uses (the EKU values).

The schema version 1 check also shows "CA update level not assessed. A CA with the November 2024 update isn't affected." GraphnAI doesn't read the CA's update level, so confirm the update on every CA that publishes the template.

The Server Authentication check reads trusted roots from the forest's Certification Authorities container only. It doesn't read roots pushed by Group Policy.

The ESC1 check, Certificate template where the requester chooses the subject, takes priority: a template it reports isn't reported again by these checks. A version 1 template that issues Server Authentication certificates can appear in both new checks on purpose, because the fixes differ.

Fixing is manual, because GraphnAI doesn't change certificate templates. For a version 1 template, duplicate it to schema version 2 or later first, since version 1 templates generally can't be edited in the Certificate Templates console. On the copy, turn off the requester-supplied subject or narrow who can enroll, publish the copy, and unpublish the original. Install the November 2024 update on every CA that publishes the original. For a Server Authentication template, turn off the requester-supplied subject, require manager approval, or restrict enrollment to the accounts that issue server certificates.

Check weak certificate mappings

Weak explicit certificate mapping (Low) looks at the altSecurityIdentities attribute of users, computers and managed service accounts. It fails an account that holds a weak mapping by e-mail address (RFC822), subject, or issuer and subject, or a mapping in a format GraphnAI doesn't recognize. Strong mappings and Kerberos name mappings don't count.

Domain controllers with the September 2025 Windows security update or later no longer support weak mappings. On a domain controller without that update, a certificate with a matching name can authenticate as the account.

  1. Open Risk Posture and select the Certificate Services category.
  2. Select Weak explicit certificate mapping, then select an account.
  3. Read Weak certificate mappings in the drawer. It lists each kind with a Weak badge and how many mappings of that kind the account holds. It never shows the mapping values.
  4. In Active Directory, replace each weak mapping with a strong one (issuer and serial number, subject key identifier, or SHA1 public key), or remove it.

GraphnAI doesn't hold the certificate, so it can't build a strong mapping for you. There is no automatic fix.

The check reads only what the bridge account can read. An account whose permissions hide altSecurityIdentities from the bridge shows no mappings and passes.

Status What to do
Not assessed: "this connector's bridge needs an update to read certificate mappings. The check runs after its next scheduled full sync" Update the bridge. See Certificate mappings.
Waiting on data: "certificate mapping collection is turned off for this connector. Turn altSecurityIdentities back on in the bridge's Sync attributes. The check runs after the next scheduled full sync." Turn the attribute back on in the bridge's Sync attributes, then wait for the next full sync.

To see an account's mappings outside Risk Posture, open its panel in Graph Explorer. See Identity Panel.

Simulate the fix

You need the Operator role.

  1. Select an enrollment right (Can enroll) or an escalation path in Graph Explorer.
  2. Select Simulate removing this access.
  3. Read the result. It says "Removing this access also closes N certificate paths" when other paths depend on the same right. A path that another right or another CA still supports stays open.

You can simulate Can enroll and the escalation paths. The other structural relationships come from the directory as a whole, so they can't be simulated. Simulate removing an enrollment right instead.

Fix the cause

GraphnAI doesn't change certificate templates or CA permissions. Instead, the footer of a certificate services relationship tells you what to change. Open the relationship in Graph Explorer, in a finding's flyout, from a hop on an attack path, or in an answer from Graphne.

The footer names the real templates, certification authorities and PKI objects involved, the exact setting or permission entry to change on each, and the console where you change it, such as the Certificate Templates console or the Certification Authority console. It has these parts:

Part What it tells you
Where the fix is made The object, the forest and Active Directory.
Numbered steps What to change. A step names up to five objects, then says "N more aren't listed here".
What this affects What the change breaks or leaves alone. It says "This change also closes the same path through {template} for N other accounts or groups" when a template change closes other accounts' paths.
How to confirm How to check that the path is closed.
What GraphnAI couldn't determine Facts GraphnAI can't read, so you check them yourself.
Another way to close this Other changes that close the same path.

The last line, in muted text, says the change can only be made by hand.

If you have the Operator or Admin role, links below the steps open the posture findings on the same objects. One finding reads "Open finding: {check} on {object}". Several read "N findings on these objects", with up to five links. Each link opens Risk Posture with that finding selected. A Viewer sees the steps but no finding links.

If GraphnAI has too few facts, the footer shows the previous general text. This happens for an older relationship until the next sync. Simulate removing this access is unchanged.

To ask in chat instead, ask Graphne how to fix the relationship from one object to another. It answers with the same steps.

After you make the change, the next sync reads the new settings and the path closes.

Relationships

Structural relationships

These describe how certificate services are wired. They aren't attacks and don't count as permissions in over-permission analytics. Reach doesn't follow them.

Label Meaning
Can enroll The account or group can request certificates from the template or CA.
Can auto-enroll The account or group is enrolled automatically. Auto-enrollment alone doesn't let it request certificates by hand.
Published on A CA offers the template.
Hosts certification authority A computer runs the CA.
Issuance policy grants group A certificate with this issuance policy carries membership in a group.
Can enroll on behalf of An enrollment agent can request certificates for other accounts.

Escalation paths

Escalation paths are dashed and drawn in the attack-path style. Each one runs from an account to each domain in the forest, except Issuance policy group access, which ends at the linked group. Every path needs a CA the forest trusts for authentication, where the account can enroll.

Label Why it exists
Certificate impersonation (ESC1) The account can enroll on a template where the requester chooses the subject name, the certificate allows authentication, and no manager approval or agent signature is required. The account can request a certificate that names a domain administrator.
Enrollment agent abuse (ESC3) The account can enroll on a template that issues enrollment agent certificates, and on a second template that accepts an agent's request. It can then request authentication certificates on behalf of anyone.
Template control (ESC4) The account can change a template, or change one setting that would make it match Certificate impersonation. It can turn a safe template into an unsafe one.
PKI object control (ESC5) The account controls a trusted CA object, or controls both the list of trusted CAs and the Certification Authorities container. It can make the forest trust a CA it owns. Members of Tier 0 groups produce no path.
Issuance policy group access (ESC13) A template carries an issuance policy that's linked to a group, and the account can enroll on it. Authenticating with that certificate gains the group's access. The path ends at that group.
Certificate forgery The CA's host computer holds the CA's signing key. Whoever takes it over can forge certificates that the forest accepts. The path runs from the host to each domain.

A template that needs manager approval or an agent signature produces no path for its enrollers. The accounts that can switch the approval off get a Template control path.

Paths come from configuration and permissions, so they carry the Theoretical fidelity level.

When a forest can't be assessed

GraphnAI marks the template and CA certificate checks Not assessed instead of passing them when it can't trust the data. A permission failure never reads as "no exposure". The notice above the findings says why.

Notice What to do
No bridge in this forest collects certificate services yet. Update a bridge in {forest}. Update a bridge in that forest.
Bridges disagree about which forest {forest} belongs to, so certificate services aren't collected. Check the forest each bridge reports.
Certificate services in {forest} haven't been collected yet. They're read on the next sync. Wait for the next sync.
The sync account can't read certificate services in {forest}. Grant the sync account read access to Public Key Services.
No certificate services configuration was found in {forest}. Check that the forest's configuration partition is readable.
Certificate services in {forest} were last collected N days ago. Check the collecting bridge. Bring the collecting bridge back online.

A forest with no certificate services at all (no Public Key Services, or no enterprise certification authority) counts as assessed with nothing to check, so it never holds back the other forests' results. Data older than 72 hours counts as not assessed. If the status can't load, the page says "Couldn't load certificate services status. Retry, or open Platform Health."

Platform Health carries one warning for each forest that can't be assessed. It also warns when a permission names accounts GraphnAI couldn't find in the directory, or when a CA publishes templates that don't exist.

Configuration

Certificate services need no settings. Collection is elected and the posture checks run with the rest of posture. The only change you may need is directory access: give the sync account read access to Public Key Services in the forest's configuration, if your forest removed the default.

Reach analytics must be on for escalation paths. When it's off, the template and CA panels say "Certificate paths aren't being computed. Reach analytics is off." When the last run failed, counts show with "From the last successful run."

Limits

  • GraphnAI doesn't read the CA's own enrollment restrictions, which live in the CA's registry and console. It assesses CA access from the directory, so the CA's own settings can be narrower. The panels say so.
  • A CA that the forest trusts through another forest isn't covered yet.
  • The ESC9 weak certificate mapping path isn't covered. Neither are ESC2, ESC6, ESC7 and ESC8. ESC15 and ESC17 appear as posture checks only, with no escalation path in the graph.
  • GraphnAI never changes templates or CA permissions.

Troubleshooting

The column says "Can't read"

The sync account can't read the Public Key Services container. Grant it read access in the forest's configuration, then wait for the next sync. The warning clears when a read succeeds.

Templates appear but an expected path is missing

Check the conditions in order. The template must be published on a CA that's Trusted for authentication. The account must be able to enroll on both the template and the CA. Manager approval or an agent signature removes the path.

The Certificate Services category says Not assessed

Read the notice above the findings and follow the matching row in When a forest can't be assessed.

A bridge shows "Update needed"

That bridge version can't collect certificate services. Update the bridge. If other bridges in the forest are current, one of them collects.

A CA's host computer says "Host computer not found in the directory"

The CA's DNS name matches no single computer in the forest. Check the CA's DNS host name in the Certification Authority console and make sure the computer is synced.

Escalation path counts are missing

Reach analytics is off, or hasn't run yet. Turn it on and wait for the next computation.

    ↑↓ to move, Enter to open