Nowadays malware is a major threat to the security of cyberactivities. The rapid development of the Internet and theprogressive implementation of the Internet of Things (IoT)increase the security needs of networks. Several maliciousobjects (virus, worm, Trojan horse…) attack users and causesa great variety of damages: not only information resourcesare the targets of the cyber-attacks, humans can also bevulnerable even without being aware (Liu and Zhong, 2017;Ki-Aries and Faily, 2017). Messages with malware can arrivefrom many sources and in a variety of forms. They can besent as an attachment to spam email, embedded in a fileor hidden in a link within the body of a message