Together, these data suggest that SARM1-dependent degeneration of neuronal processes limits infection and death of neuronal somas. Here, SARM1 is linked to infection.