How to use machine learning and AI in cyber security