DPDP.3.6 - Safe Links and Safe Attachments anti-malware policies SHALL be enabled (Rule 8(5)-Sec-6).
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
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
Impact associated with Safe Attachments is minimal, and equivalent to impact associated with anti-virus scanners in an environment.
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
- Connect to Exchange Online using
Connect-ExchangeOnline. - Run the following PowerShell command:
Set-AtpPolicyForO365 -EnableATPForSPOTeamsODB $true -EnableSafeDocs $true -AllowSafeDocsOpen $false
Related links
- Microsoft 365 Defender
- Safe Attachments for SharePoint, OneDrive, and Microsoft Teams
- CIS Microsoft 365 Foundations Benchmark v6.0.1 - Page 88
Test Metadata
| Field | Value |
|---|---|
| Test ID | DPDP.3.6 |
| Severity | Unknown |
| Suite | DPDP Act 2023 |
| Category | IndiaDPDP |
| PowerShell test | Test-MtCisSafeAttachmentsAtpPolicy |
| Tags | DPDP, DPDP.3.6, DPDP2023, IndiaDPDP |
Source
- Pester test:
tests/dpdp/Test-MtDpdpBaselines.Tests.ps1 - PowerShell source:
powershell/public/cis/Test-MtCisSafeAttachmentsAtpPolicy.ps1