Social security is an important part of the national security system from the perspective of the overall security concept, and social security is an important influencing factor of social security. Using the CFPS2018 data, this study uses the critical weight method to measure residents' individual security and uses path analysis to empirically study the impact of endowment insurance and medical insurance on residents' security in urban and rural areas. The results show that the depth of endowment insurance has a significant positive impact on t...