On the feasibility of adversarial machine learning in malware and network intrusion detection