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

ESC11

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4886Certificate issuedCriticalCertificate issued through RPC enrollment endpoint which can be abused via NTLM relay (ESC11). Review Requester and CertificateTemplate.
Security4887Certificate request approvedMediumUnexpected certificate approvals via RPC enrollment.
Security4768Kerberos TGT requestHighCertificate obtained through relay may be used via PKINIT authentication shortly after issuance.
Security4624Successful logonHighCertificate-based authentication events following certificate issuance.
Security4672Special privileges assignedHighPrivileged session following certificate-based authentication.
Sysmon3Network connectionCriticalConnections from attacker relay host to RPC enrollment endpoint on CA server.
Sysmon1Process creationMediumExecution of ntlmrelayx or Certipy relay module.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
NTLM authentication to CA RPC interfaceAuthentication to RPC enrollment serviceCriticalESC11 relies on NTLM relay to RPC enrollment endpoint.
Authentication coercion preceding requestPrinterBug, PetitPotam, DFSCoerceCriticalThese attacks force machine authentication to attacker relay host.
Machine account certificate enrollmentCertificate issued for machine account unexpectedlyHighCommon scenario in relay attacks.
Certificate issuance from unusual source hostEnrollment request from workstation not normally interacting with CAHighIndicates relay host.
Privileged activity after authenticationAdministrative actions following certificate logonCriticalAttacker leveraging certificate for domain escalation.

Common Tools

ToolUsage
CertipySupports NTLM relay to ADCS RPC enrollment endpoint.
ntlmrelayxImpacket tool used to relay NTLM authentication to RPC enrollment service.
PetitPotamCoerces authentication from domain controllers or servers.
PrinterBugTriggers authentication to attacker-controlled system.
CoercerFramework automating coercion attacks.

Relevant Artifacts

  • Domain controller Security logs (4768, 4624)
  • ADCS server Security logs (4886, 4887)
  • RPC enrollment service logs
  • Network telemetry showing NTLM relay patterns
  • Sysmon logs (1, 3)
  • EDR telemetry detecting relay tooling
  • Prefetch artifacts for ntlmrelayx or Certipy
  • Authentication logs preceding relay activity

MITRE ATT&CK References

  • T1557 Adversary-in-the-Middle
  • T1557.001 NTLM Relay
  • T1649 Steal or Forge Authentication Certificates
  • T1550 Use Alternate Authentication Material

Decision Tree

  1. Is the suspicious event present?
    • Identify certificate issuance events 4886 associated with RPC enrollment.
  2. What host generated the event?
    • Investigate source host interacting with CA RPC interface.
  3. Is the account expected to perform this action?
    • Machine accounts rarely request authentication certificates.
  4. Pivot:
    • Source host → inspect execution of ntlmrelayx or Certipy.
    • Account → verify authentication pattern and privileges.
    • Network → inspect coercion activity preceding certificate enrollment.
  5. Confirm exploitation
    • Determine whether certificate was used for PKINIT authentication.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4886
| project TimeGenerated, Requester, CertificateTemplate, SubjectUserName
SecurityEvent
| where EventID == 4624 and LogonType == 3
| project TimeGenerated, TargetUserName, IpAddress

EQL

any where event.code == "4886"

Sigma

title: Suspicious Certificate Enrollment via RPC
id: adcs-esc11-detection
status: experimental
description: Detects certificate issuance potentially related to NTLM relay via RPC enrollment
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.t1557

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Disable NTLM where possiblePrevent NTLM relay attacksCriticalEliminates relay capability.
Require LDAP/SMB signingEnforce signing protectionsHighReduces relay opportunities.
RPC security hardeningRestrict access to CA RPC enrollment serviceHighLimits exposure of relay target.
MonitoringAlert on certificate issuance via RPC endpointHighDetects relay attempts.
Network segmentationRestrict CA access to trusted systemsMediumReduces exposure to relay hosts.