Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Log Forensics

Direct answer

Log forensics reconstructs events from system, security, application, firewall and cloud logs, correlating timestamps and identities to show what an attacker did and when.

When to use this

Use this when reconstructing events from logs.

First 30 seconds

1. Log forensics reconstructs activity from logs.

2. Export with hashes.

3. Normalise time.

4. Correlate sources.

5. Watch for gaps/tampering.

Operational verification

logs → export → correlate → findings

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Log retention too short — default Windows Security logs often cover only days.
  • Process creation (4688) or PowerShell logging not enabled before the incident.
  • Logs only stored locally, where attackers clear them.
  • Ignoring cloud logs (Entra sign-ins, M365 unified audit log) that expire after 30–180 days depending on licence.
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics
Scope / prerequisiteUse this when reconstructing events from logs.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Correlate events by time and identity.
  • Normalize time zones first.
  • Logs may be incomplete or tampered with.
Key checks
  • Central log export for incident window — collection
  • Log integrity (hash, WORM) — trustworthiness
  • Time normalisation — UTC
ReferenceWhy it matters1 section · depth on demand

Useful sources

SourceWhat it shows
Windows Security logLogons (4624/4625), privilege use, process creation (4688)
SysmonProcess, network, file and registry details
Firewall / proxyConnections and destinations
VPN / IdP sign-in logsWho logged in from where
Cloud audit logsAPI calls, configuration changes

Normalise time zones (use UTC), check that logs were not cleared (1102) and note gaps in retention.

ReferenceImportant terms & boundaries2 sections · depth on demand

Key Windows event IDs

IDMeaning
4624 / 4625Logon success / failure
4648Logon with explicit credentials
4672Special privileges assigned
4688Process creation (enable command line logging)
4697 / 7045Service installed
4698Scheduled task created
1102Security log cleared
4104PowerShell script block

Method

Log forensics analyses logs to reconstruct events during an investigation: authentication logs, system and application logs, firewall, proxy and DNS logs, cloud audit logs. Logs often provide the timeline that ties host evidence together.

Method:

1. Identify relevant sources and their retention; preserve them immediately.

2. Normalise timestamps to UTC and note clock accuracy.

3. Filter around known events (first alert, known bad IP, compromised account).

4. Pivot on identifiers: user, host, IP, session ID, process.

5. Build a timeline; note gaps where logs are missing or were cleared.

grep -h 'Accepted\|Failed' /var/log/auth.log* | sort -k1,3
jq 'select(.eventName=="ConsoleLogin")' cloudtrail-*.json

Absence of logs is itself a finding: cleared logs (event 1102) or stopped log forwarding indicate anti-forensic activity.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

Authoritative/upstream documentation reviewed for bounded claims in Digital Forensics → Log Forensics. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/sp/800/86/final · confidence 94%
Confirmation

Confirm action

Continue?