Abdominal aortic aneurysm (AAA) is a condition characterized by a pathological and progressive dilatation of the infrarenal abdominal aorta. The exploration of AAA feature genes is crucial for enhancing the prognosis of AAA patients. Microarray datasets of AAA were downloaded from the Gene Expression Omnibus database. A total of 43 upregulated differentially expressed genes (DEGs) and 32 downregulated DEGs were obtained. Function, pathway, disease, and gene set enrichment analyses were performed, in which enrichments were related to inflammation and immune response. AHR, APLNR, ITGA10 and NR2F6 were defined as feature genes via machine learning algorithms and a validation cohort, which indicated high diagnostic abilities by the receiver operating characteristic curves. The cell-type identification by estimating relative subsets of RNA transcripts (CIBERSORT) method was used to quantify the proportions of immune infiltration in samples of AAA and normal tissues. We have predicted AHR, APLNR, ITGA10 and NR2F6 as feature genes of AAA. CD8 + T cells and M2 macrophages correlated with these genes may be involved in the development of AAA, which have the potential to be developed as risk predictors and immune interventions.© 2024. The Author(s).