AegisAI Perspectives · 176
ZAP acts on Microsoft 365 mail delivered in the last 48 hours once found malicious. For phishing and spam, four anti-spam policy actions stop it acting.
See it on your own Google Workspace or Microsoft 365 tenant. No MX change.
Or get the Q3 2026 State of the AI Attack report (free, instant download)
Not ready for a demo? Check your domain.

Zero-hour auto purge (ZAP) retroactively detects and neutralizes malicious messages delivered to cloud mailboxes in the last 48 hours1. For phishing and spam verdicts, ZAP takes no action under four anti-spam policy actions, and allowlists or mail flow rules might override it. AegisAI investigates every email for what it is trying to do, and removes the ones that fail from every mailbox they reached21.
If you run IT for a company of 20 to 500 people on Microsoft 365, with a small team and no SOC, use this page to check what ZAP did and what it left in place. How removal after delivery works in an API-based layer is on the inbound email security page.
Key takeaways
| Question | Answer |
|---|---|
| How does zero-hour auto purge (ZAP) work in Microsoft 365, and what does it miss? | It acts on delivered messages that are found to be malicious, within the last 48 hours of delivered email. It takes no action on phishing and spam verdicts under four anti-spam policy actions, its spam action is stated for unread mail only, and allowlists or mail flow rules might override it |
| Which licence does ZAP need? | No special licensing for ZAP for malware, spam or phishing. ZAP for Teams protection needs Defender for Office 365 Plan 1 or Plan 214 |
| Where is ZAP turned on? | Enable zero-hour auto purge (ZAP) in the anti-spam policy, on by default16, and Enable zero-hour auto purge for malware in the anti-malware policy18 |
| How do I see what ZAP did? | The Mailflow view in the Mailflow status report for the count, and Threat Explorer with Additional action ZAP for each message1213 |
Short on time? Watch the explainer, or book a demo.
ZAP finds and takes automated action on messages that are already in a user's mailbox.
ZAP can act on messages in other folders too, if the message wasn't deleted and the same or stronger action wasn't already applied15.
The Microsoft Learn page sets five limits on where ZAP acts.
Read the verdict actions in each anti-spam policy before you count on ZAP for any of them.
Work from the policies to the reports. Steps 5 and 6 depend on your Defender for Office 365 plan.
Open the anti-spam policies. In the Microsoft Defender portal, go to Email & collaboration > Policies & rules > Threat policies > Anti-spam in the Policies section17.
In each policy, confirm Enable zero-hour auto purge (ZAP) is selected. ZAP is on by default.
In the same policy, read the action for the Phishing verdict and for both spam verdicts. Change any of the four actions where ZAP takes no action, if you want ZAP to move those messages.
Open the anti-malware policies at Email & collaboration > Policies & rules > Threat policies > Anti-Malware10, and confirm Enable zero-hour auto purge for malware is selected.
Count what ZAP did. Use the Mailflow view in the Mailflow status report to see the number of ZAP-affected messages for a date range.
Find each message. In Threat Explorer, filter the All email tab by the value ZAP in the Additional action column. Threat Explorer is in Defender for Office 365 Plan 2, and Real-time detections is in Plan 120.
Run steps 5 and 6 once a week, and again after any change to an allowlist or a mail flow rule.
ZAP is turned on in the anti-spam and anti-malware policies, the verdict actions in the anti-spam policy set its outcome for phishing and spam, and the Mailflow status report and Threat Explorer show what it did.
| Setting or step | Where it is in the admin console | Edition or licence | What it does | What it does not do |
|---|---|---|---|---|
| Enable zero-hour auto purge (ZAP) | Microsoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Anti-spam | No special licensing for ZAP for spam and phishing | Detects and takes action on messages delivered to cloud mailboxes; on by default | Takes no action under the four anti-spam policy actions listed above |
| Phishing verdict action | Same anti-spam policy | No special licensing for ZAP for phishing | Sets the ZAP outcome for read or unread phishing | Applies to phishing, not high confidence phishing, which ZAP quarantines |
| Spam and High confidence spam verdict actions | Same anti-spam policy | No special licensing for ZAP for spam | Sets the ZAP outcome for spam found after delivery | Stated for unread messages only |
| Enable zero-hour auto purge for malware | Microsoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Anti-Malware | No special licensing for ZAP for malware | Quarantines delivered messages that contain malware | Searches only the last 48 hours of delivered email |
| Mailflow view | Mailflow status report | Not named on the ZAP page | Shows the number of ZAP-affected messages for a date range | Shows a count, not each message |
| Threat Explorer, Additional action ZAP | All email tab, Additional action column | Defender for Office 365 Plan 2; Real-time detections in Plan 1 | Filters the email events where ZAP acted | Not a user notice or an audit log entry (see Key takeaways) |
| Allowlists and Exchange mail flow rules | Exchange mail flow rules (transport rules) and allowlists | Not named on the ZAP page | Might override ZAP actions | Admin allow entries from false positive submissions last 45 days after last use by default |
An API-based layer reads mail through the provider's API after delivery and applies its own verdicts, as described in API-based email security before the user opens.
AegisAI reports on its inbound email security page that 3 in 10 confirmed phishing emails cleared native Gmail and Microsoft filters in Q3 202625. How automated quarantine and remediation work across tools, and how to test them in a trial, is covered in automated email quarantine and remediation.
AegisAI pulls one bad email from every inbox it reached, forwards included24. It reads mail through the Microsoft 365 or Google Workspace API after delivery22. The inbound email security page states that the median verdict takes 1.9 seconds, and a convicted message is removed from every mailbox it reached within seconds23.
Track three numbers from the Defender portal.
To see an email investigation from start to finish, talk to the team. On day 30, compare the weekly ZAP count with the number of policies you changed.
ZAP acts on malicious email delivered to cloud mailboxes in the last 48 hours. For phishing and spam verdicts, four policy actions stop it, and allowlists or mail flow rules might override it. AegisAI states on its inbound email security page that a convicted message is removed from every mailbox it reached within seconds.
Yes. Enable zero-hour auto purge (ZAP) is on by default in anti-spam policies. For malware, check that Enable zero-hour auto purge for malware is selected in each anti-malware policy.
There are no special licensing requirements for ZAP for malware, spam or phishing. ZAP for Teams protection needs Plan 1 or Plan 2. Threat Explorer is in Plan 2, and Real-time detections is in Plan 1.
For spam and high confidence spam, Microsoft states the ZAP action for unread messages only. Malware and high confidence phishing are quarantined whether read or not.
No. Users aren't notified, and ZAP isn't logged in the Exchange mailbox audit logs as a system action. Use the Mailflow status report and Threat Explorer instead.