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
- 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.
How it works
Network based evidence
| Type | Content | Example sources |
|---|---|---|
| Full packet capture | Every packet with payload | tcpdump, Wireshark |
| Session or flow data | Source, destination, ports, bytes, times | NetFlow records |
| Alert data | Detections | IDS or IPS |
| Logs | Connection and request records | Firewall, proxy, DNS, DHCP, VPN, router |
| Statistical data | Volume and protocol summaries | Monitoring tools |
Full capture gives the most detail but takes the most storage. Flow data is small and shows who talked to whom.
Logon types
| Type | Name | Meaning |
|---|---|---|
| 2 | Interactive | Local keyboard logon |
| 3 | Network | Access to a shared folder or similar |
| 4 | Batch | Scheduled task |
| 5 | Service | A service started |
| 7 | Unlock | Workstation unlocked |
| 8 | NetworkCleartext | Credentials sent in clear form to the server |
| 9 | NewCredentials | RunAs with network credentials |
| 10 | RemoteInteractive | Remote Desktop |
| 11 | CachedInteractive | Logon 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.
| Field | Meaning |
|---|---|
| HeaderSize | Size of the header (0x30) |
| Signature | 0x654C664C, which reads as LfLe in ASCII |
| MajorVersion, MinorVersion | Format version |
| StartOffset, EndOffset | Where the oldest record starts and where the next goes |
| CurrentRecordNumber | Next record number |
| OldestRecordNumber | Oldest record number |
| MaxSize | Maximum log size |
| Flags | State, including whether the log was closed cleanly |
| Retention | Retention setting |
| EndHeaderSize | Repeats 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 ID | Log | Meaning |
|---|---|---|
| 4624 | Security | Successful logon |
| 4625 | Security | Failed logon |
| 4634, 4647 | Security | Logoff, user initiated logoff |
| 4648 | Security | Logon with explicit credentials |
| 4672 | Security | Special privileges assigned |
| 4688 | Security | Process created |
| 4768, 4769 | Security | Kerberos ticket requests |
| 4776 | Security | NTLM credential validation |
| 1102 | Security | Audit log cleared |
| 104 | System | An event log was cleared |
| 7045 | System | Service installed |
| 4104 | PowerShell/Operational | Script 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 ID | Meaning |
|---|---|
| 4720 | User account created |
| 4722 | Account enabled |
| 4723 | Password change attempt by the user |
| 4724 | Password reset by an administrator |
| 4725 | Account disabled |
| 4726 | Account deleted |
| 4732 | Member added to a local security group |
| 4740 | Account 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.
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.