We identified 6 necroptosis-related hub genes in NASH, namely CASP1, GLUL, PYCARD, IL33, SHARPIN, and IRF9, and they can diagnose NASH reasonably. This evidence concerns the gene IRF9 and metabolic dysfunction-associated steatohepatitis.