Machine Learning Assisted Security Analysis of 5G-Network-Connected Systems