Showing posts with label usb drive. Show all posts
Showing posts with label usb drive. Show all posts

Monday, October 01, 2012

xmmcc exe keylogger virus cleanup

When I connected a pen drive to my PC, I found that the pendrive's root directory had two files, although I had never copied them 
1. xmmcc.exe 
2. Autorun.inf




I tried deleting them, but as soon as they were deleted, they came back within a second automatically. After some googling, I found that it was a keystroke logger virus.I could not find proper steps in a single place (must be bad googling), so here I am consolidating all steps I followed to clean the virus.

Step 1:
Using Process Explorer, I found that there were two "services.exe" running. One had the company name as "Microsoft Corporation", but the other file did not have any detail displayed under the "Description" column. Also, it had the same icon I saw in the pendrive (of two fingers pressing the keyboard). I first killed the process.


Step 2:
In the following folder, there were 3 files.
C:\Windows

1. xmmcc.exe
2. services.exe (with the same finger icon).
3. hardshad.log

One more verification point for the exe file is that the properties of the EXE file shows the original name as "hardshad.exe".
The file "hardshad.log" contains all the keystroke made by the  user since the time the virus got installed.

I deleted all 3 files.

Step 3:
Opened registry (regedit.exe).
Selected the root node. Then, searched for "xmmcc"..
It showed many entries, most of them pointing to drives allocated to pendrives. I deleted them all, except one. which showed

"explorer.exe xmmcc.exe"

Here, I opened the value entry, and removed only the "xmmc.exe" and left the "explorer.exe" as it is.

After I rebooted the system, the virus was no longer present.

Friday, September 17, 2010

Disable Autorun for USB Pen drives and CD Drives

Disabling autorun for USB drives prevents a lot of virus from jumping into the system as most of the "small" guys use the AutoRun feature to trigger themselves. There is a way to disable it completely.

Click "Start / Run" and type "gpedit.msc". It should open a windows like the one below

(Click on it to open a bigger image).


In that go to the branch on the left hand side frame following the below path

"Local Computer Policy / Computer Configuration / Administrative Templates / System"

Clicking on "System" will list lots of items on the right window. One of them is "Turn Off Autoplay".

Double click on that, make sure to select "Enabled" radio button and on the list box below, select "All Drives".

This should disable Autorun in all usb and cd/dvd drives on the system.