Core Windows Processes 1677920846
Core Windows Processes 1677920846
Task Manager
Task Manager is a built-in GUI-based Windows utility that allows users to see
what is running on the Windows system. It also provides information on resource
usage, such as how much each process utilizes CPU and memory. When a
program is not responding, Task Manager is used to end (kill) the process.
To open Task Manager, right-click the Taskbar. When the new window appears,
select Task Manager (as shown below).
PID - This is known as the process identifier number. Windows assigns a unique
process identifier each time a program starts. If the same program has multiple
running processes, each will have its unique process identifier (PID).
Process name - This is the file name of the process. In the above image, the file
name for Task Manager is Taskmrg.exe.
Let's move to the Details tab. This view provides some core processes that will be
discussed in this room. Sort the PID column so that the PIDs are in ascending order.
Add some additional columns to see more information about these processes. Good
columns to add are Image path name and Command line .
Process Hacker
Moving forward, we'll use Process Hacker and Process Explorer instead of Task
Manager to obtain information about each Windows process.
System
The first Windows process on the list is System. It was mentioned in a previous
section that a PID for any given process is assigned at random, but that is not
the case for the System process. The PID for System is always 4. What does
this process do exactly?
Now, what is normal behaviour for this process? Let's use Process Explorer and
view the properties of the System.
This process starts the kernel and user modes of the Windows subsystem (you
can read more about the NT Architecture here). This subsystem includes
win32k.sys (kernel mode), winsrv.dll (user mode), and csrss.exe (user mode).
Number of Instances: One master instance and child instance per session. The
child instance exits after creating the session.
Start Time: Within seconds of boot time for the master instance
More than one running process. (children self-terminate and exit after each new
session)
csrss.exe
As mentioned in the previous section, csrss.exe (Client Server Runtime
Process) is the user-mode side of the Windows subsystem. This process is
always running and is critical to system operation. If this process is terminated
by chance, it will result in system failure. This process is responsible for the
Win32 console window and process thread creation and deletion. For each
instance, csrsrv.dll, basesrv.dll, and winsrv.dll are loaded (along with others).
This process is also responsible for making the Windows API available to other
processes, mapping drive letters, and handling the Windows shutdown
process. You can read more about this process here.
Note: Recall that csrss.exe and winlogon.exe are called from smss.exe at startup for
Session 1.
What is normal?
Session 0 (PID 392)
What is unusual?
An actual parent process. (smss.exe calls this process and self-terminates)
wininit.exe
The Windows Initialization Process, wininit.exe, is responsible for launching
services.exe (Service Control Manager), lsass.exe (Local Security Authority), and
lsaiso.exe within Session 0. It is another critical Windows process that runs in the
background, along with its child processes.
What is normal?
What is unusual?
An actual parent process. (smss.exe calls this process and self-terminates)
What is normal?
What is unusual?
A parent process other than wininit.exe
What is normal?
What is unusual?
A parent process other than services.exe
What is normal?
What is unusual?
An actual parent process. (smss.exe calls this process and self-terminates)
explorer.exe
The last process we'll look at is Windows Explorer, explorer.exe. This process
gives the user access to their folders and files. It also provides functionality for other
features, such as the Start Menu and Taskbar.
There will be many child processes for explorer.exe.
Note: The above image is the explorer.exe properties view from Process Explorer.