OneDrive (1TB) came as a feature of a home Microsoft 365 subscription, that was offered to our firm at a discount. This is probably third year that I subscribe to Microsoft 365 and over that time I found OneDrive quite handy, and I developed a method to organize my data that fit what I needed.
I use a MacBook Pro, with an internal hard drive, let's call it MacHD, and a fast external drive, which I'll call ExternalHD. The root of OneDrive is a directory in the external drive: /ExternalHD/OneDrive. Currently:
ExternalDH capacity = 2 TB, with ~1.3 TB being used
OneDive service = 1 TB, with ~ 800 GB being used
All data under /ExternalHD/OneDrive is accessible through the external drive, of course.There is a subtree of the directories that I also keep locally. Files outside that 'local' subtree are stored only on the cloud. Files that are not under directoty /ExternalHD/OneDrive are local only. So there are 500 GB on both local and cloud drives, and 300 GB cloud only.
That worked without a glitch for more than two years. Until last night... I was working with some files in the ExternalHD, and I noticed that directory OneDrive had been replaced with a sym link, and all files under it were nowhere to be found, not even in the Trash file. The OneDrive icon was indicating that it was transferring files. Looking at the location that the sym link was pointing, I figured what was happening:
OneDrive was tranferrng itself from the extrernal hard drive to the main internal drive in a hidden directory /home/Library/CloudStorage/OneDrive-Personal. I did not start this process; I was not asked or at least notified.
To achieve that:
- It permanently deleted 500 GB of data that was stored locally, in the external drive
- It used my internet connection to download 500 GB of data from the cloud to the Mac internal drive. 500 GB over a home internet connection.
- It wrote 500 GB of data in my machine's internal drive. There was no action on my end to trigger this, it literally happened out of the blue. As a service OneDrive should not even know about the intrernal drive, as I never linked data from the internal drive witn the app.
Each of the highlighted actions can be classified as a malicous attack. Apart from viruses and malware, this was the first time since 1984 that I got my first PC that I see software literally attacking the users' equipment, and todo so at random without any involvement from or any warning to the user.
I marked the post as a question. An honest and specific explanation on the trigger of this behavior would be appreciated. The insident could have resulted in data loss, corrupt internal drive (if it had less than 500 GB free space), or suspension of internet service (500 GB download does raise flags with the ISP).