Roll Your Own Malware Detection On Mac With Folder Actions

Roll Your Own Malware Detection On Mac With Folder Actions

Mac: Malware isn’t too crazy on Macs, but it’s still out there. If you’d prefer to create your own solution instead of downloading clunky software, blogger Jacob Salmela shows off how to roll your own system using Folder Actions.

Folder Actions is a handy built-in feature of OS X that allows you to run a script when you add an item to a folder. In this case, you can monitor if malware tries to access your Mac’s folders that manage system processes. You’ll want to set up these folder actions in the following folders to monitor for malware:

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

That’s it. When it’s all set up, you’ll get a popup window every time something is added to one of those folders. If you didn’t install something on purpose, chances are it’s malware or at least worth investigating. Head over to Salmela’s site for the full guide. (We’d still suggest proper security software, but this is a handy potential addition.)

OS X: Roll Your Own Malware Detection [Jacob Salmela]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments