Перейти к основному содержимому
SIEM Architecture, Normalization & Correlation Rules
Урок 4 из 13

SIEM Architecture, Normalization & Correlation Rules

Explain how a SIEM collects, normalizes, and indexes security telemetry from diverse sources, and design threshold and sequence correlation rules that minimize false positives.

Средний 25 мин Blue Team / SOC
Этого урока пока нет на выбранном языке — показана версия на другом языке. Перевод готовится.

Цели обучения

  • Explain the four core stages of a SIEM pipeline from log ingestion to alert triage
  • Normalize raw syslog and JSON authentication events into a common schema
  • Design threshold, sequence, and cross-source correlation rules with appropriate time windows
  • Identify common pipeline and rule-tuning mistakes that cause missed detections or alert fatigue

Рекомендуется заранее: Основы синей команды, архитектура SOC и задачи аналитиковSecurity Monitoring & Log Collection PipelinesCorrelating Windows Event Logs & Linux Auth/Syslog

#Why this matters

Earlier lessons showed how log pipelines forward events and how analysts manually correlate Windows Event Logs with Linux auth.log. In production, a mid-sized network generates thousands of events per second across firewalls, identity providers, endpoints, and web servers. Searching raw text files on individual hosts does not scale during an active intrusion.

A Security Information and Event Management (SIEM) platform solves this problem. It centralizes log collection, translates vendor formats into one common vocabulary, indexes key fields for rapid querying, and continuously evaluates correlation rules to surface real threats.

#How a SIEM pipeline works

Every modern SIEM follows the same data lifecycle, separating high-speed ingestion from long-term retention and detection logic.

  1. CollectAgents and syslog forwarders ship raw logs
  2. ParseExtract timestamps, IPs, ports, and usernames
  3. NormalizeMap parsed fields to a common schema
  4. IndexWrite to fast hot storage and cold archive
  5. CorrelateRun scheduled or streaming detection rules

During collection, lightweight endpoint agents and syslog collectors forward events over encrypted channels (such as TLS syslog on port 6514 or HTTPS APIs) to SIEM ingest nodes. Next, parsing splits unstructured lines with regular expressions or Grok patterns, or reads structured JSON directly.

Storage is typically tiered. Hot storage keeps 30 to 90 days of parsed, indexed fields on fast disks so analysts and correlation rules run in seconds. Cold or archive storage keeps compressed raw logs in object storage for months or years to support compliance and retroactive incident forensics.

#Normalization and common schemas

Raw devices describe the exact same security fact with completely different names. A Linux SSH daemon writes unstructured text, Windows logs emit XML with TargetUserName, and a cloud proxy logs JSON with actor_email. Writing a separate brute-force rule for every vendor is brittle and error-prone.

Normalization solves this by mapping every log source into one common taxonomy, such as the Elastic Common Schema (ECS).

Concept Linux sshd raw text Windows Security 4625 Normalized ECS field
Event time Nov 19 04:12:08 TimeCreated @timestamp
Event category SSH login attempt Logon failure event.category
Outcome Failed password 0xC000006A event.outcome
Source IP 203.0.113.45 IpAddress source.ip
Target user alice TargetUserName user.name

Consider this raw RFC 5424 syslog line from a lab bastion host:

text
<38>1 2026-11-19T04:12:08Z bastion-01.lab.local sshd 2410 - - Failed password for alice from 203.0.113.45 port 51234 ssh2

After parsing and normalization, the SIEM stores a structured document ready for universal queries:

json
{
  "@timestamp": "2026-11-19T04:12:08Z",
  "host": { "name": "bastion-01.lab.local" },
  "process": { "name": "sshd", "pid": 2410 },
  "event": { "category": "authentication", "action": "ssh-login", "outcome": "failure" },
  "user": { "name": "alice" },
  "source": { "ip": "203.0.113.45", "port": 51234 }
}

Now a single query for event.category == "authentication" and event.outcome == "failure" searches Linux servers, Windows domain controllers, and VPN gateways together.

#Designing correlation rules

Single-event alerts work well for rare, high-confidence indicators such as clearing the Windows Security log (EventID 1102). For noisy behaviors like authentication or network scanning, analysts use correlation rules that evaluate relationships over a lookback window.

Rule pattern How it works Example use case Main trade-off
Threshold Counts events grouped by a key within a window 15+ failed logins from one source.ip in 5m Fires on benign misconfigured scripts
Sequence Matches ordered steps A then B by a shared entity 10 failed logins then 1 success for same user.name Requires stateful tracking across windows
Cross-source Joins events from two different telemetry types Allowed outbound firewall flow + powershell.exe spawn Breaks if one log source lags or drops

When building a rule, set four parameters carefully:

  1. Grouping key: the entity tying events together (source.ip, user.name, or host.name).
  2. Lookback and schedule: query window (e.g., 10 minutes) and run interval (e.g., every 5 minutes).
  3. Threshold: a count grounded in normal baseline traffic.
  4. Suppression: a cooldown window (e.g., 30 minutes per source.ip) to avoid duplicate tickets.

#Common mistakes

  • Confusing event time with ingest time: network lag delivers logs late, causing narrow @timestamp windows without a buffer to miss events.
  • Ignoring parser failures: firmware updates alter log syntax and break regex parsers, leaving key fields empty. Monitor parser error rates regularly.
  • Skipping UTC normalization: mixing local appliance clocks with UTC cloud logs shifts correlated timelines by hours.
  • Alerting without suppression: running overlapping lookback windows without deduplication generates repeated alerts for one spike.

#Summary

  • A SIEM collects, parses, normalizes, indexes, and correlates telemetry across security layers.
  • Normalization maps vendor fields into a common schema like ECS so one rule covers Linux, Windows, and cloud logs.
  • Threshold, sequence, and cross-source rules rely on accurate grouping keys, time windows, and alert suppression.
  • Standardizing on UTC, tracking parser failures, and tuning baselines prevent blind spots and alert fatigue.

Проверка знаний

Войдите, чтобы проходить тест, завершать уроки и сохранять прогресс. Войти в систему