A worm is a destructive program that replicates itself throughout disk and memory, using up the computer's resources and eventually taking the system down.  It can move through a network and deposit information at each node for diagnostic purposes or causes idle computers to share some of the processing workload.