This is a parasite from the nematoda family, it infects the mantis through either eating a bug that already had eggs from this parasite in them, or the eggs themselves. They can eat the mantis anywhere from one week to three months, and during the end of this time the parasite forced the mantis near water to drink, so it could slip out and spread out its eggs.