Skip to content

CIS.M365.2.1.5: Ensure Safe Attachments for SharePoint, OneDrive, and Microsoft Teams is Enabled

ID CIS.M365.2.1.5
Severity Medium
Suite CIS Microsoft 365 Foundations Benchmark
Product Defender
Related products SharePoint, Teams
Feature Safe Attachments
Security area Email and collaboration protection
Resource type Tenant
User impact of fixing Low
Effort to fix Low
Benchmark CIS Microsoft 365 Foundations Benchmark 7.0.0, 2.1.5 (L2, E5 Level 2)
Framework controls cis-m365:2.1.5
nist-800-53-r5:SI-3 Malicious Code Protection
MITRE ATT&CK T1080, T1204.002
Reads from Exchange Online, Microsoft Graph, Security & Compliance PowerShell
Licence needed ATP_ENTERPRISE

2.1.5 (L2) Ensure Safe Attachments for SharePoint, OneDrive, and Microsoft Teams is Enabled

Safe Attachments for SharePoint, OneDrive, and Microsoft Teams scans these services for malicious files.

Safe Attachments for SharePoint, OneDrive, and Microsoft Teams protect organizations from inadvertently sharing malicious files. When a malicious file is detected that file is blocked so that no one can open, copy, move, or share it until further actions are taken by the organization’s security team.

Impact associated with Safe Attachments is minimal, and equivalent to impact associated with anti-virus scanners in an environment.

To enable Safe Attachments for SharePoint, OneDrive, and Microsoft Teams:

  1. Navigate to Microsoft 365 Defender https://security.microsoft.com
  2. Under Email & collaboration select Policies & rules
  3. Select Threat policies then Safe Attachments
  4. Click on Global settings
  5. Click to Enable Turn on Defender for Office 365 for SharePoint, OneDrive, and Microsoft Teams
  6. Click to Enable Turn on Safe Documents for Office clients
  7. Click to Disable Allow people to click through Protected View even if Safe Documents identified the file as malicious
  8. Click Save.
  1. Connect to Exchange Online using Connect-ExchangeOnline.
  2. Run the following PowerShell command:
Terminal window
Set-AtpPolicyForO365 -EnableATPForSPOTeamsODB $true -EnableSafeDocs $true -AllowSafeDocsOpen $false

Mito check, based on CIS Microsoft 365 Foundations Benchmark. Author: NZLostboy. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.