The Foundations of Threat Hunting