Somewhat similar to https://en.wikipedia.org/wiki/Grey_goo
"Grey goo (also spelled gray goo) is a hypothetical end-of-the-world scenario involving molecular nanotechnology in which out-of-control self-replicating robots consume all biomass on Earth while building more of themselves,[1][2] a scenario that has been called ecophagy ("eating the environment", more literally "eating the habitation").[3] The original idea assumed machines were designed to have this capability, while popularizations have assumed that machines might somehow gain this capability by accident."