Sigma rule: SQL Client Tools PowerShell Session Detection
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c228bc4338bf, updated 2022-02-25T00:00:00.000Z.
Rule
- Title
- SQL Client Tools PowerShell Session Detection
- Status
- test
- Level
- medium
- Author
- Agro (@agro_sev) oscd.communitly
- Date
- 2020-10-13
- Modified
- 2022-02-25
- File
- rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
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.
Log source
- product
- windows
- category
- process_creation
Detection
selection:
- Image|endswith: '\sqltoolsps.exe'
- ParentImage|endswith: '\sqltoolsps.exe'
- OriginalFileName: '\sqltoolsps.exe'
filter:
ParentImage|endswith: '\smss.exe'
condition: selection and not filterFalse positives (as the rule lists them)
- Direct PS command execution through SQLToolsPS.exe is uncommon, childprocess sqltoolsps.exe spawned by smss.exe is a legitimate action.
Tags
- attack.execution
- attack.stealth
- attack.t1059.001
- attack.t1127
MITRE ATT&CK ids this rule names
References
- https://github.com/LOLBAS-Project/LOLBAS/blob/8283d8d91552213ded165fd36deb6cb9534cb443/yml/OtherMSBinaries/Sqltoolsps.yml
- https://twitter.com/pabraeken/status/993298228840992768
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml
Sources and licences
SigmaHQ
"SQL Client Tools PowerShell Session Detection" by Agro (@agro_sev) oscd.communitly (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: SQL Client Tools PowerShell Session Detection",
entity page, dataset version ref-c228bc4338bf, updated 2022-02-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a746c9b8-a2fb-4ee5-a428-92bee9e99060 (accessed 2026-11-03).
Underlying source: SigmaHQ rule a746c9b8-a2fb-4ee5-a428-92bee9e99060, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.