Core Windows Processes
Table of Contents
- Process Reference
- System Idle Process
- System (PID 4)
- smss.exe — Session Manager Subsystem
- csrss.exe — Client/Server Runtime Subsystem
- wininit.exe — Windows Initialisation
- services.exe — Service Control Manager
- lsass.exe — Local Security Authority Subsystem
- winlogon.exe — Windows Logon Application
- svchost.exe — Service Host
- explorer.exe — Windows Explorer
- Key Detection Signals
- Investigation Commands
- Tips
Reference for legitimate Windows process behaviour. Knowing what is normal for each process makes anomalies immediately visible during incident triage — wrong parent, wrong path, unexpected network connections, or unusual resource usage are the primary indicators of process-based compromise.
Related: windows client DFIR Mimikatz Windows Event Logs Sysinternals Suite Sysmon
Process Reference
System Idle Process
Not a real process — accounts for idle CPU time. High percentage means CPU is available. Not a malware target directly.
System (PID 4)
Kernel-mode process managing drivers, memory, and hardware. Low CPU normally; spikes on hardware activity.
| Expected | Suspicious |
|---|---|
| PID always 4 | Network connections |
| No parent | High sustained CPU |
| Runs in kernel space | Any child processes outside kernel drivers |
Rootkits and kernel-level compromise are the primary concern.
smss.exe — Session Manager Subsystem
First user-mode process. Starts csrss.exe and winlogon.exe,
sets environment variables, creates sessions.
| Expected | Suspicious |
|---|---|
| Parent: System (PID 4) | Parent other than System |
| Goes dormant after startup | Persistent high activity |
| One master instance | Multiple running instances |
Path: \SystemRoot\System32\smss.exe |
Any other path |
csrss.exe — Client/Server Runtime Subsystem
Manages GUI rendering and console windows. One instance per session.
| Expected | Suspicious |
|---|---|
| Parent: smss.exe | Any other parent |
| Multiple instances (one per session) | Network connections |
Path: C:\Windows\System32\csrss.exe |
Any other path |
| Low-moderate CPU | High CPU/memory |
Common code injection target.
wininit.exe — Windows Initialisation
Starts services.exe, lsass.exe, and lsm.exe for Session 0.
One instance only.
| Expected | Suspicious |
|---|---|
| Parent: smss.exe | Any other parent |
| Single instance | Multiple instances |
| Low resource usage | Unexpected child processes |
services.exe — Service Control Manager
Manages all Windows services. Parent of most legitimate service processes.
| Expected | Suspicious |
|---|---|
| Parent: wininit.exe | Any other parent |
| Single instance | Multiple instances |
Path: C:\Windows\System32\services.exe |
Any other path |
Malware often registers a rogue service under services.exe or masquerades as a service.
lsass.exe — Local Security Authority Subsystem
Handles authentication, stores password hashes in memory, generates access tokens. Primary credential dumping target.
| Expected | Suspicious |
|---|---|
| Parent: wininit.exe | Any other parent |
| Single instance | Multiple instances |
Path: C:\Windows\System32\lsass.exe |
Any other path |
| Low stable CPU | High CPU or memory |
| No network connections | Outbound connections |
| No child processes | Any child processes |
Mimikatz targets this process. Any non-system process attempting to open a handle to lsass.exe memory is a critical alert — Sysmon Event ID 10 captures this.
winlogon.exe — Windows Logon Application
Handles interactive user sessions, loads user profiles, manages Ctrl+Alt+Del. One instance per interactive session.
| Expected | Suspicious |
|---|---|
| Parent: smss.exe | Any other parent |
| One per session | Unexpected instances |
| High CPU only during logon/logoff | Persistent high CPU |
Path: C:\Windows\System32\winlogon.exe |
Any other path |
svchost.exe — Service Host
Generic host for services running as DLLs. Many instances are normal — each groups related services.
| Expected | Suspicious |
|---|---|
| Parent: services.exe | Any other parent |
Path: C:\Windows\System32\svchost.exe |
Any other path |
| Runs as SYSTEM, LOCAL SERVICE, or NETWORK SERVICE | Other user context |
| Each instance hosts known services | Instance with no services or unknown service |
Most common masquerade target — malware names itself
svchost.exe and runs from a different path.
# Inspect services hosted by each svchost instance
Get-WmiObject Win32_Service | Where-Object {$_.ProcessId -eq <PID>}
# Or with tasklist
tasklist /svc | findstr svchost
# Check path — all legitimate instances run from System32
Get-Process svchost | Select-Object Id, Path
explorer.exe — Windows Explorer
User shell — desktop, taskbar, file manager. One instance per interactive user.
| Expected | Suspicious |
|---|---|
| Parent: userinit.exe (which then exits) | Unexpected active parent |
| One per logged-in user | Multiple instances with no multi-user explanation |
Path: C:\Windows\explorer.exe |
Any other path |
| Network connections only for user-initiated activity | Unexplained outbound connections |
Frequent injection target due to permanent presence and user-level privileges.
Key Detection Signals
Wrong path — any core process running outside System32 Wrong parent — check against the table above Multiple instances where only one is expected Network connections from processes that shouldn't make them (lsass.exe, smss.exe, wininit.exe) Unexpected child processes Running under a user account instead of SYSTEM/LOCAL SERVICE
Investigation Commands
# List all processes with parent IDs
Get-WmiObject Win32_Process | Select-Object Name, ProcessId, ParentProcessId, ExecutablePath
# Find processes not in System32
Get-WmiObject Win32_Process |
Where-Object {$_.ExecutablePath -and $_.ExecutablePath -notlike "*System32*"} |
Select-Object Name, ProcessId, ExecutablePath
# Check svchost instances and their services
tasklist /svc | findstr svchost
# Network connections with owning process
Get-NetTCPConnection | Where-Object {$_.State -eq "Established"} |
Select-Object LocalPort, RemoteAddress, RemotePort, OwningProcess
Tips
- Sysinternals Process Explorer is the fastest tool for checking parent-child relationships and DLLs loaded into each process — more informative than Task Manager
- Sysmon Event ID 1 (process creation) and Event ID 10 (process access) are the most valuable for detecting process anomalies — particularly lsass.exe access attempts
- A process named
svchost.exerunning fromC:\Windows\TemporC:\Users\...is almost certainly malware — path check first, always lsass.exewith a child process is a near-certain compromise indicator — it should never spawn children under normal conditions