A computer worm is a type of malware that, once it infects a machine, can automatically copy and extend itself to connected devices.
It's incredibly rare for an iPhone to catch a virus, but not impossible. Here's how to diagnose and remove any existent virus ...