Ancient Technology Nanite (Stargate Atlantis SGA)
During the war with the Wraith, the Ancients used nanite technology in an attempt to destroy the Wraith from the inside. They gave the nanites the ability to self-replicate, and installed a code giving them an aggression surpassing that of the Wraith. To protect themselves, the Ancients installed a law into their base code that prevented them from harming anyone with the Ancient Technology Activation gene. However, the nanites instead took human form, becoming the Asurans. The Ancients eventually concluded that the Asurans would never become the weapon they wanted, and tried to destroy them. However, their efforts failed; some of the Asurans survived, and they rebuilt their civilization and attacked the Wraith soon after the Ancients retreated to the Milky Way Galaxy. The Asurans (Replicators) were later destroyed by Dr. Rodney McKay with help from the Wraith and the Travelers.
https://stargate.fandom.com/wiki/Nanite?so=search