CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
spacer spacer

Stealth MBR rootkit

 
Post new topic   Reply to topic       All -> FavForums -> Rootkit Revelations [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
gmer

Trooper
Trooper


Joined: May 29, 2006
Posts: 33


PostPosted: Thu Jan 03, 2008 3:45 pm    Post subject: Stealth MBR rootkit
Reply with quote

Hello all,

Here you will find a short write-up about new rootkit discovered recently.

And once again big thanks to Tammy & MJ Hello

http://www2.gmer.net/mbr/

Regards,
Gmer

Back to top
View users profile Send private message Visit posters website
Prince_Serendip

Site Moderator


Joined: Sep 07, 2002
Posts: 17542

1st Responders MIRT Moderators MVP Premium RootKit Detection Hosts Rootkit Experts Rootkit Responders

PostPosted: Fri Jan 04, 2008 5:49 am    Post subject:
Reply with quote

Wow! Thanks gmer. Much appreciated. Thumbs Up


_________________
image
Microsoft MVP Consumer Security 2006, 2007 & 2008
Back to top
View users profile Send private message
negster22

Security Expert
Premium Member

Joined: Mar 10, 2004
Posts: 5394

Moderators MVP Premium RootKit Detection Hosts Rootkit Experts Security Experts SRT

PostPosted: Fri Jan 04, 2008 10:55 pm    Post subject:
Reply with quote

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 image
Back to top
View users profile Send private message Visit posters website
negster22

Security Expert
Premium Member

Joined: Mar 10, 2004
Posts: 5394

Moderators MVP Premium RootKit Detection Hosts Rootkit Experts Security Experts SRT

PostPosted: Tue Jan 08, 2008 12:52 am    Post subject:
Reply with quote

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 image


Last edited by negster22 on Fri Jan 11, 2008 2:15 am, edited 1 time in total
Back to top
View users profile Send private message Visit posters website
gmer

Trooper
Trooper


Joined: May 29, 2006
Posts: 33


PostPosted: Tue Jan 08, 2008 8:48 am    Post subject:
Reply with quote

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
View users profile Send private message Visit posters website
negster22

Security Expert
Premium Member

Joined: Mar 10, 2004
Posts: 5394

Moderators MVP Premium RootKit Detection Hosts Rootkit Experts Security Experts SRT

PostPosted: Wed Jan 09, 2008 2:05 am    Post subject:
Reply with quote

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 image
Back to top
View users profile Send private message Visit posters website
Dave_Kleiman

Special Response Team
Premium Member

Joined: Mar 18, 2005
Posts: 1339

MVP Premium RootKit Detection Hosts Rootkit Experts SRT

PostPosted: Wed Jan 09, 2008 7:32 am    Post subject:
Reply with quote

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
View users profile Send private message Visit posters website
geoapps

Cadet
Cadet


Joined: Jan 10, 2008
Posts: 1
Location: USA

PostPosted: Thu Jan 10, 2008 5:46 pm    Post subject:
Reply with quote

negster22 wrote:
You can download dsrfix.zip here:
http://www.goodells.net/dell/restore/files/dsrfix.zip.


The URL you posted is 404. I think you got a little slash-happy Wink. 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
View users profile Send private message
negster22

Security Expert
Premium Member

Joined: Mar 10, 2004
Posts: 5394

Moderators MVP Premium RootKit Detection Hosts Rootkit Experts Security Experts SRT

PostPosted: Fri Jan 11, 2008 2:20 am    Post subject:
Reply with quote

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 image
Back to top
View users profile Send private message Visit posters website
Dave_Kleiman

Special Response Team
Premium Member

Joined: Mar 18, 2005
Posts: 1339

MVP Premium RootKit Detection Hosts Rootkit Experts SRT

PostPosted: Thu Jan 17, 2008 7:22 am    Post subject:
Reply with quote

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
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Rootkit Revelations All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer