Lesson 3 of 13 · 14m
Time Is a Field, Not a Fact
Three timestamps per event disagree; clock skew, RFC 3164's missing year, and ingest lag break correlations in ways that produce no error.
Every event carries at least three times, and they disagree. event.created is when the thing happened. event.ingested is when the pipeline received it. @timestamp in ECS — the field every query actually filters on — is whichever one your parser chose to copy. That choice is a decision with consequences, and most pipelines make it implicitly.
What breaks when time lies
Kerberos is the canonical clock-skew example: tickets fail outside a five-minute tolerance, so the OS treats skew as fatal. Your correlation engine does not. A temporal rule like "4624 followed by 4688 within 5 minutes" quietly produces nothing when the workstation is 90 seconds slow and the DC is right — both events exist, both are indexed, the join never happens. Nobody gets an error. Nobody gets an alert. The rule simply never fires, and the coverage map says you're covered.
Where skew comes from: domain-joined Windows machines sync through the w32time hierarchy — members from their authenticating DC, DCs from the PDC emulator, PDC from an external NTP source. Break the chain at any rung — an isolated lab box, a VM resumed from a snapshot, a Hyper-V host syncing guests while itself drifting — and every event from that machine is off by whatever the drift is. Snapshots are the worst: the clock resumes at suspend time and races back, producing minutes of events timestamped in the past, then a jump.
RFC 3164's missing year
Mar 3 12:00:00 — no year, no zone. Syslog receivers conventionally assume "current year, local timezone," which produces events from last December indexed as next December every January, and events from a London device indexed in UTC when they were in BST. If a syslog source matters, configure the receiver's timezone assumption explicitly and fix the device to emit RFC 5424 if it can.
Arrival time vs. event time
Stream engines run windows on whichever timestamp you hand them. A rule evaluated on arrival time misses events that were buffered during a Kafka outage and replayed 40 minutes late — the events arrive together, in order, all stamped "now," and the window that should have caught them closed an hour ago. The fixes: run correlations on event.created, not arrival; set lookback windows longer than your measured worst ingest lag; and when you do replay a backlog, expect the correlation to fire all at once — late events are real events.
Ordering is not guaranteed either
Timestamps also aren't ordering. Two hosts can stamp events "12:00:00.000" whose true order is opposite — you cannot tell from the timestamps alone. Sources with monotonic sequence numbers (Sysmon's EventID+record number, Kafka offsets per partition) preserve order where timestamps cannot. Forensic timeline reconstruction after an incident leans on this constantly: the attacker's first foothold and the log-clearing event may share a wall-clock minute, and only the record order says which came first.
Measuring it
Emit a lag metric per source: ingested − created at index time. A healthy pipeline holds that under seconds. A drifting source exposes itself as a rising lag curve before it produces a missed correlation. NTP drift on an agent shows up the same way — gradual slope, not a cliff. The metric costs a subtraction at index time; not emitting it costs your correlations' honesty.
The correct practice: pin @timestamp to event time, never ingest time; alert on lag per source; and treat any host whose lag changes sign as having had a clock event — snapshot resume, timezone config change, or a dead CMOS battery — worth checking before you correlate its telemetry with anything.
One more consequence: retention queries. "Show me last Tuesday's events" searches the timestamp field; a source ingested Tuesday but timestamped Wednesday — because its clock was wrong, or its timezone was misread — returns nothing for Tuesday and a phantom spike for Wednesday. Investigators chasing "why is this day empty" are usually chasing time, not missing data.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Jellyfin's Threat Model Is Your Brother-in-Law
Four Jellyfin CVEs landed in 2026 and not one of them needs an admin account. One needs only the ability to name a file. Meanwhile Jellyfin 12 shipped in September, the version numbers stopped starting with 10, and every "am I patched" check you wrote is now wrong.
Node.js Fixed 16 Flaws in One Release. Most of Them Live in HTTP/2 and TLS.
The November 11 Node.js security releases fix 16 CVEs across the 26, 24 and 22 lines, seven of them rated high. Nearly all sit in HTTP/2 and TLS, where a remote client can crash a server, leak memory, or get past per-host client-certificate checks.
Next.js Shipped Seven Advisories and Six of Them Are the Cache
The November 2026 Next.js security release patches seven issues, and six live in the new Cache Components layer, the feature meant to make your app faster by remembering more. Three hit self-hosted next start specifically: the ones Vercel's own platform quietly absorbs.