Question Locked

Where is the best place to look in the registry for a suspect virus attack?

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Some viruses or trojans have the ability to alter the registry. What is the recommended solution other than running a virus scan?
Thank you.

4 replies

by rob miners

Here is a batch file that I use to check for modifications to the Run Keys in the Registry that will save the output as a text file. You can manually navigate to these Keys. There are seven Keys that could be used by a Virus. Some of the Keys may not exist so there will be no output. Check the file in Notepad and you can Google the files that you are unsure of.

------------------

reg query hklm\Software\Microsoft\Windows\CurrentVersion\Run /s > C:\runKeys.txt

reg query hklm\Software\Microsoft\Windows\CurrentVersion\RunServices /s >> C:\runKeys.txt

reg query hklm\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce /s >> C:\runKeys.txt

reg query hklm\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup /s >> C:\runKeys.txt

reg query hklm\Software\Microsoft\Windows\CurrentVersion\RunOnce /s >> C:\runKeys.txt

reg query hkcu\Software\Microsoft\Windows\CurrentVersion\Run /s >> C:\runKeys.txt

reg query hkcu\Software\Microsoft\Windows\CurrentVersion\RunOnce /s >> C:\runKeys.txt

goto end

:END

-----------------

by 1bn0

I guess I have just been too used to manually navigating to the keys.

by rob miners

Manually navigating the Registry can be cumbersome at the best of times especially when you have several Keys to check.

Another one to check as executable files can be run by Winlogon when Windows starts.

reg query HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon /s > C:\winlogon.txt

This discussion is closed to new replies.