A process attempted logon with explicitly provided credentials while already logged on (runas, credential injection). Key fields: AccountName, TargetServerName, TargetAccount.
Classic Pass-the-Hash indicator. Mimikatz sekurlsa::pth generates this. Impacket tools (psexec.py, wmiexec.py) trigger 4648 on source hosts. Key: TargetAccount differs from SubjectAccount AND spawning process is unexpected.
Alert: SubjectUserName != TargetUserName AND process NOT in (runas.exe, mstsc.exe, known admin tools). Alert: any 4648 where TargetAccount is a Domain Admin. Correlate with 4624 Type 9 on the remote target.
SubjectUserNameTargetUserNameTargetServerNameIpAddress | Tactic | Technique |
|---|---|
| Lateral Movement | Pass the Hash (T1550.002) |
| Privilege Escalation | Access Token Manipulation (T1134) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Explicit Credential Logon — Possible PtH
status: experimental
description: Logon with explicit credentials where account differs from running account
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: security
detection:
selection:
EventID: 4648
filter_runas:
ProcessName|endswith: '\\runas.exe'
condition: selection and not filter_runas
falsepositives:
- Legitimate runas /netonly usage
- Scheduled tasks with alternate accounts
level: medium
tags:
- attack.lateral_movement
- attack.t1550.002
SecurityEvent
| where EventID == 4648 // A logon was attempted using explicit credentials
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, TargetServerName, IpAddress
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4648
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A logon was attempted using explicit credentials — add EventData fields: SubjectUserName, TargetUserName, TargetServerName, IpAddress`
A logon was attempted using explicit credentials. A process attempted logon with explicitly provided credentials while already logged on (runas, credential injection). Key fields: AccountName, TargetServerName, TargetAccount.
Event 4648 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Event 4648 is associated with: Pass the Hash (T1550.002), Access Token Manipulation (T1134).
Alert: SubjectUserName != TargetUserName AND process NOT in (runas.exe, mstsc.exe, known admin tools). Alert: any 4648 where TargetAccount is a Domain Admin. Correlate with 4624 Type 9 on the remote target.