The expressions of antimicrobial peptides (AMPs) in the larvae of the black soldier fly, Hermetia illucens, were significantly increased by pathogen or stimulant induced innate immunity activation. We immunized H. illucens fifth instar larvae with five different Lactobacillus species, that is, Lactobacillus acidophilus, L. brevis, L. casei, L. fermentum, or L. delbrueckii, to induce the mass production of AMPs and selected optimal immune inducers. Antimicrobial activities in hemolymph and H. illucens larvae (HIL) extract were evaluated against three salmonella species (Salmonella pullorum, Salmonella typhimurium, and Salmonella enteritidis). Highest antimicrobial activity was shown by the hemolymph of HIL immunized by L. casei and its activity was closely linked with the inductions of cecropin 1 (HiCec1) and defensin 1 (HiDef1) gene expressions. Furthermore, antimicrobial activity in hemolymph was stable to heat and pH and the growth of three Salmonella species were dramatically suppressed by HIL hemolymph and extract after immunization with L. casei. The minimal inhibitory concentration (MICs) of L. casei-immunized HIL extract against Staphylococcus aureus, Escherichia coli, and Salmonella species ranged from 100~200 µg/100 µL and no cytotoxicity to CaCo-2 and L929 cells were observed in the concentration range 100~40,000 µg/100 µL. Taken together, the present investigation demonstrates that L. casei-immunized HIL extract is a powerful natural antibiotic and preservative that can prevent contamination by Salmonella species.