Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / ADCS

ESC13

This note documents detection patterns related to ADCS ESC13 within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4886Certificate issuedCriticalCertificate issued from template allowing authentication mapping to privileged groups via EKU misuse.
Security4887Certificate request approvedMediumUnexpected certificate approvals tied to authentication-capable templates.
Security4768Kerberos TGT requestCriticalCertificate obtained via ESC13 is used via PKINIT to request Kerberos TGT.
Security4624Successful logonHighCertificate-based logon events shortly after enrollment.
Security4672Special privileges assignedHighPrivileged session established after certificate authentication.
Sysmon1Process creationMediumExecution of ADCS exploitation tools such as Certipy or Certify.
Sysmon3Network connectionMediumConnections to CA server or domain controllers during certificate abuse.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Certificate template linked to privileged groupTemplate EKU linked to authentication enabling group privilegesCriticalESC13 abuses group-linked certificate templates.
Low privilege account requesting privileged authentication certificateUser requesting template granting authentication rightsHighIndicates potential abuse.
PKINIT authentication immediately after enrollmentKerberos TGT request after certificate issuanceHighIndicates attacker leveraging certificate.
Authentication from unusual hostUser authenticating from system not typically associated with accountHighPotential attacker workstation.
Administrative activity after authenticationACL changes, group membership changes, or domain modificationsCriticalIndicates escalation following certificate abuse.

Common Tools

ToolUsage
CertipyEnumerates and exploits ESC13 certificate template misconfigurations.
CertifyRequests certificates from vulnerable templates.
RubeusUses certificates to request Kerberos tickets via PKINIT.
BloodHoundIdentifies attack paths involving vulnerable certificate templates.
ForgeCertUsed when attacker controls CA private keys.

Relevant Artifacts

  • Domain controller Security logs (4768, 4624, 4672)
  • ADCS server Security logs (4886, 4887)
  • Certificate Authority database
  • Certificate template configuration
  • Sysmon logs (1, 3)
  • PKINIT authentication telemetry
  • EDR telemetry identifying certificate abuse tools
  • Prefetch artifacts showing Certipy or Certify execution

MITRE ATT&CK References

  • T1649 Steal or Forge Authentication Certificates
  • T1550 Use Alternate Authentication Material
  • T1558 Steal or Forge Kerberos Tickets
  • T1078 Valid Accounts

Decision Tree

  1. Is the suspicious event present?
    • Identify certificate issuance events 4886 involving authentication-enabled templates.
  2. What host generated the event?
    • Determine system requesting certificate from CA.
  3. Is the account expected to perform this action?
    • Investigate low privilege users requesting authentication certificates.
  4. Pivot:
    • Source host → inspect execution of Certipy or Certify.
    • Account → verify authentication method after certificate issuance.
    • Network → inspect PKINIT authentication events.
  5. Confirm exploitation
    • Determine whether certificate granted privileged authentication.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4886
| summarize count() by CertificateTemplate, Requester, bin(TimeGenerated, 10m)
SecurityEvent
| where EventID == 4768
| summarize count() by TargetUserName, IpAddress, bin(TimeGenerated, 5m)

EQL

any where event.code == "4886"

Sigma

title: Suspicious ADCS Certificate Issuance ESC13
id: adcs-esc13-detection
status: experimental
description: Detects certificate issuance potentially related to ESC13 exploitation
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4886
  condition: selection
fields:
  - CertificateTemplate
  - Requester
falsepositives:
  - Legitimate certificate enrollment
level: medium
tags:
  - attack.credential_access
  - attack.t1649

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Template configuration reviewAudit certificate templates with authentication EKUCriticalPrevents privileged authentication misuse.
Enrollment permissionsRestrict certificate enrollment rightsHighReduces abuse of sensitive templates.
Template auditingRegularly review template security configurationHighDetects ESC13 exposure.
MonitoringAlert on certificate issuance for privileged templatesHighEarly detection of abuse.
PKI hardeningRestrict administrative access to ADCS infrastructureHighReduces certificate abuse risk.