This study aims to assess the effectiveness of Short Stature Homeobox 2 (SHOX2) and RAS Association Domain Family 1 Isoform A (RASSF1A) gene methylation detection in residual liquid-based cytology (LBC) materials from Endobronchial Ultrasound-Guided Transbronchial Needle Aspiration (EBUS-TBNA) and investigate the diagnostic accuracy of a comprehensive diagnostic approach. Between June 2022 and May 2023, a total of 110 cases that underwent EBUS-TBNA were enrolled in the study. SHOX2 and RASSF1A genes methylation detection using the residual cytological material, LBC, and cell block (CB) were conducted for each EBUS-TBNA case. The sensitivity and specificity of cytology, CB histopathology, SHOX2, and RASSF1A methylation in diagnosing EBUS-TBNA samples were determined based on follow-up data. Among the 72 cases confirmed as pulmonary carcinomas, the methylation test yielded positive results in 24 adenocarcinoma cases, 10 squamous cell carcinoma cases, and 14 small cell carcinoma cases. The sensitivity of the comprehensive diagnosis (combining LBC, CB, and methylation detection) in distinguishing metastatic pulmonary epithelial malignancies in mediastinal and hilar lymph nodes or masses from benign lesions was higher (97.22%, 70/72) than that of morphological diagnosis alone (LBC and CB) (88.89%, 64/72; P < 0.05). SHOX2 and RASSF1A methylation detection demonstrates a high sensitivity and negative predictive value in the identification of pulmonary epithelial malignancies and holds promise as a valuable ancillary approach to enhance morphological diagnosis of EBUS-TBNA.