09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5 Autoruns 159<br />

for Svchost services, Autoruns displays the path to the target DLL identified by the ServiceDll<br />

value in the service’s key or its Parameters subkey. There are cases for some services in some<br />

versions of <strong>Windows</strong> where administrative rights are required to view the Parameters key; in<br />

these cases, Autoruns displays the path to Svchost.exe in the image path column.<br />

Be certain you know what you are doing when disabling or deleting services. Missteps can<br />

leave your system with degraded performance, unstable, or unbootable. And again, note that<br />

disabling or deleting a service does not stop the service if it is already running.<br />

One malware technique to watch for is a service that looks like it’s supposed to be part<br />

of <strong>Windows</strong> but isn’t, such as a file named svchost.exe in the <strong>Windows</strong> folder instead of in<br />

System32. Another technique is to make legitimate services dependent on a malware service;<br />

removing or disabling the service without fixing the dependency can result in an unbootable<br />

system. Autoruns’ Jump To feature is handy for inspecting service dependencies in the<br />

registry before making changes.<br />

Drivers<br />

Drivers are also configured in the subkeys of HKLM\System\CurrentControlSet\Services,<br />

but they run in kernel mode, thus becoming part of the core of the operating system. Most<br />

are installed in System32\Drivers and have a .sys file extension. Drivers enable <strong>Windows</strong> to<br />

interact with various types of hardware, including displays, storage, smart card readers, and<br />

human input devices. They are also used to monitor network traffic and file I/O by antivirus<br />

software (and by Sysinternals utilities such as Procmon and Procexp!). And, of course, they are<br />

also used by malware, particularly rootkits.<br />

As with services, the Drivers tab displays drivers that are not marked as disabled, except<br />

those disabled through Autoruns. The Description value comes from the version resource of<br />

the driver file, and the image path points to the location of the driver file.<br />

Most blue-screen crashes are caused by an illegal operation performed in kernel mode, and<br />

most of those are caused by a bug in a third-party driver. (Less common reasons for blue<br />

screens are faulty hardware, the termination of a system-critical process such as Csrss.exe, or<br />

an intentional crash triggered through the keyboard driver’s crash functionality, as described<br />

in Knowledge Base article 244139: http://support.microsoft.com/kb/244139.)<br />

You can disable or delete a problematic driver with Autoruns. Doing so will usually take effect<br />

after a reboot. As with services, be absolutely certain you know what you are doing when<br />

disabling or deleting the configuration of drivers. Many are critical to the operating system,<br />

and any misconfiguration might prevent <strong>Windows</strong> from working at all.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!