Sigma rule: PFX File Creation

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7e5677dd1a5d, updated 2025-10-19T00:00:00.000Z.

Rule

Title
PFX File Creation
Status
test
Level
low
Author
Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
Date
2020-05-02
Modified
2025-10-19
File
rules-threat-hunting/windows/file/file_event/file_event_win_pfx_file_creation.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the creation of PFX files (Personal Information Exchange format).
PFX files contain private keys and certificates bundled together, making them valuable targets for attackers seeking to:

- Exfiltrate digital certificates for impersonation or signing malicious code
- Establish persistent access through certificate-based authentication
- Bypass security controls that rely on certificate validation

Analysts should investigate PFX file creation events by examining which process created the PFX file and its parent process chain, as well as unusual locations outside standard certificate stores or development environments.

Log source

product
windows
category
file_event

Detection

selection:
    TargetFilename|endswith: '.pfx'
filter_optional_onedrive:
    Image:
        - 'C:\Program Files\Microsoft OneDrive\OneDrive.exe'
        - 'C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe'
    TargetFilename|endswith: '\OneDrive\CodeSigning.pfx'
filter_optional_visual_studio:
    TargetFilename|startswith:
        - 'C:\Program Files (x86)\Microsoft Visual Studio\'
        - 'C:\Program Files\Microsoft Visual Studio\'
filter_optional_cmake:
    TargetFilename|startswith: 'C:\Program Files\CMake\'
condition: selection and not 1 of filter_optional_*

False positives (as the rule lists them)

  • System administrators legitimately managing certificates and PKI infrastructure
  • Development environments where developers create test certificates for application signing
  • Automated certificate deployment tools and scripts used in enterprise environments
  • Software installation processes that include certificate provisioning (e.g., web servers, VPN clients)
  • Certificate backup and recovery operations performed by IT staff
  • Build systems and CI/CD pipelines that generate code signing certificates
  • Third-party applications that create temporary certificates for secure communications

Tags

  • attack.credential-access
  • attack.t1552.004
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/file/file_event/file_event_win_pfx_file_creation.yml

Sources and licences

  • SigmaHQ

    "PFX File Creation" by Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/file/file_event/file_event_win_pfx_file_creation.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: PFX File Creation",
entity page, dataset version ref-7e5677dd1a5d, updated 2025-10-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/dca1b3e8-e043-4ec8-85d7-867f334b5724 (accessed 2026-11-03).
Underlying source: SigmaHQ rule dca1b3e8-e043-4ec8-85d7-867f334b5724, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.