Suspicious X509Enrollment - Ps Script (via ps_script)
This rule detects use of X509Enrollment
SigmamediumWindowsv1
sigma
suspicious-x509enrollment-ps-script-via-ps-script
title: Suspicious X509Enrollment - Ps Script (via ps_script)
id: 017e937f-e458-5073-a151-0f72a2b2ea4a
status: stable
description: This rule detects use of X509Enrollment
references:
- https://attack.mitre.org/techniques/T1553/004/
- https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=42
- https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=41
- https://learn.microsoft.com/en-us/dotnet/api/microsoft.hpc.scheduler.store.cx509enrollmentwebclassfactoryclass?view=hpc-sdk-5.1.6115
author: Huntrule Team
date: 2026-05-05
tags:
- attack.defense-impairment
- attack.t1553.004
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection:
ScriptBlockText|contains:
- 'X509Enrollment.CBinaryConverter'
- '884e2002-217d-11da-b2a4-000e7bbb2b09'
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.