Machine Learning for Real-Time Data-Driven Security Practices