https://support.microsoft.com/en-us/office/ransomware-detection-and-recovering-your-files-0d90ec50-6bfd-40f4-acc7-b8c12c73637f

Ransomware detection notifies you when your OneDrive files have been attacked and guides you through the process of restoring your files. Ransomware is a type of malicious software (malware) designed to block access to your files until you pay money.

When Microsoft 365 detects a ransomware attack, you'll get a notification on your device and receive an email from Microsoft 365. If you're not a subscriber, your first notification and recovery is free. See available plans.

Click the link in the notification or in the email, or go to the [OneDrive website](<https://go.microsoft.com/fwlink/p/?LinkID=251869>), and we'll walk you through the recovery process, which includes:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/808e2953-9f71-45ae-b6f8-4b0fd68f9504/7d9a7eee-0f81-4bef-8123-da913dad839b.png

Steps to the ransomware detection and recovery process on the OneDrive website

If Microsoft 365 detected a ransomware attack, you see the Signs of ransonware detected screen when you go to the OneDrive website (you might need to sign in first). Select the Get started button to begin.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4aa0fb56-6e7c-443e-852f-abaf5d445d36/d9fb8f21-8e93-45cd-95c2-fba8e6a888c4.png

Step 1: Confirm your files are infected

On the Do these files look right? screen, we'll show you some suspicious files. If they have the wrong name or suffix, or don't look right when you open them from the list, they're likely compromised by ransomware.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e813090c-0346-48be-82ee-875d4f1aa67a/67999060-db33-4e44-b0f3-272dd4538628.png

Select a file to open it in the online viewer. (This won't download the file to your device.)
If you don't see the file, you'll have the option to download it to your device so can open it.
Repeat steps 1 and 2 for as many files as you want to see.
If your files are infected, select **My files are infected** to move to the next step in the ransomware recovery process. Otherwise, if your files look fine and you're confident they aren't infected with ransomware, select **My files are ok**.

If you choose **My files are ok**, you'll exit the ransomware recovery process and you'll go back to using OneDrive as usual.

Step 2: Clean all your devices

On the Clean all your devices screen, you'll see instructions for cleaning all your devices where you use OneDrive. Before you restore your files, it's important to use anivirus software to clean all your devices. Otherwise, your files could get encrypted again when you restore them.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4d46396e-e2d1-49fc-96c6-356b1d52d971/9d6db4e8-e9ac-406e-8fd7-4d2a37197c92.png

Select the link for the version of Windows that you're using and follow the instructions in the article.