2019-11-12 21:06:24 +01:00
|
|
|
action: global
|
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
|
2019-01-12 12:01:03 +01: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)
|
2019-11-12 21:06:24 +01:00
|
|
|
falsepositives:
|
|
|
|
|
- exclude legitimate logon scripts
|
|
|
|
|
- penetration tests, red teaming
|
|
|
|
|
level: high
|
|
|
|
|
---
|
2019-01-12 12:01:03 +01:00
|
|
|
logsource:
|
2019-11-12 21:06:24 +01:00
|
|
|
category: process_creation
|
2019-01-12 12:01:03 +01:00
|
|
|
product: windows
|
|
|
|
|
detection:
|
2019-03-09 21:31:56 +03:00
|
|
|
exec_selection:
|
|
|
|
|
ParentImage: '*\userinit.exe'
|
2019-11-09 23:32:53 +01:00
|
|
|
exec_exclusion1:
|
2019-03-09 21:31:56 +03:00
|
|
|
Image: '*\explorer.exe'
|
2019-11-09 23:32:53 +01:00
|
|
|
exec_exclusion2:
|
2019-03-09 21:31:56 +03:00
|
|
|
CommandLine: '*\netlogon.bat'
|
2019-11-12 21:06:24 +01: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 11:43:04 +01:00
|
|
|
create_selection_reg:
|
|
|
|
|
EventID:
|
2019-01-12 12:01:03 +01:00
|
|
|
- 11
|
|
|
|
|
- 12
|
|
|
|
|
- 13
|
|
|
|
|
- 14
|
2019-11-02 11:43:04 +01:00
|
|
|
create_keywords_reg:
|
2019-11-12 12:55:05 +01:00
|
|
|
TargetObject: '*UserInitMprLogonScript*'
|
2019-11-12 21:06:24 +01:00
|
|
|
condition: create_selection_reg and create_keywords_reg
|