Last summer some people observed a new program called "Disk Knight" to get installed automatically on their USB drives or in their computer without their approval. The problem was that they couldn’t get rid of this software that tends to have the same behavior as a malware program.
What is this program?
Why doesn’t the antiviruses alarm the user of the potential threat?
Well the program is made by a Bangladeshi student and what it claims to do is to prevent the launch of any other program that resides in the USB drive protecting this way the computer. So if the USB drive is infected with a malware program or virus it won’t infect the computer that will be inserted too. The Disk Knight will then popup a message that will say that your computer is safe and something like that.
The real problem is what if you don’t want to have this program installed in your USB stick or even worse in your computer?
The process to remove Disk Knight from the USB stick is relatively easy.
- open your task manager by pressing Control+Shift+Escape
- kill the process "knight.exe"
- open a windows explorer and go to Tools -> Folder Options.
- go to View tab and check the "Show hidden files and folders" radio button
- open with the windows explorer the USB drive
- delete the files "Knight.exe" and "autorun.inf"
The process to delete the Disk Knight from the computer is more tricky
IMPORTANT!!! the steps below require advanced knowledge of the Windows operating system. Make sure you know what you ‘re doing. I will not be responsible for making your system inoperable.
- go to Start -> run
- type regedit in the box and hit OK
- make a backup of your registry first by highlighting "My Computer" and the click on File -> Export…
- Give any name you want and save the registry file wherever you like
- click Edit -> Find…
- type in the box "knight" and hit "Find Next"
- in the search results that will return check to be sure that the registry entry refers to "Disk Knight" and delete it
- if you are unsure leave it
- when the registry is cleaned delete the file "X:\Windows\knight.exe" where "X" is the drive where the Windows are installed
- delete the files in the "X:\Windows\Prefetch\Knight.exe-<random string here>" where <random string here> is a random string
Edit: I found out that the registry keys affected by Disk Knight are:
Registry Keys affected by Disk Knight
| Key |
Entry |
Value |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ MountPoints2\ {24e5e75b-c58e-11db-b1ba-008048346ae9}\ Shell\ AutoRun\ command |
@ |
X:\WINDOWS\ system32\ RunDLL32.EXE Shell32.DLL, ShellExec_RunDLL Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \auto \command |
@ |
<usb drive letter>:\ Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \explore \command |
@ |
<usb drive letter>:\ Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \find \command |
@ |
<usb drive letter>:\ Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2\ {24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \install \command |
@ |
<usb drive letter>:\ Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \install |
@ |
&Disk Knight |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \Shell \open \command |
@ |
<usb drive letter>:\ Knight.exe open |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \_Autorun \Action |
@ |
Disk Knight (Protection Against Mobile Disk Viruses) |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \CurrentVersion \Explorer \MountPoints2 \{24e5e75b-c58e-11db-b1ba-008048346ae9} \_Autorun \DefaultIcon |
@ |
<usb drive letter>:\ Knight.exe,0 |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \ShellNoRoam \MUICache |
X:\ WINDOWS\ Knight.exe |
Coded & Compiled in VB6 |
| HKEY_USERS \S-1-5-21-1935655697-1284227242-725345543-1003 \Software \Microsoft \Windows \ShellNoRoam \MUICache |
<usb drive letter>:\ Knight.exe |
Coded & Compiled in VB6 |
| HKEY_LOCAL_MACHINE \SOFTWARE \Knight \Settings |
- |
- |
| HKEY_LOCAL_MACHINE \SOFTWARE \Knight |
- |
- |
| HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Run |
Disk Knight |
X:\ WINDOWS\ Knight.exe |
| HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Uninstall \Disk Knight |
DisplayName |
Disk Knight |
| HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Uninstall \Disk Knight |
Readme |
res:// X:\WINDOWS\ Knight.exe /about.html |
| HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Uninstall \Disk Knight |
UninstallString |
X:\ WINDOWS\ Knight.exe uninstall |
| HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Uninstall \Disk Knight |
- |
- |
Where "X" is the drive where the Windows are installed and <usb drive letter> is the drive letter of your usb drive. Those long string keys may not be the same on your installation so don’t expect to find them that way. Those keys are given only for reference and to be sure that you are deleting the correct registry keys.
When you reach this part you will notice tha you can’t execute any .exe program. Don’t panic and don’t consider formating your disk and reinstalling Windows
- Click Start -> Run and type Command in the box and hit OK
- On the Command Prompt tha will popup write one by one:
- On the registry editor navigate to the key*:
HKEY_CLASSES_ROOT\exefile\shell\open\command
- Double-click the (Default) value in the right pane
- Delete the current value data, and then type: "%1" %* which means quote-percent-one-quote-space-percent-asterisk
HKEY_CLASSES_ROOT\.exe
- In the right-pane, set (default) to exefile
- Exit the Registry Editor.
You are done!!!
* If you’re unable to launch Regedit.exe even from Command Prompt, try this:
copy regedit.exe regedit.com