1. Resources
  2. Detection rules
  3. SMTP AUTH or Basic Authentication Re-Enabled in Exchange Online

SMTP AUTH or Basic Authentication Re-Enabled in Exchange Online detection rules

An attacker with Exchange administrator rights turns authenticated SMTP back on for a mailbox or the organization, or loosens an authentication policy, so that a password alone is enough to send mail as the user.

Platform
Microsoft Exchange
Severity
Medium
Log source
Microsoft 365 unified audit log (Exchange)
Last updated
Rule formats
Sigmaand queries for: SplunkMicrosoft SentinelIBM QRadar
What an attacker needs
An Exchange Online administrator role that can run the cmdlets, and the password of the mailbox the attacker wants to send from.
Impact
Mail sent as a real user from any network with the password alone, because authenticated SMTP with basic authentication never asks for a second factor.
Response
Disable SMTP AUTH again, restore the authentication policy, and reset the password of every mailbox that was opened without a request.
Mitigation
Keep SMTP AUTH disabled for the organization, enable it only for mailboxes that need it, and block legacy authentication with Conditional Access.
Operations
Set-UserSet-OrganizationConfigNew-AuthenticationPolicySet-AuthenticationPolicySet-CASMailboxSet-TransportConfig
Threat groups
FIN13Salt Typhoon

How the attack works

Basic authentication sends a user name and a password with every request. Microsoft removed it from Exchange Online for Exchange ActiveSync, POP, IMAP, remote PowerShell, Exchange Web Services, the offline address book, Autodiscover and Outlook, and states that nobody, the customer or Microsoft support, can re-enable it for those protocols. One protocol is left. Authenticated SMTP submission (SMTP AUTH) still accepts basic authentication next to OAuth, and Microsoft has announced plans to retire that too. Microsoft disabled SMTP AUTH in tenants where it was not in use and recommends keeping it off for the organization and on only for the mailboxes that still need it.

That makes SMTP AUTH the remaining place where a password is enough. Three settings decide whether it works for a mailbox. The organization setting is changed with Set-TransportConfig -SmtpClientAuthenticationDisabled. The mailbox setting is changed with Set-CASMailbox -SmtpClientAuthenticationDisabled and takes precedence over the organization setting. An authentication policy, created or changed with New-AuthenticationPolicy and Set-AuthenticationPolicy and their AllowBasicAuth switches, can block basic authentication for SMTP even where SMTP AUTH is enabled, and it is assigned to a user with Set-User -AuthenticationPolicy or to everyone with Set-OrganizationConfig -DefaultAuthenticationPolicy.

An attacker who holds an Exchange administrator role and knows, or has set, the password of a mailbox turns these settings in their favor and then sends mail as the user without an MFA prompt. Each change is an Exchange admin cmdlet, and Exchange Online writes admin cmdlets to the unified audit log with the cmdlet name in Operation and its parameters in Parameters. The rules on this page match the cmdlets and the parameter names. The parameter name is recorded whether the setting is switched on or off, so the value has to be read in the event.

What an attacker needs

  • An account that can run these cmdlets in Exchange Online, for example one with the Exchange Administrator role, which Microsoft describes as having global permissions within Exchange Online.
  • The password of the mailbox the attacker wants to use, because SMTP AUTH with basic authentication needs nothing else.
  • A tenant in which security defaults are off. Microsoft documents that SMTP AUTH is disabled in Exchange Online while security defaults are enabled.

Impact

Mail sent as a real user of the organization from any network, with the password as the only requirement. That serves internal phishing, payment fraud and spam from a trusted sender, and it survives a later MFA rollout for the user because the protocol never asks for a second factor. The open protocol is also a place to test passwords, which is why Microsoft says that blocking basic authentication helps protect against brute force and password spray attacks.

Detection rules

Authentication Policy Assignment Changed for a User or the Organization

Detects a change of which Exchange Online authentication policy applies to a user or to the whole organization. Microsoft documents the assignment to a user as Set-User with the AuthenticationPolicy parameter and the organization default as Set-OrganizationConfig with the DefaultAuthenticationPolicy parameter, and says that the value null removes the assignment. Replacing a policy that blocks basic authentication with a permissive one, or removing it, lets the user sign in to SMTP AUTH with a password again where SMTP AUTH is enabled. The rule matches the cmdlets and the parameter names in the Exchange admin records of the unified audit log. It cannot tell a stricter policy from a weaker one, so it is rated low. Read the policy name in Parameters and the settings of that policy.

