{"id":8876,"date":"2025-05-15T03:14:03","date_gmt":"2025-05-15T03:14:03","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8876"},"modified":"2025-05-15T03:14:05","modified_gmt":"2025-05-15T03:14:05","slug":"defender-advanced-hunting-query-for-detecting-sql-servers-in-your-enviroment","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/defender-advanced-hunting-query-for-detecting-sql-servers-in-your-enviroment","title":{"rendered":"Defender Advanced hunting Query for Detecting SQL Servers in your enviroment"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">DeviceProcessEvents\n| where FileName contains \"sqlservr.exe\"\n| join kind=inner (\n    DeviceInfo\n    | where OSPlatform contains \"Server\"\n) on DeviceId\n| summarize by DeviceId, DeviceName, OSPlatform<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">DeviceProcessEvents\n| where InitiatingProcessFileName contains \"sql\"\n| join kind=inner (\n    DeviceInfo\n    | where OSPlatform contains \"Server\"\n) on DeviceId\n| summarize by DeviceId, DeviceName, OSPlatform<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8876","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8876"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8876\/revisions"}],"predecessor-version":[{"id":8877,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8876\/revisions\/8877"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}