Detecting the Unknown Threats: An Identity-Driven Approach