Use this when reconstructing events from logs.
Log Forensics
Log forensics reconstructs events from system, security, application, firewall and cloud logs, correlating timestamps and identities to show what an attacker did and when.
1. Log forensics reconstructs activity from logs.
2. Export with hashes.
3. Normalise time.
4. Correlate sources.
5. Watch for gaps/tampering.
logs → export → correlate → findings
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
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.
- Correlate events by time and identity.
- Normalize time zones first.
- Logs may be incomplete or tampered with.
- Central log export for incident window — collection
- Log integrity (hash, WORM) — trustworthiness
- Time normalisation — UTC
ReferenceWhy it matters1 section · depth on demand
Useful sources
| Source | What it shows |
|---|---|
| Windows Security log | Logons (4624/4625), privilege use, process creation (4688) |
| Sysmon | Process, network, file and registry details |
| Firewall / proxy | Connections and destinations |
| VPN / IdP sign-in logs | Who logged in from where |
| Cloud audit logs | API 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
| ID | Meaning |
|---|---|
| 4624 / 4625 | Logon success / failure |
| 4648 | Logon with explicit credentials |
| 4672 | Special privileges assigned |
| 4688 | Process creation (enable command line logging) |
| 4697 / 7045 | Service installed |
| 4698 | Scheduled task created |
| 1102 | Security log cleared |
| 4104 | PowerShell 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%