Skip to content

Commit 5899f02

Browse files
authored
Merge pull request #293 from AdwoodMicrosoft/patch-1
Update anti-malware-protection-for-spo-odfb-teams-about.md
2 parents eac91c0 + ac88471 commit 5899f02

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Built-in virus protection in SharePoint, OneDrive, and Microsoft Teams
2+
title: Built-in virus protection in SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams
33
f1.keywords:
44
- NOCSH
55
ms.author: chrisda
@@ -16,65 +16,70 @@ ms.assetid: e3c6df61-8513-499d-ad8e-8a91770bff63
1616
ms.collection:
1717
- m365-security
1818
- tier2
19-
description: Learn about how SharePoint detects viruses in files that users upload and prevents users from downloading or syncing the files.
19+
description: Learn about how SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams detect viruses in uploaded files and prevent users from downloading or syncing the files.
2020
ms.custom: seo-marvel-apr2020
2121
ms.service: defender-office-365
22-
ms.date: 06/09/2023
22+
ms.date: 06/17/2025
2323
appliesto:
2424
- ✅ <a href="https://learn.microsoft.com/defender-office-365/eop-about" target="_blank">Exchange Online Protection</a>
2525
- ✅ <a href="https://learn.microsoft.com/defender-office-365/mdo-about#defender-for-office-365-plan-1-vs-plan-2-cheat-sheet" target="_blank">Microsoft Defender for Office 365 Plan 1 and Plan 2</a>
26+
2627
---
2728

28-
# Built-in virus protection in SharePoint, OneDrive, and Microsoft Teams
29+
# Built-in virus protection in SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams
2930

3031
[!INCLUDE [MDO Trial banner](../includes/mdo-trial-banner.md)]
3132

32-
Microsoft 365 uses a common virus detection engine for scanning files that users upload to SharePoint, OneDrive, and Microsoft Teams. This protection is included with all subscriptions that include SharePoint, OneDrive, and Microsoft Teams.
33+
Microsoft 365 uses a common virus detection engine for scanning files that users upload to SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams. This protection is included with all subscriptions that include SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams.
3334

3435
> [!IMPORTANT]
3536
> The built-in anti-virus capabilities are a way to help contain viruses. They aren't intended as a single point of defense against malware for your environment. We encourage all customers to investigate and implement anti-malware protection at various layers and apply best practices for securing their enterprise infrastructure.
3637
37-
## What happens if an infected file is uploaded to SharePoint?
38+
## What happens if an infected file is uploaded to SharePoint, SharePoint Embedded, OneDrive, or from Microsoft Teams?
3839

39-
The Microsoft 365 virus detection engine scans files asynchronously (at some time after upload). If a user tries to download a file in a web browser or from Teams that hasn't been scanned, a scan is triggered before the download is allowed. **All file types are not automatically scanned**. Heuristics determine the files to scan. When a file is found to contain a virus, the file is flagged.
40+
The Microsoft 365 virus detection engine scans files asynchronously (at some time after upload). If a user tries to download a file in a web browser or from Microsoft Teams that hasn't been scanned, a scan is triggered before the download is allowed. **All files are not automatically scanned**. Anti-malware heuristics determine the files to scan. When a file is found to contain a virus, the file is flagged as containing malware.
4041

4142
Here's what happens:
4243

43-
1. A user uploads a file to SharePoint.
44-
2. SharePoint, as part of its virus scanning processes, later determines if the file meets the criteria for a scan.
44+
1. A user uploads a file to SharePoint, SharePoint Embedded, OneDrive, or from Microsoft Teams.
45+
2. SharePoint using the common Microsoft 365 anti-malware engine, as part of its virus scanning processes, later determines if the file meets the criteria for a scan.
4546
3. If the file meets the criteria for a scan, the virus detection engine scans the file.
4647
4. If a virus is found within the scanned file, the virus engine sets a property on the file that indicates the file is infected.
4748

48-
## What happens when a user tries to download an infected file by using the browser?
49+
## What happens when a user tries to download an infected file by using their web browser?
4950

50-
By default, users can download infected files from SharePoint. Here's what happens:
51+
By default, users can download infected files from SharePoint or OneDrive. Here's what happens:
5152

52-
1. In a web browser, a user tries to download a file from SharePoint that happens to be infected.
53+
1. In a web browser, a user tries to download a file from SharePoint or OneDrive that happens to be infected.
5354
2. The user is shown a warning that a virus was detected in the file. The user is given the option to proceed with the download and attempt to clean it using anti-virus software on their device.
5455

