Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
product: windows
service: security
definition: |
This requires two independent controls on the CA server.
(1) CA\AuditFilter must have bit 0x04 (AUDIT_CERTSRV_REQUESTFLAGS) set
this instructs certsrv.exe to emit request/issuance events.
Without this bit the CA never calls ReportEvent() for certificate operations, regardless of OS policy.
- Set via: certutil -setreg CA\AuditFilter 127 then net stop CertSvc; net start CertSvc.
(2) The OS audit subcategory must be enabled to write those events into the Security log:
auditpol /set /subcategory:"Certification Services" /success:enable.
Note: GPO alone (without AuditFilter) is not sufficient.
detection:
selection:
EventID: 4886
Attributes|contains: 'cdc:'
filter_main_known_cdc:
Attributes|contains|expand: '%known_cdcs%' # should be populated with all known legitimate DC hostnames and IPs
condition: selection and not 1 of filter_main_*
falsepositives:
- Unknown