1200kmSECURITY RESEARCH

1200KM / sigma-rule

Gpscript Execution — Sigma Rule

Sigma rule 1e59c230-6670-45bf-83b0-98903780607e. Gpscript Execution — Sigma Rule. Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy

Rule metadata and linked tags

Author: frack113. Source status: test; severity: medium. Source dates: 2022-05-16 / 2023-06-14.

{
  "product": "windows",
  "category": "process_creation"
}

Pinned original Sigma rule · Detection Rule License 1.1

Source SHA-256: c8bc39e63e58dd236cba9f8a718399c66e74a524505a9c0e5c2ad6fc3598ec19

Detection logic

Original source YAML. Source-tag agreement is not proof of complete semantic coverage. This rule has not been compiled for a SIEM backend or validated against live telemetry here.

title: Gpscript Execution
id: 1e59c230-6670-45bf-83b0-98903780607e
status: test
description: Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy
references:
    - https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/
    - https://lolbas-project.github.io/lolbas/Binaries/Gpscript/
author: frack113
date: 2022-05-16
modified: 2023-06-14
tags:
    - attack.stealth
    - attack.t1218
logsource:
    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_*
falsepositives:
    - Legitimate uses of logon scripts distributed via group policy
level: medium

Original YAML and metadata in JSON

False positives

  • Legitimate uses of logon scripts distributed via group policy

Source references

Connected ecosystem references

Exact source-tagged techniques

Telemetry review

Read the original logsource above, then inspect the linked detection workspaces for technique-level sensor context. No per-rule telemetry equivalence is inferred.

Pinned research references. No browser attack runner, live simulation result or validated detector is asserted. Source mappings and validation limits are preserved. ATT&CK / Atomic provenance · Detection provenance.