Worm

A computer worm is a self-contained program (or set of programs) that is able to spread functional copies of itself or its segments to other computer systems.

The propagation usually takes place via network connections or email attachments.