Page 1 of 1

Can Hazel be used to monitor folders for potential malware?

PostPosted: Wed May 20, 2015 7:10 pm
by boosh
Can Hazel replace OS X's Folder Actions ability to monitor folders and pop-up alerts when a new item is added to the watch folders?

To provide partially protection against malware, I have been using Folder Actions along with the "add - new item alert.scpt" to monitor the following folders in OS X:

/Library/LaunchDaemons
/Library/LaunchAgents
/System/Library/LaunchDaemons
/System/Library/LaunchAgents
/Users/<username>/Library/LaunchAgents

When a new item gets added to one of these folders, Folder Action alerts me with an alert window. The following blog post gives more details:
http://www.macissues.com/2014/05/02/mon ... -your-mac/

Yosemite introduced a Folder Actions bug that basically renders Folder Actions unusable because it causes very excessive CPU use. I've had to disable Folder Actions and now I'm looking for a way to re-create this folder monitoring setup.

Is this something that Hazel can do? Can it be used to watch folders for potential malware without causing excessive CPU usage?

Re: Can Hazel be used to monitor folders for potential malwa

PostPosted: Thu May 21, 2015 11:33 am
by Mr_Noodle
It should be able to. Check the sample rules to get yourself started. If you didn't opt to load them on first launch, you can still load them via the gear/cog pulldown.