Romeo29, on Mar 30 2009, 08:25 PM, said:
But MSConfig doesnt put keys back into usual places in the registry until you restart, which means you risk running malwares(you never know if they are gone).
While you are correct that it is a bad idea to enable a malware startup just before rebooting if you are not sure the malware files are gone, you are mistaken about data being written to the registry only after a reboot. If you don't mind performing a little experiment I can prove it to you.
You'll need a small utility by the name of RegShot:
http://sourceforge.net/projects/regshot/
Quote
Regshot is an open-source(GPL) registry compare utility that allows you to quickly take a snapshot of your registry and then compare it with a second one - done after doing system changes or installing a new software product.
RegShot does not alter the registry in any way, so it is safe for anyone to run and is a great way to learn more about your registry.
Here is the experiment I conducted and the results--you can try this on your own system with any startup after installing RegShot--I used the Java updater.
*Open
msconfig to the Startup tab and then Open
RegShot.
*In
RegShot, click
1st Shot/Shot. In a few seconds the first snapshot of your registry will be taken. When the Snapshot is finished the
2nd shot button will no longer be grayed out.
*Make your changes now. In my first experiment, I took the checkmark out of
jusched, which is the Java updater startup. Click
Apply to write the changes to the registry.
*In
RegShot, click
2nd Shot/Shot. In a few seconds the second snapshot of your registry will be taken.
*When this Snapshot is finished the
cOmpare button will no longer be grayed out. Click it.
*After the two snapshots are compared, a log in Notepad will open showing what changes were made to the registry. The following is the result of my experiment, and I did not reboot for this data to be written to the registry file.
---
Quote
Keys added:1
----------------------------------
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched
----------------------------------
Values deleted:1
----------------------------------
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SunJavaUpdateSched: ""C:\Program Files\Java\jre6\bin\jusched.exe""
----------------------------------
Values added:5
----------------------------------
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\key: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\item: "jusched"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\hkey: "HKLM"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\command: ""C:\Program Files\Java\jre6\bin\jusched.exe""
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\inimapping: "0"
----------------------------------
Values modified:1
----------------------------------
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\state\startup: 0x00000000
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\state\startup: 0x00000002
----------------------------------
Total changes:8
----------------------------------
The second experiment, I followed the same procedure and put the check back next to
jusched and clicked Apply. Here are the results--again without rebooting.
---
Quote
----------------------------------
Keys deleted:1
----------------------------------
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched
----------------------------------
Values deleted:5
----------------------------------
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\key: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\item: "jusched"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\hkey: "HKLM"
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\command: ""C:\Program Files\Java\jre6\bin\jusched.exe""
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\SunJavaUpdateSched\inimapping: "0"
----------------------------------
Values added:1
----------------------------------
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SunJavaUpdateSched: ""C:\Program Files\Java\jre6\bin\jusched.exe""
----------------------------------
Values modified:2
----------------------------------
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: 09 82 9C 20 9E 0A 87 A8 07 94 4D 38 30 B7 14 15 BE BC C5 6B 5C 63 64 61 BF 2A 8C C7 1B 79 E0 03 E7 10 B1 9F BD 32 10 48 F8 1C D2 83 EF 4F AD B5 25 92 13 7E 33 A3 2B ED 0D 0D 23 C6 22 03 43 33 49 C5 1C 65 DE 17 FF 52 78 B7 0B 68 C7 C4 BD B1
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: 89 0A 39 BF 94 02 57 CA CF A7 6A AF 0A FD 5F C1 B9 6B 4B 61 19 15 37 C3 9E F7 A9 A6 DE D3 3A AF 1F EE E3 A4 DB 46 4C 1F 88 64 ED EE 4B 61 A6 AF C8 B7 62 14 79 54 89 E5 EA E3 9F ED AF 61 02 93 EC A6 9F E7 CF 19 3A C8 1F 65 52 FB 64 8D 55 3E
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\state\startup: 0x00000002
HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\state\startup: 0x00000000
----------------------------------
Total changes:9
----------------------------------
Now if you were to restore a startup whether malware or not and then reboot, then the program will begin running when windows starts. That's the definition of a startup. But if you just re-enable the startup without rebooting, the program will not run unless you start it yourself. I just mentioned that you can do this in order to get the reg entry in an easier to locate and manipulate place so that it can be deleted
before rebooting.
To delete the reg entry use any tool you prefer:
Windows Registry Editor (regedit)
HijackThis
AutoRuns
Startup Control Panel
A registry import file
They all do the same thing--delete the value and data from this reg key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Romeo29, on Mar 30 2009, 08:25 PM, said:
IMHO I dont like HijackIt logs they dont give desired details. For example, they enlist many "svchost.exe" instances running but they dont show the command-line. On the other hand, AutoRuns Data saves all the details. And when you load up data file back into Autoruns, you can clearly see all the processes as if they are on your own sytem. I dont understand why BleepingComputer is so crazy about HijackIt logs.
Well, first of all, I don't like HijackIt logs either as I've never seen one. HijackThis logs, however, I've been observing the use of, then using and training of others in its use for over six years now.
I'm not sure what you are trying to say about AutoRuns when you talk about loading data files and looking at processes. Are you sure you aren't confusing it with Process Explorer, also by SysInternals? AutoRuns just deals with startups, which is a registry thing--the only thing I can find in AutoRuns that has anything to do with processes is a menu item where you can switch to Process Explorer--I just tried it and it says I have to have PE installed and running for it to work.
You don't have to look at a svchost process command line to find out what services are running--and you don't have to use HijackThis to do malware removal. HJT does show standard services in the 023 section. Drivers, which are what most rootkits are and have similar architecture to services, are not shown in HJT however--where AutoRuns does show them. HJT has fallen a bit behind the times, I never said it showed as much as AutoRuns--why do you think the Prep guide now does not even ask for HijackThis to be run?
http://www.bleepingcomputer.com/forums/topic34773.html
Instead BC asks that DDR be run that has more comprehensive information, including listing drivers. In malware removal you use whatever tool is necessary to accomplish the goal--I don't care if it's Mother Mabel's Mighty Mojo. All I said was that HijackThis is safer to use than AutoRuns--but neither is completely safe if you don't pay attention and know what you are doing.
For a couple of years now, it's been debated whether or not HijackThis should be phased out. But it still has a usefullness, unlike another of merijn's programs that is still used by some people but is completely obsolete now--CWShredder.
But for the first four or five years of its existence, HijackThis helped out thousands, if not more than a million people get back use of their computer when they had given up hope. So why begrudge people who have a fondness for this little app?