Skip to content

Lesson 4 of 13 · 15m

One Field Name to Rule Them

ECS, OCSF, CIM, ASIM, and UDM map source dialects onto shared names; the mapping table is a config file that decides whether ported rules fire.

The wrong mental model here is that a log field is a fact. A Sysmon event calls the executable Image. A Windows Security event calls it Process Name. Zeek calls the remote host id.resp_h. Splunk CIM wants dest. Sentinel ASIM wants DstIpAddr. Your correlation rule wants one name. Normalization is the layer that maps every source's dialect onto one schema so rules are written once.

The schema landscape

ECS (Elastic Common Schema): flat dotted names — source.ip, destination.ip, process.command_line, user.name, event.code. Elastic's own stack uses it natively, which makes it the default for anything indexed into Elasticsearch.

OCSF (Open Cybersecurity Schema Framework): launched at Black Hat 2022 by Splunk, AWS, IBM and others — a vendor-neutral set of numbered classes. Authentication is class 3002, Process Activity is 1007. Field names differ from ECS deliberately: src_endpoint.ip, actor.user.name. OCSF is the schema you'll meet in AWS Security Lake and in tools that want portability between vendors rather than fidelity to one.

CIM (Splunk Common Information Model): not a format at all — a set of data models (Authentication, Network Traffic, Endpoint) that map arbitrary fields onto shared names at search time via field aliases and calculated fields. Search-time normalization means the raw event stays raw; it also means the mapping cost is paid on every query.

ASIM (Microsoft Sentinel): parser functions — ASimAuthentication, ASimProcessEvent, ASimNetworkSession — that union dozens of source tables under one schema at query time. Same idea as CIM, same tradeoff.

UDM (Chronicle Unified Data Model): noun/metadata envelope around entities (principal, target, security_result). Chronicle normalizes at ingest into UDM permanently; the raw log is kept alongside.

Parse-time vs. query-time

Ingest-time normalization (Chronicle UDM, Elastic ingest pipelines) rewrites the event once; every rule downstream is cheap and the mapping bugs are caught once, in the parser. Query-time normalization (CIM, ASIM) preserves the raw event and makes the mapping a query artifact — flexible, slower, and each rule carries the cost again. Splunk CIM data models can be accelerated; without acceleration, a fleet-wide Authentication search pays the alias-resolution cost per event per run.

A worked mapping

A Windows 4624 lands in ECS as: event.code = "4624", event.action = "logged-in", winlog.event_data.LogonType = "3" — and here's the honesty check — there is no canonical ECS field for LogonType. You either extend the schema (winlog.event_data namespace is ECS's sanctioned escape hatch for Windows specifics) or you lose the field. The schema decision is always: map what's common, keep what's distinctive under a vendor namespace, and never flatten a code into a lossy label.

Sigma sits on top of all of it

The real-world anchor is Sigma: community Sigma rules assume canonical names — Image, CommandLine, TargetFilename — that are Sysmon-flavored. If your pipeline normalized those into process.executable and process.command_line, either your Sigma converter's field-mapping layer translates back, or every ported rule silently never matches. The mapping table between Sigma's field conventions and your schema is a configuration file that deserves the same review as a rule.

The field that falls off the truck

Normalization is lossy. LogonType's integer codes, Kerberos TicketEncryptionType, the GrantedAccess mask on a Sysmon 10 — if your schema has no home for a field, it either gets dropped or stuffed into raw. Write the schema mapping as a table per source: every source field, its normalized name, and a dropped flag where you knowingly discard. Audit the dropped column quarterly; that's where the detections you didn't write live.

Keep the raw event, always. ECS deployments store message untouched beside normalized fields precisely because the parser that dropped a field is indistinguishable from the parser that worked — until you need the field it dropped.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.