Microsoft Defender XDR
Incidents and response

Alert Classification Malicious Exchange Connectors

In brief

The page updates wording, metadata, and investigation guidance. Sample queries are now described as covering new connector creation, connector-to-mail-flow correlation, and external domain detection, with added admin logon checks.

What Defender admins need to know

No administrator action is required. The clarified guidance can help security teams investigate malicious Exchange connector alerts.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

[!INCLUDE Microsoft Defender XDR rebranding]

Threat actors use compromised Microsoft Exchange connectors for sending out spam and phishing emails in bulk to unsuspecting recipients by masquerading legitimate emails. Since the connector is compromised, the emails would usually be trusted by the recipients. These kinds of phishing emails are common vectors for phishing campaigns, and business email compromise (BEC) scenario. Hence, such emails sent through compromised connectors need to be monitored heavily due to the likelihood of successful recipients' compromises being high.

This malicious Exchange connector investigation playbook helps in investigating instances where malicious connectors are setup/deployed by malicious actors. Accordingly, theysecurity teams can take the necessary steps to remediate the attack and mitigate the security risks arising from it. The playbook helps in classifying the alerts as either true positive (TP) or false positive (FP). If alerts are TP, the playbook lists necessary recommended actions for remediating the attack. This playbook is available for security teams who review, handle/manage, and grade the alerts.

Following are the results of using a playbook:

Attackers may compromise an existing Exchange connector or compromise an admin, and set up a new connector by sending phish or spam/bulk emails.

The typical indicators of a malicious connector can be found when looking at email traffic and its headers. For example, when email traffic is observed from a connector node with a mismatch in P1 (header sender)between the header sender (P1) and P2 (envelope sender)envelope sender addresses(P2) addresses, along with no information on Senderthe sender's AccountObjectId.

ThisThe malicious Exchange connector alert tries to identify such instances of mail flow, whereinflow where the mail sending activity seems suspicious adding to thatand relevant information on the sender is unavailable.

Playbook workflow

Investigate malicious connectors

This section describes theThe following steps tohelp investigate ana malicious Exchange connector alert and remediate the associated security risk due to a malicious Exchange connector incident.risk.

  • Determine whether the connector demonstrates bad (malicious) behavior.
    • Look for events indicating unusual mail traffic and identify, whether any new and recently added Exchange connector.

Sample queries

Use the following sample queries for new connector creation, connector-to-mail-flow correlation, and external domain detection to investigate connector creation and suspicious mail activity.

  • Run this KQL to check new connector creation.

Query considerations

Following areConsider the query considerations forfollowing admin logon checks when protecting the recipients from malicious attack.

  • Check for admin logins for those who frequently manage connectors from unusual locations (generate stats and exclude locations from where most successful logins are observed).

  • Look for login failures from unusual locations. The following query correlates failed logon attempts with subsequent successful logons to detect potential brute-force compromises of admin accounts that manage connectors.

    //modify timeWindow to modify the lookback.
    let timeWindow = now(-7d); let timeNow = now();
    let logonFail= materialize (
    
  • Overview of alert classification

  • Investigate alerts [!

[!INCLUDE Microsoft Defender XDR rebranding]