Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 19 November 2026.
In one sentence: Event ID 4648 is the Windows record made when a program signs in using a username and password it was handed directly, rather than the account of the person sitting at the keyboard.
What it is
Most of the time Windows uses the account you are already signed in with. Sometimes a program supplies different credentials on purpose. Microsoft describes event 4648 as generated when a process attempts an account logon by explicitly specifying that account’s credentials, most commonly in batch-type configurations such as scheduled tasks, or when using the RUNAS command (Microsoft Learn, event 4648).
Microsoft adds that it is also a routine event which periodically occurs during normal operating system activity. That matters. If you alert on every 4648 you will drown. The skill is reading who used whose credentials, from which program, towards which machine.
How it works
- A program calls Windows and says “sign in as this account, here are its credentials”.
- Windows writes event 4648 on the computer where the request was made.
- The Subject section names the account that made the request. The “Account Whose Credentials Were Used” section names the account that was supplied.
- The Target Server Name says where it was aimed. Microsoft says it has the value “localhost” if the process was run locally, so any other name is a remote machine.
- Process Name shows which program did it, and Network Address shows the IP address the attempt came from.
What it does not tell you: whether the sign-in then succeeded. For that you read 4624 (success) or 4625 (failure) on the target. Microsoft says the Logon GUID can be used to correlate a 4648 with a 4769 Kerberos ticket request on a domain controller, and with 4624 on the same computer.
Who it affects and how badly
Every Windows estate produces these events. The question is whether anyone can tell the harmless ones from the ones that matter.
- Sole trader to 10 staff: you will see a few from scheduled tasks and backup software. Worst case: a stolen admin password is used and nobody notices for weeks because nothing is read.
- 10 to 50 staff (accountancy and legal practices, schools, charities): shared admin accounts and old scheduled tasks with stored passwords create steady noise that hides real events.
- 50 to 250 and regulated firms (fintech, insurance, healthcare, MSPs): service accounts and jump servers use explicit credentials all day. Worst case: one service account used from an unexpected machine goes unseen, and an attacker moves from one server to the next.
What we check on a test
This is the method, not a finding.
- Whether Audit Logon is recording successes, so 4648 is written at all.
- Which scheduled tasks and services run with a stored username and password, and whether those accounts are more powerful than the job needs.
- Whether service and admin accounts can be used from any machine, or only from the few that should use them.
- Whether your team can see, in the logs, the accounts and machines used during an authorised test.
Rules and regulators
- UK: the NCSC’s logging guidance asks whether you can answer “how have your corporate domain and end user devices been accessed and used?”, and points to Active Directory and Windows logs, forwarded centrally with Windows Event Forwarding (NCSC).
- US: CISA’s guidance for small and medium businesses says to set up alerts for high-risk events and to protect logs from unauthorised access or deletion (CISA).
- EU: NIS2 Article 21 lists incident handling and access control policies among the minimum measures for essential and important entities (text of Article 21). It names no event IDs.
A worked example (illustration only)
A 40-person recruitment firm has an old scheduled task that runs a nightly report using a domain admin password stored years ago. One morning the MSP sees a 4648 where a receptionist’s PC is the Subject and that same admin account is the one whose credentials were used, aimed at the file server. The nightly task would never start from a front desk PC. The MSP resets the admin password, checks 4624 on the file server and finds one sign-in. Cost: an hour of checking and one password change. The fix afterwards is to replace the stored admin password with a dedicated low-privilege account for the report.
How to detect it
- In Event Viewer, Windows Logs, Security, filter for Event ID 4648.
- Use Microsoft’s own monitoring ideas: review events where the Subject should not know or use the credentials of the “Account Whose Credentials Were Used”, and events where those credentials should not be used from that Network Address.
- Check that Process Name is a program you expect. Microsoft suggests monitoring a process that is not in a standard folder such as System32 or Program Files.
- Build a short allow list for service accounts (which machines, which processes), then review everything outside it.
- Join to 4624 and 4625 on the target machine to see whether the attempt worked.
How to fix or prevent it
- Stop storing admin passwords in scheduled tasks. Use accounts with only the rights the task needs.
- Give each service account one purpose, and restrict where it can sign in.
- Keep domain admin accounts off ordinary PCs, and out of everyday use.
- Turn on Audit Logon (success and failure) through Group Policy, and forward the Security log to a central place.
- Use multi-factor authentication for people with admin rights, so a stolen password alone is not enough.
- Review scheduled tasks and saved credentials twice a year and remove what is unused.
Related terms
windows event id 4624 successful logon, windows event id 4625 failed logon, windows event id 4688 process creation, windows event id 4672 special privileges assigned, ntlm authentication, how privilege escalation works
Back to the Detection and response hub.
FAQ
Is every 4648 a sign of an attack? No. Microsoft says it is also a routine event during normal operating system activity, and scheduled tasks and RUNAS trigger it.
What does Target Server Name “localhost” mean? Microsoft says it means the process was run locally. Another name points to a different machine.
Does 4648 mean the sign-in worked? No. Check 4624 for success or 4625 for failure on the target.
Sources opened for this entry
- https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4648
- https://www.ncsc.gov.uk/guidance/introduction-logging-security-purposes
- https://www.cisa.gov/audiences/small-and-medium-businesses/secure-your-business/use-logging-on-business-systems
- https://nis2resources.eu/directive-2022-2555-nis2/article-21/
See also: Windows Event ID 4776: NTLM Credential Validation Explained.
How Wolfcore helps
Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring. For a hands-on view, see our penetration testing service.
A stolen or phished password is one way an attacker gets a valid account. Phishy, our phishing simulation software, lets you test whether your staff would hand one over, safely. You can also start the Phishy free trial.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call