At present the awareness model of network security situation can only analysis the network security situation of past or current time. The lack of research on this field will affect the security of network. A method based on Kalman algorithm is proposed in this paper, which can forecast the network security situation by using the current and past security situation values. The simulation results show that the proposed algorithm can not only reflect the overall trend of network security situation but also forecast the trend of value effectively. Compared with the traditional GM(1,1), the method has a more predictive value; Compared with RBF algorithm, the method is more applicable to the real network environment.