Home > Ask the Security Experts > Expert Archive: Information Security Threats Questions & Answers > Why can't antimalware tools scan inside virtual machines?
Ask The Security Expert: Questions & Answers
EMAIL THIS

Why can't antimalware tools scan inside virtual machines?

Ed Skoudis EXPERT RESPONSE FROM: Ed Skoudis

Pose a Question
Other Security Categories
Meet all Security Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 14 February 2007
Why can't outside scanners easily scan inside virtual workstations for worms, bots and other threats?

>
EXPERT RESPONSE
I get asked this question a lot. On the surface, you would think it would be a trivial matter for antivirus and antispyware tools to check up on what's happening inside the virtual workstation. After all, the guest virtual machine lives inside of the host machine. Unfortunately, it's not easy at all. Part of the virtualization process involves slicing and dicing data elements inside of the guest, making them very difficult for a software application, like an antimalware tool, to recognize. Consider two areas that antimalware tools heavily scrutinize to find malicious code: memory and file systems.

To understand what an antimalware tool would have to do to scan a guest's memory from the host, let's start by considering a non-virtual machine first.

It's important to note that even non-virtual machines have virtual memory. Most modern operating systems have a virtual memory system that breaks up data inside the machine; these parts are called memory structures. Using several tables, the virtual memory is then mapped to physical hardware storage addresses. The memory structures make each program on the machine believe that there is an enormous amount of memory, even though physical RAM is actually limited. Most modern operating systems support virtual memory by swapping data between RAM and the hard disk or other high-volume storage devices.

In a virtual machine environment, the guest has its own virtual memory system, as well as its own tables that map various applications' view of memory to physical memory. But the physical memory of the guest machine is actually inside the virtual memory of the host machine, which is mapped into the physical memory underlying the host.

With all of the indirection here, it's no wonder that it's hard for an antimalware tool to see inside the host and figure out what's going on inside the virtual workstation. To scan the virtual system's memory for malware, the host antimalware tool would have to read and discern all of the virtual memory tables of the guest in real time. You might be thinking, "But it would just have to look for a few thousand strings in contiguous spaces in memory, right?" Not exactly. From the host's perspective, the strings to search for may not be contiguous at all since the guest's virtual memory system has been sliced and diced.

A similar issue happens in the file system. In most virtual machine implementations, the guest's file system is merely a big file in the host machine. But all kinds of formatting information is stored within that file, and any malware files here are broken down into different pieces that are then distributed throughout.

To scan the host machine, the antimalware scanner can rely on the operating system itself to group hard drive sectors into files. But, the antimalware scanner doesn't have that luxury inside the guest, where the guest's own file system breaks things down into virtual sectors and does so inside that big file on the host's hard drive.

Now, creating an antimalware tool that can run on a host and determine what's happening in the guest is theoretically possible and could be a very powerful tool in our arsenal. Its architecture though would likely be different from many of today's antimalware tools. Such a tool could implement its own code to discern a guest's virtual memory and file system. Alternatively, the tool could rely on software in the guest to do this unraveling; this would require hooks into the guest, however, and an extension of the antimalware tool from the host into the guest itself.

Another option would involve a different kind of antimalware tool that, instead of looking for a series of signatures, would look for other anomalies inside the guest. These anomalies can be more easily discerned from the host and wouldn't require a complete mapping of memory and the file system. I wholeheartedly expect to see such tools in the future.

More information:

  • Is the "Blue Pill" a security concern? Ed Skoudis examines the virtual machine-based malware.
  • See how well virtualization products defend against malware.


  • Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


    RELATED CONTENT
    Viruses, Worms and Other Malware
    Microsoft learns of successful RPC worm infections
    How to ensure the validity of Microsoft Windows updates
    Antimalware effectiveness put to the test
    Phishing, malware laden USB sticks stoke holiday attacks
    New worm attacks Windows smartphones
    McColo shutdown won't stop spam, malware, warn security experts
    Web-borne malware targets unexpected industries
    The value of application whitelists
    New blacklists: Highly predictive or hardly worth it?
    New malware exploits Microsoft RPC flaw

    Virtualization Security
    What risks do application virtualization products pose to enterprise security?
    VMware loses key security execs
    Virtual network tool gives firm view into virtualized environment
    Can virtualized applications interact with each other without explicit permission?
    IBM announcements mark two years of ISS marriage
    McAfee debuts protection for offline virtual environments
    Sourcefire adds VM protection to RNA, new appliance
    Product Review: Altor Networks' Virtual Network Security Analyzer (VNSA) 1.0
    Check Point adds virtual firewall appliance
    Initial virtualization costs could outweigh benefits

    Expert Archive: Information Security Threats
    Are there antivirus suites that pick up more than just run-of-the-mill viruses?
    What tools can a hacker use to crack a laptop password?
    Are social networking sites an easy target for malicious hackers?
    What are the dangers of cross-site request forgery attacks (CSRF)?
    Should social engineering tests be included in penetration testing?
    What kind of data is compromised during a Google hack?
    Best practices for using restriction policy whitelists
    Defining mobile device security concerns
    What are the risks associated with RIM's line of PDAs?
    What security measures can be taken to stop crimeware kits?

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    bot worm  (SearchSecurity.com)
    directory traversal  (SearchSecurity.com)
    Kraken  (SearchSecurity.com)
    man in the browser  (SearchSecurity.com)
    Mytob  (SearchSecurity.com)
    polymorphic malware  (SearchSecurity.com)
    RavMonE virus  (SearchSecurity.com)
    RFID virus  (SearchSecurity.com)
    Rock Phish  (SearchSecurity.com)
    Zotob  (SearchSecurity.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Find Security Solutions for Your Business
    Targeted Security Channel Tips for Resellers, Integrators and Consultants
    TechTarget Security Media
    Information Security View this month\\'s issue and subscribe today.
    Information Security Decisions Apply online for free conference admission.
    SearchSecurity.com
    HomeNewsMagazineMultimediaWhite PapersLearningAdviceTopicsEventsAbout Us

    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts