Hepatocellular carcinoma is one of the most malignant tumors, and the therapeutic effects of traditional treatments are poor. It is urgent to explore and identify new biomarkers and therapeutic targets to develop novel treatments which are individualized and effective. Three hallmarks, including E2F targets, G2M checkpoint and DNA repair, were collected by GSEA analysis. The panel of E2F-related gene signature consisted of five genes: HN1, KIF4A, CDCA3, CDCA8 and SSRP1. They had various mutation rates ranging from 0.8 to 5% in hepatocellular carcinoma, and patients with gene mutation had poorer prognosis. Among these genes, HN1 has the greatest mutation rate, and SSRP1 has the greatest impact on the model with a B (COX) value of 0.8842. Patients with higher expression of these genes had poorer prognosis. Kaplan-Meier curves in stratified survival analysis confirmed that patients with high risk scores had poor prognosis (p < 0.05). The results of univariate and multivariate COX survival analysis showed that risk score was closely related to the overall survival of patients with hepatocellular carcinoma. For clinical validation, we found that all the genes in the model were upregulated in hepatocellular carcinoma tissues compared to normal liver tissues, which was consistent with the previous results we obtained. Our study demonstrated that a panel of E2F target genes signature including five genes could predict the prognosis of hepatocellular carcinoma. This panel gene signature can facilitate the development of individualized and effective treatment for hepatocellular carcinoma.