1. Resources
  2. Detection sources
  3. Event ID 4886

Event ID 4886: Certificate Services received a certificate request

Written by an AD CS certification authority for every certificate request it receives, before it decides on it. Gives the requester and the request attributes, where a subject alternative name attribute points to an abused CA setting.

Log source
Windows Security log
Detection value
Supporting
Volume
Medium
Last updated
Audit subcategory
Audit Certification Services (Object Access, Success and Failure)
Logged on
Certification authority servers only
Event versions
0, 1
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 1 tactic
Threat groups
2 groups that MITRE ATT&CK records using these techniques
Fields the rules read
Attributes

When it is written

A certification authority (CA) running Active Directory Certificate Services writes 4886 to its own Security log each time it receives a certificate request, whatever the way it arrives: autoenrollment, the Certificates console, web enrollment, a command-line tool or an application. The event comes before the CA's decision. It is followed by 4887 when the CA issues the certificate, 4888 when it denies the request, or 4889 when it holds the request as pending; the four events share the Request ID.

The CA writes it only when the Audit Certification Services subcategory is enabled on the CA server and the "Issue and manage certificate requests" category is selected in the CA's own audit filter. A domain controller logs it only if it also holds the CA role: collect the Security log of every CA server.

How to turn it on

Advanced audit policy subcategory Audit Certification Services, Success and Failure. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Object Access > Audit Certification Services
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
Member serversSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
WorkstationsNot loggedMicrosoft says the AD CS role cannot be installed on a client operating system.
Check the current setting
auditpol /get /subcategory:"Certification Services"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Certification Services" /success:enable /failure:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9221-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Two settings must both be on, on every CA server:

  1. The Audit Certification Services subcategory, Success and Failure (Microsoft's PKI monitoring guide asks for both).
  2. The Issue and manage certificate requests category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value 4 of the CA's AuditFilter registry value (all seven categories together are 127). Microsoft's procedure restarts Certificate Services after the filter is changed. To read the current value on the CA: certutil -getreg CA\AuditFilter.

Microsoft notes that the audit filter alone does not make Windows write the event, and the subcategory alone does not either.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Request IDRequestIdCertificate Services received a certificate request.ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in 4887, 4888 or 4889 for the CA's decision and in 4873 and 4874 when a pending request is changed.v0
RequesterCertificate Services received a certificate request.Account that submitted the request, as DOMAIN\name. Computer accounts end with $.v0
AttributesCertificate Services received a certificate request.Read by 1 ruleRequest attributes the requester passed, as name:value pairs separated by new lines, for example CertificateTemplate:User or san:dns=www.corp.example.com. Can be empty. The CA ignores case, spaces and hyphens in attribute names.v0
Subject from CSRSubjectCertificate Services received a certificate request.Subject name in the certificate request (shown as Subject from CSR). For templates that build the subject from Active Directory, the issued certificate's subject can differ. Version 1; Microsoft does not document the field.v1
SAN from CSRSubjectAlternativeNameCertificate Services received a certificate request.Subject alternative name extension in the certificate request (shown as SAN from CSR), which is where a name supplied by the enrollee arrives. Version 1; Microsoft does not document the field or its format.v1
Requested TemplateCertificateTemplateCertificate Services received a certificate request.Template named in the request (shown as Requested Template). Version 1; Microsoft does not document the field.v1
RequestOSVersionCertificate Services received a certificate request.Operating system version of the client. The name matches the OS version attribute that a Windows client can add to a request. Version 1; Microsoft does not document the field.v1
RequestCSPProviderCertificate Services received a certificate request.Cryptographic provider the client used for the key. The name matches the CSP provider attribute, which Windows creates automatically in a PKCSv1
RequestClientInfoCertificate Services received a certificate request.Client information of the request. The name matches the client ID attribute, which in Microsoft's example holds the DNS name of the client computer, the user's account name and the application that created the request. Version 1; Microsoft does not document the field.v1
Authentication ServiceAuthenticationServiceCertificate Services received a certificate request.Authentication service of the client's connection to the CA (shown as Authentication Service). Version 1; Microsoft does not document the field or its values.v1
Authentication LevelAuthenticationLevelCertificate Services received a certificate request.Authentication level of the client's connection to the CA (shown as Authentication Level). Version 1; Microsoft does not document the field or its values.v1
DCOMorRPCCertificate Services received a certificate request.Whether the request reached the CA over DCOM or over RPC. Windows enrollment clients use DCOM by default and can be told to use RPC instead. Version 1; Microsoft does not document the field or its values.v1

Event versions

The Windows event template has two versions. Version 0 has the three fields Microsoft documents: Request ID, Requester and Attributes. Version 1 adds the subject and the subject alternative name from the request (the CSR), the requested template, three fields named after attributes that Windows enrollment clients add to a request (operating system version, cryptographic provider and client information), and the authentication service, authentication level and transport (DCOM or RPC) of the connection. Microsoft's documentation does not describe version 1 or say which Windows release writes it. Our rule reads only Attributes, which both versions carry.

  • Version 0: 3 fields
  • Version 1: 12 fields, adds Subject, SubjectAlternativeName, CertificateTemplate, RequestOSVersion, RequestCSPProvider, RequestClientInfo, AuthenticationService, AuthenticationLevel, DCOMorRPC

Values to know

Attributes

ValueMeaningSignal
san:A subject alternative name passed as a request attribute, for example san:upn=... or san:dns=...The value the rule looks for in Attributes. A CA takes this attribute into the certificate only when EDITF_ATTRIBUTESUBJECTALTNAME2 is enabled, which lets any requester name another account (ESC6 in Microsoft's Defender for Identity assessments).Attack signal
CertificateTemplate:The template the request is forExpected
Any other nameAnother request attributeWorth knowing

SAN from CSR SubjectAlternativeName

ValueMeaningSignal
The requester's own namesA SAN built for the requesting user or computerExpected
A UPN or DNS name of another accountA SAN supplied in the request that names someone elseVersion 1 only, and not read by our rule. Templates that let the enrollee supply the subject accept such a name from the request itself.Attack signal

Requester

ValueMeaningSignal
Ends with $A computer account, usually autoenrollmentExpected
A user or service accountA user certificate, or a server certificate requested by an administrator or an applicationExpected
An account that does not match the name in the SAN attributeA request for another identityFollow the Request ID to 4887 to see whether the certificate was issued.Attack signal

Volume and noise

The busiest of the CA events: one event per request, so its volume follows the number of certificates the CA issues. Ordinary sources are autoenrollment and renewal of user and computer certificates (computer requesters end with $), and domain controller and web server certificates. Microsoft notes that the "Issue and manage certificate requests" category can produce a large number of events on a CA that issues many certificates, and still recommends enabling it because it gives an audit trail of every issuance. Microsoft rates the event low.

Keeping it manageable

  • Keep every event: the SAN rule reads Attributes of every request, and the request is the only record of what was asked for when the CA then denies it.
  • Alert on content, not volume: a san: attribute, a requester that does not match the name in it, or a sensitive template from an unusual requester.
  • Record the accounts that legitimately add DNS names through a san: attribute (server administrators following Microsoft's procedure for LDAP over SSL certificates) and review upn= entries separately from dns= entries.
  • Microsoft documents that the CA ignores case, spaces and hyphens when it reads attribute names, so match the attribute name loosely in your own searches.

Sample event

Version 1, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4886</EventID>
    <Version>1</Version>
    <Level>0</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>CA01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="RequestId">4135</Data>
    <Data Name="Requester">CORP\alice</Data>
    <Data Name="Attributes">CertificateTemplate:User</Data>
    <Data Name="Subject">CN=alice</Data>
    <Data Name="SubjectAlternativeName">-</Data>
    <Data Name="CertificateTemplate">User</Data>
    <Data Name="RequestOSVersion">10.0.26100.2</Data>
    <Data Name="RequestCSPProvider">Microsoft Software Key Storage Provider</Data>
    <Data Name="RequestClientInfo">WS042.corp.example.com CORP\alice certreq.exe</Data>
    <Data Name="AuthenticationService">Kerberos</Data>
    <Data Name="AuthenticationLevel">Packet Privacy</Data>
    <Data Name="DCOMorRPC">DCOM</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

What does a SAN attribute in event 4886 mean?

The requester passed a subject alternative name as a request attribute (san:upn=... or san:dns=...). A CA takes it into the certificate only when EDITF_ATTRIBUTESUBJECTALTNAME2 is enabled on the CA, and then any requester can name another account. A upn entry for an account other than the requester is the form to investigate first; DNS names for the requester's own server are a documented legitimate use.

Does 4886 catch a name supplied inside the request on a template that lets the enrollee supply the subject?

Not in Attributes. That name is an extension inside the signed request, while Attributes holds the separate name:value attributes. On CAs that write version 1, the SubjectAlternativeName and Subject fields show what the request carried, but Microsoft does not document those fields. The issued certificate's subject and SAN in 4887 are the other place to look.

Why are there so many 4886 events?

The CA writes one for every request, and autoenrollment renews user and computer certificates on its own. Microsoft acknowledges the volume of this audit category on busy CAs and still recommends keeping it for the audit trail. Filter by content (attributes, template, requester) rather than dropping events.

How do I tell whether the request was issued?

Look for 4887 (issued), 4888 (denied) or 4889 (pending) with the same Request ID on the same CA.

References