Intrusion detection is a type of security measure that monitors a network or system for malicious activity or policy violations. Intrusion detection systems (IDS) use a variety of techniques such as signature-based detection, anomaly-based detection, and stateful protocol analysis to identify malicious activity and send alerts to system administrators.