Pistachio is one of the most popular nuts globally (Wu & Xu, 2020) grown in different countries such as Iran, the USA, Turkey, Syria, Italy, and Greece (Catalán et al., 2017). It contains high amounts of phenolic compounds with unique efficiency and high antioxidant potential (Wu et al., 2018). However, this valuable product is very susceptible to rancidity and molds' contamination (Holakouie Naieni et al., 2020).Contamination by storage pests is a significant problem faced with this product. Mold contamination in crops leads to the formation of critical secondary metabolites named mycotoxins, which are secondary metabolites of different fungus including Aspergillus flavus, Aspergillus parasiticus, Aspergillus tamarri, Aspergillus bombycitts, and Aspergillus nomius. These funguses produce different aflatoxins including B1, B2, G1, and G2. The metabolites mentioned above increase the risks of cancer and mutation in humans and animals (Ortega-Beltran et al., 2019).