Skip to content
Pwnversity
DEF-SIEMintermediate · 13 min · upd. 2026-11

SIEM

SigmaT1110.003MITRE ATT&CK

A SIEM (Security Information and Event Management) brings the organization’s logs into one place, normalizes them to a common schema, runs detection and correlation rules over them, and keeps the history for investigations. It’s the platform where telemetry (Sysmon, Windows, identity, network, cloud) becomes the alerts the SOC works on. A SIEM detects nothing by itself: it detects what reaches it, correctly parsed, with rules someone has written and tested (detection).

  • Cross-source correlation: the authentication failure on the domain controller, the odd execution on the laptop and the outbound connection on the firewall, joined by user, host and time.
  • Retention for investigations: rebuilding what happened weeks ago, when the alert comes late or the notification is external.
  • One logic for many sources: if fields are normalized, one rule works for every host and version.
flowchart LR
    F["Sources<br/>endpoint, identity,<br/>network, cloud, SaaS"] --> C["Collection<br/>agent, WEF, syslog, API"]
    C --> P["Parsing and normalization<br/>ECS, OCSF, ASIM, CIM"]
    P --> E["Enrichment<br/>assets, identity,<br/>geoIP, intel"]
    E --> I[("Storage<br/>hot / cold")]
    I --> D["Rules and<br/>correlations"]
    D --> A["Alerts and cases"]
    A --> S["SOAR<br/>response"]
    I --> H["Hunting and<br/>forensics"]

Each stage can break detection without anyone noticing: a dead agent (nothing arrives), a parser that doesn’t extract a field (it arrives, but the rule can’t see it), a skewed clock (time correlation fails) or short retention (the history is gone when you need it).

Platform Query language Data model Notes
Splunk SPL CIM (Common Information Model) Market reference; searches over schema-less data
Microsoft Sentinel KQL ASIM; Defender XDR tables Azure-native, strong with M365 and Entra ID
Elastic Security EQL, ES|QL, Kibana KQL, Lucene ECS (Elastic Common Schema) EQL adds event sequences
Google SecOps (Chronicle) YARA-L 2.0 UDM (Unified Data Model) Multi-event rules with time windows
Wazuh Its own XML rules On OpenSearch Open source, with HIDS and FIM

OCSF (Open Cybersecurity Schema Framework) is an open, vendor-neutral schema adopted by several products and security data lakes. There’s no universal schema: every platform has its own, and Sigma translates between them.

Normalization: the same rule in four languages

Section titled “Normalization: the same rule in four languages”

The LSASS access Sigma rule from the detection page, converted with sigma-cli and each platform’s pipelines:

Ventana de terminal
sigma convert -t splunk -p splunk_windows -p sysmon lsass_userpath.yml
sigma convert -t eql -p ecs_windows lsass_userpath.yml
sigma convert -t esql -p ecs_windows --disable-pipeline-check lsass_userpath.yml
# Splunk (SPL)
source="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=10 TargetImage="*\\lsass.exe" GrantedAccess IN ("*1010", "*1410", "*1438", "*143a", "*1fffff") SourceImage IN ("*\\Users\\*", "*\\ProgramData\\*", "*\\Temp\\*")
# Elastic (EQL, ECS fields)
any where (winlog.event_data.TargetImage:"*\\lsass.exe" and (winlog.event_data.GrantedAccess like~ ("*1010", "*1410", "*1438", "*143a", "*1fffff"))) and (process.executable.caseless like~ ("*\\Users\\*", "*\\ProgramData\\*", "*\\Temp\\*"))
# Elastic (ES|QL)
from * metadata _id, _index, _version | where ends_with(winlog.event_data.TargetImage, "\\lsass.exe") and (ends_with(winlog.event_data.GrantedAccess, "1010") or ...) and (process.executable.caseless like "*\\Users\\*" or ...)

What the output teaches:

  • Sysmon’s SourceImage field becomes process.executable in ECS: the same data has different names per schema, and the rule only works if the pipeline matches how data is actually ingested.
  • With -t kusto -p microsoft_xdr (Defender XDR tables) the conversion fails: the pipeline has no table for the process_access category, because that telemetry isn’t exposed there with the same fields. Not every rule is portable to every platform.
  • For process creation rules it works: the comsvcs.dll dump rule comes out as DeviceProcessEvents | where (FolderPath endswith "\\rundll32.exe" ...) and ProcessCommandLine contains "comsvcs" ....

A simple rule looks at one event. A correlation looks at a pattern across several: thresholds, distinct values, sequences. Sigma expresses them with correlation rules. Example: Kerberos spraying (T1110.003), many distinct accounts failing from the same IP:

