The escalating pace of urbanization and human activities presents formidable challenges to landuse patterns and ecological environments. Achieving a harmonious coexistence between humans and nature of high quality has emerged as a global imperative. Constructing an ecological security pattern has become an essential approach to mitigating the adverse ecological impacts of urban sprawl, safeguarding human well-being, and promoting the healthy development of ecosystems. Focusing on ecosystem sustainability, stability, and integrity, this study constructed the ecological security pattern in rapidly urbanizing areas, emphasizing achieving a well-balanced integration of urban expansion and ecological preservation. Ecological sources were identified by an evaluation system of “ecosystem service function–ecological sensitivity–landscape connectivity”. Resistance surfaces were constructed by integrating natural and human factors. Ecological corridors and nodes were extracted by methods such as the minimum cumulative resistance and gravity models. Taking Nanchang City as an example, the results show that there were 15 ecological sources, primarily woodland, displaying a distinct “island” phenomenon. Additionally, there were 41 ecological corridors with a combined length of 2170.54 km, exhibiting a dense distribution in the southwest and a sparse distribution in the northeast. The city was found to encompass 122 ecological nodes, predominantly situated along the corridors near the ecological sources, indicating a strong spatial aggregation pattern. An optimized ecological security pattern of “one ring, two belts, three zones, and multiple nodes” was proposed for synergizing ecological protection, restoration, and rapid urbanizing.