Data Protection Issues

What Data Types Does Microsoft Defender Safe Attachments Scan?

Khadija KhanKhadija Khan Oct 22, 2026 868 views

Question details

The user wants to know if Microsoft Defender for Office 365 Safe Attachments scans and detonates specific archive formats like RAR files.

What Data Types Does Microsoft Defender Safe Attachments Scan?
Product
Microsoft Defender for Office 365
Device & OS
not provided
Scenario
Receiving email attachments and relying on Exchange Online Protection to filter out potentially malicious content.
Observed behavior
Users need clarification on whether archive files like .rar undergo detonation or sandboxing within the Safe Attachments environment.
Before you start

Ensure you have administrative access to your Microsoft 365 Defender portal to review or configure Safe Attachments policies, and verify that your subscription includes Microsoft Defender for Office 365 Plan 1 or Plan 2.

Solution 1Recommended

Understanding Safe Attachments Scanning and Detonation

Learn how Microsoft Defender handles archive files like .rar through its sandboxing environment.

Safe Attachments acts as an additional layer of security by routing eligible email attachments to an isolated virtual machine environment. Here, the attachments are 'detonated' to observe their behavior and detect malicious activity before reaching the user's inbox.

Supported archive formats, including .rar files, are indeed scanned by this service. The system extracts the contents of the archive and analyzes the individual files within to ensure no malware is hidden.

1
Access the Defender Portal

Log in to the Microsoft 365 Defender portal at security.microsoft.com using an administrator account.

2
Navigate to Threat Policies

In the left-hand navigation pane, go to 'Email & collaboration', click on 'Policies & rules', and then select 'Threat policies'.

3
Review Safe Attachments Policies

Click on 'Safe Attachments' to view or configure the global settings that determine how the system handles scanned, unknown, or malicious attachments, including archive formats.

Understanding Safe Attachments Scanning and Detonation
Coverage Variations: Scanning coverage may vary based on file type and specific service limitations. Always consult the official Microsoft Defender documentation for the most up-to-date list of supported attachment types.
Free Microsoft Office alternative

Choose WPS Office for a Secure and Lightweight Experience

If you are evaluating your Office software ecosystem, WPS Office provides a reliable, fast, and free alternative to Microsoft Office. It offers robust document creation and editing capabilities without heavy resource requirements while maintaining excellent compatibility with Office file formats.

  1. 1. Download WPS Office: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer file and follow the straightforward on-screen instructions to complete the setup.
  3. 3. Open Office Documents: Launch WPS Office and instantly open your existing .docx, .xlsx, or .pptx files to start working without any formatting loss.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formatsLightweight installation that opens documents quickly and operates securelyBuilt-in PDF reader and editor for comprehensive document managementFree to download and use with a highly familiar user interface for a seamless transition
microsoft office alternative - wps office

Frequently Asked Questions

Does Exchange Online Protection (EOP) scan attachments if Safe Attachments is disabled?

Yes, EOP includes built-in anti-malware and content filtering that scans attachments using signature-based detection. However, Safe Attachments provides an extra layer of zero-day protection via active sandboxing and detonation.

What happens if Safe Attachments detects a malicious RAR file?

Depending on your specific policy settings, the email can be outright blocked, the attachment can be replaced with a warning message, or the message can be sent to quarantine for your administrator to review.

Are password-protected RAR archives scanned by Microsoft Defender?

Safe Attachments cannot automatically extract and detonate files inside password-protected or encrypted archives unless it has the password. These files are typically handled according to your specific policy rules regarding encrypted attachments.

Is there a file size limit for Safe Attachments detonation?

Yes, Microsoft Defender has specific message and attachment size limits. Attachments exceeding these limits might bypass detonation, so it is highly recommended to configure threat policies that block excessively large executable files or archives.