Hidden Markov models for detecting and predicting sequential network attacks