SONY XCP DRM removal for the Handyperson

Discussion in 'malware problems & news' started by Nancy_McAleavey, Nov 16, 2005.

Thread Status:
Not open for further replies.
  1. Nancy_McAleavey

    Nancy_McAleavey Expert Member

    Joined:
    Feb 10, 2002
    Posts:
    244
    Location:
    Voorheesville, NY, USA
    Thanks to Kevin:

    BEFORE you read this, it's important to note that we're EXTREMELY busy right now with far more serious issues than the media's attention to the "SONY ROOTKIT" phenomenon, and that handling panicked people over this has consumed huge amounts of our time already to the detriment of more important issues. As we near release of BOClean 4.20, all of our attention is focused on that right now. Emails regarding this issue or instant messages will have to wait until AFTER Thanksgiving. Therefore, should you respond to this offering, please don't be offended if I don't have time to respond to those at this time. I encourage further discussion and possible corrections of the advice offered below, but am not in a position to assist owing to far more pressing urgencies. I hope folks will understand the difficult situation that I'm in.

    Having found some time to go back and play with the SONY rootkit has been difficult to come by, and our attorneys have been unable to obtain a definitive answer from the justice department as to our creating a specific solution to the SONY "rootkit" problem. However, I have been told that I have a right to my opinion, and as long as I express this as "my opinion" and not that of our company, (I did this on my own time) I should be free to share a chuckle with folks as to the pathetic nature of this "rootkit." And in doing so, I can explain WHY I think it's pathetic as well! So let's have at it, folks can learn from my rant to follow how to take care of this all by themselves! :)

    The "rootkit" indeed hides the uber-secret "$sys$filesystem" folder, which is a subfolder of the WINNT (NT and 2000) or WINDOWS (XP) "SYSTEM32" folder. The rootkit sadly, is UNABLE to hide itself from being accessed directly from a COMMAND PROMPT (found in the start menu/programs/accessories list).

    So for chuckles, I opened a COMMAND prompt. I then went (on an XP box, NT and Win2000 would be a WINNT rather than WINDOWS) ...

    CD WINDOWS (enter)
    CD SYSTEM32 (enter)
    CD $sys$filesystem (enter)

    Low and behold, on a machine infected by this, I got a PROMPT with $sys$filesystem present! (on an UNinfected machine, you'd get an error of "not found." Surprisingly, it let me HAVE it!) If this directory doesn't show, then you're NOT infected! You're finished right here. :)

    IF $SYS$FILESYSTEM exists, then the first thing we'll want to do is lose the "cloak" and that is a file called ARIES.SYS ... this command will get rid of it, you can successfully delete it while it's running. It's NOT protected! Heh. This command loses the cloak:

    DEL ARIES.SYS (enter)

    Once you've done this, REBOOT!

    At THIS point, you have done what everyone else (including antiviruses, Microsoft and everyone else) is going to do as their FINAL solution - you have successfully "uncloaked" and prevented any further possible exploits of your system. Color it done unless you're brave enough to continue. In going further, a COMPLETE removal is necessary. Here's what I discovered ...


    REMOVING THE REST OF SONY'S "TREAT"

    After you've rebooted, some services (which are not really services) will run again, particularly the $sys$DRMServer. Trying NET STOP won't work as it's not REALLY a service. You'll get a system error. However, you can now SEE the files when you use the "My computer" file explorer and you'll be able to SEE the "$sys$filesystem" folder now under the SYSTEM32 folder.

    You should now be able to move to the formerly-hidden $sys$filesystem folder and it should now be visible after the reboot.

    BEFORE you do anything else, you now have to consider if you're brave enough to do manual registry editing, because if you remove anything else and don't clean up the registry, your CDROM and possibly your hard disk(s) *WILL* vanish if "crater.sys" and "$sys$cor.sys" are removed. So if you're uncomfortable with registry editing, STOP NOW! You're DONE!!!

    If you do the CD\WINDOWS, CD SYSTEM32, CD $sys$fileystem trick again, you will note that two things that weren't there before will now appear. Those are $sys$DRMServer and $sys$parking. LEAVE THEM ALONE! And there are MORE back in the SYSTEM32 folder. Leave THOSE $sys$*.* files alone for now ALSO!

    The $sys$DRMServer.exe file will still be running and cannot be stopped without registry removal and another reboot. So ON to the next step(s) ...


    NEXT STEP - REGISTRY CLEANING

    Because the rootkit modifies registry permissions, a TEMPORARY trick needs to be applied in order to be successful.

    FIRST ... run REGEDT32 (*NOT* REGEDIT) and navigate down to the HKEY_LOCAL_MACHINE key. RIGHT click it and select PERMISSIONS from the dropdown menu.

    Click on "everyone" and make sure that FULL CONTROL is checked before proceeding. After you're done, be SURE to come back here and UNcheck it or your machine will be at risk. This elevated privilege is required in order to successfully edit and/or delete the remains, and it's CRUCIAL that you reset this after you're done!

    Use the FIND item to locate anything that matches "$sys$" ... there's going to be a PILE of them all over the place, and failure to carry out this portion of it will cause drives to no longer work!

    Using FIND, have it search for $sys$ ... certain registry entries can simply be deleted, certain ones must be EDITED, and here's where it gets tricky ...

    First things you'll encounter are under the HKEY_LOCAL_MACHINE files, under the SOFTWARE key ... you'll want to delete outright these three:

    $sys$reference (right click, DELETE!)
    ECDDiskProducers (byebye)
    SONYBMG (hasta la vista!)

    Then, as you continue to FIND more $sys$ items, BE CAREFUL! Some can be deleted, SOME HAVE TO BE EDITED!!! To find the next, simply hit the F3 key!

    In "WBEM\WDM" you'll spot some UUID's and there will be crater.sys. Any such references that DON'T have IMAPI are safe to just delete. This will be the first one you encounter after the above. DELETE. Same for the one in WBEM\WDM\DREDGE ... DELETE!

    This qwap also copies itself all over the "CurrentControlSet" keys, and does up ALL of them. :(

    So next stop will be under various "ControlSet00x" keys. You'll stop at the "CoDeviceInstallers" ... for each "$sys$caj.dll" you encounter. On OUR lab rats, it was the first UUID entry and the last. Look for the $sys$caj.dll entry and remove ONLY that particular value for a UUID where it appears and do NOT touch anything else in there!


    NEXT STOP IS THE TRICKY!

    Next stop is the "Enum" area - IDE or SCSI depending on what you have. HERE, we need to EDIT rather than DELETE! Look for an entry on the right side that says "LowerFilters" ... DO NOT DELETE!!!!! You need to double-click on the "LowerFilters" name. That will bring up an EDIT screen.

    In this EDIT screen, what you need to do is move the cursor up where it says "$sys$crater" and CAREFULLY remove that, and pull any lines below it up. NORMALLY the line below will be IMAPI.SYS but could be something else, and more following. The OBJECTIVE is to remove the $sys$crater ONLY and then pull the line below it up to where the crater.sys WAS. Objective is to leave everything ELSE intact and JUST lose $sys$crater!

    Should you encounter a "LowerFilters" that *ONLY* contains "$sys$crater," then you can DELETE it, but usually the "LowerFilters" has another item. Make certain that the top item isn't blank!

    Next stop in your search will result in "UpperFilters" and here, what you want to remove is "$sys$cor." If "$sys$cor is the ONLY entry, then you can delete that item. If there is anything ELSE in there, then you must edit OUT the "$sys$cor" as was done with "$sys$crater." Each system is different and thus the uncertainty here. You ONLY want to get rid of "$sys$crater" and "$sys$cor" and LEAVE EVERYTHING ELSE INTACT or your drives will vanish.

    $sys$cor will show up in other places, under the name "ActiveChannel." You can DELETE that whole value too. ANY place where only $sys$cor or $sys$crater shows up as a value can be DELETED as LONG AS there are no other "dependencies" listed. If there are other items, you MUST edit OUT the $sys$whatever and LEAVE THE OTHERS INTACT by removing the entire line which contains either $sys$crater or $sys$cor ...

    NEXT STOP, "ROOT" entries! You'll see the following KEYS which need to be deleted:

    LEGACY_$SYS$ARIES
    LEGACY_$SYS$DRMSERVER
    LEGACY_$SYS$LIM
    LEGACY_$SYS$OCT

    Just delete the entire KEYS themselves, so the above are GONE.

    NEXT STOP, "SERVICES" entries! You'll see the following keys next:

    $sys$aries
    $sys$cor
    $sys$crater
    $sys$DRMServer

    Same deal as above ...

    That completes the "CurrentControlSet" ... expect to go through a repeat of the above for EACH user's individual "ControlSet" until you've done them all. How many depends on how many "users" on the machine. :(

    Once done, BE SURE TO GO BACK and CORRECT the security change to the registry that was necessary to do this - REMOVE the checkbox for "everybody" that granted "everyone" "FULL CONTROL." You DON'T want to leave that permission granted!

    And finally, REBOOT!

    When the system comes back up, GO to that $sys$filesystem folder and delete the remainder - you'll now have permissions to do so. And finally, wipe THESE files from your SYSTEM32 folder:

    $SYS$CAJ.DLL
    $SYS$UPGTOOL.EXE

    You're done!

    PREVENTING REINFECTION

    1. Disable "autostart" (google for how)
    2. Install BOClean (sorry, I *work* for a living and if I didn't, I wouldn't have KNOWN this answer.)

    Permission granted to redistribute and expand upon, please include the original source though - Kevin McAleavey at nsclean.com, makers of BOClean. If I'm going to be sued for this, the least I've earned is credit for the answer. :)
     
  2. FanJ

    FanJ Guest

    Thanks Nancy and Kevin ! :D
     
  3. khazars

    khazars Registered Member

    Joined:
    Jun 8, 2005
    Posts:
    124
    Location:
    Glasgow, Scotland
    cheers Nancy and Kevin! Don't get the jail :)
     
  4. FanJ

    FanJ Guest

    PLEASE Nancy and Kevin: no jail, please !!!!!
    Please be very cautious !

    Most warmest regards, Jan.
     
  5. FanJ

    FanJ Guest

  6. ronjor

    ronjor Global Moderator

    Joined:
    Jul 21, 2003
    Posts:
    163,035
    Location:
    Texas
    Real Story of the Rogue Rootkit

    Wired
     
  7. trickyricky

    trickyricky Registered Member

    Joined:
    Mar 27, 2005
    Posts:
    475
    Location:
    London, UK
    Good grief - there are some valid, awkward issues brought to light in that article. I doubt any company involved in security will respond directly to the criticism, regrettably...
     
  8. ronjor

    ronjor Global Moderator

    Joined:
    Jul 21, 2003
    Posts:
    163,035
    Location:
    Texas
    Exactly. :)
     
  9. Kinda sad that Kevin told us a couple months ago that nasty writers of the past were working for big buisness now and not one sole listened except me.

    oh oh
     
  10. Nancy_McAleavey

    Nancy_McAleavey Expert Member

    Joined:
    Feb 10, 2002
    Posts:
    244
    Location:
    Voorheesville, NY, USA
    More from Kevin...alternate instructions that don't involve registry fiddling:

    Since this article has filtered down to a number of places that I don't have access to and since this seems to be the common reference, a few "expert opinions" offered by some others that don't do this to the degree that I do might put some folks into a position of being scared off. Therefore, wanted to stop back for a minute and further explain a few things in order to reduce people's concerns. I stand by the original directions and shall explain a few misguided concepts that I've seen on SpyBot's site and a few others.

    In his original article, Russinoff (sp?) had mentioned that the "cure" provided by SONY was a truly bad idea in that THEIR solution actually tried to stop the ARIES.SYS, and in doing so could cause all sorts of bad things to potentially happen. Referring back to my instructions above, I had noted that the ARIES.SYS file is *not* protected and therefore you can simply delete it. This REMAINS correct. AND safe!

    By deleting the file, and then rebooting, you are NOT stopping the so-called "service." It is already loaded into memory and executing from there. The file from which it starts is actually unprotected and irrelevant and therefore can be safely deleted without any impact on the system. Several people appear to be under the misimpression that we're stopping it, and just wanted to clarify that we're merely making it _missing_ upon the next reboot. And if it's not there, it can't start in the first place and therefore when you proceed after that reboot, no potential harm can occur. So the original instructions are quite safe to do.

    I also wanted to explain that there is a way to avoid having to edit the REGISTRY as well if you leave TWO of the files in the package behind and DON'T delete them. The two files to leave INTACT if you don't feel up to registry editing are:

    crater.sys and
    $sys$cor.sys (this latter one is in system32\drivers)

    The above two files will do nothing beyond passing their hooks back to the rest of your driver stack since there is no longer the DRMSystem executable to "talk to" after you've done your removals.

    However, you DO have to do a process killing on two other files in order to delete those as well, and they're quite stubborn:

    C:\WINDOWS\CDProxyServ.exe and
    C:\WINDOWS\SYSTEM32\$sys$filesystem\$sys$DRMServer.exe

    Once the above two have been shutdown and removed, then those remaining two files that are part of the Lowerfilter and Upperfilter in the registry can stay, and you won't have to edit the registry. Perhaps the free "killbox" utility will handle it, I'm used to our BOClean just handling this. But with those two gone, the remaining crater.sys and $sys$cor.sys are quite harmless for those who wish to avoid editing the registry.

    Preferably, my original directions are what you want to do in order to completely rid the machine of this. However, for those who are timid (and for good reason) about editing the registry, this alternative means will get the job done and put the bad boy to sleep without having to do all of that registry editing as a result of the rest of this intrusion being removed. It's an acceptable "shortcut" for those so inclined. The remaining two pieces become inactive without their "hosts" and won't interfere with proper operation if left behind.
     
  11. FanJ

    FanJ Guest

    Thanks again Nancy and Kevin !!! :D
     
  12. SONY BMG

    SONY BMG Guest

    It has recently come to our attention that some individuals and companies are offering various instructions and tools to uninstall the XCP content protection software from computers. Please be advised that we have already made available a proper uninstaller at http://cp.sonybmg.com/xcp/english/updates.html. This is the only safe and secure method for removing the protection components of which SONY BMG is aware. SONY BMG assumes no responsibility for use of any other uninstaller tool or instructions.

    For any questions about XCP content protection software used on SONY BMG discs please go to http://cp.sonybmg.com/xcp/english/home.html.

    Thank you.

    SONY BMG
     
  13. doug6949

    doug6949 Registered Member

    Joined:
    Nov 28, 2003
    Posts:
    110
    Hmmm! And we are expected to trust the same folks who created this mess (and have yet to admit wrongdoing) to provide us with a proper solution?

    I think the public would be better advised to seek solutions from more respectable sources.

    It does not appear that you readily accept responsibility for your own actions either.
     
    Last edited: Dec 8, 2005
  14. Bubba

    Bubba Updates Team

    Joined:
    Apr 15, 2002
    Posts:
    11,271
    No disrespect intended if you are actually a Sony rep....but that took big cahonas. Has someone been on vacation :eek:

    We'll definetly be checking this out further on many forums that have been dealing with this no thanks to the BMG folks :mad:

    BTW....if you come back which I doubt you will....have your rocket scientists visit one of the bigger forums on the net in regards to highjack cleaning and have them do a search for Sony. There will be thousands upon thousands of folks waiting in line for assistance in cleaning your package of goodies off their machines :mad:

    http://castlecops.com/forums.html
     
    Last edited: Dec 8, 2005
  15. FanJ

    FanJ Guest

    Quoting Kevin at DSLR

    http://www.dslreports.com/forum/remark,14817570

    == begin quote ==

    Based upon your challenge to *MY* honor with your post, I made it a point to test and examine your claim as to this "removal tool's functionality" and as a result, I am *compelled* by your comments to reply. I am greatly dishonored.

    We took a pristine "lab rat" and installed the Van Zant album, "Get right with the man" once again. After installation was completed, we then applied the "complete removal" tool liked to in YOUR reply. And, after applying our own internal BOClean monitoring lab tools, we then followed the instructions to reboot.

    IMMEDIATELY upon a reboot, after your "program" had completed its "removal" of the rootkit (we did not bother to opt for "removal of the cloaking" but rather opted for COMPLETE removal as claimed) BOClean INSTANTLY detected the existence of "SONYXCP" TROJAN (CDPROXYSERV.EXE) as SOON as the machine was rebooted, purportedly following COMPLETE removal. Repeated second detection occurred, whereupon it was removed.

    *ALL* of the other files detected by BOClean remained, as well as ALL of the registry entries described in my written "Handyperson's guide to removal of SONY rootkit" REMAIN valid, and the alleged "removal" program offered by SONY/BMG is an absolute *LIE* ... your "removal tool" *FAILS* to remove the offending trojan.

    For those who have our software, the reality remains that any claims that the official SONY removal tool is preferable to the use of BOClean or the manual removal steps we outlined, PARTICULARLY our insistence that if you are uncomfortable with registry editing, to LEAVE the "$sys$crater" and "$sys$cor" entries alone as they have no meaning unless your rootkit remains functional are *BOGUS* with respect to this so-called "removal tool."

    It DOES NOT remove your rootkit, in fact it leaves it *COMPLETELY* operable.

    BOClean HAS (since the summer of 2004) defeated this madness and defecation on people's computers. We are not ABOUT to remove detection and defeating of your trojan, particularly after this "dishonor" to my former employer's spirit.

    PERMISSION GRANTED to post this to other sites regarding this nonsense.

    == end quote ==
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.