Data Protection Issues

Do OneDrive and SharePoint Scan Uploaded Files for Viruses?

Camila MilosovichCamila Milosovich Nov 14, 2026 869 views

Question details

Determine whether Microsoft automatically checks uploaded files for viruses in OneDrive for Business, SharePoint Online, and Microsoft 365 Groups.

Do OneDrive and SharePoint Scan Uploaded Files for Viruses?
Product
OneDrive for Business, SharePoint Online, and Microsoft 365 Groups
Device & OS
not provided
Scenario
A user wants to understand virus scanning for files stored in Microsoft 365 cloud services.
Observed behavior
The user wants to know whether uploaded files are scanned and what limitations apply.
Before you start

Confirm that the files are stored in OneDrive for Business or SharePoint Online, rather than a personal OneDrive account or an on-premises SharePoint server. Microsoft 365 Group files are generally stored in the group's SharePoint site.

Solution 1Recommended

Review Microsoft's virus scanning for cloud-stored files

Use this information to understand the built-in scanning that applies to files in SharePoint Online and OneDrive for Business.

Microsoft uses a virus-detection mechanism for files stored in SharePoint Online and OneDrive for Business. Files in a Microsoft 365 Group's SharePoint site are covered by the SharePoint service.

Scanning is not a guarantee that every file is immediately checked or that every threat will be detected. Continue to use endpoint antivirus protection and exercise caution with unfamiliar files.

1
Identify the file location

Open the file's location in OneDrive for Business or the relevant SharePoint site. For a Microsoft 365 Group, open the group's associated SharePoint site and locate its files.

2
Check Microsoft's documentation

Open Microsoft's virus-detection documentation at https://docs.microsoft.com/en-us/office365/securitycompliance/virus-detection-in-spo to review how scanning works and its current limitations.

3
Respond to a warning

If OneDrive or SharePoint displays a virus warning for a file, avoid opening or sharing it and contact your Microsoft 365 administrator for help.

Review Microsoft's virus scanning for cloud-stored files
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move between office suites. It does not replace Microsoft 365's cloud virus scanning.

Open and edit files downloaded from OneDrive or SharePoint after appropriate security checksCompatible with common Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar editing tools help make the transition from Microsoft Office straightforwardFree and lightweight for everyday document work
QA img-9

Frequently Asked Questions

Does OneDrive for Business automatically scan uploaded files?

Microsoft uses virus detection for files stored in OneDrive for Business. Scanning has limitations, so do not assume every file is checked immediately or that every threat will be detected.

Are files shared through a Microsoft 365 Group scanned?

Group files are generally stored in the group's SharePoint site, where SharePoint Online's virus-detection mechanism applies.

Does Microsoft 365 virus scanning replace antivirus software on my device?

No. Cloud scanning has limitations and may not detect every threat. Keep endpoint antivirus protection enabled and use caution when downloading or opening unfamiliar files.

What should I do if SharePoint flags a file as infected?

Do not open or share the flagged file. Contact your Microsoft 365 administrator and follow your organization's security procedures.