Detectionmediumtest

Certificate Exported Via Certutil.EXE

Detects the execution of the certutil with the "exportPFX" flag which allows the utility to export certificates.

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community, Nasreddine BencherchaliCreated 2023-02-15Updated 2024-03-053ffd6f51-e6c1-47b7-94b4-c1e61d4117c5windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\certutil.exe'
        - OriginalFileName: 'CertUtil.exe'
    selection_cli:
        CommandLine|contains|windash: '-exportPFX '
    condition: all of selection_*
False Positives

There legitimate reasons to export certificates. Investigate the activity to determine if it's benign

Testing & Validation

Regression Tests

by SigmaHQ Team
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

Rule Metadata
Rule ID
3ffd6f51-e6c1-47b7-94b4-c1e61d4117c5
Status
test
Level
medium
Type
Detection
Created
2023-02-15
Modified
2024-03-05
Path
rules/windows/process_creation/proc_creation_win_certutil_export_pfx.yml
Raw Tags
attack.stealthattack.t1027
View on GitHub