Certain bacteria, fungi and algae are able to produce cyanides. Cyanides are also found in certain foods or plants, such as cassava. The cyanides serve as a defense against being eaten by herbivores. 