Research Article

The Application of Baum-Welch Algorithm in Multistep Attack

Algorithm 2

Forward_Algorithm :
Input: (1) alert sequence ;
    (2) hidden Markov model (HMM) .
Output: the probability generated by alert sequence of hidden Markov model.
Begin:
  (1) .
   // is the number of attack intentions.
   calculate the probability of generated by :
  (2) calculate the probability of alert sequence and .
   (a) at time , calculate the probability of alert sequence and : .
   (b) at time , calculate the probability of intent sequence generated by hidden Markov
   model (HMM): and
    : where .
  (3) calculate the probability of the intent sequence generated by hidden Markov
   model (HMM): .
    .
  (4) Return .
End;