Intrusion detection and intrusion prevention