Tuesday, May 27, 2014

drag2share: Roll Your Own Malware Detection on Mac with Folder Actions

Source: http://lifehacker.com/roll-your-own-malware-detection-on-mac-with-folder-acti-1582094205

Roll Your Own Malware Detection on Mac with Folder Actions

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 gets into 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 add something on purpose, chances are it's malware or at least worth investigating. Head over to Salmela's site for the full guide.

OS X: Roll Your Own Malware Detection | Jacob Salmela

---
drag2share - drag and drop RSS news items on your email contacts to share (click SEE DEMO)