Detection rules › Sigma

Modify Group Policy Settings

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113
Source
github.com/SigmaHQ/sigma

Detect malicious GPO modifications can be used to implement many other malicious behaviors.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Modify Group Policy Settings
id: ada4b0c4-758b-46ac-9033-9004613a150d
related:
    - id: b7216a7d-687e-4c8d-82b1-3080b2ad961f
      type: similar
status: test
description: Detect malicious GPO modifications can be used to implement many other malicious behaviors.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/40b77d63808dd4f4eafb83949805636735a1fd15/atomics/T1484.001/T1484.001.md
author: frack113
date: 2022-08-19
tags:
    - attack.privilege-escalation
    - attack.defense-impairment
    - attack.t1484.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_reg:
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_path:
        CommandLine|contains: '\SOFTWARE\Policies\Microsoft\Windows\System'
    selection_key:
        CommandLine|contains:
            - GroupPolicyRefreshTimeDC
            - GroupPolicyRefreshTimeOffsetDC
            - GroupPolicyRefreshTime
            - GroupPolicyRefreshTimeOffset
            - EnableSmartScreen
            - ShellSmartScreenLevel
    condition: all of selection_*
falsepositives:
    - Legitimate use
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_reg

selection_reg:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'

Stage 2: selection_path

selection_path:
    CommandLine|contains: '\SOFTWARE\Policies\Microsoft\Windows\System'

Stage 3: selection_key

selection_key:
    CommandLine|contains:
        - GroupPolicyRefreshTimeDC
        - GroupPolicyRefreshTimeOffsetDC
        - GroupPolicyRefreshTime
        - GroupPolicyRefreshTimeOffset
        - EnableSmartScreen
        - ShellSmartScreenLevel

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • EnableSmartScreen
  • GroupPolicyRefreshTime
  • GroupPolicyRefreshTimeDC
  • GroupPolicyRefreshTimeOffset
  • GroupPolicyRefreshTimeOffsetDC
  • ShellSmartScreenLevel
  • \SOFTWARE\Policies\Microsoft\Windows\System
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
OriginalFileNameeq
  • reg.exe corpus 42 (sigma 32, splunk 8, elastic 2)