Detection of Authentication Certificate Extraction via Windows CryptoAPI
This detection identifies the illicit extraction of authentication certificates by monitoring Windows CAPI2 logs for EventID 70, a technique commonly utilized by attackers to perform credential theft and user impersonation.
The extraction of authentication certificates from the Windows certificate store is a critical phase in credential access attacks. This activity is frequently observed when adversaries utilize specialized tools, such as Mimikatz or Cobalt Strike, to acquire private keys associated with certificates. By monitoring the Microsoft-Windows-CAPI2/Operational log, specifically EventID 70, security teams can identify when a private key is accessed or exported. This technique is often linked to sophisticated actors, including those involved in ransomware operations like Hellcat, who leverage compromised certificates to impersonate legitimate users, escalate privileges, or maintain persistence within a network. Given that CAPI2 logging is not enabled by default and serves as a debug-level log, detection engineers must ensure proper log enablement and tuning to mitigate the risk of excessive noise from legitimate administrative operations.
Impact
Successful exploitation of this technique enables attackers to bypass standard authentication mechanisms by impersonating high-privilege users or service accounts. This facilitates lateral movement, unauthorized access to sensitive data, and further privilege escalation, ultimately posing a severe threat to the integrity and confidentiality of the organization's identity infrastructure.
Recommendation
- Enable the Microsoft-Windows-CAPI2/Operational log on all Windows endpoints to capture EventID 70.
- Deploy the provided Sigma rule to monitor for certificate private key acquisition events.
- Tune the detection logic by filtering known administrative tools or legitimate system services that perform authorized certificate maintenance to reduce false positives.
- Review the documentation provided by Red Canary's Atomic Red Team (T1649) to validate your organization's logging posture against this specific TTP.
Immediate actions
Enable Microsoft-Windows-CAPI2/Operational logging on critical endpoints
Threat Hunt
Search for EventID 70 in CAPI2 logs for signs of mass certificate access
Data: CAPI2/Operational log
Detection coverage 1
Detect Authentication Certificate Private Key Acquisition
mediumDetects the acquisition of a certificate's private key via Windows CAPI2 EventID 70, which may indicate unauthorized certificate extraction.
Detection queries are available on the platform. Get full rules →