Windows News and info 15th Anniversary 2009-2024

Other Operating Systems => Windows 7 Performance => Windows 7 All => Windows 7 | Windows 9 => Windows 7 Security & Anti Virus => Topic started by: javajolt on June 11, 2010, 11:50:06 PM

Title: Windows 7 AutoPlay and Virtual CDs
Post by: javajolt on June 11, 2010, 11:50:06 PM

Some folks read Wednesday’s post about autorun-worm infected Samsung Wave microSD cards (http://www.f-secure.com/weblog/archives/00001959.html) and commented — thank goodness Windows 7 fixes that issue. Only optical media is allowed to AutoPlay on Windows 7, so USB devices can’t spread autorun-worms.

Right?

Well, while Windows 7 does significantly improve the AutoPlay/AutoRun user experience, it isn’t bulletproof. There’s a small, not likely to be exploited, loophole.

Virtual CDs.

For example, Western Digital USB hard drives ship with Virtual CDs (http://www.f-secure.com/weblog/archives/western_digital_vcd.htm) on board to install WD’s SmartWare software.

You can see the CD device here along with the Passport:

(http://i50.tinypic.com/2bbc46.jpg)

This is how a default Windows XP installation handles the Virtual CD’s autorun.inf:

(http://i45.tinypic.com/dzwaon.jpg)

It just launches the installer program, no questions asked.

Now this is how Windows 7 AutoPlay handles the Virtual CD’s autorun.inf:

(http://i50.tinypic.com/2na3bpz.jpg)

The installer on the Virtual CD is the default option, but it doesn’t launch.

On the plus side, AutoPlay functionality can easily be turned off in Windows 7:

(http://i46.tinypic.com/sol7p5.jpg)

Do note that this isn’t a Windows 7 vulnerability.

From Microsoft’s Security Research & Defense (http://blogs.technet.com/b/srd/archive/2009/04/28/autorun-changes-in-windows-7.aspx) blog: “It is worth noting that some smart USB flash drives can pose as a CD/DVD drive instead of standard ones (see http://en.wikipedia.org/wiki/U3 (http://en.wikipedia.org/wiki/U3) for an example). In this specific scenario, the operating system will treat the USB drive as if it is a CD/DVD because the type of the device is determined at the hardware level.”

This is just a curiosity to be aware of — not a flaw.

Bottom-line, don’t let Windows 7′s improved handling of AutoPlay give you a false sense of security. There are more and more USB drives shipping with Virtual CDs, and sooner or later, one of them will be infected during the manufacturing process.