Understanding malware behaviour in online social networks and predicting cyber attack