We deduced three prognostic genes (YBX1, MED8, and KPNA2), demonstrating a strong diagnostic capability in both NASH and HCC. This evidence concerns the gene MED8 and metabolic dysfunction-associated steatohepatitis.