Virtual machines and viruses

MichaelD

Lifer
Jan 16, 2001
31,529
3
76
As the title says, I'm curious if a virus contacted by a VM can be spread to the real host box.

The virus would most likely be contracted via the Ethernet port, which it shares with the real/hardware host. While the VM may have a different IP, the MAC is the same...I'm just opining here...

I'm guessing the answer is yes. Most virii (viruses?) are looking to "call home" or "go somewhere" these days...it's probably not too difficult for it to figure out it's living on another box.

Any links/facts/education you provide is appreciated. Thanks.
 

masteryoda34

Golden Member
Dec 17, 2007
1,399
3
81
Most likely the virus would be contained on the virtual machine unless it spreads over the network.
 

MichaelD

Lifer
Jan 16, 2001
31,529
3
76
Originally posted by: masteryoda34
Most likely the virus would be contained on the virtual machine unless it spreads over the network.

That's what I'd like to think, but here's me thinking as a virus:

"OK, here I am. Infect the root. Check. Disable AV software. Check. Now call home/outside world. MAC=XYZ..." and somehow it figures out it's not a real box.

Call me paranoid, but in our biz, that's a good thing.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
it would also depend on if you have some kind of shared folder support between the VM and host. for the most part, i think it's mostly a matter of network vulnerability though.
 

ViRGE

Elite Member, Moderator Emeritus
Oct 9, 1999
31,516
167
106
There have been some exploits found in VM software before which allowed software to break out. I can recall a couple of security advisories with VMWare in particular where they released patches to fix such things. I'm not immediately aware of anyone actually writing malware to take advantage of it though.
 

MichaelD

Lifer
Jan 16, 2001
31,529
3
76
Thanks, oog and ViRGE; that's good info.

We've got a test/lab environment at work; currently it's all separate physical boxes but we're thinking about virtualizing most of it to save space/electricity. We do a fair amount of "let's throw this on there and see what happens". If one VM did manage to contract something, we wouldn't want it spreading everywhere else.

Thanks for your input.
 

Cogman

Lifer
Sep 19, 2000
10,278
126
106
Possible, yes, likely, no. It requires the virus writer to have some intimate knowledge of the VM software in general. It would be very specific to the setup. (VM running linux would have to have a fairly different virus exploit compared to VM running windows).

Not to mention the fact that VMs go across platforms so it would also have to be able to predict which platform the VM is running on. So, yeah, be safe with your setup, but don't loose any sleep over the possibility of it happen. (it is fairly unlikely, regular viruses alone are really a rare event.).
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Originally posted by: MichaelD
As the title says, I'm curious if a virus contacted by a VM can be spread to the real host box.

The virus would most likely be contracted via the Ethernet port, which it shares with the real/hardware host. While the VM may have a different IP, the MAC is the same...I'm just opining here...

I'm guessing the answer is yes. Most virii (viruses?) are looking to "call home" or "go somewhere" these days...it's probably not too difficult for it to figure out it's living on another box.

Any links/facts/education you provide is appreciated. Thanks.

You don't 'contract' a virus, its simply running code. There have been guest to host exploits which would allow attacker in a vm to attack the host. That said, they have been rare (so far) and fixed fairly quickly. In theory, a guest can not infect a properly setup host without such exploits.
 

RebateMonger

Elite Member
Dec 24, 2005
11,588
0
0
I haven't heard of any real-life exploits, although there've been some proof-of-concept stuff over the past couple of years. Seems like a lot of work when there's so many easy-pickin's with folks running XP as Local Administrators.
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
As others have already said, the primary risk comes from having an infected machine on the same network (whether that machine is virtual or not doesn't matter), and possibly though sharing of files. It is definitely possible for malicious code in the VM to affect the host -- but a virus writer would have to do something rather special for that case and it would be a small payout for much effort.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Unless it's an inside job like 80% of the hackers.

And those usually have nothing to do with viruses. They're almost always stolen passwords, leaked documents, etc.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |