Skip to main content
4624SecurityLogon/LogoffSecurity tier 1

Event ID 4624: An account was successfully logged on

Event ID 4624 is the Windows Security log entry generated on the destination machine every time a logon session is created successfully, regardless of logon method. It fires for interactive desktop logons, network share access, RDP sessions, scheduled task execution, and service starts alike, so the Logon Type field is what actually tells an analyst what happened.

What Triggers Event 4624

Event 4624 sits in the Audit Logon subcategory of the Windows Security audit policy, under Advanced Audit Policy Configuration > Logon/Logoff. It writes to the Security channel on the machine that was accessed, the destination side of the logon, not the source. Every time Local Security Authority Subsystem Service (LSASS) finishes building a logon session and issues an access token, this event fires.

That covers a wide range of triggers: a user typing a password at a physical console, a domain controller validating a Kerberos ticket for a network share request, Task Scheduler running a job under a service account, the Service Control Manager starting a Windows service, an RDP client completing its handshake, or a workstation unlocking after being locked. All of these produce the same event ID with the same base schema; the field that separates them is Logon Type, a small integer carried in the Logon Information section.

The subject fields (Subject Security ID, Subject Account Name, Subject Account Domain, Subject Logon ID) describe who or what reported the logon, which for most interactive and network logons is the SYSTEM account itself, since LSASS is the process actually creating the session. The Microsoft documentation calls this out directly: if Subject Security ID is not SYSTEM, that is worth a second look, because it usually means a non-standard logon path is in play.

The New Logon block (Security ID, Account Name, Account Domain, Logon ID, Linked Logon ID) is where the actual identity that received access lives, and Logon ID here is the value every other Security event for that session will carry, letting an analyst pivot from the logon straight into everything that account did before its matching 4634 logoff.

Network Information (Workstation Name, Source Network Address, Source Port) tells you where the logon came from, but this section is inconsistently populated: Kerberos-authenticated network logons frequently leave Workstation Name blank because Kerberos doesn't carry that data the way NTLM does, and purely local interactive logons show 127.0.0.1 or a blank source address rather than a real network origin.

Detailed Authentication Information carries Logon Process (the trusted component that handled the logon, commonly User32 for interactive sessions, Kerberos or NtLmSsp for network ones) and Authentication Package Name, which resolves to NTLM, Kerberos, or Negotiate. Negotiate is not a protocol itself, it's the Windows SSPI layer that picks Kerberos when it's available and falls back to NTLM otherwise, so a Negotiate entry with an actual NTLM sub-package populated in Package Name (NTLM only) tells you Kerberos wasn't used for that session even on a domain-joined host, which matters in a Kerberoasting or NTLM-relay investigation.

Since Windows 10 the event also carries Restricted Admin Mode (only meaningful on Logon Type 10, flags whether the RDP session avoided placing cleartext-derivable credentials on the target), Virtual Account (Yes/No, flags Managed Service Accounts and similar), and Elevated Token (Yes/No, flags whether the resulting session carries administrative rights, distinct from the account merely being an administrator).

A SOC sees 4624 constantly: it is one of the highest-volume events in any Security log, often outnumbering nearly every other audit category combined on a busy domain controller, because every file share access, every scheduled task tick, and every service restart produces one. That volume is exactly why the event is filed under noise-management concerns as much as detection concerns; most SIEM onboarding work for Windows starts with figuring out how to keep 4624 without drowning the pipeline in it.

The event pairs tightly with 4625 (failed logon, same schema minus the New Logon success fields, plus a Status/Sub Status failure code) and with 4634/4647 (logoff, closes out the Logon ID lifecycle a 4624 opens). It's also frequently read alongside 4648, which logs a logon attempted with explicit credentials, a pattern that shows up when a user runs an application as a different account and that separate logon subsequently produces its own 4624 with a distinct Logon ID.

Attacker activity lights this event up in a few recognizable shapes. Lateral movement with stolen or harvested credentials produces a 4624 with Logon Type 3 (Network) from the pivot host, usually paired with NTLM authentication when Kerberos delegation isn't available to the attacker. Pass-the-hash tooling authenticates against a target using only the NTLM hash, without ever needing the plaintext password, and the resulting 4624 typically shows Logon Type 3, Authentication Package NTLM, and a Logon Process of NtLmSsp or the tool's own registered process name rather than a standard Windows component.

Remote access via compromised RDP credentials produces Logon Type 10 from a Source Network Address that, on a well-scoped internal network, has no business reaching that host directly, or from a public IP entirely if RDP is directly exposed. Credential-pivoting after a local compromise, where an attacker who only has local rights on a box wants to reach domain resources with credentials obtained elsewhere, produces Logon Type 9 (NewCredentials), the same signature runas /netonly generates for legitimate administrative use, which is precisely what makes it worth separating carefully rather than ignoring.

