<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>block legacy authentication exchange activesync legacy authentication Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/block-legacy-authentication-exchange-activesync-legacy-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/block-legacy-authentication-exchange-activesync-legacy-authentication/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Thu, 05 May 2022 22:12:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>How To Block Legacy Authentication Office 365</title>
		<link>https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/</link>
					<comments>https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/#comments</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Mon, 31 May 2021 03:51:45 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[block legacy authentication exchange activesync legacy authentication]]></category>
		<category><![CDATA[block legacy authentication sharepoint online]]></category>
		<category><![CDATA[microsoft legacy authentication end of life]]></category>
		<category><![CDATA[New-AuthenticationPolicy]]></category>
		<category><![CDATA[office 365 legacy authentication report]]></category>
		<category><![CDATA[sharepoint online legacy authentication]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=1927</guid>

					<description><![CDATA[<p>Microsoft recently announced that on October 1, 2022 they are going to disable legacy authentication (basic auth) for all M365 tenants. With everything now moving to Modern Authentication and Microsoft Authentication Library (MSAL), previously Active Directory Authentication Library (ADAL) we&#8230; <a href="https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/">How To Block Legacy Authentication Office 365</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Microsoft recently announced that on October 1, 2022 they are going to disable legacy authentication (basic auth) for all M365 tenants. With everything now moving to Modern Authentication and Microsoft Authentication Library (MSAL), previously Active Directory Authentication Library (ADAL) we should know how to disable those old authentication methods. Today, we&#8217;re actually going to cover the step by step methods to <strong>block legacy authentication Office 365</strong>. </p>
<div id="tableofcontents">
<h2>Table Of Contents</h2>
<ul>
<li><a href="#WhatisLegacyAuth">What is Legacy Authentication And Why We Should Block It</a></li>
<li><a href="#CurrentAuthSettings">How To See If Legacy Authentication Is Blocked in your Tenant</a></li>
<li><a href="#ConditionalAccessPolicy">Use Conditional Access To Block Legacy Authentication In Office 365</a></li>
<li><a href="#BlockLegacyAuthExchangeOnline">Block Legacy Authentication Exchange Online</a></li>
<ul>
<li><a href="#CreateLegacyAuthPolicy">Create an Authentication Policy to Disable Basic Authentication</a></li>
<li><a href="#DisableProtocols">Disable IMAP/POP/Mapi/SMTPAuth protocols per mailbox</a></li>
</ul>
<li><a href="#Conclusion">Conclusion</a></li>
</ul>
</div>
<p>&nbsp;</p>
<div id="WhatisLegacyAuth" style="scroll-margin-top: 15px;"></div>
<h2>What is Legacy Authentication And Why We Should Block It</h2>
<p>I suppose before we go into detail on how to block it, we should probably address what it is.  Legacy authentication is more or less self explanatory.  By that I mean, it includes authentication methods that are superseded by todays modern authentication.  In short, legacy authentication are authentication methods typically used by mail protocols such as IMAP, SMTP and POP3.  Microsoft Office 2010 is an example client that uses legacy authentication.</p>
<p>&nbsp;<br />
The biggest take away here is that legacy authentication was highly active during a time where multi-factor authentication wasn&#8217;t really a thing. We&#8217;ve come a long way as far as security and auth methods go, but should still close those gaps because it can lead to open vulnerabilities in your environment.</p>
<p>&nbsp;<br />
<strong>To summarize, legacy authentication does not enforce multi-factor authentication (MFA)</strong> so it gives attackers a preferred attack vector to exploit.  This is the biggest reason <strong>why we want to block legacy authentication</strong>.  With that said, we can now get into the modern (and preferred) methods to blocking legacy authentication using conditional access policies.</p>
<p>&nbsp;</p>
<div id="CurrentAuthSettings" style="scroll-margin-top: 15px;"></div>
<h2>How To See If Legacy Authentication Is Blocked in your Tenant</h2>
<p>Now before you go through your testing it might be a good idea to check whether basic authentication is blocked in your tenant to begin with.  Microsoft has already stated that if they don&#8217;t see any authentication requests using these older protocols, they&#8217;re going to disable it by default.  In my tenant I wasn&#8217;t using so it was actually already turned off.  To save you the headache, here are the steps to check if basic authentication is enabled in your tenant.</p>
<ul>
<li>Navigate to <a href="https://admin.microsoft.com/" rel="noopener" target="_blank">https://admin.microsoft.com/</a> to get to the Office 365 admin portal</li>
<li>Next navigate to <strong>settings</strong> -> <strong>Org Settings</strong> -> <strong>Services</strong> -> <strong>Modern Authentication</strong></li>
<ul>
<li>Direct Link: <a href="https://admin.microsoft.com/AdminPortal/Home#/Settings/Services/:/Settings/L1/ModernAuthentication" rel="noopener" target="_blank">https://admin.microsoft.com/AdminPortal/Home#/Settings/Services/:/Settings/L1/ModernAuthentication</a></li>
</ul>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings.png" alt="Office 365 Org Settings" width="1761" height="748" class="aligncenter size-full wp-image-3467" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings.png?v=1632729485 1761w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings-1024x435.png?v=1632729485 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings-768x326.png?v=1632729485 768w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Office-365-Org-Settings-1536x652.png?v=1632729485 1536w" sizes="(max-width: 1761px) 100vw, 1761px" /></a></p>
<p>&nbsp;</p>
<div id="ConditionalAccessPolicy" style="scroll-margin-top: 15px;"></div>
<h2>Use Conditional Access To Block Legacy Authentication In Office 365</h2>
<p>Now that we understand the why, let&#8217;s get into the how portion of this article.  We&#8217;re going to assume you have permissions to create conditional access policies. </p>
<ul>
<li>In Azure, navigate to <strong>Azure Active Directory</strong> -> <strong>Security</strong> -> <strong>Conditional Access</strong> -> Create a <strong>New Policy</strong></li>
<li>Direct Link: <a href="https://portal.azure.com/#blade/Microsoft_AAD_IAM/ConditionalAccessBlade/Policies" rel="noopener" target="_blank">https://portal.azure.com/#blade/Microsoft_AAD_IAM/ConditionalAccessBlade/Policies</a></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/CA-Policy-Legacy-Auth.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/CA-Policy-Legacy-Auth.png" alt="CA Policy Legacy Auth" width="1247" height="686" class="aligncenter size-full wp-image-3118" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/CA-Policy-Legacy-Auth.png?v=1622426763 1247w, https://thesysadminchannel.com/wp-content/uploads/2021/05/CA-Policy-Legacy-Auth-1024x563.png?v=1622426763 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/05/CA-Policy-Legacy-Auth-768x422.png?v=1622426763 768w" sizes="(max-width: 1247px) 100vw, 1247px" /></a><br />
&nbsp;</p>
<ul>
<li>We&#8217;ll name this policy, <strong>Common Policy &#8211; Block Legacy Authentication</strong></li>
<li><strong>Under Users and groups</strong>:</li>
<ul>
<li>Under <strong>Include</strong>: We&#8217;ll select <strong>all users</strong></li>
<li>Under <strong>Exclude</strong>: We&#8217;ll want to <strong>exclude our exclusions group</strong> &#8211; e.g. break glass/service accounts</li>
</ul>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Legacy-Auth-User-Assignment.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Legacy-Auth-User-Assignment.png" alt="Legacy Auth User Assignment" width="991" height="447" class="aligncenter size-full wp-image-3123" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Legacy-Auth-User-Assignment.png?v=1622427972 991w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Legacy-Auth-User-Assignment-768x346.png?v=1622427972 768w" sizes="(max-width: 991px) 100vw, 991px" /></a></p>
<p>&nbsp;</p>
<ul>
<li><strong>Cloud apps or actions</strong>:</li>
<ul>
<li>Under <strong>Include</strong>: We&#8217;ll select <strong>all cloud apps</strong></li>
<li>Under <strong>Exclude</strong>: We&#8217;ll want to <strong>leave this blank</strong></li>
</ul>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Cloud-App-Assignment.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Cloud-App-Assignment.png" alt="Cloud App Assignment" width="915" height="470" class="aligncenter size-full wp-image-3125" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Cloud-App-Assignment.png?v=1622429191 915w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Cloud-App-Assignment-768x394.png?v=1622429191 768w" sizes="(max-width: 915px) 100vw, 915px" /></a></p>
<p>&nbsp;</p>
<ul>
<li><strong>Conditions</strong> -> <strong>Client apps</strong>:</li>
<ul>
<li>Select &#8220;Yes&#8221; to configure policy</li>
<li>Unselect Browser and Mobile apps and desktop clients</li>
<li>Leave <strong>Exchange ActiveSync clients</strong> checked</li>
<li>Leave <strong>Other clients</strong> checked</li>
</ul>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Conditions-in-CA-Policy.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Conditions-in-CA-Policy.png" alt="Conditions in CA Policy" width="956" height="677" class="aligncenter size-full wp-image-3126" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Conditions-in-CA-Policy.png?v=1622429607 956w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Conditions-in-CA-Policy-768x544.png?v=1622429607 768w" sizes="(max-width: 956px) 100vw, 956px" /></a></p>
<p>&nbsp;</p>
<ul>
<li><strong>Grant</strong>:</li>
<ul>
<li>Select <strong>Block Access</strong></li>
</ul>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Block-Access-Azure-AD-Conditional-Access-blade.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Block-Access-Azure-AD-Conditional-Access-blade.png" alt="Block Access Azure AD Conditional Access blade" width="1071" height="702" class="aligncenter size-full wp-image-3129" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Block-Access-Azure-AD-Conditional-Access-blade.png?v=1622430587 1071w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Block-Access-Azure-AD-Conditional-Access-blade-1024x671.png?v=1622430587 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Block-Access-Azure-AD-Conditional-Access-blade-768x503.png?v=1622430587 768w" sizes="(max-width: 1071px) 100vw, 1071px" /></a></p>
<p>&nbsp;</p>
<p>For the final step, <strong>set the policy to Report-only</strong> so you can have some insights before enabling the policy.  This will give you a heads up as to who is still using legacy authentication and at least give them some kind of notice to stop.  Otherwise, if you&#8217;re brave, turn it off and apply the scream test which is also just as effective as finding out who is still using it.</p>
<p>&nbsp;</p>
<div id="BlockLegacyAuthExchangeOnline" style="scroll-margin-top: 15px;"></div>
<h2>Block Legacy Authentication Exchange Online</h2>
<p>In addition to conditional access, we should also consider disabling the legacy auth methods in Exchange Online itself.  There are several ways we can about it and we&#8217;ll cover those methods as well. However, here is a quick overview.</p>
<ul>
<li>Using an Authentication Policy</li>
<ul>
<li>Apply it as the default organization policy</li>
<li>Apply it as a per user policy</li>
</ul>
<li>Disable IMAP/POP/Mapi/SMTPAuth protocols per mailbox</li>
</ul>
<p>&nbsp;</p>
<div id="CreateLegacyAuthPolicy" style="scroll-margin-top: 15px;"></div>
<h3>Create an Authentication Policy to Disable Basic Authentication</h3>
<p>Being able to create an authentication policy would be able to help you not only identify who is using the policy, but set a standard for your setup.  The command to create an auth policy is <strong>New-AuthenticationPolicy</strong>. Let&#8217;s cover two scenarios for enabling and disabling the required protocols.</p>
<pre class="brush: powershell; title: ; notranslate">
#Create a Block Legacy Authentication Policy
New-AuthenticationPolicy -Name &quot;Block Legacy Authentication&quot;


#Create an Allow All Legacy Authentication Policy
New-AuthenticationPolicy -Name &quot;Allow All Legacy Authentication&quot; -AllowBasicAuthRpc -AllowBasicAuthPop -AllowBasicAuthSmtp -AllowBasicAuthMapi -AllowBasicAuthImap -AllowBasicAuthAutodiscover -AllowBasicAuthPowershell -AllowBasicAuthActiveSync -AllowBasicAuthOfflineAddressBook -AllowBasicAuthReportingWebServices -AllowBasicAuthOutlookService -AllowBasicAuthWebServices 

#Set the authentication policy as the default authentication policy for your organization
Set-OrganizationConfig -DefaultAuthenticationPolicy 'Block Legacy Authentication'

#Set the authentication policy on a per user basis
Set-User jsnow -AuthenticationPolicy 'Block Legacy Authentication'

#Have the policy take effect within the next 30 minutes.  By default it can take up to 24 hours.
Set-User -Identity jsnow -STSRefreshTokensValidFrom (Get-Date).ToUniversalTime()
</pre>
<p>&nbsp;</p>
<div id="DisableProtocols" style="scroll-margin-top: 15px;"></div>
<h3>Disable IMAP/POP/Mapi/SMTPAuth protocols per mailbox</h3>
<p>Another alternative to the authentication method is to disable the protocols for each individual mailbox. This can be done using the Set-CASMailbox command for each of the mailboxes you&#8217;d want to disable.  </p>
<pre class="brush: powershell; title: ; notranslate">
PS C:\&gt; Get-CASMailbox blightyear

Name       ActiveSyncEnabled OWAEnabled PopEnabled ImapEnabled MapiEnabled SmtpClientAuthenticationDisabled
----       ----------------- ---------- ---------- ----------- ----------- --------------------------------
blightyear True              True       True       True        True


PS C:\&gt; Set-CASMailbox blightyear -ActiveSyncEnabled: $false -PopEnabled: $false -ImapEnabled: $false -MAPIEnabled: $false
PS C:\&gt;
PS C:\&gt; Get-CASMailbox blightyear

Name       ActiveSyncEnabled OWAEnabled PopEnabled ImapEnabled MapiEnabled SmtpClientAuthenticationDisabled
----       ----------------- ---------- ---------- ----------- ----------- --------------------------------
blightyear False             True       False      False       False

</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/05/Set-CASMailbox-Block-Legacy-Auth.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/05/Set-CASMailbox-Block-Legacy-Auth.png" alt="Set CASMailbox Block Legacy Auth" width="1099" height="420" class="aligncenter size-full wp-image-3466" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/05/Set-CASMailbox-Block-Legacy-Auth.png?v=1632728845 1099w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Set-CASMailbox-Block-Legacy-Auth-1024x391.png?v=1632728845 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/05/Set-CASMailbox-Block-Legacy-Auth-768x294.png?v=1632728845 768w" sizes="(max-width: 1099px) 100vw, 1099px" /></a></p>
<p>&nbsp;</p>
<div id="Conclusion" style="scroll-margin-top: 15px;"></div>
<h2>Conclusion</h2>
<p>That&#8217;s it.  Now we know how to block legacy authentication using conditional access policies in Azure Active Directory.  For more posts on conditional access or Azure AD in general, be sure to check out our gallery of <a href="https://thesysadminchannel.com/azure/" rel="noopener" target="_blank">Azure Active Directory</a>.</p>
<p>The post <a href="https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/">How To Block Legacy Authentication Office 365</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/use-conditional-access-to-block-legacy-authentication-in-office-365/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1927</post-id>	</item>
	</channel>
</rss>