55-
To change this behavior so users can't download infected files, even from the anti-virus warning window, admins can use the *DisallowInfectedFileDownload* parameter on the **[Set-SPOTenant](/powershell/module/sharepoint-online/Set-SPOTenant)** cmdlet in SharePoint Online PowerShell. The value $true for the *DisallowInfectedFileDownload* parameter completely blocks access to detected/blocked files for users.
56+
To change this behavior so users can't download infected files from SharePoint or OneDrive, even from the anti-virus warning window, admins can use the *DisallowInfectedFileDownload* parameter on the **[Set-SPOTenant](/powershell/module/sharepoint-online/Set-SPOTenant)** cmdlet in SharePoint Online PowerShell. The value $true for the *DisallowInfectedFileDownload* parameter completely blocks access to detected/blocked files for users.
5657

5758
For instructions, see [Use SharePoint Online PowerShell to prevent users from downloading malicious files](safe-attachments-for-spo-odfb-teams-configure.md#step-2-recommended-use-sharepoint-online-powershell-to-prevent-users-from-downloading-malicious-files).
5859

59-
## Can admins bypass *DisallowInfectedFileDownload* and extract infected files?
60+
## Can admins bypass *DisallowInfectedFileDownload* and extract infected files from SharePoint or OneDrive?
6061

61-
SharePoint admins and global admins<sup>\*</sup> are allowed to do forensic file extractions of malware-infected files in SharePoint Online PowerShell with the [Get-SPOMalwareFileContent](/powershell/module/sharepoint-online/get-spomalwarefilecontent) cmdlet. Admins don't need access to the site that hosts the infected content. As long as the file is marked as malware, admins can use **Get-SPOMalwareFileContent** to extract the file.
62+
Members of the SharePoint Administrator or Global Administrator roles in Microsoft Entra ID<sup>\*</sup> are allowed to do forensic file extractions of malware-infected files from SharePoint Online PowerShell with the [Get-SPOMalwareFileContent](/powershell/module/sharepoint-online/get-spomalwarefilecontent) cmdlet. Admins don't need access to the site that hosts the infected content. As long as the file is marked as malware, admins can use **Get-SPOMalwareFileContent** to extract the file.
6263

6364
For more information about the infected file, admins can use the **[Get-SPOMalwareFile](/powershell/module/sharepoint-online/get-spomalwarefile)** cmdlet to see the type of malware that was detected and the status of the infection.
6465

6566
> [!IMPORTANT]
6667
> <sup>\*</sup> Microsoft recommends that you use roles with the fewest permissions. Using lower permissioned accounts helps improve security for your organization. Global Administrator is a highly privileged role that should be limited to emergency scenarios when you can't use an existing role.
6768
68-
## What happens when the OneDrive sync client tries to sync an infected file?
69+
## What happens when the OneDrive sync client tries to sync an infected file from SharePoint or OneDrive?
6970

70-
When a malicious file is uploaded to OneDrive, the file is synced to the local machine before being marked as malware. After the file is marked as malware, the user can't open the synced file from their local machine.
71+
When a malicious file is uploaded to SharePoint or OneDrive, the file might be synced to the local machine before being marked as malware. After the file is marked as malware, the user can't open the synced file from their local machine.
7172

7273
## Extended capabilities with Microsoft Defender for Office 365
7374

74-
Microsoft 365 organizations that have [Microsoft Defender for Office 365](mdo-about.md) included in their subscription or purchased as an add-on can enable Safe Attachments for SharePoint, OneDrive, and Microsoft Teams for enhanced reporting and protection. For more information, see [Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](safe-attachments-for-spo-odfb-teams-about.md).
75+
Microsoft 365 organizations that have [Microsoft Defender for Office 365](mdo-about.md) included in their subscription or purchased as an add-on can enable Safe Attachments for SharePoint, SharePoint Embedded, OneDrive, and Microsoft Teams for enhanced reporting and protection. For more information, see [Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](safe-attachments-for-spo-odfb-teams-about.md).
7576

7677
## Related articles
7778

7879
[Malware and ransomware protection in Microsoft 365](/compliance/assurance/assurance-malware-and-ransomware-protection)
7980

80-
[Turn on Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](safe-attachments-for-spo-odfb-teams-configure.md).
81+
[Turn on Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](/safe-attachments-for-spo-odfb-teams-configure.md)
82+
83+
[Introduction to SharePoint and OneDrive in Microsoft 365 for administrators](/sharepoint/introduction)
84+
85+
[Overview of SharePoint Embedded](/sharepoint/dev/embedded/overview)

0 commit comments

Comments
 (0)