2022-05-05 07:57:31 +02:00
|
|
|
title: Gpscript Execution
|
2022-05-02 19:19:12 +02:00
|
|
|
id: 1e59c230-6670-45bf-83b0-98903780607e
|
2024-05-02 10:34:25 +02:00
|
|
|
status: test
|
2022-05-05 07:57:31 +02:00
|
|
|
description: Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy
|
2022-05-02 19:19:12 +02:00
|
|
|
references:
|
2022-05-05 07:57:31 +02:00
|
|
|
- https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/
|
2022-05-02 19:19:12 +02:00
|
|
|
- https://lolbas-project.github.io/lolbas/Binaries/Gpscript/
|
|
|
|
|
author: frack113
|
2024-08-12 12:02:50 +02:00
|
|
|
date: 2022-05-16
|
|
|
|
|
modified: 2023-06-14
|
2022-10-28 15:06:36 +02:00
|
|
|
tags:
|
2024-08-12 12:02:50 +02:00
|
|
|
- attack.defense-evasion
|
2022-10-28 15:06:36 +02:00
|
|
|
- attack.t1218
|
2022-05-02 19:19:12 +02:00
|
|
|
logsource:
|
|
|
|
|
product: windows
|
|
|
|
|
category: process_creation
|
|
|
|
|
detection:
|
2022-05-16 22:02:41 +01:00
|
|
|
selection_img:
|
|
|
|
|
- Image|endswith: '\gpscript.exe'
|
|
|
|
|
- OriginalFileName: 'GPSCRIPT.EXE'
|
|
|
|
|
selection_cli:
|
|
|
|
|
CommandLine|contains:
|
2022-05-05 07:57:31 +02:00
|
|
|
- ' /logon'
|
|
|
|
|
- ' /startup'
|
2023-06-14 15:35:33 +02:00
|
|
|
filter_main_svchost:
|
2023-06-14 11:33:58 +02:00
|
|
|
ParentCommandLine: 'C:\windows\system32\svchost.exe -k netsvcs -p -s gpsvc'
|
2023-06-14 15:35:33 +02:00
|
|
|
condition: all of selection_* and not 1 of filter_main_*
|
2022-05-02 19:19:12 +02:00
|
|
|
falsepositives:
|
2022-05-05 07:57:31 +02:00
|
|
|
- Legitimate uses of logon scripts distributed via group policy
|
2022-05-02 19:19:12 +02:00
|
|
|
level: medium
|