https://tech.iprock.com/archives/11339
Link: OS X: Roll Your Own Malware Detection