(L2) Ensure Safe Attachments for SharePoint, OneDrive, and Microsoft Teams is Enabled
Part of CIS · Defender · Safe Attachments · All checks
Invoke-Maester -TestId CIS.M365.2.1.5Overview
Section titled “Overview”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
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | CIS.M365.2.1.5 |
| Severity | Medium |
| Suite | CIS |
| Product | Defender |
| Related products | SharePoint, Teams |
| Feature | Safe Attachments |
| Area | Email and collaboration protection |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1080 Taint Shared Content, T1204.002 Malicious File |
| Supports benchmark | CIS Microsoft 365 Foundations Benchmark (version 7.0.0), requirement 2.1.5 |
| Benchmark level | L2 |
| Benchmark profiles | E5 Level 2 |
| Supports controls | cis-m365:2.1.5, nist-800-53-r5:SI-3 |
| PowerShell test | Test-MtCisSafeAttachmentsAtpPolicy |
| Services | ExchangeOnline, Graph |
| Compatible licenses | ATP_ENTERPRISE |
Source
Section titled “Source”- Test:
tests/cis/Test.CIS.M365.2.1.5.ps1 - Documentation:
tests/cis/Test.CIS.M365.2.1.5.md
About this check
- Severity
- Medium
- Effort to fix
- Low
- Impact on users
- Low
- Product
- Defender
- Feature
- Safe Attachments
- Area
- Email and collaboration protection
- Suite
- CIS