Suspicious Certificate Exported Through PowerShell (via process_creation)

This rule detects calls to cmdlets that are leveraged to export certificates from the local certificate store. Threat actors were seen abusing this to steal private keys from compromised machines.

SigmamediumWindowsv1
sigma
title: Suspicious Certificate Exported Through PowerShell (via process_creation)
id: 6eab86db-59ac-582f-8c61-93b7d2c6baa6
status: stable
description: This rule detects calls to cmdlets that are leveraged to export certificates from the local certificate store. Threat actors were seen abusing this to steal private keys from compromised machines.
references:
    - https://attack.mitre.org/techniques/T1059/001/
    - https://attack.mitre.org/techniques/T1552/004/
    - https://us-cert.cisa.gov/ncas/analysis-reports/ar21-112a
    - https://learn.microsoft.com/en-us/powershell/module/pki/export-pfxcertificate?view=windowsserver2022-ps
    - https://www.splunk.com/en_us/blog/security/breaking-the-chain-defending-against-certificate-services-abuse.html
author: Huntrule Team
date: 2026-05-29
tags:
    - attack.credential-access
    - attack.execution
    - attack.t1552.004
    - attack.t1059.001
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        CommandLine|contains:
            - 'Export-PfxCertificate '
            - 'Export-Certificate '
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.