Skip to main content
Version: 2.1.1-preview

DPDP.6.4 - Technical erasure workflows SHALL exist for Exchange, SharePoint, and Teams data (Rule 12(3)).

Overview

7.3.1 (L2) Ensure Office 365 SharePoint infected files are disallowed for download

By default, SharePoint online allows files that Defender for Office 365 has detected as infected to be downloaded.

Rationale

Defender for Office 365 for SharePoint, OneDrive, and Microsoft Teams protects your organization from inadvertently sharing malicious files. When an infected 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

The only potential impact associated with implementation of this setting is potential inconvenience associated with the small percentage of false positive detections that may occur.

Remediation

PowerShell

  1. Connect to SharePoint Online using Connect-SPOService -Url https://tenant-admin.sharepoint.com, replacing "tenant" with the appropriate value.
  2. Run the following PowerShell command to set the recommended value:
Set-SPOTenant -DisallowInfectedFileDownload $true

Note: The Global Reader role cannot access SharePoint using PowerShell according to Microsoft. See the reference section for more information.

Default Value: False

Test Metadata

FieldValue
Test IDDPDP.6.4
SeverityUnknown
SuiteDPDP Act 2023
CategoryIndiaDPDP
PowerShell testTest-MtCisSpoPreventDownloadMaliciousFile
TagsDPDP, DPDP.6.4, DPDP2023, IndiaDPDP

Source

  • Pester test: tests/dpdp/Test-MtDpdpBaselines.Tests.ps1
  • PowerShell source: powershell/public/cis/Test-MtCisSpoPreventDownloadMaliciousFile.ps1