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

ESC1

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4886Certificate issuedCriticalIndicates a certificate was issued by ADCS. Review CertificateTemplate, Requester, and Subject for suspicious requests where low-privileged users enroll certificates for other accounts.
Security4887Certificate request approvedHighManual or automated approval of suspicious certificate requests.
Security4768Kerberos TGT requestCriticalESC1 abuse allows attacker to authenticate via PKINIT using the issued certificate. Look for TGT requests shortly after certificate issuance.
Security4624Successful logonHighLogons using certificate-based authentication may follow exploitation.
Security4672Special privileges assignedHighPrivileged session after certificate authentication.
Sysmon1Process creationMediumExecution of ADCS exploitation tools such as Certipy, Certify, or Rubeus.
Sysmon3Network connectionMediumConnections to CA server or domain controller during certificate enrollment and ticket requests.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Enrollment by low privilege accountStandard user requesting certificate capable of client authenticationCriticalESC1 occurs when templates allow ENROLLEE_SUPPLIES_SUBJECT and client authentication.
Certificate issued for another identityCertificate subject differs from requesting accountCriticalIndicates impersonation attempt.
Unexpected PKINIT authenticationUser authenticating with certificate when normally using passwordHighPossible forged or abused certificate.
ADCS access from unusual workstationCertificate requests originating from attacker-controlled hostHighInvestigate suspicious enrollment patterns.
Immediate privileged activityAdministrative actions shortly after certificate-based logonCriticalIndicates attacker leveraging certificate authentication.

Common Tools

ToolUsage
CertipyEnumerates ADCS configuration and exploits ESC1 templates.
CertifyActive Directory Certificate Services abuse tool used for certificate enrollment attacks.
RubeusUses issued certificates to request Kerberos tickets via PKINIT.
ImpacketSupports certificate authentication operations.
CertutilBuilt-in Windows utility used to request or inspect certificates.

Relevant Artifacts

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

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 unusual templates.
  2. What host generated the event?
    • Determine which system submitted the certificate request.
  3. Is the account expected to perform this action?
    • Verify if the requesting account normally enrolls certificates.
  4. Pivot:
    • Source host → inspect execution of Certipy or other ADCS abuse tools.
    • Account → verify whether certificate subject differs from requester.
    • Network → inspect PKINIT authentication events following issuance.
  5. Confirm exploitation
    • Determine whether attacker used certificate to request Kerberos tickets.

Example Detection Templates

KQL

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

EQL

any where event.code == "4886"

Sigma

title: Suspicious ADCS Certificate Enrollment
id: adcs-esc1-enrollment
status: experimental
description: Detects potentially malicious certificate enrollment associated with ESC1
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4886
  condition: selection
fields:
  - Requester
  - CertificateTemplate
falsepositives:
  - Legitimate certificate enrollment
level: medium
tags:
  - attack.credential_access
  - attack.t1649

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Template configurationDisable ENROLLEE_SUPPLIES_SUBJECT where not requiredCriticalPrevents attackers specifying arbitrary identities.
Enrollment permissionsRestrict certificate enrollment rightsHighLimit access to sensitive templates.
Template auditingRegularly audit certificate templates for misconfigurationsHighDetects ESC1 exposure.
MonitoringAlert on certificate issuance for privileged identitiesHighEarly detection of abuse attempts.
PKI hardeningImplement strict access controls on ADCS infrastructureHighReduces attack surface.