Machine Learning And Probabilistic Methods For Network Security Assessment