2019-11-12 20:06:24 +00:00
|
|
|
action: global
|
2019-01-12 11:01:03 +00:00
|
|
|
title: Logon Scripts (UserInitMprLogonScript)
|
2019-11-12 22:12:27 +00:00
|
|
|
id: 0a98a10c-685d-4ab0-bddc-b6bdd1d48458
|
2019-01-12 11:01:03 +00:00
|
|
|
status: experimental
|
|
|
|
description: Detects creation or execution of UserInitMprLogonScript persistence method
|
|
|
|
references:
|
|
|
|
- https://attack.mitre.org/techniques/T1037/
|
|
|
|
tags:
|
|
|
|
- attack.t1037
|
|
|
|
- attack.persistence
|
|
|
|
- attack.lateral_movement
|
|
|
|
author: Tom Ueltschi (@c_APT_ure)
|
2020-01-30 15:07:37 +00:00
|
|
|
date: 2019/01/12
|
2019-11-12 20:06:24 +00:00
|
|
|
falsepositives:
|
|
|
|
- exclude legitimate logon scripts
|
|
|
|
- penetration tests, red teaming
|
|
|
|
level: high
|
|
|
|
---
|
2019-01-12 11:01:03 +00:00
|
|
|
logsource:
|
2019-11-12 20:06:24 +00:00
|
|
|
category: process_creation
|
2019-01-12 11:01:03 +00:00
|
|
|
product: windows
|
|
|
|
detection:
|
2019-03-09 18:31:56 +00:00
|
|
|
exec_selection:
|
|
|
|
ParentImage: '*\userinit.exe'
|
2019-11-09 22:32:53 +00:00
|
|
|
exec_exclusion1:
|
2019-03-09 18:31:56 +00:00
|
|
|
Image: '*\explorer.exe'
|
2019-11-09 22:32:53 +00:00
|
|
|
exec_exclusion2:
|
2020-01-30 15:07:37 +00:00
|
|
|
CommandLine:
|
2020-01-28 09:11:09 +00:00
|
|
|
- '*\netlogon.bat'
|
|
|
|
- '*\UsrLogon.cmd'
|
2019-11-12 20:06:24 +00:00
|
|
|
condition: exec_selection and not exec_exclusion1 and not exec_exclusion2
|
|
|
|
---
|
|
|
|
logsource:
|
|
|
|
category: process_creation
|
|
|
|
product: windows
|
|
|
|
detection:
|
|
|
|
create_keywords_cli:
|
|
|
|
CommandLine: '*UserInitMprLogonScript*'
|
|
|
|
condition: create_keywords_cli
|
|
|
|
---
|
|
|
|
logsource:
|
|
|
|
product: windows
|
|
|
|
service: sysmon
|
|
|
|
detection:
|
2019-11-02 10:43:04 +00:00
|
|
|
create_selection_reg:
|
|
|
|
EventID:
|
2019-01-12 11:01:03 +00:00
|
|
|
- 12
|
|
|
|
- 13
|
|
|
|
- 14
|
2019-11-02 10:43:04 +00:00
|
|
|
create_keywords_reg:
|
2019-11-12 11:55:05 +00:00
|
|
|
TargetObject: '*UserInitMprLogonScript*'
|
2019-11-12 20:06:24 +00:00
|
|
|
condition: create_selection_reg and create_keywords_reg
|