Larvae of some leaf beetles carry masses of feces covering parts or all of the body, which is called a “fecal shield”. In general, the shield is thought to be a defense structure against natural enemies. However, some studies have suggested that defense effectiveness varies depending on the natural enemy. In the present study, we used a fecal retention leaf beetle Ophrida xanthospilota (Coleoptera: Chrysomelidae), and two local generalist predators (an ant, Camponotus japonicus (Hymenoptera: Formicidae) and a stinkbug, Arma custos (Hemiptera: Pentatomidae)) as a system to test the hypothesis that the fecal shield of O. xanthospilota plays different roles in predation behavior of different predators and can provide multiple chemical communication signals in predator-prey interactions. Prey bioassays showed that the fecal shield of O. xanthospilota larvae repelled the ant C. japonicus while attracting the stinkbug A. custos. The results also strongly demonstrated that hexane extracts of the fecal shield significantly repelled C. japonicus, while dichloromethane extracts did not inhibit ant predation. Interestingly, dichloromethane extracts attracted A. custos, but hexane extracts did not. Therefore, we suggest that the fecal shield is a double-edged sword for the larvae of O. xanthospilota. Our results also indicated that the risk-benefit tradeoff of an insect should be estimated at a community level involving multiple enemies (predators and parasites) and herbivores, rather than in a single prey-predator pair.