Sigma rule: Gpscript Execution
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ef4420d31bf5, updated 2023-06-14T00:00:00.000Z.
Rule
- Title
- Gpscript Execution
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-05-16
- Modified
- 2023-06-14
- File
- rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith: '\gpscript.exe'
- OriginalFileName: 'GPSCRIPT.EXE'
selection_cli:
CommandLine|contains:
- ' /logon'
- ' /startup'
filter_main_svchost:
ParentCommandLine: 'C:\windows\system32\svchost.exe -k netsvcs -p -s gpsvc'
condition: all of selection_* and not 1 of filter_main_*False positives (as the rule lists them)
- Legitimate uses of logon scripts distributed via group policy
Tags
- attack.stealth
- attack.t1218
MITRE ATT&CK ids this rule names
References
- https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/
- https://lolbas-project.github.io/lolbas/Binaries/Gpscript/
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml
Sources and licences
SigmaHQ
"Gpscript Execution" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Gpscript Execution",
entity page, dataset version ref-ef4420d31bf5, updated 2023-06-14T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1e59c230-6670-45bf-83b0-98903780607e (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1e59c230-6670-45bf-83b0-98903780607e, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.