How are computer system infections produced?

How are computer system infections produced?

Computer viruses are developed by individuals who want to cause harm to others, or who desire to gain control over someone else's computer.  https://islamhood.org/?p=1098 Once the infection is running, it can do anything its creator desires it to, including deleting files, taking data, or sending out spam.