The results demonstrated that the activation of NF-κB in macrophages was responsible for the high resistance of Samhd1-deficient larvae to STM infection. Here, NFKB1 is linked to infection.