A computer worm is a type of malicious software that can replicate itself and spread independently from one computer to another. Unlike viruses, worms do not require a host file to attach themselves to. They can operate as standalone programs and spread through various means, including networks and the internet.