Stage 3 of 10 · about 10–14 hours · beginner · checked 2026-11-22

Data and telemetry

Goal. By the end you can say which logs a detection needs, find out whether you actually have them, and check that they are complete, timely and trustworthy before you write a single rule.

Why it matters#

A rule written against data you do not collect is worse than no rule. It looks like protection, and it produces nothing. A rule written against data that is half-collected, late, or missing the key field fails in quieter ways. Experienced detection engineers check the data first, every time. This stage teaches you what the main log sources are, what is usually missing, and how to test for it.

What you will learn#

Data first, rules second#

Every detection has a data requirement, and it is the first thing to settle: which events, with which fields, from which systems, arriving how quickly? If the answer is "we do not have that", the right next step is a telemetry request (turn on a log, deploy an agent, forward a source), not a clever query.

The main families of log data#

Family Typical sources What it shows A common gap
Endpoint Windows Security log, Sysmon, an EDR agent, Linux auditd Processes started, files and registry changed, logons Agent missing on some machines; key logging not enabled
Network DNS, web proxy, firewall, flow records, Zeek, Suricata Who talked to whom, names looked up, protocols used Encrypted traffic hides content; no visibility inside the network
Identity Active Directory, Microsoft Entra ID, other identity providers Sign-ins, failures, MFA, role and group changes Domain controller logs not forwarded
Cloud control plane AWS CloudTrail, Azure activity log, Google Cloud audit logs Who created, changed or deleted what in the cloud account Some event types off by default; not all accounts covered
SaaS and email Microsoft 365 audit log, email gateway logs, other SaaS audit logs File sharing, mailbox rules, OAuth consent, messages Short retention, or licence tier too low
Application and web Web server logs, WAF, application logs Requests, errors, authentication Logs not parsed; no user context

Learn the sources your own environment has first; the rest you can look up when you need them.

Off by default#

Many of the most useful logs are not on by default. On Windows, for example, recording the command line in process-creation events, full PowerShell script block logging, and Sysmon itself (a separate Microsoft download) all need deliberate set-up. The same pattern holds elsewhere: cloud data-plane events, DNS query logs and audit logs in SaaS products often have to be switched on, and some are paid features. When you read a technique's detection notes, always ask "is that log even enabled here?"

One thing, many names#

Each product names the same field differently: a source address might be src_ip, SourceIp or source.ip. Normalisation maps them to one model, so a rule written once works across sources. The common models are Splunk's Common Information Model (CIM), the Elastic Common Schema (ECS), the Open Cybersecurity Schema Framework (OCSF) and Microsoft's Advanced Security Information Model (ASIM). You do not have to use one on day one, but you will meet them, and Sigma's field mapping (stage 4) is the same idea.

Validate the data before you trust it#

Five checks cover most problems. Run them for every source a detection depends on.

  1. Coverage. Which systems send this log, and which should? Compare the list of senders with your asset inventory.
  2. Completeness. Is the field you need actually filled in? A process event with an empty command-line field is useless for most detections.
  3. Latency. How long between the event happening and it being searchable? A detection that fires an hour late is a different detection.
  4. Time. Are clocks in sync, and is time stored in a consistent zone (UTC is safest)? Wrong clocks break any rule that joins two events within a window.
  5. Retention and volume. How far back can you search, and does the volume look normal? A sudden drop is often a silent failure.

Here are the first two as queries. They are starting points: names of indexes, tables and fields differ in every environment.

SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h
| stats count AS events, latest(_time) AS last_seen BY host
| eval hours_since_last = round((now() - last_seen) / 3600, 1)
| sort - hours_since_last
KQL
SecurityEvent
| where TimeGenerated > ago(24h) and EventID == 4688
| summarize events = count(), last_seen = max(TimeGenerated) by Computer
| extend hours_since_last = round(datetime_diff('minute', now(), last_seen) / 60.0, 1)
| sort by hours_since_last desc

Illustrative: test it in your lab before relying on it. Each query lists the machines that sent process-creation events in the last day and how long ago each last reported. Hosts missing from the list, or with a large gap, are coverage problems. And this is a latency check, again in both languages:

SPL
index=sysmon earliest=-1h
| eval lag_seconds = _indextime - _time
| stats avg(lag_seconds) AS avg_lag, perc95(lag_seconds) AS p95_lag, max(lag_seconds) AS max_lag BY host
KQL
SecurityEvent
| where TimeGenerated > ago(1h)
| extend lag_seconds = datetime_diff('second', ingestion_time(), TimeGenerated)
| summarize avg_lag = avg(lag_seconds), p95_lag = percentile(lag_seconds, 95), max_lag = max(lag_seconds) by Computer

Illustrative: test it in your lab before relying on it.

Mapping data to techniques#

For each technique you plan to detect, write down the data it needs and where that comes from. ATT&CK helps: its technique pages name data components (such as process creation or network connection). A small table like this is the output:

Behaviour Data needed Possible sources Often missing because
An Office program starts a shell Process creation with the parent process and the command line Sysmon event 1, Windows Security event 4688, an EDR agent Command-line recording is off; no Sysmon
Credential theft from LSASS memory Events when one process opens another process Sysmon event 10, an EDR agent Sysmon not deployed, or its configuration filters the event out
A scheduled task is created for persistence Task creation, with the task's action Windows Security event 4698, the Task Scheduler operational log, process creation for the task tool The audit setting or the log is not enabled
Password spraying Authentication failures across many accounts Windows Security events 4625 and 4771, Entra ID sign-in logs Domain controller logs not forwarded
Audit logging switched off in the cloud Control-plane events AWS CloudTrail, the Azure activity log A log not enabled in every account or region

DeTT&CT, an open-source project, takes this further. It lets you score, per data source and per technique, both the quality of your visibility and how well you detect, and it shows them as ATT&CK Navigator layers. Separating "we can see it" from "we alert on it" is one of the most useful habits in this field, and stage 8 builds on it.

Cost and retention#

Logs cost money to ingest, store and search, and teams are tempted to cut volume. Filter at the source only what is truly noise (for example, a chatty health-check service), and decide retention per source: the period you need for investigations is often longer than the period you need for detections. Write the choice down, so that nobody later turns off a source a detection depends on.

Do this#

  1. Inventory your lab's data (1 to 2 hours). In a lab SIEM, list every data source that arrives, and the fields you can search. Mark each one as endpoint, network, identity, cloud or other.
  2. Add Sysmon (2 to 3 hours). Install Sysmon on a lab Windows machine with a community configuration (links below) rather than writing your own, forward its events to your SIEM, and confirm that process events arrive with the parent process and the command line. Only do this in a lab.
  3. Run the validation checks (1 hour). Adapt the coverage and latency queries to your SIEM and note the numbers. Break something on purpose (stop the forwarder) and watch the numbers change.
  4. Write a data-requirements table (1 hour). Take five techniques from your stage 2 exercise and fill in the table above: data needed, possible sources, what could be missing.

Resources#

Free first

Paid or needs an account

  • None needed for this stage. Splunk, Elastic and Microsoft Sentinel all have free or trial tiers you can use for the lab; Foundations covers the lab set-up.

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

  • Read the DeTT&CT documentation and score two data sources in your lab.
  • Compare how Sysmon event 1 and Windows Security event 4688 describe the same process start.

0 / 6 checkpoints ticked

View this page on GitHub

9 lines · 59 stages · 77 pages 0 of 59 stages done