Understanding cyber attacks, how to avoid it