To enhance urban governance and bolster community disaster resilience, it is urgent to innovate and develop an urban community security system to cope with the complex and volatile social security situation. From the perspective of resilience, the concept, layout, and structure of the security system are organized. Considering the current situation and development trend of the social security system, and based on the constructed cost-capability model, the cost and benefit of the two modes are analyzed and compared. Subsequently, from the perspective of multi-agent participation, a game model between governments and enterprises is constructed. The evolutionary stability strategies of enterprises are analyzed, and simulation analysis is conducted on the factors influencing enterprises. Finally, to propose targeted improvement measures based on the community security capabilities of different communities, a grey fuzzy comprehensive evaluation method is employed. The community security comprehensive capabilities of the top 10 cities in China are quantitatively analyzed and evaluated. The results indicate that the urban community security system from a resilience perspective is more comprehensive compared to the traditional security system. Adopting mode 2 is relatively effective to improving government emergency management capability. In a certain range, reducing C, increasing F, reducing R2, and increasing h can achieve the effect of promoting enterprise to participate in construction. The urban community security capability is within the upper-medium level in general, close to the level of good. The urban community security system constructed in this paper can provide a theoretical basis for the government to formulate policies of the urban community security system and serve as a reference for strengthening the comprehensive capability of the urban community security.