Event 4624 Fields

FieldWhat it tells youSimulated value
SubjectUserSidSID of the account that reported the logon, usually SYSTEM since LSASS creates the session.S-1-5-21-424242-519986
SubjectUserNameAccount name that reported the logon; a non-SYSTEM value here is itself worth reviewing.a.chen
TargetUserSidSID of the account for which the logon session was actually created (the New Logon identity).S-1-5-21-424242-836383
TargetUserNameAccount name that received the new logon session.a.chen
TargetDomainNameDomain or computer name the logged-on account belongs to.corp.socsimulator.example
TargetLogonIdHex logon session ID; correlates this event to every later Security event for the same session and its matching 4634 logoff.simulated-targetlogonid-2D4E68
LogonTypeInteger code identifying how the logon occurred (interactive, network, service, RDP, etc.); the primary triage field.10
LogonProcessNameTrusted logon process that handled the request, e.g. User32, Kerberos, NtLmSsp, or Advapi for RDP/service logons.C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
AuthenticationPackageNameAuthentication protocol used: NTLM, Kerberos, or Negotiate (which itself resolves to one of the two).Negotiate
WorkstationNameSource machine name for the logon; frequently blank on Kerberos network logons since the protocol doesn't carry it.WS-SIM-432
IpAddressSource network address the logon originated from; 127.0.0.1 or blank for purely local sessions.198.51.100.53
ProcessNameFull path of the executable on the target host that requested the logon.C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
ElevatedTokenYes/No flag showing whether the resulting session carries administrative privileges.simulated-elevatedtoken-9A8F8B
RestrictedAdminModeYes/No flag, populated only for Logon Type 10, showing whether RDP Restricted Admin mode was used.simulated-restrictedadminmode-ED0E26

Decode Event 4624 Codes

Click a code to see what it means during triage and when it points at something worth escalating.

Example Event 4624 Log

A representative Security entry for Event 4624, generated deterministically by our telemetry engine so every field holds a realistic, internally consistent value.

Simulated example generated by SOCSimulator Research
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" />
    <EventID>4624</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2025-08-18T15:53:58.000Z" />
    <EventRecordID>821660</EventRecordID>
    <Channel>Security</Channel>
    <Computer>WS-SIM-001.corp.socsimulator.example</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="SubjectUserSid">S-1-5-21-424242-519986</Data>
    <Data Name="SubjectUserName">a.chen</Data>
    <Data Name="TargetUserSid">S-1-5-21-424242-836383</Data>
    <Data Name="TargetUserName">a.chen</Data>
    <Data Name="TargetDomainName">corp.socsimulator.example</Data>
    <Data Name="TargetLogonId">simulated-targetlogonid-2D4E68</Data>
    <Data Name="LogonType">10</Data>
    <Data Name="LogonProcessName">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</Data>
    <Data Name="AuthenticationPackageName">Negotiate</Data>
    <Data Name="WorkstationName">WS-SIM-432</Data>
    <Data Name="IpAddress">198.51.100.53</Data>
    <Data Name="ProcessName">C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</Data>
    <Data Name="ElevatedToken">simulated-elevatedtoken-9A8F8B</Data>
    <Data Name="RestrictedAdminMode">simulated-restrictedadminmode-ED0E26</Data>
  </EventData>
</Event>

Detecting Event 4624

External or unfamiliar RDP logons (Logon Type 10)

index=wineventlog EventCode=4624 Logon_Type=10 | where NOT cidrmatch("10.0.0.0/8", Source_Network_Address) AND NOT cidrmatch("172.16.0.0/12", Source_Network_Address) AND NOT cidrmatch("192.168.0.0/16", Source_Network_Address) | stats count by TargetUserName, Source_Network_Address, ComputerName

Logon Type 9 (NewCredentials) outside known admin jump boxes

index=wineventlog EventCode=4624 Logon_Type=9 | where NOT ComputerName IN ("JUMPBOX01", "JUMPBOX02") | table _time, TargetUserName, ComputerName, ProcessName

NTLM authentication on a domain-joined host where Kerberos is expected

index=wineventlog EventCode=4624 AuthenticationPackageName=NTLM Logon_Type IN (2,3,10) | stats count by TargetUserName, ComputerName, WorkstationName

First-time account-to-host logon (baseline deviation)

Lucene carries the base filter only; run the first-seen comparison in your SIEM.

index=wineventlog EventCode=4624 | stats earliest(_time) as first_seen by TargetUserName, ComputerName | where first_seen > relative_time(now(), "-1d@d")

Service (Type 5) or Batch (Type 4) logon under a privileged account

