Virus detection in SharePoint Online

Office 365 can help protect your environment from malware by detecting viruses in files that users upload to SharePoint Online. Files are scanned for viruses after they are uploaded. If a file is found to be infected, a property is set so that users can't download or sync the file.

Important: These antivirus capabilities in SharePoint Online are a way to contain viruses. They aren't intended as a single point of defense against malware for your environment. We encourage all customers to assess and implement antimalware protection at various layers and apply best practices for securing your enterprise infrastructure. For more information about strategies and best practices, see Security best practices for Office 365.

What happens when an infected file is uploaded to SharePoint Online?

Office 365 uses a common virus detection engine. The engine runs asynchronously within SharePoint Online, and scans files (under 25 MB) when they are uploaded. When a file is found to contain a virus, it's flagged so that it can't be downloaded again.

Here's what happens:

  1. A user uploads a file to SharePoint Online.

  2. The virus detection engine scans the file.

  3. If a virus is found, the virus engine sets a property on the file indicating that it is infected.

What happens when a user tries to download an infected file by using the browser?

If a file is infected with a virus, users can't download the file from SharePoint Online by using the browser.

Here's what happens:

  1. A user opens a web browser and tries to download an infected file from SharePoint Online.

  2. The user is given a warning that a virus has been detected, and is given the option to download the file and attempt to clean it using their own virus software.

What happens when the OneDrive sync client tries to sync an infected file?

Whether users sync files with the new OneDrive sync client (OneDrive.exe) or the previous OneDrive for Business sync client (Groove.exe), if a file contains a virus, the sync client won't download it. The sync client will display a notification that the file can't be synced.

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×