The lipid composition of a cell membrane modulates the interaction of an antiparasitic peptide at the air-water interface.