Eli5 – How are computer viruses created without destroying the creator’s computer first?

2.41K views

I’ve always wondered how computer viruses are made. If someone creates a virus on their own computer, wouldn’t it infect and potentially destroy their system first before it’s spread to others?

In: 249

53 Answers

Anonymous 0 Comments

Virus is like a car
As long as i didnt activate it, i still be able to modify, resize, change part of said car
I could put the car on a test drive, a fake rail road that just to see if the car is functioning properly

Car = virus
Test drive = virtual computer (app that act like their own computer)

Anonymous 0 Comments

Virus is like a car
As long as i didnt activate it, i still be able to modify, resize, change part of said car
I could put the car on a test drive, a fake rail road that just to see if the car is functioning properly

Car = virus
Test drive = virtual computer (app that act like their own computer)

Anonymous 0 Comments

1. Permissions. If the virus may not do damage, it can’t – unless it exploits a vulnerability.
2. Triggers. If there is something that prevents the damage to happen, it doesn’t happen. E.g. the Morris worm (RFC1135) would have needed a trigger
3. Using a separate device for development (VM or hardware). Virus or kernel driver: Don’t do that on the same machine you need tomorrow to file taxes. Also don’t be connected to the internet.
4. Having a way to undo the damage.

Anonymous 0 Comments

1. Permissions. If the virus may not do damage, it can’t – unless it exploits a vulnerability.
2. Triggers. If there is something that prevents the damage to happen, it doesn’t happen. E.g. the Morris worm (RFC1135) would have needed a trigger
3. Using a separate device for development (VM or hardware). Virus or kernel driver: Don’t do that on the same machine you need tomorrow to file taxes. Also don’t be connected to the internet.
4. Having a way to undo the damage.

Anonymous 0 Comments

You can for example ask your virus to remain inactive if it finds a file *donotmessthiscomputer*, which you make sure to have on your disk.

When the virus doesn’t find this file, then it kicks into action.

Anonymous 0 Comments

You can for example ask your virus to remain inactive if it finds a file *donotmessthiscomputer*, which you make sure to have on your disk.

When the virus doesn’t find this file, then it kicks into action.

Anonymous 0 Comments

The viruses could harm the creator’s computer if they didn’t program it very well. The viruses are typically designed to run at a certain moment and the programmer would know how to avoid the virus from running on their computer. But an amateur programmer could do bad programming and have it run on their computer, it’s happened many times I can guarantee it.

Anonymous 0 Comments

The viruses could harm the creator’s computer if they didn’t program it very well. The viruses are typically designed to run at a certain moment and the programmer would know how to avoid the virus from running on their computer. But an amateur programmer could do bad programming and have it run on their computer, it’s happened many times I can guarantee it.

Anonymous 0 Comments

Many viruses require negligence on the part of the user to work, often by mistaking it as something else. So, the virus creator obviously won’t be as susceptible to this mistake, but even then, as others have mentioned, you can “trick” the virus by using a virtual machine, kinda like a pocket universe for the virus that you can manipulate at will so the virus can’t really break out of it to do any harm to the actual computer.

Anonymous 0 Comments

Many viruses require negligence on the part of the user to work, often by mistaking it as something else. So, the virus creator obviously won’t be as susceptible to this mistake, but even then, as others have mentioned, you can “trick” the virus by using a virtual machine, kinda like a pocket universe for the virus that you can manipulate at will so the virus can’t really break out of it to do any harm to the actual computer.