Intrusion-prevention system