index=wineventlog EventCode=4624 Logon_Type IN (4,5) | lookup privileged_accounts.csv account AS TargetUserName OUTPUT is_privileged | where is_privileged="true" | table _time, TargetUserName, Logon_Type, ComputerName

True Positive vs False Positive

The overwhelming majority of 4624 events an analyst will ever see are exactly what they claim to be: a user unlocking their workstation (Type 7), a service starting on schedule (Type 5), a batch job running under a service account (Type 4), or a workstation pulling group policy over the network (Type 3, machine account, not a human).

None of that is inherently interesting, and alerting on raw 4624 volume without narrowing by Logon Type, account, and source produces an unworkable number of false positives on day one. The triage discipline is always the same: use Logon Type to decide which population the event belongs to, then judge the specific event against what's normal for that population.

Type 2 (Interactive) and Type 11 (CachedInteractive, credentials validated from a locally cached hash because the domain controller was unreachable) are usually benign on the account's assigned workstation during business hours. They become worth investigating when the Workstation Name or Computer target doesn't match where that user normally logs on, when the logon happens far outside the account's known schedule, or when Type 11 fires repeatedly for an account that should always have DC connectivity, since that can indicate an attacker deliberately working offline-cached logons to avoid domain-side controls.

Type 7 (Unlock) is close to always noise; it fires every time someone steps away from their desk and comes back, and the only thing worth watching is unlock events on a workstation the assigned user isn't supposed to be near.

Type 3 (Network) is the highest-volume type by a wide margin and the least useful to alert on unfiltered: file share access, print jobs, domain controller replication, and machine-account group policy pulls all generate it continuously.

The analyst's job here is almost never whether there is a Type 3 event and always whether this specific Type 3 pattern makes sense: a human user account authenticating Type 3 against a server it has never touched before, a service account authenticating from a workstation instead of its usual application server, or a burst of Type 3 logons against many hosts in a short window from one source, which is the shape lateral movement or share enumeration takes.

Type 4 (Batch) and Type 5 (Service) are benign when they match a known scheduled task or a service that's supposed to be running; they turn suspicious when a Type 5 logon starts a service under a domain administrator account rather than a dedicated service account, or when a Type 4 batch logon appears for an account that has no scheduled tasks configured, since both patterns suggest a task or service was created for persistence rather than legitimate automation.

Type 8 (NetworkCleartext) deserves specific attention because it means the password crossed the wire unhashed to the authentication package, something that happens with Basic authentication over HTTP, some IIS configurations, and a handful of legacy applications; seeing it on a modern network where nothing should still be using Basic auth is itself a finding, independent of who the account is.

Type 9 (NewCredentials) is the one that most needs field-level triage rather than a blanket verdict: legitimate use is an administrator running a tool with alternate domain credentials while keeping their own local session, and it should be rare, predictable, and traceable to specific admin workstations and specific tools. When Type 9 shows up on a workstation that isn't an admin jump box, for an account that doesn't normally use runas, or immediately following signs of local credential access (LSASS access, registry hive dumps), treat it as a strong pass-the-hash or credential-pivot indicator rather than routine admin behavior.

Type 10 (RemoteInteractive, RDP) is where TP/FP separation earns its keep. Internal RDP between two hosts that regularly interact, during hours that match the account's normal pattern, from a source address on the expected management subnet, is routine administrative or help-desk activity. The same Logon Type from an external or unfamiliar internal source, from an account that has never used RDP before, at an unusual hour, or immediately followed by a burst of file access or new-process creation, is the signature of remote-access abuse using valid stolen credentials.

Restricted Admin Mode showing No on an administrative Type 10 session is worth flagging on its own in environments that mandate Restricted Admin, since it means credentials are being passed in a way the domain controller can still be tricked into replaying.

Finally, an account logging on for the very first time to a host it has never touched, visible only by comparing the New Logon Security ID and target Computer against a baseline of prior 4624 activity, is one of the more reliable early-stage lateral movement signals precisely because it requires no assumption about which Logon Type the attacker will use.

MITRE ATT&CK® Techniques

Event 4624 telemetry feeds detections for these ATT&CK® techniques:

Practice Investigating Event 4624

Reading about an account was successfully logged on is one thing. Working the detection inside a live console is another. These free SOCSimulator operations cover the attack techniques Event 4624 helps you detect:

Credential Harvesting: The Lookalike Login

Credential Harvesting: The Lookalike Login

Investigate an adversary-in-the-middle (AiTM) credential phishing campaign that lured an employee to a lookalike Microsoft 365 login page. Working entirely from SIEM logs, you will identify the lookalike domain, reconstruct the multi-hop redirect chain through a compromised legitimate site, uncover a secondary phishing wave against another employee, and confirm account takeover in Azure AD sign-in logs via impossible travel and session-token replay. You finish by choosing the containment action that actually evicts an attacker holding a valid session token. Foundational skills for SOC analysts in lookalike-domain analysis and identity-centric incident response.

