Possible Persistence Through Logon Scripts - Registry (via registry_set)
This rule detects creation of "UserInitMprLogonScript" registry value that can be used as a persistence method by hostile actors
SigmamediumWindowsv1
sigma
possible-persistence-through-logon-scripts-registry-via-registry-set
title: Possible Persistence Through Logon Scripts - Registry (via registry_set)
id: 789948b4-94a2-5470-b570-574fe8bf5c1a
status: stable
description: This rule detects creation of "UserInitMprLogonScript" registry value that can be used as a persistence method by hostile actors
references:
- https://attack.mitre.org/techniques/T1037/001/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1037.001/T1037.001.md
author: Huntrule Team
date: 2026-05-20
tags:
- attack.privilege-escalation
- attack.t1037.001
- attack.persistence
- attack.lateral-movement
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|contains: 'UserInitMprLogonScript'
condition: selection
falsepositives:
- Unknown
level: medium
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_persistence_logon_scripts_userinitmprlogonscript/info.yml
simulation:
- type: atomic-red-team
name: Logon Scripts
technique: T1037.001
atomic_guid: d6042746-07d4-4c92-9ad8-e644c114a231
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.