ATF3 provides protection from Staphylococcus aureus and Listeria monocytogenes infections.