Windows Event Log Forensics

A Deep Dive Into Windows Event LogsAnd the Role They Play in Data Breach Investigations

Windows writes an extraordinary amount of evidence about who logged in, from where, with what privileges, and what they ran. It also overwrites that evidence quickly. This page is a practical reference to the event records that decide breach investigations.

Updated August 2026 · Reviewed by Elite Digital Forensics examiners · Nationwide breach response

Event ID 4624Successful logon. The logon type field separates ordinary work from remote intrusion.
Event ID 1102Security log cleared. One of the strongest anti forensic indicators in Windows.
Hours, not monthsBusy servers with default log sizes can overwrite the intrusion window within a single shift.

Quick answer

Windows event logs are the native audit record of authentication, privilege use, process execution, service installation, and administrative change on a Windows system. In a breach investigation they establish who authenticated, from which source address, using which logon type, and what ran afterward. Their weakness is capacity: default log sizes on active servers can overwrite the relevant period within hours, so preservation is urgent.

Common questions, answered in one line

QuestionOne line answer
Which log matters most?Security, followed by System, PowerShell Operational, and the Terminal Services logs.
What proves remote desktop access?Event 4624 with logon type 10, corroborated by Terminal Services events 1149, 21, 24, and 25.
What proves a program ran?Event 4688 with command line auditing enabled, plus Sysmon Event ID 1 where deployed.
What shows the attacker covering tracks?Event 1102, security log cleared, and gaps in otherwise continuous sequence numbers.
How long do logs last?Until the configured maximum size is reached, which on busy servers can be a matter of hours.
Can logs be forged?Records can be cleared or the service stopped, but selective forgery is difficult and usually leaves detectable inconsistencies.

Key terms defined

TermWhat it means
Security logThe Windows audit channel recording logon, privilege, object access, and account management events.
Logon typeA numeric field in logon events describing how the session was established, for example interactive, network, or remote interactive.
Command line auditingA policy setting that includes the full command line in process creation events. Without it, event 4688 records only the executable path.
SysmonA free Microsoft Sysinternals driver that adds detailed process, network, and file telemetry beyond default Windows auditing.
Script block loggingPowerShell event 4104, which records deobfuscated script content and is often the only record of a fileless payload.
RolloverAutomatic overwriting of the oldest records once a log reaches its maximum configured size.

The Event IDs that carry breach investigations

A competent Windows analysis does not review every event. It targets a defined set of records that answer specific investigative questions, then expands outward from confirmed hits.

Event IDLogWhat it means in an intrusion
4624SecuritySuccessful logon. The logon type and source address identify remote access and lateral movement.
4625SecurityFailed logon. Volume and pattern distinguish password spraying from a mistyped password.
4648SecurityLogon using explicit credentials. Frequently seen when stolen credentials are used to pivot.
4672SecuritySpecial privileges assigned. Marks an administrative session, usually paired with a 4624.
4688SecurityProcess creation. With command line auditing enabled, this is the closest native equivalent to EDR execution data.
4698SecurityScheduled task created. A classic persistence mechanism.
4720SecurityUser account created. Often an attacker establishing a durable foothold.
4769SecurityKerberos service ticket requested. Weak encryption requests can indicate Kerberoasting.
4662SecurityDirectory object operation. The replication rights GUID appearing from a non domain controller suggests credential replication abuse.
5140SecurityNetwork share accessed. Useful for tracking data staging over server message block.
7045SystemNew service installed. Common with remote execution utilities and ransomware deployment.
1102SecurityAudit log cleared. Strong evidence of deliberate track covering.
4103 and 4104PowerShellModule and script block logging. Records the actual script content executed.
1149, 21, 24, 25Terminal ServicesRemote desktop connection, session logon, disconnect, and reconnect.

Logon types, the field that changes the whole story

Two logon events can look identical until you read the type field. Getting this right is the difference between an accurate finding and an embarrassing one.

TypeNameInvestigative meaning
2InteractiveSomeone at the physical keyboard, or a console session on a virtual machine.
3NetworkAccess to a share or service across the network. Extremely common in lateral movement.
4BatchScheduled task execution, which can indicate persistence.
5ServiceService account start, useful for spotting a newly installed malicious service.
7UnlockA locked session was unlocked at the machine.
8Network cleartextCredentials sent in cleartext, often basic authentication against a web service.
9New credentialsA process ran under alternate credentials, a common credential theft pattern.
10Remote interactiveRemote desktop. The single most common hands on keyboard intrusion path in small and mid sized businesses.
11Cached interactiveLogon validated from cached credentials because no domain controller was reachable.

Reading a remote desktop intrusion

