Welcome, Guest. Please login or register.
September 06, 2008, 05:40:51 PM

Login with username, password and session length

189141 Posts
22038 Topics
52852 Members

Latest Member: maden

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Learn about Computer Security and Interact with Security Experts
| |-+  Anti Virus/Malware Products/Other Security products
| | |-+  Signature detection of virtual machine detection code
« previous next »
Pages: [1] Go Down Print
Author Topic: Signature detection of virtual machine detection code  (Read 864 times)
MrBrian
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 326


« on: April 12, 2008, 06:29:17 PM »

A nontrivial portion of today's malware apparently includes code that detects the presence of virtual machines and changes behavior accordingly. Thus, it would seem that a good way to spot malware would be to detect virtual machine detection code via signature. Does anybody know of any software that detects the presence of virtual machine detection code? Preferably this signature detection would take place in code that is already active, after any packers, encrypters, etc have finished their task. I know of one thus far - SysAnalyzer (http://labs.idefense.com/software/malcode.php). Does anybody know of any other such software?
Logged
Info-Sec
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 548



« Reply #1 on: April 16, 2008, 07:46:43 PM »

A nontrivial portion of today's malware apparently includes code that detects the presence of virtual machines and changes behavior accordingly. Thus, it would seem that a good way to spot malware would be to detect virtual machine detection code via signature. Does anybody know of any software that detects the presence of virtual machine detection code? Preferably this signature detection would take place in code that is already active, after any packers, encrypters, etc have finished their task. I know of one thus far - SysAnalyzer (http://labs.idefense.com/software/malcode.php). Does anybody know of any other such software?

What do you mean the malware changes its behavior?  It detects the virtual machine, and then what?  Its in a virtual machine, quite harmless.
Logged

*Vista *CFP V3 *Avira * Avast *Spyware Doctor
*XP *Zone Alarm PRO *NOD32 V2.7 *Spysweeper
MrBrian
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 326


« Reply #2 on: April 16, 2008, 09:15:52 PM »

What do you mean the malware changes its behavior? 

If the malware detects it's in a virtual machine, it might choose to not do anything malicious, in order to make things harder on malware researchers, those who test out iffy software in a virtual machine first, etc.
Logged
Info-Sec
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 548



« Reply #3 on: April 17, 2008, 01:36:36 PM »

If the malware detects it's in a virtual machine, it might choose to not do anything malicious, in order to make things harder on malware researchers, those who test out iffy software in a virtual machine first, etc.

Ah i see.  Well its hard to detect if it is in a virtual machine.  Well it depends on the virtualization software.  On VMware it is impossible to tell because it is a computer in an isolated part of the memory.  Other virtualization software it is possible.
Logged

*Vista *CFP V3 *Avira * Avast *Spyware Doctor
*XP *Zone Alarm PRO *NOD32 V2.7 *Spysweeper
Melih
Comodo's Hero
Administrator
Comodo's Hero
*****
Offline Offline

Posts: 5367



WWW
« Reply #4 on: April 17, 2008, 03:34:22 PM »

you are right.
malware does have detection mechanisms for both emulators and certain vms. so that they behave themselves within those environments to avoid detection

Melih
Logged

MrBrian
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 326


« Reply #5 on: April 17, 2008, 03:45:15 PM »

Ah i see.  Well its hard to detect if it is in a virtual machine.  Well it depends on the virtualization software.  On VMware it is impossible to tell because it is a computer in an isolated part of the memory.  Other virtualization software it is possible.

You may wish to look at this topic - http://www.wilderssecurity.com/showthread.php?t=206462.  Also, see the paper 'Compatibility is Not Transparency: VMM Detection Myths and Realities' - http://www.usenix.org/event/hotos07/tech/full_papers/garfinkel/garfinkel_html/.  The paper's conclusion is "that preventing VMM detection in the face of a dedicated adversary is generally impractical."
« Last Edit: April 17, 2008, 03:47:55 PM by MrBrian » Logged
andyman35
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 532


« Reply #6 on: April 17, 2008, 06:53:57 PM »

