Intrusion Detection and Prevention Done Right