These findings suggest that BRAF, EIF1 AX, KRAS, PIK3 CA, and TERT genes are critical in modulating the immune microenvironment of thyroid cancer cells, potentially influencing immune response and tumor progression. Here, KRAS is linked to thyroid gland carcinoma.