Back to Intelligence

Certighost AD CS Vulnerability: Detection and Remediation for Windows Domain Hijacking

SA
Security Arsenal Team
July 29, 2026
6 min read

The release of a Proof-of-Concept (PoC) exploit for the "Certighost" security issue marks a critical turning point for Windows defenders. This vulnerability targets Active Directory Certificate Services (AD CS), a component often overlooked in security posture assessments but fundamental to identity management.

While specific technical details are emerging with the public availability of the exploit code, the core capability is alarming: authenticated attackers can leverage this flaw to compromise the entire Windows domain. In the hands of an adversary who has already gained a foothold (e.g., via phishing or credential theft), Certighost provides a reliable path to Domain Admin privileges, effectively turning a low-risk incident into a catastrophic breach.

Technical Analysis

Affected Component: Active Directory Certificate Services (AD CS) on Windows Server.

The Threat: "Certighost" exploits a logic flaw or misconfiguration within the AD CS infrastructure. The PoC demonstrates how an attacker with standard domain user credentials can interact with the Certificate Authority (CA) to request a certificate that grants them elevated privileges.

Attack Chain:

  1. Initial Access: Attacker obtains valid domain credentials (any authenticated user).
  2. Enumeration: Attacker identifies vulnerable certificate templates or CA configurations (the "Certighost" vector).
  3. Exploitation: Attacker uses the PoC to request a certificate with "Client Authentication" Extended Key Usage (EKU) and a Subject Alternative Name (SAN) that allows impersonation of a privileged account (e.g., a Domain Admin).
  4. Privilege Escalation: The attacker utilizes the issued certificate to authenticate via Kerberos (PKINIT) or Schannel, assuming the identity of the target account.
  5. Domain Compromise: With Domain Admin rights, the attacker hijacks the domain, deploy ransomware, or establishes persistence.

Exploitation Status: A functional PoC is now public. While widespread mass exploitation has not yet been reported at the time of writing, the barrier to entry is low. This is currently a "technical threat" with high potential for active weaponization in the coming weeks.

Detection & Response

Detecting AD CS abuse requires monitoring for the specific tools used to request certificates and the corresponding events on the CA itself. The following rules focus on the execution of enrollment utilities and the resulting logons that leverage certificates for authentication.

Sigma Rules

YAML
---
title: Certighost - Suspicious Certificate Enrollment via Certutil
id: 8a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects the use of certutil.exe to request certificates, specifically targeting the CA configuration which is indicative of enrollment activity often seen in AD CS attacks like Certighost.
references:
  - https://attack.mitre.org/techniques/T1649/
author: Security Arsenal
date: 2026/04/18
tags:
  - attack.credential_access
  - attack.t1649
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith: '\certutil.exe'
    CommandLine|contains:
      - '-config'
      - '-submit'
      - '-request'
  condition: selection
falsepositives:
  - Legitimate administrator manual enrollment or scripting
level: medium
---
title: Certighost - Suspicious Certreq Execution for Enrollment
id: 9b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e
status: experimental
description: Detects the use of certreq.exe to submit certificate requests to a CA. This tool is frequently used in PoCs for AD CS vulnerabilities.
references:
  - https://attack.mitre.org/techniques/T1649/
author: Security Arsenal
date: 2026/04/18
tags:
  - attack.credential_access
  - attack.t1649
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith: '\certreq.exe'
    CommandLine|contains:
      - '-submit'
      - '-attrib'
  condition: selection
falsepositives:
  - Automated certificate enrollment services (Auto-Enrollment)
level: medium
---
title: Certighost - PowerShell Certificate Request Activity
id: 0c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f
status: experimental
description: Detects PowerShell scripts invoking certificate request classes or cmdlets, which may indicate a script-based exploitation of AD CS.
references:
  - https://attack.mitre.org/techniques/T1059/001
author: Security Arsenal
date: 2026/04/18
tags:
  - attack.execution
  - attack.t1059.001
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith:
      - '\powershell.exe'
      - '\pwsh.exe'
    CommandLine|contains:
      - 'System.Security.Cryptography.X509Certificates'
      - 'CertEnroll'
      - 'CertificateAuthority'
  condition: selection
falsepositives:
  - System administration scripts utilizing PKI modules
level: low

Microsoft Sentinel KQL

This hunt query correlates process creation events with Certificate Services logs to identify potential "Certighost" exploitation attempts.

KQL — Microsoft Sentinel / Defender
// Hunt for suspicious enrollment tools and correlate with CA request failures/success
let EnrollmentTools = dynamic(["certutil.exe", "certreq.exe"]);
DeviceProcessEvents
| where FileName in (EnrollmentTools)
| where ProcessCommandLine has_any ("-submit", "-config", "-attrib")
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileName
| join kind=leftouter (
    SecurityEvent 
    | where EventID in (4886, 4887) // Certificate Services: Request and Issuance
    | project RequestTime = TimeGenerated, Subject, RequesterName, Status
) on $left.DeviceName == $right.Computer
| where isnotnull(Status)

