2019-01-12 12:01:03 +01:00
|
|
|
title: Logon Scripts (UserInitMprLogonScript)
|
2019-11-12 23:12:27 +01:00
|
|
|
id: 0a98a10c-685d-4ab0-bddc-b6bdd1d48458
|
2021-11-27 11:33:14 +01:00
|
|
|
status: test
|
2019-01-12 12:01:03 +01:00
|
|
|
description: Detects creation or execution of UserInitMprLogonScript persistence method
|
|
|
|
|
author: Tom Ueltschi (@c_APT_ure)
|
2021-11-27 11:33:14 +01:00
|
|
|
references:
|
|
|
|
|
- https://attack.mitre.org/techniques/T1037/
|
2020-01-30 16:07:37 +01:00
|
|
|
date: 2019/01/12
|
2022-02-21 18:43:18 +01:00
|
|
|
modified: 2022/02/21
|
2019-01-12 12:01:03 +01:00
|
|
|
logsource:
|
2021-11-27 11:33:14 +01:00
|
|
|
category: process_creation
|
|
|
|
|
product: windows
|
2019-01-12 12:01:03 +01:00
|
|
|
detection:
|
2021-11-27 11:33:14 +01:00
|
|
|
exec_selection:
|
|
|
|
|
ParentImage|endswith: '\userinit.exe'
|
|
|
|
|
exec_exclusion1:
|
2022-02-02 20:40:21 +01:00
|
|
|
Image|endswith:
|
2022-02-09 17:46:49 +01:00
|
|
|
- 'explorer.exe'
|
2022-02-02 11:03:19 +01:00
|
|
|
- '\proquota.exe'
|
2021-11-27 11:33:14 +01:00
|
|
|
exec_exclusion2:
|
|
|
|
|
CommandLine|contains:
|
2021-11-29 19:59:26 +00:00
|
|
|
- 'netlogon*.bat'
|
2021-11-27 11:33:14 +01:00
|
|
|
- 'UsrLogon.cmd'
|
2022-02-21 18:43:18 +01:00
|
|
|
- 'C:\WINDOWS\Explorer.EXE'
|
2021-11-27 11:33:14 +01:00
|
|
|
create_keywords_cli:
|
|
|
|
|
CommandLine|contains: 'UserInitMprLogonScript'
|
2022-02-02 20:39:47 +01:00
|
|
|
condition: ( exec_selection and not 1 of exec_exclusion* ) or create_keywords_cli
|
2020-07-01 10:58:39 +02:00
|
|
|
falsepositives:
|
2021-11-27 11:33:14 +01:00
|
|
|
- exclude legitimate logon scripts
|
|
|
|
|
- penetration tests, red teaming
|
2020-10-15 17:23:44 -03:00
|
|
|
level: high
|
2021-11-27 11:33:14 +01:00
|
|
|
tags:
|
|
|
|
|
- attack.t1037.001
|
|
|
|
|
- attack.persistence
|