{"id":"1e59c230-6670-45bf-83b0-98903780607e","title":"Gpscript Execution","description":"Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy","author":"frack113","status":"test","level":"medium","date":"2022-05-16","modified":"2023-06-14","tags":["attack.stealth","attack.t1218"],"technique_ids":["T1218"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Legitimate uses of logon scripts distributed via group policy"],"references":["https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/","https://lolbas-project.github.io/lolbas/Binaries/Gpscript/"],"source_path":"rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml","source_sha256":"c8bc39e63e58dd236cba9f8a718399c66e74a524505a9c0e5c2ad6fc3598ec19","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_lolbin_gpscript.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Gpscript Execution\nid: 1e59c230-6670-45bf-83b0-98903780607e\nstatus: test\ndescription: Detects the execution of the LOLBIN gpscript, which executes logon or startup scripts configured in Group Policy\nreferences:\n    - https://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/\n    - https://lolbas-project.github.io/lolbas/Binaries/Gpscript/\nauthor: frack113\ndate: 2022-05-16\nmodified: 2023-06-14\ntags:\n    - attack.stealth\n    - attack.t1218\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_img:\n        - Image|endswith: '\\gpscript.exe'\n        - OriginalFileName: 'GPSCRIPT.EXE'\n    selection_cli:\n        CommandLine|contains:\n            - ' /logon'\n            - ' /startup'\n    filter_main_svchost:\n        ParentCommandLine: 'C:\\windows\\system32\\svchost.exe -k netsvcs -p -s gpsvc'\n    condition: all of selection_* and not 1 of filter_main_*\nfalsepositives:\n    - Legitimate uses of logon scripts distributed via group policy\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1218","id":"T1218","name":"System Binary Proxy Execution","page":"techniques/enterprise/T1218/"}],"data_path":"data/detection-rules/1e59c230-6670-45bf-83b0-98903780607e.json","kind":"sigma"}
