Certificate Services Outbound SMB or LDAP Connection
Description
Detects the Windows Certificate Services process (certsrv.exe) initiating an outbound network connection on port 445 (SMB) or 389 (LDAP) to a non-DC host. This behaviour is inherently suspicious: under normal operation the CA resolves subject identities via local RPC against the domain and never initiates outbound SMB or LDAP connections to arbitrary hosts. Any such connection indicates the CA is being coerced into performing a remote identity lookup against an attacker-controlled host.
The most direct known trigger is the CA chase fallback (EDITF_ENABLECHASECLIENTDC) where a requester-supplied 'cdc' attribute causes the CA to open SMB and LDAP to a specified address. CVE-2026-54121 (Certighost) exploits this path to redirect the CA to rogue LSA and LDAP services that return a DC's identity, resulting in a forged DC certificate. This rule is not limited to Certighost — any future vulnerability or misconfiguration that causes certsrv.exe to make outbound SMB or LDAP connections is covered.
Query · sigma
selection: Image|endswith: \certsrv.exe Initiated: 'true' DestinationPort: - 389 - 445 filter_main_loopback: DestinationIp: - 127.0.0.1 - ::1 - 0:0:0:0:0:0:0:1 filter_main_known_legit_ips: DestinationIp|expand: '%legit_ips%' condition: selection and not 1 of filter_main_*
Known false positives
- Unlikely