Article at Quora.com
Outlines a script called rubber ducky that infects a Mac computer and then uploads your documents directory to wherever the script tells it to. They have tested this concept with a couple of scripts and methods.
This means as we have mentioned before, One should be especially careful with plugging in unknown USB drives, as there are no safeguards against this, as the computer thinks this is what you want to perform (i.e. a script to upload files). This particular example shows that Macs are just as vulnerable.