Green mold of Pleurotus ostreatus, caused by Trichoderma species, has recently resulted in crop losses worldwide. Therefore, there is an emerging need for rapid means of diagnosing the causal agents. A PCR assay was developed for rapid detection of Trichoderma pleurotum and Trichoderma pleuroticola, the two pathogens causing green mold of P. ostreatus. Three oligonucleotide primers were designed for identifying these species in a multiplex PCR assay based on DNA sequences within the fourth and fifth introns in the translation elongation factor 1alpha gene. The primers detected the presence of T. pleurotum and/or T. pleuroticola directly in the growing substrates of oyster mushrooms, without the need for isolating the pathogens. The assay was used to assess the presence of the two species in natural environments in which P. ostreatus can be found in Hungary, and demonstrated that T. pleuroticola was present in the growing substrates and on the surface of the basidiomes of wild oyster mushrooms. Other Trichoderma species detected in these substrates and habitats were Trichoderma harzianum, Trichoderma longibrachiatum and Trichoderma atroviride. Trichoderma pleurotum was not found in any of the samples from the forested areas tested in this study.