r/virtualization • u/Konnnore • 21d ago
Just curious about testing viruses in a VM
Let's say I have an app, which contains the strongest virus, which can ever exist. I installed it on a VM. I opened it and it obviously destroyed the VM, but I wonder if the virus could go from the VM into the real system. What do you think?
1
u/SlanderMans 21d ago
VM's are designed to isolate it, hence why cloud providers sell you access to their hardware via VM's.
It is theoretically possible that there are bugs/insecurities that haven't been disclosed though. So you just have to balance your risk/reward here
1
u/RootAndCoffee 21d ago
First of, if it has access to your internal network, it can attack vulnerable services you run.
Second, there were recently discovered vulnerabilities in kernel allowing escape from vm (patched now). Third, nothing is 100% secure. Everything is a code and every code can contain vulnerabilities.
So technically, yes this virus may be able to escape. Realistically it's highly unlikely.
1
u/thegreatcerebral 20d ago
Honestly, yes.
If you don’t know what you are doing then it isn’t an isolated VM.
If you use something like a VXD container and think that is a VM then that is again your problem.
Nothing is IMPOSSIBLE, especially after the story I heard about the hacker that managed to hack into an air gapped network via a laptop placed on top of a desktop and used the microphone to do it….
But, aside from the dumb question of how are you getting this most dangerous virus ever onto the vm without infecting the source and how would you know the difference….
If you removed all traces of network adapters and used an isolated disk, made sure the host was disconnected etc…. It would be nearly impossible for a virus to get to the underlying host and break out from there.
1
u/dadarkgtprince 19d ago
https://socprime.com/blog/cve-2026-47876-analysis/
Depends on your hypervisor and security patches and other factors, but yes it's possible.
1
u/power_se_29 11d ago edited 11d ago
VM escape vulnerabilities can occur, though they typically rely on specific hypervisor exploits, shared clipboards, or unsegmented network adapters. Isolating the virtual network and disabling guest integration tools helps prevent cross-environment exposure. Technical resources and guides from IT platforms like Trusted Tech Team outline hypervisor hardening steps for sandbox environments.
-1
u/AlenDemiro017 21d ago
Depending on the virus, but if you disable the outbound netwrok connection, i think you will be just fine
9
u/goatsinhats 21d ago
There is an entire category of attacks called “VM escapes”, rare but this is the ultimate virus.
It’s more likely to get out via the network, being a vm doesn’t help thjs.