Network packet analyzer to detect anomalous behavior