2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Gpscript.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Description: Used by group policy to process scripts
|
2018-09-24 21:59:43 +02:00
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: Gpscript /logon
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Executes logon scripts configured in Group Policy.
|
|
|
|
Usecase: Add local group policy logon script to execute file and hide from defensive counter measures
|
|
|
|
Category: Execute
|
|
|
|
Privileges: Administrator
|
2021-11-05 21:17:04 +01:00
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-06-09 00:15:06 +02:00
|
|
|
- Command: Gpscript /startup
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Executes startup scripts configured in Group Policy
|
|
|
|
Usecase: Add local group policy logon script to execute file and hide from defensive counter measures
|
|
|
|
Category: Execute
|
|
|
|
Privileges: Administrator
|
2021-11-05 21:17:04 +01:00
|
|
|
MitreID: T1218
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\gpscript.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\gpscript.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Code:
|
2018-09-24 21:59:43 +02:00
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml
|
2021-11-15 14:19:03 +01:00
|
|
|
- IOC: Scripts added in local group policy
|
|
|
|
- IOC: Execution of Gpscript.exe after logon
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Oddvar Moe
|
|
|
|
Handle: '@oddvarmoe'
|