With the development of mobile communication technology, the species of mobile communication network system including CDMA, LTE, 5G is growing. As a result, network elements play a more and more important role. However, network elements face serious security threats and security risks to fight against increasing cyber attacks. In order to improve the security of network elements, this paper propose a security layered architecture based on components. Security layered architecture based on components divides security module into individual components. It can achieve the effect of high cohesion and low coupling.