Malachite green is an aniline dye used for a multitude of purposes. In the microbiology lab it is used in the endospore stain process for the detection of bacterial endospores. Malachite green is toxic to Gram + bacteria and fungi, and is considered a carcinogen to be used with utmost caution.