Machine learning in attack detection

–#artificialintelligence 

What are the primary issues that machine learning is trying to solve in attack detection?