When attacked, it defends itself by closing the lid of its shell. It can spit a sticky, poisonous liquid.