Skip to content
WETNav

LogonTypeDepends on context

5: Service

A service started under a configured account.

How to read it

Service accounts should log on as Type 5 on the servers that host them. A Type 5 logon for a human account, or on a host where that service has never run, suggests a new service was installed.

Find it

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType']='5']]" -MaxEvents 100

About LogonType

LogonType says how a session was created. It is the first field to read on any 4624 or 4625, because the same account means very different things over the console, the network or RDP.

Every LogonType value →

Questions

What does LogonType 5 mean?
Service. A service started under a configured account. Service accounts should log on as Type 5 on the servers that host them. A Type 5 logon for a human account, or on a host where that service has never run, suggests a new service was installed.
Is LogonType 5 a sign of an attack?
It depends on the context around it. Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is LogonType 5 recorded?
In the LogonType field of Windows Security event 4624 (An account was successfully logged on), Windows Security event 4625 (An account failed to log on), Windows Security event 4634 (An account was logged off).
How do I search for LogonType 5?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.