LevelLowStatusExperimentalLog sourceMicrosoft 365 unified audit log (Exchange)
title: Authentication Policy Assignment Changed for a User or the Organization
id: 4b19e2b6-d267-4a35-ad5f-78ae3738b781
status: experimental
description: >-
  Detects a change of which Exchange Online authentication policy applies to
  a user or to the whole organization. Microsoft documents the assignment to
  a user as Set-User with the AuthenticationPolicy parameter and the
  organization default as Set-OrganizationConfig with the
  DefaultAuthenticationPolicy parameter, and says that the value null removes
  the assignment. Replacing a policy that blocks basic authentication with a
  permissive one, or removing it, lets the user sign in to SMTP AUTH with a
  password again where SMTP AUTH is enabled. The rule matches the cmdlets and
  the parameter names in the Exchange admin records of the unified audit
  log. It cannot tell a stricter policy from a weaker one, so it is rated
  low. Read the policy name in Parameters and the settings of that policy.
references:
  - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/disable-basic-authentication-in-exchange-online
  - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission
  - https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-schema#exchange-admin-schema
  - https://attack.mitre.org/techniques/T1556/
author: Forestall
date: 2026-11-18
tags:
  - attack.defense-impairment
  - attack.credential-access
  - attack.persistence
  - attack.t1556
logsource:
  product: m365
  service: exchange
detection:
  selection_user:
    Operation: Set-User
    Parameters|contains: AuthenticationPolicy
  selection_organization:
    Operation: Set-OrganizationConfig
    Parameters|contains: DefaultAuthenticationPolicy
  condition: 1 of selection_*
falsepositives:
  - Rollouts that assign a blocking policy to groups of users, which is the hardening Microsoft describes. Expect one event per user during such a rollout and filter the administrators who run it.
  - Administrators who give a service mailbox a policy that allows SMTP for a device or an application. Match the user in ObjectId to a request.
level: low

False positives

  • Rollouts that assign a blocking policy to groups of users, which is the hardening Microsoft describes. Expect one event per user during such a rollout and filter the administrators who run it.
  • Administrators who give a service mailbox a policy that allows SMTP for a device or an application. Match the user in ObjectId to a request.

Authentication Policy Created or Changed With a Basic Authentication Switch

Detects an Exchange Online authentication policy that is created or changed with one of the AllowBasicAuth switches, such as AllowBasicAuthSmtp. Microsoft documents these switches on New-AuthenticationPolicy and Set-AuthenticationPolicy as the way to allow or block basic authentication for a protocol. A policy that blocks basic authentication for SMTP keeps clients from using SMTP AUTH with a password even where SMTP AUTH is enabled, so allowing it again in the policy reopens that path for every user the policy is assigned to. For the other protocols Microsoft has removed basic authentication from Exchange Online altogether, and the switches no longer bring it back. The rule matches the cmdlet in Operation and the text AllowBasicAuth in Parameters. The switch name is recorded when basic authentication is allowed and when it is blocked, so the rule is rated low. Read the value in Parameters.

LevelLowStatusExperimentalLog sourceMicrosoft 365 unified audit log (Exchange)
title: Authentication Policy Created or Changed With a Basic Authentication Switch
id: 088524e3-d79e-405e-8365-e0dd9a4ec51f
status: experimental
description: >-
  Detects an Exchange Online authentication policy that is created or changed
  with one of the AllowBasicAuth switches, such as AllowBasicAuthSmtp.
  Microsoft documents these switches on New-AuthenticationPolicy and
  Set-AuthenticationPolicy as the way to allow or block basic authentication
  for a protocol. A policy that blocks basic authentication for SMTP keeps
  clients from using SMTP AUTH with a password even where SMTP AUTH is
  enabled, so allowing it again in the policy reopens that path for every
  user the policy is assigned to. For the other protocols Microsoft has
  removed basic authentication from Exchange Online altogether, and the
  switches no longer bring it back. The rule matches the cmdlet in Operation
  and the text AllowBasicAuth in Parameters. The switch name is recorded when
  basic authentication is allowed and when it is blocked, so the rule is
  rated low. Read the value in Parameters.
