When it is written
Windows writes 4648 when a process tries to log on an account by stating that account's credentials explicitly, instead of using the credentials of the session it runs in. Microsoft names batch-type configurations such as scheduled tasks, and the RUNAS command, as the most common causes, and adds that the event also appears from time to time during normal operating system activity. Microsoft documents only a success form of the event.
The event is written on the computer where the process ran, the one that held and supplied the credentials. Target Server Name says where they were used: localhost when the process ran on this computer, otherwise the other server's name. The logon itself is recorded where it happened: 4624 on the computer that was reached (this one for localhost) and, for a domain account, 4768 and 4769 (Kerberos) or 4776 (NTLM) on the domain controller. That makes 4648 the source-side trace of logons that the library's rules read on the target and on the domain controller.
How to turn it on
Advanced audit policy subcategory Audit Logon, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Logon/Logoff > Audit Logon| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
| Member servers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
| Workstations | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
auditpol /get /subcategory:"Logon"auditpol /set /subcategory:"Logon" /success:enableauditpol /get /subcategory:"{0CCE9215-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account whose process supplied the credentials (Subject, Security ID). Event Viewer resolves SIDs to names. | v0 |
Account NameSubjectUserNameSubject | Name of that account. For a process running as the local system it is the computer account, ending with $. | v0 |
Account DomainSubjectDomainNameSubject | Domain or computer name of the subject, as a NetBIOS name or a DNS name in either case; NT AUTHORITY for some well-known principals; the computer's name for a local account. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the subject's own session, in hexadecimal, which matches the Logon ID of that session's logon (4624) on this computer. | v0 |
Logon GUIDLogonGuidSubject | Logon GUID shown under Subject. Microsoft describes it as a value to match with 4769 on a domain controller and with 4624 and 4964 on this computer. All zeros when it was not captured, as in Microsoft's example. | v0 |
Account NameTargetUserNameAccount Whose Credentials Were Used | Account whose credentials were used (Account Whose Credentials Were Used, Account Name). This, not the subject, is the identity the logon attempt is for. | v0 |
Account DomainTargetDomainNameAccount Whose Credentials Were Used | Domain of that account as a NetBIOS or DNS name in either case, or the computer's name for a local account. | v0 |
Logon GUIDTargetLogonGuidAccount Whose Credentials Were Used | Logon GUID shown under Account Whose Credentials Were Used. Microsoft gives it the same use as the subject's GUID (matching with 4769, 4624 and 4964), and in its example this is the GUID that is filled. All zeros when not captured. | v0 |
Target Server NameTargetServerNameTarget Server | Server the credentials were used for (Target Server Name): localhost when the process ran on this computer, otherwise the name of the other server. | v0 |
Additional InformationTargetInfoTarget Server | Additional Information. Microsoft does not describe this field; in its example it holds localhost, like Target Server Name. | v0 |
Process IDProcessIdProcess Information | Process that supplied the credentials, as a hexadecimal process ID. Convert it to compare with New Process ID of event 4688 on this computer. | v0 |
Process NameProcessNameProcess Information | Full path of that process's executable. Microsoft suggests comparing it with the processes you expect and with the standard folders. | v0 |
Network AddressIpAddressNetwork Information | Network Address: the address the logon attempt came from, as IPv4, IPv6 or ::ffff:IPv4; ::1 or 127.0.0.1 for this computer, as in Microsoft's example. | v0 |
PortIpPortNetwork Information | Source port of the attempt; 0 for local ones. | v0 |
Values to know
Target Server Name TargetServerName
| Value | Meaning | Signal |
|---|---|---|
localhost | The process ran on this computerThe logon is local; look for 4624 on the same computer. | Expected |
Another computer's name | The credentials were used toward another computerThe logon, if it worked, is 4624 on that computer. For a domain account, the domain controller holds the ticket (4769) or the NTLM validation (4776). | Worth knowing |
Process Name ProcessName
| Value | Meaning | Signal |
|---|---|---|
A path under System32 or Program Files | A system or installed application process | Expected |
A path outside the standard folders, or in a temporary or user folder | A process that is not where software normally runsMicrosoft suggests watching for process names outside the standard folders or in restricted folders, and for any process that is not on your list of expected ones. | Attack signal |
Account Name TargetUserName
| Value | Meaning | Signal |
|---|---|---|
A high-value account | Domain administrator, built-in Administrator, service accountMicrosoft recommends watching every event for such accounts: check that the subject may hold these credentials and that the computer and address are expected. | Worth knowing |
An account that should never be used | A disabled, inactive or guest accountMicrosoft lists such accounts among those to watch. Any use of their credentials is unexpected. | Attack signal |
Volume and noise
Microsoft calls 4648 a routine event that appears periodically during normal operating system activity, and rates the Logon subcategory's volume as low on client computers and medium on domain controllers and network servers. Expect scheduled tasks and services that run under a stored account, administrators using RUNAS, and system processes such as svchost.exe with localhost as the target, as in Microsoft's example from a domain controller.
What matters is a combination that does not fit: an account that should not know another account's credentials, a process outside the usual folders, or the credentials of a privileged account supplied on a computer or from an address where that account is not expected.
Keeping it manageable
- Keep every event whose Account Whose Credentials Were Used (
TargetUserName) is a high-value account: domain administrators, the built-in Administrator, service accounts. Microsoft recommends watching every action of such accounts, and they are few. - Where volume is the limit, drop combinations you have confirmed as routine (the same subject, target account, process and
localhost, such as a scheduled task) instead of the whole event. - Collect it from workstations and member servers, not only from domain controllers: it is written where the credentials were supplied, which for an administrator's RUNAS is the administrator's own workstation.
- To follow an event to the logon it caused, match the Logon GUID with the domain controller's 4769 and with 4624, and Process ID with New Process ID in 4688. Microsoft notes that the GUID is not always captured.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4648</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>12544</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>WS042.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1105</Data>
<Data Name="SubjectUserName">alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x1f3a62</Data>
<Data Name="LogonGuid">{00000000-0000-0000-0000-000000000000}</Data>
<Data Name="TargetUserName">adm-alice</Data>
<Data Name="TargetDomainName">CORP</Data>
<Data Name="TargetLogonGuid">{2b7d4e90-5c1a-4f3e-8d62-7a9c0e1b4f25}</Data>
<Data Name="TargetServerName">localhost</Data>
<Data Name="TargetInfo">localhost</Data>
<Data Name="ProcessId">0x4c8</Data>
<Data Name="ProcessName">C:\Windows\System32\svchost.exe</Data>
<Data Name="IpAddress">::1</Data>
<Data Name="IpPort">0</Data>
</EventData>
</Event>Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
What does event 4648 mean?
A process on this computer supplied an account's credentials explicitly to log on, instead of using the credentials of the session it runs in. Microsoft names scheduled tasks and RUNAS as the common causes and says the event also appears during normal operating system activity. It names the account that ran the process, the account whose credentials were used, the process and the target server.
On which computer is event 4648 logged?
On the computer where the process ran and supplied the credentials, not on the server they were used for. Target Server Name says where they went, localhost for this computer. The logon itself is 4624 on the computer that was reached, and a domain controller records the authentication of a domain account as 4768 and 4769, or 4776 for NTLM.
How do I link event 4648 to the logon it caused?
With the Logon GUID: Microsoft describes it as the value that matches event 4769 on the domain controller and events 4624 and 4964 on the same computer, and notes that it is all zeros when it was not captured. Process ID matches New Process ID in event 4688 for the process that supplied the credentials.
When should event 4648 be investigated?
Microsoft's recommendations: when the account whose credentials were used is a high-value account or one that should never be used, when the subject should not know that account's credentials, when the process is outside the standard folders or not on your expected list, and when the credentials are used from an address they should not come from.