Detectionmediumtest
SQL Client Tools PowerShell Session Detection
This rule detects execution of a PowerShell code through the sqltoolsps.exe utility, which is included in the standard set of utilities supplied with the Microsoft SQL Server Management studio. 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
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:
- Image|endswith: '\sqltoolsps.exe'
- ParentImage|endswith: '\sqltoolsps.exe'
- OriginalFileName: '\sqltoolsps.exe'
filter:
ParentImage|endswith: '\smss.exe'
condition: selection and not filterFalse Positives
Direct PS command execution through SQLToolsPS.exe is uncommon, childprocess sqltoolsps.exe spawned by smss.exe is a legitimate action.
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
a746c9b8-a2fb-4ee5-a428-92bee9e99060
Status
test
Level
medium
Type
Detection
Created
Tue Oct 13
Modified
Fri Feb 25
Author
Path
rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml
Raw Tags
attack.executionattack.t1059.001attack.defense-evasionattack.t1127