Velociraptor VQL

Hunt for the execution of certificate enrollment binaries on endpoints.

VQL — Velociraptor
-- Hunt for certificate enrollment utility execution
SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE Name =~ 'certutil.exe'
   OR Name =~ 'certreq.exe'

Remediation Script (PowerShell)

This script assists administrators in auditing AD CS templates for configurations that are commonly exploited in "Certighost" style attacks (specifically looking for templates that allow low-privileged users to enroll and supply Subject Alternative Names).

PowerShell
# Audit AD CS Templates for ESC1-like vulnerabilities (SAN enablement)
# Requires Active Directory module and RSAT tools

Write-Host "[+] Auditing AD CS Certificate Templates for potential misconfigurations..." -ForegroundColor Cyan

try {
    # Get all certificate templates
    $templates = Get-ADObject -LDAPFilter "(objectClass=pKICertificateTemplate)" -Properties *
    
    $vulnerableTemplates = @()

    foreach ($template in $templates) {
        $msPKI-Certificate-Name-Flag = $template.'msPKI-Certificate-Name-Flag'
        $msPKI-Enrollment-Flag = $template.'msPKI-Enrollment-Flag'
        $msPKI-RA-Signature = $template.'msPKI-RA-Signature'
        
        # Check if ENROLLEE_SUPPLIES_SUBJECT is set (Flag 0x00000001)
        # If 0x1 is present in msPKI-Certificate-Name-Flag
        if ($msPKI-Certificate-Name-Flag -band 1) {
            # Check for Client Authentication EKU (OID 1.3.6.1.5.5.7.3.2)
            $ekus = $template.'msPKI-Extended-Key-Usage'
            if ($ekus -contains "1.3.6.1.5.5.7.3.2") {
                # Check if "Domain Users" or "Authenticated Users" have enrollment rights
                $acl = (Get-Acl "AD:$($template.DistinguishedName)").Access
                $principalHasRights = $false
                
                foreach ($ace in $acl) {
                    if ($ace.IdentityReference -like "*Domain Users*" -or $ace.IdentityReference -like "*Authenticated Users*") {
                        if ($ace.ActiveDirectoryRights -match "GenericRead|ExtendedRight") {
                            $principalHasRights = $true
                        }
                    }
                }

                if ($principalHasRights) {
                    $vulnerableTemplates += $template
                }
            }
        }
    }

    if ($vulnerableTemplates.Count -gt 0) {
        Write-Host "[!] CRITICAL: Found templates vulnerable to potential SAN injection (ESC1/Certighost style):" -ForegroundColor Red
        $vulnerableTemplates | Select-Object Name, DisplayName, DistinguishedName | Format-Table -AutoSize
    } else {
        Write-Host "[+] No high-risk templates found with ENROLLEE_SUPPLIES_SUBJECT and low-privileged enrollment." -ForegroundColor Green
    }
} catch {
    Write-Error "[-] Error during audit: Ensure you are running as Domain Admin and have RSAT installed."
    Write-Error $_.Exception.Message
}

Remediation

To mitigate the risk posed by the Certighost PoC and similar AD CS vulnerabilities, implement the following defensive measures:

  1. Audit Certificate Templates: Use the provided script or tools like PSPKIAudit to identify templates that:

    • Allow "Domain Users" or "Authenticated Users" to enroll.
    • Allow users to supply the Subject Alternative Name (SAN).
    • Have the Client Authentication EKU.
    • Action: Remove "Enroll" permissions from non-privileged groups and disable the "ENROLLEE_SUPPLIES_SUBJECT" flag where not strictly necessary.
  2. Restrict CA Managers: Limit the number of users with administrative rights on the Certificate Authority itself.

  3. Monitor Certificate Requests: Enable detailed logging on your CA servers. Ensure Event ID 4886 (Request) and 4887 (Issuance) are forwarded to your SIEM. Set alerts for certificates issued to sensitive accounts (Domain Admins) or requests originating from non-standard workstations.

  4. Patch and Update: While specific patches for "Certighost" may still be developing, ensure your Windows Servers are fully patched against the latest security updates (2025-2026 cumulative updates). Microsoft has been actively hardening AD CS in recent releases.

  5. Network Segmentation: Ensure that the CA servers are not directly accessible from the internet and that management interfaces are restricted to specific jump hosts.

Related Resources

Security Arsenal Red Team Services AlertMonitor Platform Book a SOC Assessment pen-testing Intel Hub

penetration-testingred-teamoffensive-securityexploitvulnerability-researchad-cscertighostactive-directorywindows-securitycertificate-services

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.