Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > sandboxing & virtualization
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old May 28th, 2012, 09:49 PM
Gullible Jones
 
Posts: n/a
Default Full virtualization security vs. rootkits

How many currently known rootkits are capable of breaking through a virtual machine into the host OS, in a Windows host/Windows guest setup?

Also, how does the security of different full virtualization solutions compare?

How about emulators like QEMU (given a fast enough host computer of course)?
  #2  
Old May 28th, 2012, 09:55 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,519
Default Re: Full virtualization security vs. rootkits

I don't think there are any rootkits that attempt to break out of a VM. VMs are usually used for analysis, not defense.

I don't think virtualization is really great security. Yes, it's another "hurdle" for malware to get through but:
1) If you do work in the VM the malware can at the very least hijack your session
2) They're more like emulators than sandboxes. They're a weird fusion of the too.

I'd stick to Windows MIAC and Linux Apparmor for sandboxing.
__________________
  #3  
Old May 28th, 2012, 10:09 PM
Gullible Jones
 
Posts: n/a
Default Re: Full virtualization security vs. rootkits

Analysis was what I was thinking of, actually. I'm not there yet, but I might get there some day.

From the sound of it though, a better choice for analysis might be a full emulator? Or is this the sort of thing that's done on a dedicated machine behind a strong firewall?

(Or perhaps on a VM on a dedicated machine behind a firewall?)
  #4  
Old May 28th, 2012, 10:12 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,519
Default Re: Full virtualization security vs. rootkits

It's all emulation. VMWare/Virtualbox aren't ideal for malware analysis necessarily but they're probably fine.

Just do it on Linux. I've posted Virtualbox apparmor profiles. Even if they break out they're still stuck.

There was some program that had an animal for a mascot or something like that. It was made to be a sandbox for malware to run in for proper analysis and it included logging features etc. Can't remember it =\ if I think of it I'll get back to you.
__________________
  #5  
Old May 28th, 2012, 10:26 PM
Gullible Jones
 
Posts: n/a
Default Re: Full virtualization security vs. rootkits

Thanks, kind of figured as much. Didn't know you could run VBox under AppArmor though, I thought the vboxdrv kernel driver would nullify any protection from that?

For what it's worth, I've already done some messing with malware samples from spam under VirtualBox (Linux host), but without any additional isolation. Probably a bad idea in retrospect, thought it would take a damn sophisticated trojan to run effectively on both Windows and Linux. But I guess one cannot be too paranoid when dealing with this stuff.
  #6  
Old May 28th, 2012, 10:47 PM
mirimir mirimir is online now
Very Frequent Poster
 
Join Date: Oct 2011
Posts: 1,570
Default Re: Full virtualization security vs. rootkits

Quote:
Originally Posted by Gullible Jones
(Or perhaps on a VM on a dedicated machine behind a firewall?)
Yes, with no Internet access (or, at least, not with your IP address)
  #7  
Old May 28th, 2012, 11:00 PM
Gullible Jones
 
Posts: n/a
Default Re: Full virtualization security vs. rootkits

Ugh, good point. The IP is problematic. Especially if you want to find out where it's sending data.
  #8  
Old May 29th, 2012, 01:15 AM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,519
Default Re: Full virtualization security vs. rootkits

Quote:
I thought the vboxdrv kernel driver would nullify any protection from that?
I haven't looked at the profile in weeks but I didn't see any massive holes. Apparmor is built into the kernel therefor it can restrict programs that run as root/ kernel.
__________________
  #9  
Old May 29th, 2012, 06:00 AM
Nebulus's Avatar
Nebulus Nebulus is offline
Frequent Poster
 
Join Date: Jan 2007
Posts: 845
Default Re: Full virtualization security vs. rootkits

Quote:
Originally Posted by Hungry Man
I don't think there are any rootkits that attempt to break out of a VM. VMs are usually used for analysis, not defense.
True, rootkits may try to detect if they run inside a VM in order to foil any attempt to analyse them. There is no real point in breaking out of VMs (at least not yet )

Quote:
Originally Posted by Hungry Man
I don't think virtualization is really great security. Yes, it's another "hurdle" for malware to get through [...]
I disagree. VMs are great for security, but as for any other security solution, they are not enough. The way they are used for that purpose is very important. For instance, running a browsing session inside a VM and getting infected with a keylogger can be a problem if you enter your bank details or any passwords in the SAME session. But if you close it, restore the session from a snapshot and then do some banking, it is perfectly safe. Of course, you can achieve this using a sandboxing solution, but I was trying to point out that it is important to use any security solution in a proper way.
As for protecting your host, I personally find that using a VM is a good option.
  #10  
Old May 29th, 2012, 06:19 AM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,519
Default Re: Full virtualization security vs. rootkits

Yeah, the real "saving grace" of a VM is that it's restored to a "safe" point.

It can be used for security. My point is only that it isn't really so much a sandbox as it is a completely separate system.
__________________
  #11  
Old May 29th, 2012, 01:24 PM
kjdemuth's Avatar
kjdemuth kjdemuth is offline
Very Frequent Poster
 
Join Date: Jul 2005
Location: Boston, MA
Posts: 2,387
Default Re: Full virtualization security vs. rootkits

That's why when I test out malware, I do it in VM with the host running in shadow mode. A VM aware piece of malware might get through VM but the chances of it making it past shadow mode are slim to none. Not to say that there aren't malware that can get past both but I haven't seen any yet. That's why backups are made.
__________________
Realtime:
WSA AV (Maxed Settings), Sandboxie Paid ( Dropmyrights and Browsers sandboxed) Lifetime license, NVT EXE Radar Pro (Lockdown mode). K9 Web protection. (malware, phishing and HTTPS force) Norton DNS.
On-Demand:
MBAM+EAM
Hitman pro (Scans daily)
  #12  
Old May 30th, 2012, 11:13 PM
andyman35 andyman35 is offline
Very Frequent Poster
 
Join Date: Nov 2007
Posts: 2,288
Default Re: Full virtualization security vs. rootkits

Quote:
Originally Posted by kjdemuth
That's why when I test out malware, I do it in VM with the host running in shadow mode. A VM aware piece of malware might get through VM but the chances of it making it past shadow mode are slim to none. Not to say that there aren't malware that can get past both but I haven't seen any yet. That's why backups are made.
I doubt that any such malware exists,even though it's probably possible to do so.There'd certainly be no commercial value in producing such malware,since the type of people that run dubious stuff in VMs typically operate a high security policy on the host.Far easier to just target the many click-happy folks out there that allow the malware onto their systems without the necessity for malware authors to jump through many technical hoops.
 

Wilders Security Forums > Software, Hardware and General Services > sandboxing & virtualization « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:55 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums