Urban security and the quality of public spaces are critical issues that significantly impact the livability of urban areas. Without proper security measures, even the most well-designed public spaces can fail to fulfill their intended purpose. This research takes a closer look at the security components within urban spaces, with a specific focus on District 20 of Tehran metropolis. Employing an applied research methodology, this descriptive-analytical study comprehensively evaluates security across four fundamental dimensions: economic, physical, activity, and visual quality. To gauge the level of security within these urban spaces, the research utilizes Pearson's test and path analysis. The findings reveal intriguing insights into the security landscape of the 20th district. Visual quality emerges as the most secure component, achieving a rating of 2.52, while the activity dimension records the lowest average, with a score of 1.65. Furthermore, this study identifies a significant correlation between the economic and physical security components, scoring an impressive 0.688. In light of these results, it becomes evident that addressing security concerns in urban areas is essential for enhancing the quality and safety of public spaces. This research serves as a valuable resource for urban planners and policymakers striving to create more secure and vibrant urban environments in similar contexts.