Intrusion-detection system