Above all, I would like to thank my supervisors, Professor Luís Antunes and João Resende, for their support, guidance, and encouragement to study an important application where two of the most promising fields, cybersecurity and data science, meet. I thank them for their patience, suggestions, and advice throughout this journey, especially in the most difficult and challenging moments.My next thanks go to Patrícia Sousa who has been, alongside with João Resende, a teacher, a friend, and an inspiring and dedicated example always willing to help and to clear my mind when everything seemed impossible. To João and Patrícia, my sincere gratitude.I would also like to thank my colleagues at C3P who have assisted me to fully understand and capture the principals, necessities, and requirements in cybersecurity. They provided crucial insights into a field I have never encountered before. A special word to André Cirne and Simão Silva.Last but not least, I thank my friends and family for all their love and understanding.Their faithful and encouraging support reinforced my confidence and eased my journey.