{"id":4712,"date":"2020-08-24T10:33:19","date_gmt":"2020-08-24T08:33:19","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=4712"},"modified":"2020-08-24T10:33:20","modified_gmt":"2020-08-24T08:33:20","slug":"sending-sms-notification-of-azure-sentinel-alerts-through-azure-monitor","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=4712","title":{"rendered":"Sending SMS notification of Azure Sentinel alerts, through Azure Monitor"},"content":{"rendered":"\n<p>In Azure Sentinel, all alert responses are driven by Playbooks. Playbooks are Azure Logic Apps, that allow everything automation from simple send e-mail to complex integration scenarios.<br \/>Last week we were working in a scenario where we needed to send alert notification as text messages (SMS). There are several 3rd party connectors available in Logic Apps, but Azure Monitor provides this capability out of the box, without the need for additional agreements. Without any experience, I would personally guess that the 3rd party connects have more features, for example, the possibility for engineers on duty to confirm alert notification by a test message. But in this example, we only need to send text messages.<br \/>All alerts raised within Azure Sentinel, as well as Azure Security Center, are written into the SecurityAlert table in the Azure Monitor Logs workspace. You can use the following query to view which products have raised alerts into this table in the last 60 days:<\/p>\n\n\n\n<p><br \/><code>SecurityAlert<br \/>| where TimeGenerated between (ago(60d) .. ago(5m))<br \/>| summarize by ProductName<\/code><\/p>\n\n\n\n<p>If you have connected products like Microsoft Cloud App Security or Microsoft Defender ATP, you may also see these listed as a product:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog001.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"437\" height=\"322\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog001.jpg\" alt=\"\" class=\"wp-image-4715\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog001.jpg 437w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog001-300x221.jpg 300w\" sizes=\"(max-width: 437px) 100vw, 437px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Alerts raised by the analytics rules in Azure Sentinel will have the ProductName property set to Azure Sentinel. As the alert data is stored in the SecurityAlert table in the Azure Monitor Logs workspace, it is possible to leverage built-in capabilities in Azure Monitor Alerts for responses.<br \/><\/p>\n\n\n\n<p>In this example, we will use Azure Monitor to raise alerts from the Sentinel data for \u00e2\u20ac\u0153Failed logon attempts within 10 mins\u00e2\u20ac\u009d. This is a default rule in Azure Sentinel.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"292\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002-1024x292.jpg\" alt=\"\" class=\"wp-image-4716\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002-1024x292.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002-300x86.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002-768x219.jpg 768w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog002.jpg 1436w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The following query show the alerts we want to be notified about. This query is executed in the workspace that Azure Sentinel is using. Once we test the query in Logs, we can use it to configure an alert rule in Azure Monitor.<\/p>\n\n\n\n<p><code>SecurityAlert<br \/>| where ProductName == \"Azure Sentinel\"<br \/>| where ProviderName == \"ASI Scheduled Alerts\"<br \/>| where AlertName == \"Failed logon attempts within 10 mins\"<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"747\" height=\"1024\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003-747x1024.jpg\" alt=\"\" class=\"wp-image-4717\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003-747x1024.jpg 747w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003-219x300.jpg 219w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003-768x1052.jpg 768w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog003.jpg 829w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><\/figure>\n\n\n\n<p>In this example we create a new action group to send out the notification, by text message.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog004.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"730\" height=\"509\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog004.jpg\" alt=\"\" class=\"wp-image-4718\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog004.jpg 730w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog004-300x209.jpg 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"308\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-1024x308.jpg\" alt=\"\" class=\"wp-image-4720\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-1024x308.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-300x90.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-768x231.jpg 768w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-1536x462.jpg 1536w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog005-2048x616.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"997\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006-1024x997.jpg\" alt=\"\" class=\"wp-image-4721\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006-1024x997.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006-300x292.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006-768x748.jpg 768w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog006.jpg 1260w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Once the action group is configured, and the alert rule, the phone number we included will get a SMS saying welcome to the action group. When a new alert is raised a text message notification will be sent out, as shown in the image below.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"781\" height=\"1024\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007-781x1024.jpg\" alt=\"\" class=\"wp-image-4722\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007-781x1024.jpg 781w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007-229x300.jpg 229w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007-768x1007.jpg 768w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/08\/blog007.jpg 1080w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In Azure Sentinel, all alert responses are driven by Playbooks. Playbooks are Azure Logic Apps, that allow everything automation from simple send e-mail to complex integration scenarios.Last week we were working in a scenario where we needed to send alert notification as text messages (SMS). There are several 3rd party connectors available in Logic Apps, &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=4712\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[64],"tags":[77,72,96,95,94],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4712"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4712"}],"version-history":[{"count":2,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4712\/revisions"}],"predecessor-version":[{"id":4724,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4712\/revisions\/4724"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4712"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}