title: Kerberos pre-authentication failure or unknown user
name: kerberos_failure
logsource:
product: windows
service: security
detection:
selection:
EventID:
- 4768
- 4771
Status: # 0x6 = unknown user, 0x18 = wrong password
- '0x6'
- '0x18'
- '0x00000006'
- '0x00000018'
condition: selection
level: low
---
title: Kerberos spraying - many distinct accounts from the same IP
correlation:
type: value_count
rules:
- kerberos_failure
group-by:
- IpAddress
timespan: 5m
condition:
field: TargetUserName
gte: 5
level: high

Converted:

# Splunk
source="WinEventLog:Security" EventCode IN (4768, 4771) Status IN ("0x6", "0x18", "0x00000006", "0x00000018")
| bin _time span=5m
| stats dc(TargetUserName) as value_count by _time IpAddress
| search value_count >= 5
# ES|QL
from * ... | where winlog.channel=="Security" and (event.code in ("4768", "4771")) and (winlog.event_data.Status in (...))
| eval timebucket=date_trunc(5minutes, @timestamp)
| stats value_count=count_distinct(winlog.event_data.TargetUserName) by timebucket, source.ip
| where value_count >= 5

Applied to the kerberos_pwd_spray_4771.evtx recording from EVTX-ATTACK-SAMPLES, the logic groups 9 distinct accounts within 11 milliseconds from 172.16.66.1: seven with 0x6 (HD01, admin, svc-01…, accounts that don’t exist) and two with 0x18 (Administrator, backdoor, which exist and failed the password). The threshold of 5 fires.

Correlation has its limits too: a shared egress IP (NAT, proxy, VPN) mixes legitimate users, and slow spraying (one account every few minutes) stays below the 5-minute window. For that, combine long windows with low thresholds, or correlate per user instead of per IP.

Most SIEMs charge by ingested or stored volume, which tempts teams to skip expensive sources. The usual balance:

Tier Purpose What’s kept
Hot Real-time detection and triage High-value sources in full: identity, endpoint, edge
Warm or cold Hunting and retrospective investigation Cheaper history, slower queries
Archive Forensics and compliance Immutable copy, rehydrated when needed

Dwell time gives the yardstick: with a median of 14 days in 2025, and 122 for espionage (M-Trends 2026), a few weeks of searchable retention misses precisely the longest intrusions. Filtering noise at the source (Sysmon configuration, debug events) saves more than dropping entire sources.

A SIEM’s most dangerous failure is silent: a source that stops sending generates no alert. Every critical source needs a “silence” rule. Templates (not executed in this lab; index and table names depend on each deployment):

# Splunk: hosts with no Sysmon events in the last 4 hours
| tstats latest(_time) as last_seen where index=* source="WinEventLog:Microsoft-Windows-Sysmon/Operational" by host
| where last_seen < relative_time(now(), "-4h")
# Sentinel (KQL): machines with no security events in 4 hours
SecurityEvent
| summarize last_seen = max(TimeGenerated) by Computer
| where last_seen < ago(4h)

Other checks: volume spikes or drops per source, parsing errors, and the gap between event time and ingestion time (clocks without NTP).

  • Immediate forwarding off the host: a privileged attacker clears the local log (1102), not what’s already in the SIEM.
  • Least privilege on the SIEM itself (RBAC), auditing of who queries and who deletes, and immutable storage for the archive.
  • Collector service accounts with limited permissions: compromising a collector must not grant access to the whole platform.

SOAR platforms run playbooks on alerts: enrich with intelligence, isolate a host from the EDR, disable an account, open the case. Automating enrichment is almost always safe; automating containment requires rules with very few false positives and a way for the analyst to roll it back.

  • Ingesting everything indiscriminately and running out of budget for identity sources.
  • Sigma-converted rules deployed without checking the pipeline against the real fields.
  • Correlations with windows the attacker learns to avoid.
  • No alert for sources that go down.
  • Leaving out SaaS logs (mail, storage, data warehouse) because “they’re not infrastructure”.
  • Storm-0558 (2023): detection depended on a premium Microsoft 365 audit record (MailItemsAccessed) and a custom rule on top of it (see detection); after the incident, Microsoft agreed with CISA to extend access to those records without a premium license.
  • Snowflake / UNC5537 (2024): credentials stolen by infostealers were used to access customer instances without MFA; Mandiant and Snowflake notified around 165 organizations. Hunting was done over views such as LOGIN_HISTORY, which keep 365 days: anyone not ingesting those SaaS logs into their SIEM had to search each instance by hand.
  • Source inventory with owner, volume and retention
  • Normalization schema chosen and Sigma pipelines aligned with it
  • Rules converted and tested against real events from each source
  • Key correlations: spraying, successful brute force, log clearing, process chains
  • Silence rules per critical source and monitoring of parsing errors
  • NTP on every source and monitoring of ingestion lag
  • Searchable retention matched to intrusion duration, immutable archive
  • RBAC and auditing on the SIEM itself; SOAR integration for enrichment