Can computer viruses form randomly from computer code?

Thanks. So neural networks are hardware, not software?

They are virtual hardware. Think of it as a software simulation of a wetware system, a simplified model of its biological counterpart, instead of using neurons made of meat.

Think of them as mathematical mapping tables, you can do them with pencil and paper if you want (it’s just function approximation, meaning the mapping between the input we are interested in and the output or answer is a real life function, and the neural network can be trained/adjusted to closely approximate that real life function).

The network takes input numbers, combines them in various ways using various weighting factors and calcs and produces a set of output numbers. Initially it’s kind of random, but then you supply numbers as input where you know what the output should be and then adjust the internal weights/calcs until it gets the right answer. Lather, rinse, repeat. Then, after it’s been trained, when you supply it new numbers that you never trained it on, it will perform the same calcs with the same weights that were trained and arrive at a pretty good answer because the internal calcs are modeling the function you trained it on.

For example, let’s pretend you wanted to create a system that attempts to determine if you are hungry. There is probably a function that maps from a couple input points to a result:
Input:
1 - How long since last meal (in hours)
2 - Size of last meal (scale of 1 to 10)

Output:
Hungry or not on scale of 1 to 10

A neural network would take the input values (just numbers), combine the numbers in different ways using different weights (e.g. time since last meal * .5 plus Last meal size * .2) and spit out a number between 1 and 10. If the number is wrong (e.g. I rate my hunger as a 9 when last meal was > 8 hours ago, but system said 3, so we need to bump up the “.5” weight that we used to something like “.75” and try again).

After it’s been trained, if you provide input that you didn’t train it on (e.g. 3 hours since last meal and size of last meal was an 8), the system will perform basically proportional calcs and find an answer close to one that it was trained on, answer might be 4 even though closest training was a 3 or a 5.

For random bits of coding to interact in a unique and interesting way requires one of two things:
1 - It’s not doing what the programmer wanted (but you ruled this one out)
2 - It is doing what the programmer wanted, meaning something like genetic programming or other auto-generated/transformed methods - but that is intentional, not really just random bits interacting

Because you ruled out bugs you also ruled out the most likely mechanism to accomplish what you describe. If you allow for bugs then that’s a whole different story.

There is no such thing as impossible , its just exceptionally improbable. 1 in a googol^ googol ^googol improbable.

The comparison to DNA/RNA … well the atoms , and then molecules, line up electrically like magnets line up NS NS NS NS NS .

There’s no such underlying reason for order to be promoted over randomness in the random creation of computer software …
What there is a chance of , is an unintentional escape. Antivirus signature files are passed around, right ? Well if the signature file has complete virus entered , which might happen if the antivirus signature people made a mistake and set the “signature” as being the complete virus, eg added a single digit… They meant to put bytes “1 to 10000”, but put “1 to 100000”, by making it 10 times larger, they put a complete virus into the signature file … now all that has to happen is that a corruption of a computer of the target cpu and OS, that has some fault perhaps in the anvirus software, perhaps in hardware, that caused it to act a bit random … which can be either that

  • the data was put into memory allocated to the program being run,

  • or that the program being run got a jump/branch/subroutine call , and for some reason, eg mathematical overflow, bad bit of hardware… , and the jump was to the virus at a spot which was a good start point to run the virus…

But it takes two faults. The virus people call them SIGNATURE files because they only need some few bytes to be sure they identified the virus. Whats happenned in the past is that they have accidently caused FALSE DETECTION of the virus by using a signature that was detecting program code that has stolen out of a legitimate program.

I now know more then I did before-Thank you.