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

Event ID 4897: Role separation enabled

Written by an AD CS certification authority to record its role separation setting, which stops one account from holding more than one CA role. Microsoft suggests alerting when the expected setting changes. The event names no account.

Log source
Windows Security log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Certification Services (Object Access, Success and Failure)
Logged on
Certification authority servers only
Event versions
0
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
The event ID and the provider only

When it is written

Role separation is an optional control of a certification authority (CA): when it is on, the CA refuses to let one account act in more than one CA role, such as CA administrator, certificate manager and auditor. The CA writes 4897 to its own Security log with the state of this setting; the whole event is the label "Role separation enabled" and the value. Microsoft lists it under the "Change CA security settings" audit filter category and suggests using it, where role separation is in use, to alert when the expected configuration changes. It does not describe which action writes the event.

Unlike most CA events, 4897 has no account fields: it does not say who changed the setting. The event needs the Audit Certification Services subcategory on the CA server and the "Change CA security settings" category in the CA's own audit filter.

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 Change CA security settings category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value 16 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's current CA guidance notes that it does not document a Windows Server 2025 procedure for enabling role separation or a supported RoleSeparationEnabled registry value, and asks you to validate the configuration before you rely on it.

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
Role separation enabledRoleSeparationEnabledState of the role separation setting, and the only data in the event (the message is the label followed by this value). Microsoft does not document the values the event writes, so check an event from your own CA.v0

Values to know

Role separation enabled RoleSeparationEnabled

ValueMeaningSignal
Role separation onEach account may hold only one CA roleWhere your CA design uses role separation.Expected
Role separation off on a CA that uses itOne account may again hold several CA rolesMicrosoft notes that a local administrator of the CA server can always switch role separation off, which can make an account eligible for rights it should not have. Microsoft does not document the values the event writes.Attack signal

Volume and noise

Very low. The setting changes only when an organization introduces role separation or switches it off for maintenance. Microsoft rates the event medium.

Keeping it manageable

  • Keep every event: the volume is very low and the rule matches on the event ID alone.
  • Compare the value with the state you expect on each CA, and raise the priority when role separation is switched off on a CA that uses it.
  • Add registry auditing of the CA's configuration key (value RoleSeparationEnabled, event 4657), which Microsoft lists among the values to watch and which names the account and the process that made the change.

Sample event

Version 0, 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>4897</EventID>
    <Version>0</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="RoleSeparationEnabled">1</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

What is role separation on a certification authority?

An optional CA setting that stops one account from acting in more than one CA role, so that, for example, the person who administers the CA cannot also approve certificate requests. Microsoft describes it as an extra control that does not replace CA permissions or protected administration.

Does event 4897 say who changed role separation?

No. The event holds only the state of the setting. Registry auditing of the CA's configuration key (event 4657 for RoleSeparationEnabled) names the account and the process, and the logons on the CA server (4624) show who was working there.

Does 4897 always mean that role separation was turned on?

Its text is the label "Role separation enabled" followed by a value, so read the value. Microsoft does not document the values or the action that writes the event; compare it with the state you expect on that CA.

References