# Ensure modern authentication for Exchange Online is enabled

Ensure modern authentication for Exchange Online is enabled. A Maester check for Exchange Online, Client access.

Source: https://maester.dev/docs/tests/MT.1044

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/weycc81" title="Stefan Wey · Original author"><img src="https://github.com/weyCC81.png" alt="Stefan Wey" width="28" height="28" loading="lazy" decoding="async" /></a><a class="test-byline-avatar" href="/contributors/bastienperez" title="Bastien Perez · Co-contributor"><img src="https://github.com/bastienperez.png" alt="Bastien Perez" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/weycc81">Stefan Wey</a> with <a href="/contributors/bastienperez">Bastien Perez</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Exchange Online · Client access · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1044
```

## Overview

Modern authentication for Exchange Online MUST be enabled

Rationale: Modern authentication enables enhanced security features like multifactor authentication (MFA), certificate-based authentication (CBA), and third-party SAML identity providers. Without modern authentication, users are more vulnerable to password-based attacks.

#### Remediation action

1. Connect to Exchange Online:

```powershell
Connect-ExchangeOnline
```

1. Enable modern authentication:

```powershell
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
```

1. Verify the setting:

```powershell
(Get-OrganizationConfig).OAuth2ClientProfileEnabled
```

The result should be `True`.

#### Related links

* [Enable or disable modern authentication in Exchange Online](https://learn.microsoft.com/exchange/clients-and-mobile-in-exchange-online/enable-or-disable-modern-authentication-in-exchange-online)
* [Modern authentication overview](https://learn.microsoft.com/microsoft-365/enterprise/modern-auth-for-office-2013-and-2016)
* [Microsoft Secure Score - Enable modern authentication](https://security.microsoft.com/securescore)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1044 |
| Severity | Low |
| Suite | Maester |
| Product | Exchange Online |
| Feature | Client access |
| Area | Authentication |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1110 Brute Force |
| PowerShell test | [Test-MtExoModernAuth](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1044.ps1) |
| Services | ExchangeOnline |

</details>

## Source

- Test: [`tests/maester/exchange/Test.MT.1044.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1044.ps1)
- Documentation: [`tests/maester/exchange/Test.MT.1044.md`](https://github.com/maester365/maester/blob/main/tests/maester/exchange/Test.MT.1044.md)
