A finalidade do IDS (Intrusion Detection System) é