{"id":"9ace0707-b560-49b8-b6ca-5148b42f39fb","title":"Potential Persistence Via Logon Scripts - Registry","description":"Detects creation of \"UserInitMprLogonScript\" registry value which can be used as a persistence method by malicious actors","author":"Tom Ueltschi (@c_APT_ure)","status":"test","level":"medium","date":"2019-01-12","modified":"2025-10-26","tags":["attack.privilege-escalation","attack.t1037.001","attack.persistence","attack.lateral-movement"],"technique_ids":["T1037.001"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Investigate the contents of the \"UserInitMprLogonScript\" value to determine of the added script is legitimate"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1037.001/T1037.001.md"],"source_path":"rules/windows/registry/registry_set/registry_set_persistence_logon_scripts_userinitmprlogonscript.yml","source_sha256":"28c8b5e8fd3c0237fd18e74202628c9ad7363a4dc2599267a7f43676cc4fc615","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_persistence_logon_scripts_userinitmprlogonscript.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Persistence Via Logon Scripts - Registry\nid: 9ace0707-b560-49b8-b6ca-5148b42f39fb\nstatus: test\ndescription: Detects creation of \"UserInitMprLogonScript\" registry value which can be used as a persistence method by malicious actors\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1037.001/T1037.001.md\nauthor: Tom Ueltschi (@c_APT_ure)\ndate: 2019-01-12\nmodified: 2025-10-26\ntags:\n    - attack.privilege-escalation\n    - attack.t1037.001\n    - attack.persistence\n    - attack.lateral-movement\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains: 'UserInitMprLogonScript'\n    condition: selection\nfalsepositives:\n    - Investigate the contents of the \"UserInitMprLogonScript\" value to determine of the added script is legitimate\nlevel: medium\nregression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_persistence_logon_scripts_userinitmprlogonscript/info.yml\nsimulation:\n    - type: atomic-red-team\n      name: Logon Scripts\n      technique: T1037.001\n      atomic_guid: d6042746-07d4-4c92-9ad8-e644c114a231\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1037.001","id":"T1037.001","name":"Logon Script (Windows)","page":"techniques/enterprise/T1037.001/"}],"data_path":"data/detection-rules/9ace0707-b560-49b8-b6ca-5148b42f39fb.json","kind":"sigma"}
