BackgroundUterine corpus endometrial carcinoma (UCEC) is a gynecological malignant tumor with high incidence and poor prognosis. Although immunotherapy has brought significant survival benefits to advanced UCEC patients, traditional evaluation indicators cannot accurately identify all potential beneficiaries of immunotherapy. Consequently, it is necessary to construct a new scoring system to predict patient prognosis and responsiveness of immunotherapy.MethodsCIBERSORT combined with weighted gene co-expression network analysis (WGCNA), non-negative matrix factorization (NMF), and random forest algorithms to screen the module associated with CD8+T cells, and key genes related to prognosis were selected out by univariate, least absolute shrinkage and selection operator (LASSO) and multivariate Cox regression analyses to develop the novel immune risk score (NIRS). Kaplan–Meier (K-M) analysis was used to compare the difference of survival between high- and low- NIRS groups. We  also explored the correlations between NIRS, immune infiltration and immunotherapy, and three external validation sets were used to verify the predictive performance of NIRS. Furthermore, clinical subgroup analysis, mutation analysis, differential expression of immune checkpoints, and drug sensitivity analysis were performed to generate individualized treatments for patients with different risk scores. Finally, gene set variation analysis (GSVA) was conducted to explore the biological functions of NIRS, and qRT-PCR was applied to verify the differential expressions of three trait genes at cellular and tissue levels.ResultsAmong the modules clustered by WGCNA, the magenta module was most positively associated with CD8+T cells. Three genes (CTSW, CD3D and CD48) were selected to construct NIRS after multiple screening procedures. NIRS was confirmed as an independent prognostic factor of UCEC, and patients with high NIRS had significantly worse prognosis compared to those with low NIRS. The high NIRS group showed lower levels of infiltrated immune cells, gene mutations, and expression of multiple immune checkpoints, indicating reduced sensitivity to immunotherapy. Three module genes were identified as protective factors positively correlated with the level of CD8+T cells.ConclusionsIn this study, we constructed NIRS as a novel predictive signature of UCEC. NIRS not only differentiates patients with distinct prognoses and immune responsiveness, but also guides their therapeutic regimens.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12935-023-02966-y.