Detect messages with spam or malware using Zero-hour auto purge

Completed

Zero-hour auto purge (ZAP) is an email protection feature in Exchange Online Protection (EOP). It retroactively detects and neutralizes malicious phishing, spam, or malware messages the system already delivered to Exchange Online mailboxes. ZAP's ability to detect infected messages is due to:

  • Evolving heuristic and delivery patterns.
  • Content that weaponized after the system delivered it to users.

Note

ZAP provides email protection in Microsoft 365 organizations with mailboxes in Exchange Online. ZAP doesn't work in standalone EOP environments that protect on-premises Exchange mailboxes.

EOP updates spam and malware signatures on a real-time, daily basis. However, users can still receive malicious messages for various reasons. For example, if content weaponized after the system delivered it to users. ZAP addresses this issue by continually monitoring updates to the spam and malware signatures in the service. ZAP can find and remove messages that are already in a user's mailbox.

The ZAP action is seamless for the user. The system doesn't notify them if it detects and moves a message.

Safe sender lists, mail flow rules (also known as transport rules), Inbox rules, or other filters take precedence over ZAP. This process is similar to what happens in mail flow. For example, let's assume an organization configured a safe senders list. Even if EOP determines a delivered message from a safe sender needs ZAP, it doesn't act on the message because the safe sender list takes precedence over ZAP. For this reason, organizations should be careful about configuring messages to bypass filtering.

ZAP mitigates malicious email by continually monitoring updates to the Microsoft 365 spam and malware signatures. It can also identify malicious messages that previously went undetected and are already in users' Inboxes. If the recipients haven't read the messages and ZAP identified the mail as spam, then ZAP moves the messages to the users' Junk email folders. For newly detected malware, ZAP removes the attachments from the email message, even if the recipient didn't read the message. The reverse is true for messages the system incorrectly classified as malicious (in other words, false negatives). For example, if the system flagged a message as spam and delivered it to the user's Junk mail folder, ZAP would move the message to the user's Inbox.

Zero-hour auto purge for malware

If the system finds delivered messages that contain malware, ZAP quarantines the message that contains the malware attachment. By default, only admins can view and manage quarantined malware messages. However, administrators can create and use quarantine policies to define what users can do to messages that were quarantined as malware.

ZAP for malware is enabled by default in anti-malware policies.

Zero-hour auto purge for phishing

If the system finds delivered messages that identify as phishing, the ZAP outcome depends on the action configured for a Phishing email filtering verdict in the applicable anti-spam policy. The following list describes the available filtering verdict actions for phishing and their possible ZAP outcomes:

  • Add X-Header, Prepend subject line with text, Redirect message to email address, Delete message. ZAP takes no action on the message.
  • Move message to Junk Email. ZAP moves the message to the Junk Email folder.
  • Quarantine message. ZAP quarantines the message.

ZAP for phishing is enabled by default in anti-spam policies. The default action for the Phishing email filtering verdict is Quarantine message.

Zero-hour auto purge for high confidence phishing

If the system finds delivered messages that identify as high confidence phishing, ZAP quarantines the message. By default, only administrators can view and manage quarantined high confidence phish messages. However, administrators can create and use quarantine policies to define what users can do to messages quarantined as high confidence phishing.

ZAP for high confidence phish is enabled by default.

Zero-hour auto purge for spam

If the system finds delivered but unread messages that identify as spam, the ZAP outcome depends on the action configured for the Spam filtering verdict in the applicable anti-spam policy. The following list describes the available filtering verdict actions for spam and their possible ZAP outcomes:

  • Add X-Header, Prepend subject line with text, Redirect message to email address, Delete message. ZAP takes no action on the message.
  • Move message to Junk Email. ZAP moves the message to the Junk Email folder.
  • Quarantine message. ZAP quarantines the message. By default, end-users can view and manage spam quarantined messages when they're a recipient. However, admins can create and use quarantine policies to define what users can do to messages that were quarantined as spam.

Anti-spam policies enable ZAP by default. The default action for the Spam filtering verdict is Move message to Junk Email folder.

Zero-hour auto purge considerations for Microsoft Defender for Office 365

ZAP won't quarantine any message in the following scenarios:

  • The message is in the process of Dynamic Delivery in Safe Attachments policy scanning.
  • EOP malware filtering already replaced the attachment with the Malware Alert Text.txt file.

ZAP defaults to a Move to Junk action when the following conditions are both true:

  • The system receives a phishing or spam signal for these types of messages.
  • The filtering verdict in the anti-spam policy takes some action on the message (Move to Junk, Redirect, Delete, or Quarantine).

How to see if Zero-hour auto purge moved your message

To determine if ZAP moved your message, you have the following options:

Note

The Exchange mailbox audit logs don't log ZAP as a system action.