A computer virus is a type of malware that can self-replicate. Once introduced into a system, it copies itself into files without an active connection to its original developer.