references:
  - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/disable-basic-authentication-in-exchange-online
  - https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-authenticationpolicy
  - https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/new-authenticationpolicy
  - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
  - https://attack.mitre.org/techniques/T1556/
author: Forestall
date: 2026-11-18
tags:
  - attack.defense-impairment
  - attack.credential-access
  - attack.persistence
  - attack.t1556
logsource:
  product: m365
  service: exchange
detection:
  selection:
    Operation:
      - New-AuthenticationPolicy
      - Set-AuthenticationPolicy
    Parameters|contains: AllowBasicAuth
  condition: selection
falsepositives:
  - Administrators who create a policy for a device or an application that still needs basic authentication for SMTP, or who block a protocol with the same switch and the value false. Read the switches and their values in Parameters.
level: low

False positives

  • Administrators who create a policy for a device or an application that still needs basic authentication for SMTP, or who block a protocol with the same switch and the value false. Read the switches and their values in Parameters.

SMTP AUTH Setting Changed for a Mailbox or the Organization

Detects a change of the setting that enables or disables authenticated SMTP submission (SMTP AUTH) in Exchange Online. Microsoft documents the mailbox setting as Set-CASMailbox with SmtpClientAuthenticationDisabled and the organization setting as Set-TransportConfig with the same parameter. The value false enables SMTP AUTH, true disables it, and an empty value on a mailbox hands the decision back to the organization setting. SMTP AUTH is the one Exchange Online protocol that still accepts basic authentication, so an enabled mailbox can send mail with a password alone. Exchange admin cmdlets are written to the unified audit log with the cmdlet in Operation and its parameters in Parameters. Parameters is an array of name and value pairs, so the rule matches the parameter name anywhere in it and fires for both directions. Read the value before you escalate.

LevelMediumStatusExperimentalLog sourceMicrosoft 365 unified audit log (Exchange)
title: SMTP AUTH Setting Changed for a Mailbox or the Organization
id: 0707943a-e701-40e2-9005-decaf731ed76
status: experimental
description: >-
  Detects a change of the setting that enables or disables authenticated SMTP
  submission (SMTP AUTH) in Exchange Online. Microsoft documents the mailbox
  setting as Set-CASMailbox with SmtpClientAuthenticationDisabled and the
  organization setting as Set-TransportConfig with the same parameter. The
  value false enables SMTP AUTH, true disables it, and an empty value on a
  mailbox hands the decision back to the organization setting. SMTP AUTH is
  the one Exchange Online protocol that still accepts basic authentication,
  so an enabled mailbox can send mail with a password alone. Exchange admin
  cmdlets are written to the unified audit log with the cmdlet in Operation
  and its parameters in Parameters. Parameters is an array of name and value
  pairs, so the rule matches the parameter name anywhere in it and fires for
  both directions. Read the value before you escalate.
references:
  - https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission
  - https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-casmailbox
  - https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-transportconfig
  - https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-schema#exchange-admin-schema
  - https://attack.mitre.org/techniques/T1556/
author: Forestall
date: 2026-11-18
tags:
  - attack.defense-impairment
  - attack.credential-access
  - attack.persistence
  - attack.t1556
logsource:
  product: m365
  service: exchange
detection:
  selection:
    Operation:
      - Set-CASMailbox
      - Set-TransportConfig
    Parameters|contains: SmtpClientAuthenticationDisabled
  condition: selection
falsepositives:
  - Administrators who enable SMTP AUTH for a mailbox that a printer, a scanner or an application sends from. Match the mailbox in ObjectId to a request.
  - Hardening work that disables SMTP AUTH. The parameter name is recorded for that as well, with the value true.
level: medium

False positives

  • Administrators who enable SMTP AUTH for a mailbox that a printer, a scanner or an application sends from. Match the mailbox in ObjectId to a request.
  • Hardening work that disables SMTP AUTH. The parameter name is recorded for that as well, with the value true.

Detection logic

Patterns that need more than one event, a baseline or knowledge of your own environment. Each is a hypothesis to build and tune in your SIEM, not a ready rule.

SMTP AUTH enabled for a mailbox, then an Authenticated SMTP sign-in by that user

Detection hypothesisSequence of eventsJoins two logsNeeds a baseline

