{"id":3531,"date":"2022-10-04T03:00:10","date_gmt":"2022-10-04T02:00:10","guid":{"rendered":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/"},"modified":"2022-10-04T03:00:10","modified_gmt":"2022-10-04T02:00:10","slug":"use-authentication-policies-to-fight-password-spray-attacks","status":"publish","type":"post","link":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/","title":{"rendered":"Use Authentication Policies to Fight Password Spray Attacks"},"content":{"rendered":"<div>\n<p>We have recently seen several indicators that show that many of our customers are being targeted by password spray attacks that leverage basic authentication.<\/p>\n<p>The <em>only<\/em> reason we\u2019re turning off basic auth in Exchange Online is to protect your users and data. The evidence I see every day clearly indicates that password spray attacks are becoming more frequent.<\/p>\n<p>If basic auth hasn\u2019t <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/basic-authentication-deprecation-in-exchange-online-september\/ba-p\/3609437\" target=\"_blank\" rel=\"noopener\">yet been turned off<\/a> for your tenant, or if you\u2019ve asked for more time, you should read this.<\/p>\n<h2 id=\"toc-hId-505474289\"><span id=\"what-is-a-password-spray-attack\">What is a Password Spray attack?<\/span><\/h2>\n<p>A password spray attack is a type of brute force attack in which the attacker tries a large number of usernames with a list of common passwords against a target system to see if any will work. It\u2019s often hard to detect as the username keeps changing; accounts don\u2019t get locked because the account being attacked changing. Attackers also distribute their efforts over their targets and keep changing their source IP.<\/p>\n<p>It&#8217;s a numbers game essentially, and computers are quite good at numbers. And as attacks go, <em>it works<\/em>.<\/p>\n<p>The most popular protocols we see attacked like this are SMTP and IMAP. POP is third on the list, but SMTP and IMAP are way out there in a league of their own.<\/p>\n<h2 id=\"toc-hId--1301980174\"><span id=\"what-can-you-do-about-this\">What can you do about this?<\/span><\/h2>\n<p>Set up Exchange Online Authentication Policies to ensure only the accounts that you know should be using basic auth with specific protocols, can use basic auth with these protocols. Start with SMTP and IMAP and do it today!<\/p>\n<h2 id=\"toc-hId-1185532659\"><span id=\"how-do-you-set-up-authentication-policies\">How do you set up Authentication Policies?<\/span><\/h2>\n<p>Our <a href=\"https:\/\/learn.microsoft.com\/exchange\/clients-and-mobile-in-exchange-online\/disable-basic-authentication-in-exchange-online\" target=\"_blank\" rel=\"noopener noreferrer\">documentation<\/a> is rather good at answering this question, and there are many other docs out there written by <a href=\"https:\/\/mvp.microsoft.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">MVPs<\/a> and other community contributors. Rather than explain the actual step by step, I wanted to explain the strategy.<\/p>\n<p>We\u2019ll use IMAP as the example, and then repeat for each protocol, noting that some apps (such as Outlook) use more than one protocol. So, you might need some \u201ccombination\u201d policies as users can only have one policy assigned:<\/p>\n<ul>\n<li>Use Azure AD Sign in reports to determine who is legitimately using basic auth with IMAP in your tenant.<\/li>\n<li>Create an Authentication Policy in your tenant that allows Basic Auth with IMAP. For example:<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markdown\"><code>New-AuthenticationPolicy -Name \"AllowIMAP\" -AllowBasicAuthImap<\/code><\/pre>\n<p>\u00a0<\/p>\n<ul>\n<li>Create a Default Authentication Policy that blocks all basic auth use:<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markdown\"><code>New-AuthenticationPolicy -Name \"BlockAllBasicAuth\"<\/code><\/pre>\n<p>\u00a0<\/p>\n<ul>\n<li>Assign the allow policy to the user accounts you identified:<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markdown\"><code>Set-User -Identity Bob -AuthenticationPolicy \u201cAllowIMAP\u201d<\/code><\/pre>\n<p>\u00a0<\/p>\n<ul>\n<li>Then, set the Default Authentication to the policy that blocks everything:<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markdown\"><code>Set-OrganizationConfig -DefaultAuthenticationPolicy \"BlockAllBasicAuth\"<\/code><\/pre>\n<p>\u00a0<\/p>\n<p>And that is it.<\/p>\n<p>Any attempt to use basic auth with IMAP, using any account other than those with the explicit Allow policy will fail.<\/p>\n<p>Password spray attacks would be limited to those specific accounts \u2013 and you can watch them more closely, safe in the knowledge all your other accounts can\u2019t be attacked in this manner.<\/p>\n<p style=\"background: #F0F0F0; padding: .5em; margin: 1em 0 1em 0;\">Because we are not disabling SMTP Auth, and SMTP is one of the most frequently attacked protocols, you should make it a priority to set up an Authentication Policy for SMTP and limit your attack surface.<\/p>\n<h2 id=\"toc-hId--621921804\"><span id=\"useful-resources\">Useful resources<\/span><\/h2>\n<p>Here are some useful resources to help you along the way.<\/p>\n<ul>\n<li><a href=\"https:\/\/learn.microsoft.com\/exchange\/clients-and-mobile-in-exchange-online\/disable-basic-authentication-in-exchange-online\" target=\"_blank\" rel=\"noopener noreferrer\">Disable Basic authentication in Exchange Online<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/powershell\/module\/exchange\/new-authenticationpolicy?view=exchange-ps\" target=\"_blank\" rel=\"noopener noreferrer\">New-AuthenticationPolicy (ExchangePowerShell)<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/security\/compass\/incident-response-playbook-password-spray\" target=\"_blank\" rel=\"noopener noreferrer\">Password spray investigation<\/a><\/li>\n<\/ul>\n<h2 id=\"toc-hId-1865591029\"><span id=\"summary\">Summary<\/span><\/h2>\n<p>Please set up Authentication Policies immediately if you are going to continue to use basic auth, and to control who can use SMTP Auth. Don\u2019t be the next target!<\/p>\n<p><font color=\"#CF3600\">Greg Taylor<\/font><\/p>\n<\/div>\n<p><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/use-authentication-policies-to-fight-password-spray-attacks\/ba-p\/3643487\">Read full article (Microsoft Exchange Blog)<\/a><\/p>\n<p>All content and images belong to their respected owners, this article is curated for informational purposes only.<\/p>\n","protected":false},"excerpt":{"rendered":"We have recently seen several indicators that show that many of our customers are being targeted by password&hellip;\n","protected":false},"author":2,"featured_media":2564,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[15],"tags":[249,588,359],"coauthors":[48],"class_list":["post-3531","post","type-post","status-publish","format-standard","has-post-thumbnail","category-microsoft-exchange-server","tag-have","tag-recently","tag-seen","cs-entry","cs-video-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use Authentication Policies to Fight Password Spray Attacks | Sebae Networks<\/title>\n<meta name=\"description\" content=\"View Use Authentication Policies to Fight Password Spray Attacks for free, here at Sebae. Discover more great posts on our website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use Authentication Policies to Fight Password Spray Attacks | Sebae Networks\" \/>\n<meta property=\"og:description\" content=\"View Use Authentication Policies to Fight Password Spray Attacks for free, here at Sebae. Discover more great posts on our website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/\" \/>\n<meta property=\"og:site_name\" content=\"Sebae Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sebaenetworks\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-04T02:00:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/12\/sebae-logo-card.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Dean\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:site\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Dean\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use Authentication Policies to Fight Password Spray Attacks | Sebae Networks","description":"View Use Authentication Policies to Fight Password Spray Attacks for free, here at Sebae. Discover more great posts on our website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/","og_locale":"en_GB","og_type":"article","og_title":"Use Authentication Policies to Fight Password Spray Attacks | Sebae Networks","og_description":"View Use Authentication Policies to Fight Password Spray Attacks for free, here at Sebae. Discover more great posts on our website.","og_url":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/","og_site_name":"Sebae Networks","article_publisher":"https:\/\/www.facebook.com\/sebaenetworks","article_published_time":"2022-10-04T02:00:10+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/12\/sebae-logo-card.jpg","type":"image\/jpeg"}],"author":"James Dean","twitter_card":"summary_large_image","twitter_creator":"@sebaenetworks","twitter_site":"@sebaenetworks","twitter_misc":{"Written by":"James Dean","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#article","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/"},"author":{"name":"James Dean","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/6d07e05e3d3e4483117c4e2c3315a89f"},"headline":"Use Authentication Policies to Fight Password Spray Attacks","datePublished":"2022-10-04T02:00:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/"},"wordCount":590,"commentCount":0,"publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","keywords":["have","recently","seen"],"articleSection":["Microsoft Exchange Server"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/","url":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/","name":"Use Authentication Policies to Fight Password Spray Attacks | Sebae Networks","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#primaryimage"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","datePublished":"2022-10-04T02:00:10+00:00","description":"View Use Authentication Policies to Fight Password Spray Attacks for free, here at Sebae. Discover more great posts on our website.","breadcrumb":{"@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#primaryimage","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","width":1920,"height":1080,"caption":"exchange server header"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sebae.net\/blog\/use-authentication-policies-to-fight-password-spray-attacks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sebae.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Use Authentication Policies to Fight Password Spray Attacks"}]},{"@type":"WebSite","@id":"https:\/\/www.sebae.net\/blog\/#website","url":"https:\/\/www.sebae.net\/blog\/","name":"Sebae Networks","description":"Tech Tips, News, Tutorials &amp; Advice","publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sebae.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.sebae.net\/blog\/#organization","name":"Sebae","url":"https:\/\/www.sebae.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","width":512,"height":512,"caption":"Sebae"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sebaenetworks","https:\/\/x.com\/sebaenetworks"]},{"@type":"Person","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/6d07e05e3d3e4483117c4e2c3315a89f","name":"James Dean","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg72371c27260698ee55141397050ef40a","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg","caption":"James Dean"},"sameAs":["https:\/\/www.sebae.net"],"url":"https:\/\/www.sebae.net\/blog\/author\/jdean\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/3531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/comments?post=3531"}],"version-history":[{"count":0,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/3531\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media\/2564"}],"wp:attachment":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media?parent=3531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/categories?post=3531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/tags?post=3531"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/coauthors?post=3531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}