Network intrusion-detection system