Detectionmediumtest

Detection of PowerShell Execution via Sqlps.exe

This rule detects execution of a PowerShell code through the sqlps.exe utility, which is included in the standard set of utilities supplied with the MSSQL Server. Script blocks are not logged in this case, so this utility helps to bypass protection mechanisms based on the analysis of these logs.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Agro oscd.communityCreated Sat Oct 10Updated Fri Dec 090152550d-3a26-4efd-9f0e-54a0b28ae2f3windows
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 Logic3 selectors
detection:
    selection_parent:
        ParentImage|endswith: '\sqlps.exe'
    selection_image:
        - Image|endswith: '\sqlps.exe'
        - OriginalFileName: 'sqlps.exe'
    filter_image:
        ParentImage|endswith: '\sqlagent.exe'
    condition: selection_parent or (selection_image and not filter_image)
False Positives

Direct PS command execution through SQLPS.exe is uncommon, childprocess sqlps.exe spawned by sqlagent.exe is a legitimate action.

Rule Metadata
Rule ID
0152550d-3a26-4efd-9f0e-54a0b28ae2f3
Status
test
Level
medium
Type
Detection
Created
Sat Oct 10
Modified
Fri Dec 09
Path
rules/windows/process_creation/proc_creation_win_mssql_sqlps_susp_execution.yml
Raw Tags
attack.executionattack.t1059.001attack.defense-evasionattack.t1127
View on GitHub