{"id":"a746c9b8-a2fb-4ee5-a428-92bee9e99060","title":"SQL Client Tools PowerShell Session Detection","description":"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.\nScript blocks are not logged in this case, so this utility helps to bypass protection mechanisms based on the analysis of these logs.\n","author":"Agro (@agro_sev) oscd.communitly","status":"test","level":"medium","date":"2020-10-13","modified":"2022-02-25","tags":["attack.execution","attack.stealth","attack.t1059.001","attack.t1127"],"technique_ids":["T1059.001","T1127"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Direct PS command execution through SQLToolsPS.exe is uncommon, childprocess sqltoolsps.exe spawned by smss.exe is a legitimate action."],"references":["https://github.com/LOLBAS-Project/LOLBAS/blob/8283d8d91552213ded165fd36deb6cb9534cb443/yml/OtherMSBinaries/Sqltoolsps.yml","https://twitter.com/pabraeken/status/993298228840992768"],"source_path":"rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml","source_sha256":"12f86bda7238ddd6772188b63944575db6b7e2578293e8543027c42a55aace33","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_mssql_sqltoolsps_susp_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: SQL Client Tools PowerShell Session Detection\nid: a746c9b8-a2fb-4ee5-a428-92bee9e99060\nstatus: test\ndescription: |\n  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.\n  Script blocks are not logged in this case, so this utility helps to bypass protection mechanisms based on the analysis of these logs.\nreferences:\n    - https://github.com/LOLBAS-Project/LOLBAS/blob/8283d8d91552213ded165fd36deb6cb9534cb443/yml/OtherMSBinaries/Sqltoolsps.yml\n    - https://twitter.com/pabraeken/status/993298228840992768\nauthor: 'Agro (@agro_sev) oscd.communitly'\ndate: 2020-10-13\nmodified: 2022-02-25\ntags:\n    - attack.execution\n    - attack.stealth\n    - attack.t1059.001\n    - attack.t1127\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        - Image|endswith: '\\sqltoolsps.exe'\n        - ParentImage|endswith: '\\sqltoolsps.exe'\n        - OriginalFileName: '\\sqltoolsps.exe'\n    filter:\n        ParentImage|endswith: '\\smss.exe'\n    condition: selection and not filter\nfalsepositives:\n    - Direct PS command execution through SQLToolsPS.exe is uncommon, childprocess sqltoolsps.exe spawned by smss.exe is a legitimate action.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"},{"key":"enterprise/T1127","id":"T1127","name":"Trusted Developer Utilities Proxy Execution","page":"techniques/enterprise/T1127/"}],"data_path":"data/detection-rules/a746c9b8-a2fb-4ee5-a428-92bee9e99060.json","kind":"sigma"}