A defensible remote desktop finding pairs the security log with the Terminal Services channels. Event 1149 records the connection attempt and the source address before authentication completes. Event 21 records the session logon, 24 the disconnect, and 25 the reconnect. Together they survive situations where security log rollover has removed the corresponding 4624, and they frequently establish that the attacker returned to the same host repeatedly over days.

Preserve Windows logs before they roll over

On an active file server, the records that prove how an intrusion started can disappear in hours. We can guide preservation today and image the systems that matter.

Rollover, clearing, and the evidence you will not get back

The most common reason a business cannot determine root cause is not attacker sophistication. It is log capacity.

  • Legacy default maximum sizes for the Security log were small enough that a busy domain controller could cycle through them in under a day. Recommended hardening baselines raise this substantially, but many environments never applied them.
  • Overwrite as needed is the default behavior, so no warning is generated when the oldest records disappear.
  • Event 1102 tells you the log was cleared but does not recover the cleared content. Recovery then depends on forwarded copies, backups, or unallocated disk space carving.
  • Log forwarding to a central collector or a security information and event management platform is the only reliable defense, and it must exist before the incident.

What we do when the logs are gone

Absent event logs, execution and access can often still be established from disk artifacts such as the master file table, the update sequence number journal, Prefetch, Amcache, ShimCache, shellbags, jump lists, and the system resource usage monitor database. These sources do not replace event logs, but they frequently answer the same questions from a different angle, and a good report explains which conclusions rest on which artifact.

How an examiner works a Windows breach

Acquire

Export the full event log files in their native format rather than filtered screenshots, and image affected disks where feasible so artifacts survive rebuild.

Verify

Confirm log configuration, maximum sizes, clearing events, and the earliest surviving record on every host so the coverage window is documented.

Correlate

Line up authentication events with EDR telemetry, firewall connections, and cloud sign in logs on a normalized clock.

Attribute

Tie each session to an account, source address, and workstation name, and separate legitimate administration from intrusion.

Report

Produce findings that cite specific records by identifier and time stamp so any competent reviewer can reproduce the conclusion.

What matters most

  • Coverage window. Documenting the earliest surviving record on each host defines what can and cannot be concluded.
  • Command line auditing. Without it, process creation events lose most of their investigative value.
  • PowerShell script block logging. Frequently the only surviving record of a fileless attack.
  • Central forwarding. Logs shipped off the host defeat both rollover and deliberate clearing.
  • Time normalization. Correlating sources across time zones without normalizing produces false sequences and unreliable findings.

Common misconceptions

Windows keeps a year of logs

Windows keeps logs until the configured size limit is reached. On active servers that can be hours or days, not months.

A cleared log destroys the case

Clearing is itself powerful evidence, and forwarded copies, backups, and disk artifacts frequently reconstruct the missing period.

Failed logons mean an attack failed

A large failure volume followed by a single success is the signature of a successful password spray, not a failed one.

Screenshots of the Event Viewer are enough

Native export with hashing preserves metadata, supports verification, and survives challenge. Screenshots do none of that.

When this applies, and when it does not

This applies when

  • A Windows domain, file server, or terminal server is involved in a suspected intrusion.
  • You need to establish whether remote desktop or virtual private network access was abused.
  • Counsel or a carrier requires proof of when unauthorized access began and ended.
  • An insider is suspected of accessing systems outside their authorization.

This does not apply when

  • The environment is entirely cloud native with no Windows servers, where tenant audit logs govern.
  • The affected systems are Linux or macOS, which use different logging subsystems.
  • Logs were cleared and no forwarding, backup, or disk image exists, in which case other artifacts carry the analysis.
  • The dispute involves only mobile devices or personal accounts.

Windows event logs compared with Sysmon and EDR

CapabilityDefault Windows auditingSysmonCommercial EDR
Process command linesOnly with auditing policy enabledYes, by default configurationYes
File hashes on executionNoYesYes
Network connection per processNoYesYes
Survives host wipeOnly if forwardedOnly if forwardedYes, stored in vendor cloud
CostIncluded with WindowsFreeLicensed per endpoint
RetentionUntil rolloverUntil rollover or forwardingContracted tier

How Elite Digital Forensics helps

We reconstruct Windows intrusions for businesses, counsel, and carriers, and we do it with methods that hold up when another expert reviews the work. Our examiners have testified to these artifacts in state and federal proceedings.

Forensic imaging and log preservation

Defensible acquisition of affected servers and workstations with documented chain of custody before rebuild destroys artifacts.

Authentication timeline reconstruction

A complete account of who accessed what, from where, and when, tied to specific event records.

Anti forensic detection

Identification of log clearing, service tampering, time stamp manipulation, and evidence destruction attempts.

