An Analysis of Android Malware and IoT Attack Detection with Machine Learning