These findings reveal an infection-specific host response to S. aureus, identify HLH-30/TFEB as its main regulator, reveal FMOs as important innate immunity effectors in animals, and identify the mechanism of FMO regulation through NHR-49/PPAR-α during S. aureus infection, with implications for host defense and inflammation in higher organisms. Here, TFEB is linked to infection.