Sigma rule: Potential Persistence Via Logon Scripts - CommandLine
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-6b9f9da88dfb, updated 2023-06-09T00:00:00.000Z.
Rule
- Title
- Potential Persistence Via Logon Scripts - CommandLine
- Status
- test
- Level
- high
- Author
- Tom Ueltschi (@c_APT_ure)
- Date
- 2019-01-12
- Modified
- 2023-06-09
- File
- rules/windows/process_creation/proc_creation_win_registry_logon_script.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the addition of a new LogonScript to the registry value "UserInitMprLogonScript" for potential persistence
Log source
- product
- windows
- category
- process_creation
Detection
selection:
CommandLine|contains: 'UserInitMprLogonScript'
condition: selectionFalse positives (as the rule lists them)
- Legitimate addition of Logon Scripts via the command line by administrators or third party tools
Tags
- attack.privilege-escalation
- attack.persistence
- attack.t1037.001
MITRE ATT&CK ids this rule names
Related rules
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/windows/process_creation/proc_creation_win_registry_logon_script.yml
Sources and licences
SigmaHQ
"Potential Persistence Via Logon Scripts - CommandLine" by Tom Ueltschi (@c_APT_ure) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_registry_logon_script.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Persistence Via Logon Scripts - CommandLine",
entity page, dataset version ref-6b9f9da88dfb, updated 2023-06-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/21d856f9-9281-4ded-9377-51a1a6e2a432 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 21d856f9-9281-4ded-9377-51a1a6e2a432, 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.