A worm is a standalone malware program that replicates itself to spread to other computers. Unlike viruses, worms do not need to attach themselves to an existing program. They can consume significant system resources, including disk space and memory, as they self-replicate and spread.