Opening the protocol is only useful to an attacker who then signs in through it. A mailbox whose SMTP AUTH setting is changed and whose owner signs in with the Authenticated SMTP client soon after, from an address the user has not used before, shows the setting being used and not just prepared.

  1. Unified audit log, Exchange admin records: Operation equal to Set-CASMailbox with SmtpClientAuthenticationDisabled in Parameters. Take the mailbox from ObjectId and the administrator from UserId.
  2. Microsoft Entra sign-in logs, for the following 7 days: successful sign-ins (ResultType 0) of the mailbox owner with ClientAppUsed equal to Authenticated SMTP.
  3. Compare IPAddress of those sign-ins with the addresses the user signed in from during the 30 days before the change.
  4. Alert when the address is new, and raise the priority when the password of the user was reset between the two events.

EventsSet-CASMailbox

LimitsA new printer or application that was set up on purpose produces the same pair of events from a new address, so confirm the request first. The 7 and 30 days are starting points. Sign-ins of a federated domain that fail are recorded by the identity provider, and the hypothesis does not cover a change of the organization setting.

Triage

  • Read Parameters for the value. For SmtpClientAuthenticationDisabled, false means SMTP AUTH was enabled and true means it was disabled. For an authentication policy, read which AllowBasicAuth switches were set.
  • Read ObjectId for the mailbox, the policy or the organization that was changed, and UserId for the administrator.
  • Ask whether a device or an application that sends mail was being set up for that mailbox, and find the request.
  • Check the sign-ins of the mailbox owner after the change for the client app Authenticated SMTP and for unfamiliar addresses.
  • Look for a password reset of the same user shortly before the change, and for other mailboxes changed by the same administrator.

Response

Once the attack is confirmed:

  1. Disable SMTP AUTH again for the mailbox or the organization, and restore the authentication policy and its assignments.
  2. Reset the password of every mailbox that had SMTP AUTH enabled without a request, and revoke the sessions of those users.
  3. Review the messages sent from those mailboxes while the setting was open, recall what can be recalled and warn the recipients.
  4. Revoke the sessions and reset the credentials of the administrator account that made the change, and remove its Exchange role until the account is cleared.
  5. List every mailbox with SMTP AUTH enabled and every authentication policy that allows basic authentication, and confirm an owner for each exception.

Mitigation

  • Keep SMTP AUTH disabled for the organization and enable it per mailbox only for the devices and applications that cannot use anything else, as Microsoft recommends.
  • Move those devices and applications to OAuth for SMTP, or to another way of sending mail, so that the exceptions can be removed.
  • Assign an authentication policy that blocks basic authentication for every protocol as the organization default.
  • Block legacy authentication with Conditional Access, which also covers clients that use SMTP AUTH.
  • Keep the Exchange administrator roles on few accounts, eligible through Privileged Identity Management, and send the unified audit log to your SIEM.

Frequently asked questions

Can an attacker bring back basic authentication for IMAP, POP or Exchange Web Services?

No. Microsoft states that basic authentication is disabled in all tenants for those protocols and that nobody, the customer or Microsoft support, can re-enable it. Authenticated SMTP submission is the protocol that still accepts basic authentication, which is why the rules on this page concentrate on the SMTP AUTH settings and on the SMTP switch of authentication policies.

Why do the rules also fire when SMTP AUTH is switched off?

The audit record holds the cmdlet and the names and values of its parameters. The rules match the cmdlet and the parameter name, and the name is recorded for both directions. Read the value in Parameters before you escalate. For SmtpClientAuthenticationDisabled, false means that SMTP AUTH was enabled and true means that it was disabled.

Does MFA for the user protect a mailbox with SMTP AUTH enabled?

Not when the client uses basic authentication. Microsoft notes that enforcing MFA is not simple, or in some cases not possible, while basic authentication remains enabled. A Conditional Access policy that blocks legacy authentication, or an authentication policy that blocks basic authentication for SMTP, is what closes the protocol.

Is there a public incident report for this technique?

No public incident report describes this at the audit event level. The page is based on what Microsoft documents about SMTP AUTH and authentication policies in Exchange Online: which settings open the protocol, which cmdlets change them, and that admin cmdlets are written to the unified audit log.

References

We respect your privacy

We use cookies to keep this site secure and working properly. With your permission, we also use optional cookies to understand usage and improve the experience. Cookie Policy

You can change your choice at any time.