The upregulation of APAF1, TP53, and CDKN2C facilitates pathogen elimination by enhancing apoptosis and optimizing immune responses, whereas BIRC6 protects against excessive cell death, thereby preserving immune homeostasis during infection. Here, TP53 is linked to infection.