Where is the best place to look in the registry for a suspect virus attack?
Some viruses or trojans have the ability to alter the registry. What is the recommended solution other than running a virus scan?
Thank you.
Malware
Some viruses or trojans have the ability to alter the registry. What is the recommended solution other than running a virus scan?
Thank you.
by gwebb2 Accepted solution
by rob miners Accepted solution
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 Accepted solution
by rob miners Accepted solution
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.
Sort by Trending