Detectionhightest

Non-privileged Usage of Reg or Powershell

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

Open in Detection LabConvert ruleBuild Package
Teymur Kheirkhabarov, Ryan Plas, oscd.communityCreated 2020-10-05Updated 2024-12-018f02c935-effe-45b3-8fc9-ef8696a9e41dwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
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_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
8f02c935-effe-45b3-8fc9-ef8696a9e41d
Status
test
Level
high
Type
Detection
Created
2020-10-05
Modified
2024-12-01
Path
rules/windows/process_creation/proc_creation_win_susp_non_priv_reg_or_ps.yml
Raw Tags
attack.persistenceattack.defense-impairmentattack.t1112
View on GitHub