Sigma rule: Startup/Logon Script Added to Group Policy Object

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d92c51666a94, updated 2024-09-06T00:00:00.000Z.

Rule

Title
Startup/Logon Script Added to Group Policy Object
Status
test
Level
medium
Author
Elastic, Josh Nickels, Marius Rothenbücher
Date
2024-09-06
File
rules/windows/builtin/security/win_security_susp_group_policy_startup_script_added_to_gpo.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the modification of Group Policy Objects (GPO) to add a startup/logon script to users or computer objects.

Log source

product
windows
service
security
definition
The advanced audit policy setting "Object Access > Audit Detailed File Share" must be configured for Success/Failure

Detection

selection_eventid:
    EventID:
        - 5136
        - 5145
selection_attributes_main:
    AttributeLDAPDisplayName:
        - 'gPCMachineExtensionNames'
        - 'gPCUserExtensionNames'
    AttributeValue|contains: '42B5FAAE-6536-11D2-AE5A-0000F87571E3'
selection_attributes_optional:
    AttributeValue|contains:
        - '40B6664F-4972-11D1-A7CA-0000F87571E3'
        - '40B66650-4972-11D1-A7CA-0000F87571E3'
selection_share:
    ShareName|endswith: '\SYSVOL'
    RelativeTargetName|endswith:
        - '\scripts.ini'
        - '\psscripts.ini'
    AccessList|contains: '%%4417'
condition: selection_eventid and (all of selection_attributes_* or selection_share)

False positives (as the rule lists them)

  • Legitimate execution by system administrators.

Tags

  • attack.persistence
  • attack.privilege-escalation
  • attack.defense-impairment
  • attack.t1484.001
  • attack.t1547

MITRE ATT&CK ids this rule names

References

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/builtin/security/win_security_susp_group_policy_startup_script_added_to_gpo.yml

Sources and licences

  • SigmaHQ

    "Startup/Logon Script Added to Group Policy Object" by Elastic, Josh Nickels, Marius Rothenbücher (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_susp_group_policy_startup_script_added_to_gpo.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Startup/Logon Script Added to Group Policy Object",
entity page, dataset version ref-d92c51666a94, updated 2024-09-06T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/123e4e6d-b123-48f8-b261-7214938acaf0 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 123e4e6d-b123-48f8-b261-7214938acaf0, 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.