Windows: certutil.exe ExportPFX certificate export via -exportPFX flag

Flags certutil.exe executions on Windows that include the -exportPFX argument to export certificate material.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-02-15
Updated
2026-07-31
title: "Windows: certutil.exe ExportPFX certificate export via -exportPFX flag"
id: 4fb2a146-0b8f-4ec5-ab43-8e99ef085231
status: test
description: This rule identifies execution of certutil.exe on Windows where the command line includes the -exportPFX flag used to export certificates to a PFX file. Attackers may use this capability to obtain or move certificate material for later use. Detection relies on Windows process creation telemetry including the executable image name and the full command line.
references:
  - https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_certutil_export_pfx.yml
author: Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community, Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2023-02-15
modified: 2024-03-05
tags:
  - attack.stealth
  - attack.t1027
logsource:
  category: process_creation
  product: windows
detection:
  selection_img:
    - Image|endswith: \certutil.exe
    - OriginalFileName: CertUtil.exe
  selection_cli:
    CommandLine|contains|windash: "-exportPFX "
  condition: all of selection_*
falsepositives:
  - There legitimate reasons to export certificates. Investigate the activity to determine if it's benign
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_certutil_export_pfx/info.yml
license: DRL-1.1
related:
  - id: 3ffd6f51-e6c1-47b7-94b4-c1e61d4117c5
    type: derived