Artifact recovery when logs are gone

Execution and file access reconstruction from registry, journal, and execution artifacts on the disk image.

Report and testimony

Findings written for non technical readers, defensible against cross examination and opposing expert review.

Logging remediation guidance

Practical configuration recommendations so the next incident is provable rather than speculative.

Problems we solve

  • You cannot tell whether a remote desktop session was your administrator or an intruder.
  • The security log was cleared and the internal team has stopped making progress.
  • A carrier is questioning whether the intrusion began before the policy period.
  • You need to know exactly which accounts were used so credential resets are complete rather than partial.
  • An opposing expert has drawn conclusions from event logs that the underlying records do not support.

Talk with a forensic examiner about your incident

Consultations are confidential. We work directly with affected businesses, with outside counsel, and with cyber insurance carriers and brokers nationwide.

About Elite Digital Forensics

Elite Digital Forensics is an independent digital forensics firm serving businesses, attorneys, and insurers nationwide. Our examiners include former law enforcement forensic examiners who have testified as court qualified expert witnesses in state and federal proceedings. We do not sell security software and we do not manage client networks, so our findings carry no conflict of interest when the question is whether an environment was adequately secured.

Every engagement follows documented chain of custody, defensible acquisition methods, and reporting written for attorney review, insurer submission, regulator response, or courtroom use. Work performed at the direction of counsel is generally treated as attorney work product prepared in anticipation of litigation. Call (833) 292-3733 or request a confidential consultation.

Frequently asked questions

Which Windows Event ID shows a remote desktop logon?

Event 4624 with logon type 10 indicates remote interactive access. Corroborate it with Terminal Services events 1149 for the connection, 21 for session logon, 24 for disconnect, and 25 for reconnect, since those channels often survive when the security log has rolled over.

What does Event ID 1102 mean in a breach?

It means the Windows Security log was cleared. Legitimate administrators rarely clear security logs, so 1102 during an intrusion window is treated as an anti forensic act and is significant to both regulators and courts assessing conduct.

How long are Windows event logs retained?

Retention is a function of configured maximum size and event volume rather than time. A domain controller with a default size can overwrite a full day within hours. Central forwarding is the only reliable way to extend the window.

Do Windows logs record what commands an attacker typed?

Only if process command line auditing is enabled for event 4688, or if PowerShell script block logging (event 4104) or Sysmon is deployed. Without those settings, you get the executable name but not the arguments.

Can Windows event logs be faked?

Wholesale clearing and service stoppage are common, but convincingly forging individual records is difficult and typically leaves inconsistencies in record numbers, channel sequence, and corroborating artifacts that an examiner can detect.

What if our server was already rebuilt?

Check for forwarded copies, backup images, virtual machine snapshots, and the security platform archive. If the original disk still exists in any form, artifact analysis can frequently reconstruct much of what the logs would have shown.

References and authoritative sources

  1. Microsoft, Event ID 4624 and logon type reference — https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4624
  2. NIST SP 800-86, Guide to Integrating Forensic Techniques into Incident Response — https://csrc.nist.gov/pubs/sp/800/86/final
  3. MITRE ATT&CK Enterprise Matrix — https://attack.mitre.org/matrices/enterprise/
  4. Federal Rule of Civil Procedure 37(e), Failure to Preserve Electronically Stored Information — https://www.law.cornell.edu/rules/frcp/rule_37
  5. Federal Rule of Evidence 902(13) and 902(14), Self Authenticating Electronic Records — https://www.law.cornell.edu/rules/fre/rule_902
  6. NIST SP 800-61 Rev. 3, Incident Response Recommendations (April 2025) — https://csrc.nist.gov/pubs/sp/800/61/r3/final

#DigitalForensics #ComputerForensics #CellPhoneForensics #ExpertWitness #DigitalForensicExperts #EliteDigitalForensics #ForensicInvestigation #DataBreachResponse #DataBreachInvestigation #IncidentResponse #CyberForensics #WindowsForensics #EventLogs #DFIR #ThreatDetection

This content is for educational and informational purposes only and does not constitute legal advice. Elite Digital Forensics provides independent digital forensic services and expert witness testimony; we do not provide legal representation. Every case is fact specific; outcomes depend on the evidence, jurisdiction, and counsel. Retain qualified legal counsel for advice about your matter.

Assistant Icon Elite Digital Forensics Assistant
πŸ‘‹ Live Chat Now!
Free Virtual Consultation 24/7
Chat Now!

By submitting this form, you consent to be contacted by email, text, or phone. Your information is kept secure and confidential. Reply Stop to opt out at anytime.Β 

IMPORTANT: Please remember to check your spam or junk folder