| View previous topic :: View next topic |
| Author |
Message |
gmer
Trooper

 Joined: May 29, 2006 Posts: 33
|
Posted: Thu Jan 03, 2008 3:45 pm Post subject: Stealth MBR rootkit |
|
|
Hello all,
Here you will find a short write-up about new rootkit discovered recently.
And once again big thanks to Tammy & MJ
http://www2.gmer.net/mbr/
Regards,
Gmer
|
|
| Back to top |
|
 |
Prince_Serendip
Site Moderator
 Joined: Sep 07, 2002 Posts: 17542
|
|
| Back to top |
|
 |
negster22
Security Expert Premium Member
 Joined: Mar 10, 2004 Posts: 5394
|
Posted: Fri Jan 04, 2008 10:55 pm Post subject: |
|
|
I did see something about this on MR. Interesting, thanks and glad Gmer detects it:
| Quote: | | To remove rootkit from infected machine you can simply use "Recovery Console" command: fixmbr. |
_________________ Negster22 - MS MVP - Consumer Security 2006-2008
|
|
| Back to top |
|
 |
negster22
Security Expert Premium Member
 Joined: Mar 10, 2004 Posts: 5394
|
Posted: Tue Jan 08, 2008 12:52 am Post subject: |
|
|
A removal update -
If you have a Dell computer you can't run fixmbr from the recovery console to restore your MBR in the event you become infected with an MBR rootkit.
Because Dell has proprietary code on its MBR, you should instead make a backup copy of any Dell PC's MBR so you can restore it in the event of corruption. To make the backup you can use mbrsaver which is program contained in a set of utilities called dsrfix. You can download dsrfix.zip here:
http://www.goodells.net/dellrestore/files/dsrfix.zip
Read about the MBR backup/restore commands here:
http://www.goodells.net/dellrestore/fixmbr.htm
I have written up a detailed procedure here to backup and restore your MBR:
First, you will also need to make a DOS boot disk as follows:
In XP - Insert a floppy disk into the floppy drive of an uninfected Windows PC
- Click My Computer
- Select the floppy drive letter - let's assume it's A:
- Right-click A: and select "format", check the "Create an MS-DOS startup disk".
- Click Start
- You will get a confirmation message when the format is complete.
- Remove the boot floppy and boot into Windows normally.
To save the MBR (without the partition table)- Download dsrfix.zip
- Extract dsrzip to a folder you create such as C:\dsrfix (there will be four files extracted, but you only need to use one of them.)
- Insert the boot floppy in the floppy driver, again.
- Copy the file mbrsaver.com to the boot floppy.
- Change your boot sequence in Setup (usually triggered by hitting the F2 key at system restart), so your PC boots to the floppy device first (if necessary)
- Reboot to the floppy.
- To save the Dell MBR, type in the following command and hit Enter:
mbrsaver /s dellmbr.bin
- Now the MBR is saved in the file dellmbr.bin
If you need to restore the MBR you can use this floppy and file on any Dell PC regardless of Operating System installed by booting to the floppy and typing the following command, then pressing Enter:
mbrsaver /r dellmbr.bin
Note: If you do not have a floppy drive., you can create a DOS boot CDROM using the Free Boot Disks with IDE CDrom Drivers Included :
http://www.bootdisk.com/bootdisk.htm
Then follow the same procedure outline above by subsituting the CDROM drive letter for the floppy drive letter. _________________ Negster22 - MS MVP - Consumer Security 2006-2008
Last edited by negster22 on Fri Jan 11, 2008 2:15 am, edited 1 time in total |
|
| Back to top |
|
 |
gmer
Trooper

 Joined: May 29, 2006 Posts: 33
|
Posted: Tue Jan 08, 2008 8:48 am Post subject: |
|
|
Thank you negster22
One more thing to add, if you do not have a copy of MBR you can use bootable Linux to restore original MBR stored in sector 62.
| Code: |
linux:~# dd if=/dev/hda of=sector_62 count=1 skip=62
linux:~# dd if=sector_62 of=/dev/hda
|
|
|
| Back to top |
|
 |
negster22
Security Expert Premium Member
 Joined: Mar 10, 2004 Posts: 5394
|
Posted: Wed Jan 09, 2008 2:05 am Post subject: |
|
|
Thanks for that alternative method using a bootable Linux CD.
Gmer passed this Washington Post article on to me about the new MBR rootkit and Gmer's ability to detect it so - I am passing it on.
http://blog.washingtonpost.com/securityfix/
Excellent work, Gmer!! _________________ Negster22 - MS MVP - Consumer Security 2006-2008
|
|
| Back to top |
|
 |
Dave_Kleiman
Special Response Team Premium Member
 Joined: Mar 18, 2005 Posts: 1339
|
Posted: Wed Jan 09, 2008 7:32 am Post subject: |
|
|
You also have the FIXMBR command you can run from the recovery console or a BOOTCD
And do not forget the old hex-editor, you can keep a copy of your MBR, I usually do it when I first create a disk copy MBR to Sector 2. (C-0, H-0, S-1) to (C-0, H-0, S-2).
You can always just load up the disk in another machine copy S-2 back to S-1.
Dave _________________ Respectfully,
http://www.davekleiman.com
|
|
| Back to top |
|
 |
geoapps
Cadet

 Joined: Jan 10, 2008 Posts: 1 Location: USA
|
Posted: Thu Jan 10, 2008 5:46 pm Post subject: |
|
|
The URL you posted is 404. I think you got a little slash-happy . It took me a little googling, but the actual file URL is http://www.goodells.net/dellrestore/files/dsrfix.zip (".../dellrestore/..." rather than ".../dell/restore/...") _________________
--
Angus S-F
GeoApps // Tucson, Arizona, USA
|
|
| Back to top |
|
 |
negster22
Security Expert Premium Member
 Joined: Mar 10, 2004 Posts: 5394
|
Posted: Fri Jan 11, 2008 2:20 am Post subject: |
|
|
| geoapps wrote: | | The URL you posted is 404. I think you got a little slash-happy. |
Thanks!! I am rather fond of the backslash.
The link has been corrected within my reply. I did walk through all the steps in the procedure and it works just fine, so you can use it with confidence. _________________ Negster22 - MS MVP - Consumer Security 2006-2008
|
|
| Back to top |
|
 |
Dave_Kleiman
Special Response Team Premium Member
 Joined: Mar 18, 2005 Posts: 1339
|
Posted: Thu Jan 17, 2008 7:22 am Post subject: |
|
|
By the way...
Hello N and L... and everyone for that matter. I hope everyone is enjoying a phenomenal new year!!
Dave _________________ Respectfully,
http://www.davekleiman.com
|
|
| Back to top |
|
 |
|
|