Brain worms were a species of parasitic worm from the planet Geonosis which were capable of entering the body of a host and taking control of it and had the potential to control entire societies. During the Clone Wars between the Galactic Republic and the Confederacy of Independent Systems, the Geonosian Queen Karina the Great used brain worms to control a host of undead Geonosians.
After Republic forces defeated Karina and her minions, a brain worm managed to infect the clone trooper Scythe and used him to infect a number of other clones in Tango Company as well as the Jedi Padawan Barriss Offee onboard the Republic medical frigate TB-73. Jedi Padawan Ahsoka Tano was able to prevent the infection from spreading further by using extremely low temperatures to combat the worms, saving Offee and most of the troopers.
The brain worms tend to control the minds of their hosts through the biologically archived memory of the Geonosian queens that used them for certain purposes. Even when the enthraller was dead they could continue to control living beings independently, being able to act as extensions of deceased Geonosian queens. Further, infection granted their hosts the ability to speak Geonosian hive-mind. The brainwashing trance of the brain worms was so powerful that it could control the corpses of different beings turning them into lifeless zombies, like when the self-proclaimed queen of Geonosis Karina the Great created an army of zombie Geonosians during the Clone Wars to serve her in her room. The worms were extremely vulnerable to cold temperatures, which was used by Ahsoka to kill the worms onboard TB-73.