The evolution of threat detection