Hide me Sony one more time!
Tuesday August 28, 2007 at 11:49 am CST
Posted by Aditya Kapoor, Seth Purdy
File this one under “Déjà vu all over again”. After learning from F-Secure of shady rootkit-like activities noticed in the software packaged with several Sony USB drives, we were first a bit amazed. After all that had occurred with the audio CD episode, could this really be true? Well, it was.
In the class of nasty rootkits the ones that top the chart are those that use blended techniques to hide or protect themselves. I/O request packet filtering is one kernel mode rootkit technique that is gaining popularity along with the already common SDT hooking.
Sony’s microvault USB media ‘Fingerprint Access’ software uses programs and device drivers developed by Fineart Technology Co. Ltd.. The Fineart device driver installs as a file-system filter driver on top of the existing driver stack. It also hooks the Service Descriptor Table in order to hook NtEnumerateKey. After establishing this, all file system information is filtered through this new device driver and thus it can easily hide any directory or file. Following is a snapshot of windbg showing the device stack.

Figure 1 - \Driver\FG adds itself on top of the driver stack for file system IO.
The apparent intent was to cloak sensitive files related to the fingerprint verification feature included on the USB drives. However, in this case (*cough* AGAIN! *cough*) the authors apparently did not keep the security implications in mind. The executable can be placed in potentially any directory and when executed will subsequently hide all the folders and files within that directory!
As a test we placed the binary in %windir%. Upon launch all the files and subdirectories including system32 were indeed hidden. None of the resources within the directories were accessible anymore. We could no longer run simple utilities like ‘regedit’ or ‘notepad’ or ‘cmd’ using the Run dialog box in start menu, as the path was not resolved due to cloaking. Although one could still access the files using fully qualified paths. Fortunately the executable by itself does not add an entry to the registry Run key or establish any other startup method, so the hidden objects are accessible again upon reboot. However the device driver component is loaded into memory after reboot, so at that stage it is a simple matter of re-executing the binary to hide directories and files:
The publisher may argue that the default installation path is %windir%\[some directory], but that does nothing to stop malware authors from copying the binary to an arbitrary directory of their choice and executing it in that location. Alternately they could simply hide their malicious creations in the default installation directory itself. Another easy hack for malware authors would be to launch the binary from their chosen directory and add a startup entry for the software to ensure it is hidden immediately on boot-up.
Here is the snapshot of VirusScan in action. VirusScan detects the device driver s HideVault!sys and removes it to disable any potential cloaking upon reboot.

Sadly, it appears that expediency of function has again trumped forethought of consequences in one of Sony’s creations.

August 30th, 2007 at 9:35 am
Sony, once again….
Anybody who have read the news would have known whats been going on recently, probably the cause of why I ultimately choosed my Nokia N73 over Sony’s Cybershot phone. Well once again, rootkits were found in Sony software; first time for anti-pira…
September 4th, 2007 at 2:07 pm
Psst.
Sony BMG is a joint venture between TWO companies, not just Sony.
The other company is Bertelsmann AG, and if you want to keep a company’s shareholders responsible, you should also pass the buck to Bertelsmann for that CD rootkit incident.
So the title of this blog entry is inappropriate and misleading, although it’s catching and perhaps convenient if you’re on a Sony witch hunt.
September 6th, 2007 at 5:12 am
Didn’t knew my trackback stuff came all the way here.
Well my POV is just staying as that Sony will do anything within their means to go for anti-piracy, no way I’d ever support any of their products ever.
On a side note, I am not some anti-Sony guy. I personally found their Cybershot series phone very attractive; its just, I fear they might just one day bundle some rootkit along without us, the consumers, knowing. Resulting in my blog entry.
My blog visitors only consist of several of my friends and stuff, just wanted to share my thoughts across to my other friends who might even be using those thumbdrives.
Sorry if I sounded offensive and against Sony (the company itself), it wasn’t meant to be read that way. But eitherway, I probably won’t support anymore Sony branded stuff again.
Regards,
FinalBlade
October 4th, 2007 at 11:52 pm
Sims2 Bon Voyage users have severe problems caused by Securom 7; but, it seems the EA techs aren’t able to believe or find the proof-in-the-pudding.
Since you are an expert, could you look at it?
It causes all the “traditional” problems. Disables Norton and McAfee and Windows and firewalls, sets itself up as an administrator sort of and tries to access the Internet as UserAccess 6 and or UserAccess 7, disables LEGAL software, and disables an entire host of hardware though CD players and burners are most affected.
Further, it DOES attract trojans and other viruses, probably through it’s unfirewalled connection where ET tries to phone home so to speak.
The Sims Community is grateful!
Thank You!
November 19th, 2007 at 12:02 pm
Did some tests with this rootkit on VirusTotal:
http://blog.didierstevens.com/2007/11/19/the-sony-rootkit-v20/