How to Protect Family OneDrive Files from a Trojan Infection
Question details
The user needs to secure their family OneDrive account and shared folders to prevent a Trojan or malware infection from spreading across devices.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- A device connected to a shared family OneDrive account is suspected or confirmed to be infected with a Trojan.
- Observed behavior
- Potential risk of malware spreading to other family members' devices through synced and shared files on OneDrive.
Immediately disconnect the suspected infected device from the internet (turn off Wi-Fi or unplug the Ethernet cable) to prevent further syncing of compromised files to the cloud.
Isolate the Device and Stop Sharing Files
Stop the spread of the Trojan by cutting off network access and halting all OneDrive sharing processes.
Stopping OneDrive sharing reduces the risk of spreading infected files to your family members. However, this alone does not clean the compromised device or guarantee that existing files are safe. You must also perform a full system cleanup and verify account security.
Turn off Wi-Fi or unplug the network cable on the infected computer to stop OneDrive from syncing any newly corrupted or malicious files to the cloud.
Using a separate, uninfected device, log into your OneDrive account via a web browser. Right-click the shared family folders, select 'Manage access', and choose 'Stop sharing'.
Run a comprehensive full-system scan using trusted, updated antivirus or anti-malware software on the isolated computer to locate and remove the Trojan.
Once the device is confirmed clean, update your Microsoft account password and any other important passwords that may have been compromised to ensure long-term account security.

Verify Files and Restore OneDrive
Check the integrity of your cloud files and restore them if the Trojan caused file corruption or unauthorized deletions.
Looking for a Secure Office Suite? Try WPS Office
While resolving cloud storage security issues, consider equipping your family with WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, featuring its own secure cloud storage options to keep your documents safe.

Frequently Asked Questions
Will OneDrive automatically remove a Trojan from my files?
OneDrive has built-in security features that scan for known malware when you share or download files, and it may block suspicious accounts. However, it is not a replacement for dedicated antivirus software and may not catch zero-day Trojans.
Can a Trojan spread to other devices through OneDrive?
Yes. If an infected file is synced to OneDrive and shared with family members, opening or downloading that file on another device can trigger the malware, potentially infecting their computers as well.
Are my files safe once I stop sharing them in OneDrive?
Stopping sharing prevents the immediate spread of the infection to other users. However, it does not clean the infected device or guarantee that the files currently on that device are free from malware. A full antivirus scan is required.
How do I know if my OneDrive account is compromised by malware?
Signs of compromise include unexpected file deletions, files being renamed with strange extensions (often a sign of ransomware), or unfamiliar login alerts. Always monitor your Microsoft account's recent activity page for unauthorized access.




