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.5nist-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 |
What this checks and how to fix it
Section titled “What this checks and how to fix it”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.
Rationale
Section titled “Rationale”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
Section titled “Impact”Impact associated with Safe Attachments is minimal, and equivalent to impact associated with anti-virus scanners in an environment.
Remediation action
Section titled “Remediation action”To enable Safe Attachments for SharePoint, OneDrive, and Microsoft Teams:
- Navigate to Microsoft 365 Defender https://security.microsoft.com
- Under Email & collaboration select Policies & rules
- Select Threat policies then Safe Attachments
- Click on Global settings
- Click to Enable Turn on Defender for Office 365 for SharePoint, OneDrive, and Microsoft Teams
- Click to Enable Turn on Safe Documents for Office clients
- Click to Disable Allow people to click through Protected View even if Safe Documents identified the file as malicious
- Click Save.
PowerShell
Section titled “PowerShell”- Connect to Exchange Online using
Connect-ExchangeOnline. - Run the following PowerShell command:
Set-AtpPolicyForO365 -EnableATPForSPOTeamsODB $true -EnableSafeDocs $true -AllowSafeDocsOpen $falseRelated links
Section titled “Related links”- Microsoft 365 Defender
- Safe Attachments for SharePoint, OneDrive, and Microsoft Teams
- CIS Microsoft 365 Foundations Benchmark v7.0.0 - Page 96
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.
