Non-privileged Usage of Reg or Powershell


Description

Search for usage of reg or Powershell by non-privileged users to modify service configuration in registry

Query · sigma

selection_cli:
- CommandLine|contains|all:
  - 'reg '
  - add
- CommandLine|contains:
  - powershell
  - set-itemproperty
  - ' sp '
  - new-itemproperty
selection_data:
  IntegrityLevel:
  - Medium
  - S-1-16-8192
  CommandLine|contains|all:
  - ControlSet
  - Services
  CommandLine|contains:
  - ImagePath
  - FailureCommand
  - ServiceDLL
condition: all of selection_*

Known false positives

  • Unknown
Raw source Non-privileged Usage of Reg or Powershell · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Non-privileged Usage of Reg or Powershell
id: 8f02c935-effe-45b3-8fc9-ef8696a9e41d
status: test
description: Search for usage of reg or Powershell by non-privileged users to modify service configuration in registry
references:
    - https://image.slidesharecdn.com/kheirkhabarovoffzonefinal-181117201458/95/hunting-for-privilege-escalation-in-windows-environment-20-638.jpg
author: Teymur Kheirkhabarov (idea), Ryan Plas (rule), oscd.community
date: 2020-10-05
modified: 2024-12-01
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: process_creation
    product: windows
detection:
    selection_cli:
        - CommandLine|contains|all:
              - 'reg '
              - 'add'
        - CommandLine|contains:
              - 'powershell'
              - 'set-itemproperty'
              - ' sp '
              - 'new-itemproperty'
    selection_data:
        IntegrityLevel:
            - 'Medium'
            - 'S-1-16-8192'
        CommandLine|contains|all:
            - 'ControlSet'
            - 'Services'
        CommandLine|contains:
            - 'ImagePath'
            - 'FailureCommand'
            - 'ServiceDLL'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.