The present disclosure provides a modified cecropin protein comprising a cecropin or a variant thereof fused to a hydrophilic tail lacking a C-terminal glycine. The present disclosure also provides pharmaceutical compositions, methods and uses of the modified cecropin protein or nucleic acid for treating or preventing endoparasites, such as Plasmodium, and bacteria.