Process

unknown

userinit.exe

userinit.exe is the Userinit Logon Application, the process that prepares a user's environment at sign-in and then hands off to the desktop. After winlogon.exe authenticates the user, it runs userinit.exe to do the work that makes the session usable: applying group policy, running logon scripts, and reconnecting mapped network drives. With the environment in place, it launches the desktop shell and exits.

File identity

File details

Not observed.

Signing information

Not observed.

File version0

Not observed.

File size0

Not observed.

Execution context

File paths0

Not observed.

User context0

Not observed.

Integrity level0

Not observed.

Instances0

Not observed.

Session0

Not observed.

Token privileges0

Not observed.

Ancestry

Parents0

Not observed.

Children0

Not observed.

Grandparents0

Not observed.

Grandchildren0

Not observed.

Behavior

Loaded modules0

Not observed.

Named pipes0

Not observed.

Process handles0

Not observed.

Command-line patterns0

Not observed.

Indicators

Hashes

Not observed.

Analysis

About this process

userinit.exe is launched by winlogon.exe as soon as a user authenticates, and it runs as that user from C:\Windows\System32\userinit.exe. Its job is the per-user setup that turns a bare session into a working desktop: applying Group Policy, running any logon scripts, and restoring mapped network drives.

Once that setup is done, userinit.exe starts the user's shell and exits right away. Because its parent is gone almost immediately, explorer.exe and the rest of the session appear as orphans in the process tree, with no living parent. The shell it launches is whatever the Shell value names under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon, normally explorer.exe.

The genuine userinit.exe is a trusted, signed Microsoft system file. It runs for only a second or two at each logon and then exits, so it rarely shows up in a point-in-time process listing.

Security notes

Like other trusted system processes, userinit.exe is sometimes imitated by malware attempting to avoid detection (T1036.005). A legitimate copy always resides in C:\Windows\System32 and carries a valid Microsoft digital signature. Be suspicious of copies running from other locations and of near-miss spellings of the name.

Its name in the registry is a long-standing persistence target (T1547.004). winlogon.exe reads the Userinit value under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon to decide what to run at logon, and the value accepts a comma-separated list. Malware appends its own executable so it launches alongside the real userinit.exe at every sign-in. Anything in that value beyond C:\Windows\system32\userinit.exe warrants a review.

Because the real userinit.exe does nothing but set up the session and start the shell, its children are short-lived and predictable. A command shell or script host launched by userinit.exe, rather than the expected explorer.exe, points to a logon script or registry entry running attacker code (T1059.003).

Anomaly signals7
  • Image path other than C:\Windows\System32\userinit.exehigh
  • Parent other than winlogon.exehigh
  • Unsigned image or a signer other than Microsofthigh
  • A child other than the configured shell (explorer.exe), such as cmd.exe or powershell.exehigh
  • Extra entries in the Winlogon Userinit registry value beyond userinit.exehigh
  • An instance that persists well past logon (it normally exits within seconds)med
  • Running as NT AUTHORITY\SYSTEM rather than the logging-on usermed

Telemetry

OS prevalence0

Not observed.

Observation timeline

Not observed.

References

Subsearch

Hasbeen seen inof userinit.exe?