Skip to content

Commit d4f4a4d

Browse files
committed
New article and art created.
1 parent 676e619 commit d4f4a4d

3 files changed

Lines changed: 159 additions & 0 deletions

File tree

67.3 KB
Loading
71.7 KB
Loading
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
---
2+
title: SharePoint malware false-positive guide
3+
ms.author: chrisda
4+
author: chrisda
5+
manager: orspodek
6+
ms.date: 08/01/2025
7+
audience: ITPro
8+
ms.topic: troubleshooting
9+
search.appverid:
10+
- SPO160
11+
- MET150
12+
appliesto:
13+
- SharePoint Online
14+
ms.custom:
15+
- CSSTroubleshoot
16+
ms.reviewer: mithr
17+
description: Identify and resolve false positive malware detections in SharePoint.
18+
---
19+
20+
# SharePoint malware false positive guide
21+
22+
Malware false positive detections in SharePoint occur when a safe file is mistakenly identified as malware by Microsoft scanning engines. This guide explains how to identify which feature flagged the file, report it for analysis, and unblock the file if necessary. This article talks about SharePoint, but the information also applies to files stored in OneDrive and Microsoft Teams.
23+
24+
> [!TIP]
25+
>
26+
> - Admins or security operations (SecOps) personnel with [Security Administrator](/entra/identity/role-based-access-control/permissions-reference#security-administrator) permissions in organizations with cloud mailboxes have access files on the following pages in the Microsoft Defender portal:
27+
> - The **Files** tab of the **Quarantine** page at <https://security.microsoft.com/quarantine?viewid=Files>.
28+
> - The **Email Attachments** tab of the **Submissions** page at <https://security.microsoft.com/reportsubmission?viewid=emailAttachment>.
29+
> - The **Files** tab of the **Tenant Allow/Block Lists** page at <https://security.microsoft.com/reportsubmission?viewid=emailAttachment>.
30+
>
31+
> However, the **Files** tab on the **Submissions** page at <https://security.microsoft.com/reportsubmission?viewid=fileSubmissions> is available only to organizations with **Microsoft Defender XDR** or **Microsoft Defender for Endpoint Plan 2**.
32+
> - For permissions and the most current information about the SharePoint Online Management Shell, see [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell).
33+
34+
## Malware detections in SharePoint
35+
36+
SharePoint uses two main malware scanning engines:
37+
38+
- **Microsoft Defender for Office 365**: Files are tested in a cloud virtual environment (also known as a **sandbox**). For more information, see [Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](/defender-office-365/safe-attachments-for-spo-odfb-teams-about).
39+
- **Microsoft Defender for Endpoint**: Built-in virus protection using frequently updated **signature-based** detections.
40+
41+
File scanning isn't always immediate. Scanning happens **asynchronously** based on factors like file type and sharing status. If a file is detected as malware, access to the file is blocked, and a warning appears.
42+
43+
:::image type="content" source="media/sharepoint-malware-false-positives-blocked-file-sharepoint.png" alt-text="Screenshot of a blocked file in SharePoint." lightbox="media/sharepoint-malware-false-positives-blocked-file-sharepoint.png":::
44+
45+
## Step-by-step: Handle and prevent false positives
46+
47+
Use the steps in these sections to deal with false positives in SharePoint.
48+
49+
### Step 1: Identify th engine that flagged the file
50+
51+
Use any of the following methods:
52+
53+
- **Simple**: Use either of the following methods in the Defender portal:
54+
- **Quarantine**: On the **Files** tab of **Quarantine** page at <https://security.microsoft.com/quarantine?viewid=Files>, the **Detected by** property contains one of the following values in Defender for Office 365:
55+
- **AV** for the signature detections.
56+
- **MDO** for Safe Attachments detections.
57+
58+
For more information, see [Use the Microsoft Defender portal to manage quarantined files in Defender for Office 365](/defender-office-365/quarantine-admin-manage-messages-files#use-the-microsoft-defender-portal-to-manage-quarantined-files-in-defender-for-office-365).
59+
60+
- **Threat Explorer (Explorer) or Real-time detections**: The **Content malware** view on one of the following pages:
61+
- **Explorer** (Defender for Office 365 Plan 2): <https://security.microsoft.com/threatexplorerv3>.
62+
- **Real-time Detections** (Defender for Office 365 Plan 1): <https://security.microsoft.com/realtimereportsv3>.
63+
64+
The **Detection technology** field in the filterable properties contains one of the following values:
65+
- **Antimalware protection** for signature detections.
66+
- **File detonation** or **File reputation** for Safe Attachments detections.
67+
68+
For more information, see [Content malware view in Threat Explorer and Real-time detections](/defender-office-365/threat-explorer-real-time-detections-about#content-malware-view-in-threat-explorer-and-real-time-detections).
69+
70+
- **Advanced**: Use either of the following methods:
71+
- **Microsoft Purview Audit**: Review the audit log for **FileMalwareDetected** operations. By default, the log holds information for 180 days.
72+
- The **AuditData** column contains the **VirusVendor** field:
73+
- **Default** for signature-based detections.
74+
- **Advanced Threat Protection** for Safe Attachments detections.
75+
- The **VirusInfo** field contains the full malware variant/name.
76+
77+
For more information, see [Search the audit log](/purview/audit-search).
78+
79+
- **SharePoint Online PowerShell**: Use the [Get-SPOMalwareFile](/en-us/powershell/module/sharepoint-online/get-spomalwarefile?view=sharepoint-ps) for details about the detection. The **MalwareInfo** field indicates the detection type. For example, `Win32/CryptInject!MSR` or `Trojan_PDF_LinkedUrlCookie_A`.
80+
- Signature detection malware variants include forward slashes ('/').
81+
- Safe Attachments detection malware variants include underscores ('\_') or the text _Malicious Payload_.
82+
83+
For example:
84+
85+
```powershell
86+
PS C:\WINDOWS\system32\> Get-SPOMalwareFile -FileUri 'https://contoso.sharepoint.com/sites/Everyone/Shared Documents/eic_order.log'
87+
88+
File : Microsoft.SharePoint.Client.File
89+
FilePath : Microsoft.SharePoint.Client.ResourcePath
90+
MalwareInfo : DOS/EICAR_Test_File
91+
MalwareStatus : Infected
92+
SiteURL : <https://contoso.sharepoint.com/sites/Everyone>
93+
Context : Microsoft.Online.SharePoint.PowerShell.CmdLetContext
94+
Tag :
95+
Path : Microsoft.SharePoint.Client.ObjectPathMethod
96+
ObjectVersion :
97+
ServerObjectIsNull : False
98+
TypedObject : Microsoft.Online.SharePoint.TenantAdministration.SPOMalwareFile
99+
```
100+
101+
### Step 2: Submit files to Microsoft for analysis
102+
103+
If multiple files are flagged, submit all affected files by using the following steps.
104+
105+
1. Download the files using one of the following methods:
106+
107+
> [!CAUTION]
108+
> Downloading files with malware poses risks. Always adhere to your organization's security guidelines before proceeding.
109+
110+
- **Defender portal**: On the **Files** tab of **Quarantine** page at <https://security.microsoft.com/quarantine?viewid=Files>, select the file, and then select **Download**. For more information, see [Download quarantined files from quarantine](/defender-office-365/quarantine-admin-manage-messages-files#download-quarantined-files-from-quarantine).
111+
112+
- **SharePoint Online PowerShell**: Use the [Get-SPOMalwareFileContent](/powershell/module/microsoft.online.sharepoint.powershell/get-spomalwarefilecontent) cmdlet.
113+
114+
2. Submit the files using one of the following methods based on how the file was detected:
115+
- **Safe Attachments detections**: Use the **Email attachments** tab on the **Submissions** page in the Defender portal at <https://security.microsoft.com/reportsubmission?viewid=emailAttachment>. For instructions, see [Report good email attachments to Microsoft](/defender-office-365/submissions-admin#report-good-email-attachments-to-microsoft).
116+
117+
- **Defender for Endpoint signature detections** (Microsoft Defender XDR or Microsoft Defender for Endpoint Plan 2): Submit a file for malware analysis using the **Files** tab on the **Submissions** page in the Defender portal at <https://security.microsoft.com/reportsubmission?viewid=fileSubmissions>. For instructions, see [Submit files in Microsoft Defender for Endpoint](/defender-endpoint/admin-submissions-mde).
118+
119+
- Submit the file from the [Microsoft Security Intelligence](https://www.microsoft.com/wdsi/filesubmission) portal at <https://www.microsoft.com/wdsi/filesubmission>.
120+
121+
### Step 3: Verify the outcome
122+
123+
If Microsoft identifies a false positive and updates the definitions, the file shouldn't be flagged again. If the file continues to be flagged, contact Microsoft Support and specify whether the issue involves a single file or multiple files.
124+
125+
## Unblock files
126+
127+
> [!IMPORTANT]
128+
> Only unblock files you're confident are safe.
129+
130+
Use any of the following methods:
131+
132+
- Admins can release files from [quarantine](https://security.microsoft.com/quarantine) **within 30 days**. For more information, see [Release quarantined files from quarantine](/defender-office-365/quarantine-admin-manage-messages-files#release-quarantined-files-from-quarantine).
133+
134+
- For Safe Attachments malware detections, admins can use the **Email attachments** tab (which also applies to Sharepoint files) on the **Submissions** page in the Defender portal at <https://security.microsoft.com/reportsubmission?viewid=emailAttachment> to submit a blocked file. When the admin selects, **I've confirmed it's clean**, they can then choose **Allow this file** to create an allow entry for the file on the **Files** tab of the **Tenant Allow/Block List**. For instructions, see [Submit good email attachments to Microsoft](/defender-office-365/submissions-admin#report-good-email-attachments-to-microsoft).
135+
136+
> [!TIP]
137+
>
138+
> - Reuploading a file might restore access, but the file might be flagged again unless the definitions are updated.
139+
> - For files blocked **longer than 30 days**, contact Microsoft Support with the following information:
140+
> - Evidence that the file is safe.
141+
> - The detection type.
142+
> - The file path from the relevant source:
143+
> - The SharePoint library details.
144+
> - Quarantine.
145+
> - Output from the [Get-SPOMalwareFile](/powershell/module/microsoft.online.sharepoint.powershell/get-spomalwarefile) cmdlet.
146+
>
147+
> Here's an example path from the SharePoint library details: <https://contoso.sharepoint.com/sites/Everyone/Shared%20Documents/General/MyDoc1.docx>
148+
>
149+
> :::image type="content" source="media/sharepoint-malware-false-positives-copy-path.png" alt-text="Screenshot of how to copy the path of a file in SharePoint" lightbox="media/sharepoint-malware-false-positives-copy-path.png":::
150+
151+
## More resources
152+
153+
[Manage quarantined messages and files as an admin](/defender-office-365/quarantine-admin-manage-messages-files)
154+
155+
[Built-in virus protection in SharePoint, OneDrive, and Microsoft Teams](/defender-office-365/anti-malware-protection-for-spo-odfb-teams-about)
156+
157+
[Safe Attachments for SharePoint, OneDrive, and Microsoft Teams](/defender-office-365/safe-attachments-for-spo-odfb-teams-about)
158+
159+
[Submit good email attachments to Microsoft](/defender-office-365/submissions-admin#report-good-email-attachments-to-microsoft)

0 commit comments

Comments
 (0)