Thanks for sharing this awesome forum post on how you got infected. It is sad that you lost most of your data on your D:\ drive, but I have a few tips to keep yourself from allowing an infected machine to spread its virus to your computer!
Here I go:
1. Never, ever allow an infected machine to make contacts with the internet (unplug your host machine's ethernet wire/LAN cable or disable the internet via the Network tab in settings.).
1a. If your host machine becomes infected, do the same thing and disable internet.
2. Make sure all shared-folders are read only, or properly deleted.
3. While testing, do not plug-in any removable drive or disk drive.
4. If you are testing on a physical machine, repeat the same steps.
I hope it helped!
If not, call me (reply to this comment).