Event ID 4648: A logon was attempted using explicit credentials
Event 4648 is generated when a user logs on using explicit credentials different from their current session, typically via RunAs, scheduled tasks, or remote access tools. This event is crucial for detecting lateral movement, privilege escalation with stolen credentials, and pass-the-hash attacks where attackers use compromised credentials to authenticate to remote systems.
- Channel
- Security
- Logged by default
- Yes
- Written on
- Source host
- Volume
- Moderate
- Audit subcategory
- Logon
- Needs a SACL
- No
To have this event
- Enable Logon:
auditpol /set /subcategory:"Logon" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account name that used explicit credentials |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID of the session |
| TargetUserName | Account name whose credentials were used |
| TargetDomainName | Domain of the target account |
| TargetServerName | Target server or resource name |
| ProcessName | Process that used explicit credentials (often RunAs, PowerShell, or custom apps) |
| IpAddress | Target IP address |
In an investigation
Event 4648 provides critical visibility into credential usage patterns that often indicate lateral movement during active intrusions. When an attacker compromises credentials through credential dumping (Mimikatz, LSASS memory access) or password reuse, they use these credentials to authenticate to remote systems while maintaining their current session. This event captures both the account performing the authentication (source) and the credentials being used (target), enabling detection of anomalous credential usage. Common scenarios include runas.exe execution with domain admin credentials, scheduled task creation with specific service accounts, and network authentication to file shares or administrative shares. The event includes process information showing which application initiated the explicit credential usage.
What it can reveal
- Lateral movement detection when compromised accounts authenticate to multiple systems in rapid succession
- Pass-the-hash and pass-the-ticket attacks visible when NTLM or Kerberos credentials are reused across systems
- Privilege escalation when standard user accounts invoke processes with administrative credentials
- Credential theft detection by correlating Event 4648 with known compromised accounts from credential dumping events
- APT groups like APT1 and Carbanak extensively use stolen credentials with RunAs for lateral movement without creating new accounts
How to detect with it
Establish baselines for normal explicit credential usage patterns in your environment, particularly which accounts legitimately use RunAs or scheduled tasks. Alert on any user account using credentials for accounts with higher privileges than their own, especially non-IT staff using administrative credentials. Monitor for high-frequency Event 4648 generation from a single source system to multiple targets within short time windows (potential lateral movement sweeps). Correlate with Event 4624 Type 3 (network logons) and Event 4672 (special privileges assigned) to build complete authentication chains. Flag explicit credential use of recently reset passwords, service accounts from workstations, or privileged accounts from non-administrative systems. Track process names initiating explicit authentication - legitimate use is typically runas.exe, mstsc.exe, or schtasks.exe, while malicious tools like PsExec, Cobalt Strike, or Metasploit may appear.
Attack patterns
- APT1 lateral movement: After dumping credentials from domain controller memory, attackers used compromised Domain Admin credentials via RunAs to access file servers and executive workstations
- Cobalt Strike beacon activity: Event 4648 generated repeatedly as beacon used stolen credentials to spawn processes on remote systems during lateral movement phase
- Emotet credential abuse: After harvesting credentials with Mimikatz, Emotet operators used Event 4648-generating RunAs to spread to additional domain systems
- Ransomware pre-deployment: LockBit operators used explicit credentials to create scheduled tasks (generating Event 4648) across all domain systems before triggering encryption
Compared withEvent 4648 shows the intention to use specific credentials (what credentials were presented), while Event 4624 shows successful authentication (credentials were accepted). Both events should be correlated for complete authentication visibility.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4648)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
- Lateral movementPsExec and service-based executionSource: Logon with explicit credentials when PsExec is run with -u/-p or alternate credentials.
- Lateral movementWMI remote executionSource: Explicit-credential logon when alternate credentials are supplied to the WMI call.
- Lateral movementsmbexecSource: Explicit-credential logon when alternate credentials are supplied.
- Lateral movementRemote service creationSource: Explicit-credential logon when alternate credentials are passed to the remote SCM call.
- Lateral movementDCOM executionSource: Explicit-credential logon when alternate credentials are used for the DCOM activation.
- InvestigationWhere did this account log on, and was it used for lateral movement?Find the launch points with explicit credentials
- InvestigationWhen did the attacker first get in? Building the initial access timelineNormalize and assemble the timeline
- InvestigationWere credentials stolen from LSASS or the domain controller?Follow the stolen credentials forward
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
Related events
Common questions
- What does Windows event ID 4648 mean?
- Event 4648 is generated when a user logs on using explicit credentials different from their current session, typically via RunAs, scheduled tasks, or remote access tools. This event is crucial for detecting lateral movement, privilege escalation with stolen credentials, and pass-the-hash attacks where attackers use compromised credentials to authenticate to remote systems.
- Is event 4648 logged by default?
- Yes, a default Windows installation records it. It is controlled by the "Logon" Advanced Audit Policy subcategory (Logon/Logoff).
- Where is event 4648 recorded?
- In the Security channel on the source host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderEvent 4648 is generated when a user logs on using explicit credentials different from their current session, typically via RunAs, scheduled tasks, or remote access tools.