This paper proposed a Hierarchical Topology Security Assessment Profile (HTSAP), and based on that designed a security assessment in the process of risk factors for weight algorithm. This algorithm improved the traditional AHP by the introduction of the concept of entropy weight method and correction. In the process of practical application its calculation result is more reasonable, and lays a good foundation for the network security situation assessment.