You may wish to look at this topic - http://www.wilderssecurity.com/showthread.php?t=206462.  Also, see the paper 'Compatibility is Not Transparency: VMM Detection Myths and Realities' - http://www.usenix.org/event/hotos07/tech/full_papers/garfinkel/garfinkel_html/.  The paper's conclusion is "that preventing VMM detection in the face of a dedicated adversary is generally impractical."

Interesting subject but surely the Blue Pill  hypervisor  concept shows that an undetectable VM is perhaps  achievable?
« Last Edit: April 17, 2008, 07:07:15 PM by andyman35 » Logged
MrBrian
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 326


« Reply #7 on: April 17, 2008, 07:29:25 PM »

Interesting subject but surely the Blue Pill  hypervisor  concept shows that an undetectable VM is perhaps  achievable?

Here is a quote from a person involved with the Xen hypervisor about Blue Pill (Source - http://www.virtualization.info/2006/08/debunking-blue-pill-myth.html):

"Rutkowska claims to have create a 100% undetectable piece of malware."

"The basic idea behind her claim is that one could create a piece of malware that also was a Virtual Machine Monitor. If the VMM could take over the host Operating System (imagine if you could launch Xen on a running copy of Windows and instantly have the previous Windows system be a virtual machine), then it could potentially hide a virus from that virtual machine by remaining within the VMM."

"Having a VMM take over a host operating system would be very difficult. It's not outside of the realm of possibility but it would take a huge engineering effort."

"However, for this malware to be successful, it would not only need to be able to take over the host Operating System, but it would also need to prevent that operating system from being able to detect that it was now a virtual machine."

'While the former is at least possible (albeit tremendously difficult), the later is not possible which means that anti-malware software will always be able to detect this sort of attack."
« Last Edit: April 17, 2008, 08:05:44 PM by MrBrian » Logged
andyman35
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 532


« Reply #8 on: April 18, 2008, 06:28:18 AM »

Here is a quote from a person involved with the Xen hypervisor about Blue Pill (Source - http://www.virtualization.info/2006/08/debunking-blue-pill-myth.html):

"Rutkowska claims to have create a 100% undetectable piece of malware."

"The basic idea behind her claim is that one could create a piece of malware that also was a Virtual Machine Monitor. If the VMM could take over the host Operating System (imagine if you could launch Xen on a running copy of Windows and instantly have the previous Windows system be a virtual machine), then it could potentially hide a virus from that virtual machine by remaining within the VMM."

"Having a VMM take over a host operating system would be very difficult. It's not outside of the realm of possibility but it would take a huge engineering effort."

"However, for this malware to be successful, it would not only need to be able to take over the host Operating System, but it would also need to prevent that operating system from being able to detect that it was now a virtual machine."

'While the former is at least possible (albeit tremendously difficult), the later is not possible which means that anti-malware software will always be able to detect this sort of attack."


It'd certainly be an extremely difficult task but I think the author's claim that it's impossible for true stealth is a personal opinion,nothing is impossible until such time that perfect,error free code exists.I'd not be so ready to dismiss Rutkowska out of hand,only time will tell if her concept is possible or not.

It's a shame that the challenge mentioned here seems to have broken down,but maybe we'll see a genuine testing of the concept sometime:

http://www.theregister.co.uk/2007/07/06/blue_pill_showdown/

Of course what this shows is the benefits to security of running within some form of VM system. After all if malware detects it's in a VM and doesn't act maliciously then the job of prevention has been achieved.
« Last Edit: April 18, 2008, 06:45:05 AM by andyman35 » Logged
MrBrian
Computer Security Testing Group
Comodo's Hero
*****
Offline Offline

Posts: 326


« Reply #9 on: April 18, 2008, 06:44:59 AM »

It's a shame that the challenge mentioned here seems to have broken down,but maybe we'll see a genuine testing of the concept sometime:

http://www.theregister.co.uk/2007/07/06/blue_pill_showdown/

I think asking for as much as $412,000 was a nice way to ensure that the challenge didn't take place.
Logged
andyman35
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 532


« Reply #10 on: April 18, 2008, 06:45:57 AM »

I think asking for as much as $412,000 was a nice way to ensure that the challenge didn't take place.
Nice work if you can get it though  Laugh
Logged
Tags:
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Firewall
Page created in 0.03 seconds with 18 queries.
Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by 7dana.com