20m·257 tasks
View Operation
FortiOS Bypass to Hunters International Ransomware

FortiOS Bypass to Hunters International Ransomware

Operators consistent with the Hunters International ransomware group abuse a FortiOS super-admin authentication bypass on an internet-facing FortiGate, plant rogue accounts, pivot over the SSL-VPN tunnel by RDP, sweep the network with Advanced IP and Port Scanner, and push roughly 6.8 GB of share data to a single external host over SFTP before running the encrypter. Work the FortiGate edge, the directory records, the perimeter egress, and the endpoint process tree to reconstruct the intrusion from entry to encryption.

30m·256 tasks
View Operation
The Template That Read the Disk

The Template That Read the Disk

The file-transfer portal that Tideglow Logistics' partners upload to spent a morning returning host files it was never meant to publish, and finished it running an administrator session nobody had logged into. The root cause is CVE-2024-4040 in CrushFTP 10.6.0. Walk the access logs and firewall traffic step by step to trace how a client holding no credentials turned a request parameter into a read of the host, and that read into a takeover.

25m·256 tasks
View Operation
Start investigating free

Frequently Asked Questions

What is event ID 4624?
Event ID 4624 is the Windows Security log event that records every successful logon on a machine, written on the destination host where the session was created. It fires for interactive, network, service, batch, RDP, and unlock logons alike, with the Logon Type field distinguishing which kind occurred.
What is logon type 3 in event 4624?
Logon Type 3 is Network: a user or computer account authenticated to the machine from across the network, typically for file share access, print jobs, or domain controller communication. It is the highest-volume logon type in most environments and is rarely a finding on its own, only when the specific account/source/target combination is abnormal.
How do you detect RDP logons in event 4624?
Filter Event ID 4624 for Logon Type 10 (RemoteInteractive) and inspect the Source Network Address against expected management subnets, cross-reference Restricted Admin Mode, and compare the target account and workstation against a baseline of prior RDP activity. Public or unfamiliar internal source addresses on Type 10 are a common trigger for RDP-abuse alerting.
Why does event 4624 show SYSTEM as the subject account?
Most 4624 events are generated by LSASS running as SYSTEM, which is the process that actually creates the logon session and reports it, so the Subject fields describe SYSTEM rather than the person logging on. Microsoft's own guidance flags a non-SYSTEM subject on this event as worth investigating, since it usually points to a non-standard logon path.
What is the difference between event 4624 and 4625?
Event 4624 records a successful logon and includes the New Logon identity fields for the session that was created; Event 4625 records a failed logon attempt and instead carries a Status and Sub Status failure code explaining why authentication was rejected. Both share the same Subject, Network, and Detailed Authentication Information sections.
What does logon type 9 mean in event 4624?
Logon Type 9 is NewCredentials, generated when a process clones its current logon session but supplies different credentials for outbound network connections, the exact behavior of runas /netonly. It has legitimate administrative use but is also the signature attackers leave when pivoting stolen domain credentials from a host where they only hold local access.

Sources

Event description, EventData field list, logon type table, and Microsoft's Security Monitoring Recommendations for 4624

UAC split-token behavior producing two 4624 events per elevated interactive logon, and the Logon ID/logoff correlation pattern

Detection logic pairing EventID 4624 with LogonType 10 and a public/non-private Source Network Address to flag externally-reachable RDP logons

T1078 Valid Accounts is a current MITRE ATT&CK Enterprise technique covering adversary use of legitimate credentials for initial access, persistence, and privilege escalation

Glossary

What is Brute Force Attack? SOC Glossary

A brute force attack systematically tries large numbers of username and password combinations, or decryption keys, until…

Read more
Glossary

What is Lateral Movement? SOC Glossary

Lateral movement is the attack phase where adversaries expand access from an initial foothold to additional systems, usi…

Read more
Glossary

What is MFA? SOC Glossary

Multi-Factor Authentication (MFA) requires a user to prove their identity with two or more independent factors, somethin…

Read more
Glossary

What is SIEM? SOC Glossary

Security Information and Event Management (SIEM) is a platform that aggregates, normalizes, and correlates log data from…

Read more
Career Path

SOC Analyst (Tier 1) Career Guide: Salary & Skills

Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Technique

Valid Accounts (T1078): Detection Training

Valid Accounts is among the hardest abuses to spot because nothing is technically broken, the adversary simply authentic…

Read more
Comparison

SOCSimulator vs. LetsDefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Event ID

Windows Event ID Library: SOC Reference

Windows Security and Sysmon event IDs with simulated log samples, field tables, and tested detection queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more
Blog

SOCSimulator Blog: Security Training Insights

Articles on SOC analyst skills, detection engineering, and career development.

Read more