Can Hazel be used to monitor folders for potential malware?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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?
boosh
 
Posts: 2
Joined: Wed May 20, 2015 6:52 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support