How to Safely Check a Shared OneDrive Link for Malware
Question details
The user wants to know how to verify if a shared OneDrive link and its contents are safe from malware.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- Receiving a shared OneDrive link and needing to ensure the linked files are not malicious before opening them.
- Observed behavior
- Uncertainty about the safety of shared files, as legitimate OneDrive URLs can still host malicious files uploaded by bad actors.
Before clicking any unexpected links, always verify the sender's identity through an alternative communication channel to confirm they actually sent the file.
Safely Inspect and Scan Downloaded OneDrive Files
Use this method to safely handle shared links and utilize your antivirus software to check the file for malware before opening.
OneDrive does not provide a built-in feature to guarantee a shared link is completely free of malware. Because anyone can create a free account and upload files, a legitimate microsoft.com or onedrive.com URL can still point to an infected document.
To protect your system, you must rely on careful inspection and local antivirus scanning.
Hover your mouse cursor over the shared link without clicking it. Look at the bottom-left corner of your browser to ensure the URL points to the official OneDrive domain, but remember this alone does not guarantee the file's safety.
If you trust the sender, click the link to download the file to your local drive. Crucially, do not execute or open the file directly from your browser's download prompt.
Navigate to your Downloads folder, right-click the downloaded file, and select 'Scan with Microsoft Defender' (or use your preferred reputable third-party antivirus software) to check for malware.
If the downloaded file is an Office document (like Word or Excel), open it in Protected View. Do not click 'Enable Editing' or enable macros unless you are absolutely certain the file is secure.

Open and Edit Documents Safely with WPS Office
Looking for a secure, lightweight, and reliable way to handle your daily documents? WPS Office provides a highly compatible and free alternative to Microsoft Office. With robust document viewing features, you can safely read and edit files without compromising your workflow or system performance.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded setup file and follow the simple on-screen instructions to complete the installation.
- 3. Open Files Securely: Launch WPS Office and use it to safely open and edit your downloaded documents, spreadsheets, and presentations.

Frequently Asked Questions
Does OneDrive automatically scan shared files for viruses?
Microsoft performs some basic automated scanning on its servers, but it does not guarantee that every shared file is completely free of malware. You should always scan downloaded files with local antivirus software before opening them.
Can a legitimate OneDrive URL be dangerous?
Yes. Malicious actors often create free Microsoft accounts, upload virus-infected files to their OneDrive, and share the link. While the URL itself is a real Microsoft link, the file it downloads is harmful.
What should I do if I accidentally opened a malicious file from OneDrive?
Immediately disconnect your device from the internet to prevent further data compromise. Run a full system offline scan using Microsoft Defender or your trusted antivirus program, and consider changing your important account passwords.




