Digital Evidence · Topic 5 of 8

Network Evidence and Windows Event Logs

Learn network evidence types, Windows logon types, EVT and EVTX formats, event record structures, Windows 11 audit events and account management events.

  • 5 min
In a nutshell
  • 4624 is success, 4625 is failure, 1102 and 104 are log cleared.
  • Logon type 2 is local, 3 network, 10 remote desktop.
  • EVT uses LfLe signature and a 48 byte header. EVTX is binary XML with ElfFile.

What it is

Network evidence records what crossed or was seen by the network. Windows event logs record what happened on a host: who logged on, what changed and what failed. Together they reconstruct who did what, from where and when.

The exam asks for network evidence types, logon type numbers, the structure of the legacy log file and the event IDs that matter in an investigation.

Activity on hostAudit policyEvent writtenSecurity logCollected or forwardedInvestigator filters by ID

How it works

Network based evidence

TypeContentExample sources
Full packet captureEvery packet with payloadtcpdump, Wireshark
Session or flow dataSource, destination, ports, bytes, timesNetFlow records
Alert dataDetectionsIDS or IPS
LogsConnection and request recordsFirewall, proxy, DNS, DHCP, VPN, router
Statistical dataVolume and protocol summariesMonitoring tools

Full capture gives the most detail but takes the most storage. Flow data is small and shows who talked to whom.

Logon types

TypeNameMeaning
2InteractiveLocal keyboard logon
3NetworkAccess to a shared folder or similar
4BatchScheduled task
5ServiceA service started
7UnlockWorkstation unlocked
8NetworkCleartextCredentials sent in clear form to the server
9NewCredentialsRunAs with network credentials
10RemoteInteractiveRemote Desktop
11CachedInteractiveLogon with cached credentials

Event log file formats

Windows XP and Server 2003 use the legacy EVT format in %SystemRoot%\System32\config. Vista and later use EVTX, a binary XML format in %SystemRoot%\System32\winevt\Logs. EVTX files begin with the signature ElfFile and hold 64 KB chunks that begin with ElfChnk.

Organization of event records (EVT)

An EVT file is a header, a series of event records, a floating footer area and an end of file record. The log works as a circular buffer: when full, new records overwrite old ones unless retention is set otherwise.

ELF_LOGFILE_HEADER

The 48 byte header holds these fields.

FieldMeaning
HeaderSizeSize of the header (0x30)
Signature0x654C664C, which reads as LfLe in ASCII
MajorVersion, MinorVersionFormat version
StartOffset, EndOffsetWhere the oldest record starts and where the next goes
CurrentRecordNumberNext record number
OldestRecordNumberOldest record number
MaxSizeMaximum log size
FlagsState, including whether the log was closed cleanly
RetentionRetention setting
EndHeaderSizeRepeats the header size

EventLogRecord structure

Each record starts with its Length and the same LfLe signature (Reserved field), then holds RecordNumber, TimeGenerated, TimeWritten, EventID, EventType, NumStrings, EventCategory, StringOffset, UserSidLength and UserSidOffset, DataLength and DataOffset. The variable part follows: source name, computer name, user SID, strings and data, then a copy of the length. Event types are Error, Warning, Information, Success Audit and Failure Audit.

Windows 11 event logs and audit events

The main logs are Security, System, Application and Setup, plus many under Applications and Services Logs, such as PowerShell/Operational, TaskScheduler/Operational, Windows Defender/Operational and TerminalServices logs. Sysmon, if installed, adds its own Operational log.

Event IDLogMeaning
4624SecuritySuccessful logon
4625SecurityFailed logon
4634, 4647SecurityLogoff, user initiated logoff
4648SecurityLogon with explicit credentials
4672SecuritySpecial privileges assigned
4688SecurityProcess created
4768, 4769SecurityKerberos ticket requests
4776SecurityNTLM credential validation
1102SecurityAudit log cleared
104SystemAn event log was cleared
7045SystemService installed
4104PowerShell/OperationalScript block logging

Event 4688 appears only if process creation auditing is enabled, and 4104 only if PowerShell script block logging is active (or the block is flagged as suspicious).

Query examples:

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625}
wevtutil qe Security /q:"*[System[(EventID=4624)]]" /c:20 /f:text

Evaluating account management events

Event IDMeaning
4720User account created
4722Account enabled
4723Password change attempt by the user
4724Password reset by an administrator
4725Account disabled
4726Account deleted
4732Member added to a local security group
4740Account locked out

A new account followed shortly by a group membership change to Administrators is a classic persistence sign. Many 4625 events from one source followed by a 4624 can signal password guessing that succeeded.

A worked example

At 02:10 the Security log shows many 4625 events for one account from an address, then a 4624 with logon type 10. A 4720 and a 4732 appear a minute later.

The sequence suggests a successful Remote Desktop logon after guessing, then creation of a new account added to a privileged group. The investigator preserves the log and records the source address and times.

How the exam asks about this

  • "Which logon type represents Remote Desktop?" → Type 10, RemoteInteractive.
  • "Which event ID shows that the Security log was cleared?" → 1102.
  • "Which event ID records a failed logon?" → 4625.

What to remember for the exam

  • 4624 is success, 4625 is failure, 1102 and 104 are log cleared.
  • Logon type 2 is local, 3 network, 10 remote desktop.
  • EVT uses LfLe signature and a 48 byte header. EVTX is binary XML with ElfFile.
  • Account management events are 4720 to 4726 and 4732, 4740.
  • Network evidence ranges from packets to flow summaries to logs.
Watch out

Event IDs differ between the Security log and the System log. 104 is in System and 1102 is in Security.

Common mistakes

Reading logon type 3 as physical presence. It is a network logon.

Forgetting log overwrite. A busy Security log may roll over, so the oldest events can be gone.

Trusting log time without the time zone. Compare to a reference clock and record the offset.

Check yourself

  • What does the LfLe signature identify?

    The header and records of a legacy EVT event log file (value 0x654C664C).

  • Which logon type does a scheduled task use?

    Type 4, batch.

  • Which two events show an account was created and added to a local group?

    4720 for the creation and 4732 for the group membership addition.

Topic 5 of 8 in Digital Evidence

Test yourself on Digital Evidence

The full EC-Council 312-49 question bank has 900 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by EC-Council. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.