In the present study, we identified a hub module of immune-related genes (IRGs) related to CD8+ T cell infiltration level in HCC, and a risk signature based on genes of the hub module was constructed and validated by bioinformatics analysis. Here, CD8A is linked to hepatocellular carcinoma.