To lessen the chances of this type of malware getting installed on your iMac, there is a setting you can change in Safari.
Open Preferences > General
Remove the check mark from the "Open "safe files" after download"
Perhaps Apple will start to ship new machines with that setting already made
Release a Security Update that changes it.
CNET bought a house!
Take a look inside the house where we will be testing connected locks, thermostats and other smart home products so we can tell a complete story.