Join our Newsletter — 33% off our NHI Course
Home› Guides› Security Log Enrichment Guide: Asset, Identity, Geolocation and…
Guide SOC & Detection Engineering

Security Log Enrichment Guide: Asset, Identity, Geolocation and Threat Intel Context at the Right Stage

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

Most alerts arrive as a bare IP address, a hostname and an account name, and the analyst then spends the first ten minutes finding out what those things are. Log enrichment adds that context to events automatically: which asset this is and how critical it is, who or what the account belongs to, where the source address appears to be, and whether an indicator is known to be malicious. This guide covers the four main enrichment types, the sources of truth behind them, and the choice of where to enrich: at source, in the pipeline, at ingest or at query time. It is written for detection engineers and SIEM platform owners whose alerts lack context.

Key takeaways

  • Enrichment is a join against a source of truth. Its value is capped by the quality of the CMDB, identity directory, GeoIP database or intelligence feed behind it.
  • Stage matters as much as content. Enriching early freezes the context as it was at event time; enriching at query time shows context as it is now. Investigations often need both.
  • Geolocation is an estimate. Country is usually right; city often is not, and VPN, mobile and cloud egress addresses locate the network, not the person.
  • Threat intelligence goes stale. Indicators need an expiry, a confidence value and a warning list of shared infrastructure, or matches turn into noise.
  • Non-human identities need owners in the event. A service account name means little at 3am; its owner, workload and expected hosts make the alert actionable.

What log enrichment is and why it matters

Enrichment means adding fields to an event that the original log source did not record, by looking up a value already in the event (an IP, a hostname, a user principal, a file hash) against a reference dataset. Normalisation reshapes fields the source did emit; enrichment works best after it because join keys become predictable. See the OCSF Guide for schema choices.

The NIST Cybersecurity Framework 2.0 names this activity directly: DE.AE-03 asks that information is correlated from multiple sources, and DE.AE-07 asks that cyber threat intelligence and other contextual information are integrated into the analysis. In SP 800-53 Rev. 5 the closest controls are AU-3(1) Additional Audit Information, AU-6(5) Integrated Analysis of Audit Records and SI-4 System Monitoring. NIST SP 800-92, the log management reference, remains the 2006 final version, and its Rev. 1 planning guide is still an initial public draft (published 11 October 2023, comment period closed), so there is no current NIST text dedicated to enrichment. See the NIST SP 800-92 Log Management Guide.

Done well, enrichment makes context-dependent detection rules possible ("privileged account on a crown-jewel server from a new country"), puts owner and criticality in front of the analyst, and lets known-benign sources be tagged rather than hidden in IP lists inside rules.

Enrichment types: asset, identity, geolocation, threat intel

Enrichment typeTypical fields addedSource of truthUsual best stageMain risk
Asset contextOwner, business service, criticality tier, environment (prod, dev), OS, data classificationCMDB, cloud resource tags, EDR and MDM inventory, CAASMQuery time for owner and tier; source or pipeline for cloud and Kubernetes metadataStale or incomplete CMDB records
Workload metadataCloud account, region, instance ID, container, pod, namespace, service nameThe platform itself (cloud metadata service, Kubernetes API, OpenTelemetry resource attributes)Source (agent or collector)Short-lived workloads disappear before a later lookup
Human identityDepartment, manager, job role, employment status, privileged flag, MFA stateHR system, identity provider, directory, PAMQuery time, with a snapshot of privileged status at ingestLeavers and role changes lag behind HR
Non-human identityOwner, owning team, workload or application, credential type, expected hosts, last rotationNHI inventory, secrets manager, cloud IAM, CMDB application recordsQuery time, plus ingest tag for "is NHI"Orphaned accounts with no owner to join to
GeolocationCountry, region, city, coordinates, accuracy radius, autonomous system (ASN), organisationCommercial or free GeoIP and ASN databases, cloud provider published rangesIngest (freeze at event time)False precision; VPN, mobile and cloud egress
Threat intelligenceMatched indicator, type, provider, confidence, first and last seen, TLP marking, linked actor or techniqueThreat intelligence platform, ISAC feeds, commercial feeds, internal IOCsBoth: ingest-time match for alerting, query-time retro-hunt for new indicatorsExpired indicators and shared infrastructure

Asset context

The minimum useful asset set is owner, business service, environment and a criticality tier of no more than four levels. For cloud workloads, tags set by the deployment pipeline are often fresher than the CMDB. See the Asset Inventory and CMDB Security Guide.

Identity context

For people, join on a stable immutable identifier (object ID, employee number) rather than display name or email, which change. For workloads, OpenTelemetry resource semantic conventions define standard attributes such as service.name, plus host.*, cloud.*, container.* and k8s.* groups, so telemetry can carry its own workload identity from the start.

Non-human identity enrichment

Service accounts, API keys, OAuth clients and workload identities now outnumber people in most estates, yet their events are the least enriched. A useful NHI enrichment record holds: owner and owning team, the application or workload it serves, credential type (password, key, certificate, federated token), the hosts or networks it is expected to use, privilege level and last credential rotation. With those fields a rule can flag a service account logging on interactively, from an unexpected host, or after its owner has left. See the NHI Ownership Guide and the How to Detect Service Account Misuse guide.

Geolocation and network context

Elastic Common Schema (ECS) shows the usual shape: geo.* fields (country, region, city, location point, time zone) nested under source, destination, client or host, never at the event root, because an event has more than one address. Add ASN and organisation alongside, since "hosting provider" versus "residential ISP" is often more telling than the city. MITRE D3FEND models the related analytic as D3-UGLPA User Geolocation Logon Pattern Analysis. See the D3-UGLPA User Geolocation Logon Pattern Analysis guide.

Threat intelligence context

ECS records intelligence matches under threat.enrichments.*, keeping the matched atomic value, which field matched, the match type and when it occurred, plus indicator first_seen, last_seen, a STIX 2.1-style confidence rating and the TLP marking. The OCSF Enrichment object takes a similar approach with name, value, data, type, provider, created_time and reputation. D3FEND covers reputation lookups as D3-IPRA IP Reputation Analysis. See the Threat Intelligence Guide.

Where to enrich: source, pipeline, ingest or query time

Each stage is a trade between "context as it was when the event happened" and "context as it is now", and between paying the cost once per event or once per search.

StageHow it worksStrengthsWeaknessesGood fit
SourceAgent or SDK adds fields before sending (host metadata, cloud and Kubernetes attributes, OpenTelemetry resource attributes)Accurate for local facts; survives workload deletionOnly knows what the host knows; config sprawl across agentsWorkload metadata, container and pod identity
PipelineCollector or stream processor joins events against cached reference tables before the SIEMOne place to manage logic; can enrich before routing and filtering decisions; vendor-portableReference tables must be pushed to the pipeline and kept in sync; added latencyGeoIP and ASN, asset tier for routing, NHI tagging
IngestSIEM or data platform applies lookups as events are indexed (for example an enrich index built from a source index)Point-in-time context stored with the event; fast to search laterWrong if reference data was wrong at that moment; storage cost per event; re-enrichment needs re-processingGeolocation, intelligence matches for real-time rules, privileged flag snapshot
Query timeSearch joins events to lookup tables or watchlists when a rule or analyst runsAlways current; no extra storage; fix the reference data and every past event benefitsShows today's owner, not the owner at the time; per-search compute; limited lookup sizeAsset owner, HR status, NHI owner, retro-hunting new indicators

Platform features follow this pattern. In Elasticsearch, an enrich policy must be executed to build a read-only enrich index before the enrich processor can use it, so source changes do not appear until the policy is re-executed. Microsoft Sentinel watchlists are reference tables joined in KQL with _GetWatchlist('alias'); Microsoft documents a limit of 10 million active items per workspace and local uploads up to 3.8 MB, and advises custom tables for large datasets.

Decision guidance

  • Freeze it if it changes and you will need the old value: source IP geolocation, intelligence verdict, whether the account was privileged. Enrich at ingest or earlier.
  • Look it up late if you want the current answer: who owns this server today, is this person still employed, who to page. Enrich at query time.
  • Enrich before routing if enrichment drives cost: if tier-3 debug logs go to cheap storage and tier-1 security logs to the SIEM, tag asset tier in the pipeline.
  • Small teams: start with two or three query-time lookups (asset tier, privileged accounts, NHI owners) and ingest-time GeoIP; add a pipeline only when volume or routing demands it.
  • Large or multi-SIEM estates: centralise enrichment in the pipeline so every destination gets the same context; keep ownership and HR status at query time.

Keeping enrichment data fresh

Wrong enrichment is worse than none, because analysts trust it. Give each reference dataset an owner, a refresh schedule and a quality metric.

  • CMDB staleness: reconcile CMDB records against what actually emits logs. Any host sending events with no CMDB match is an inventory gap; any CMDB record silent for 30 days is a candidate for retirement.
  • Identity drift: sync from the identity provider at least daily, and from HR on every change event where the integration allows. Leavers are the case that matters most: a query-time lookup that still shows "active" days after departure hides the alert you most need.
  • NHI ownership gaps: an NHI with no owner should enrich to a visible value such as owner=UNASSIGNED, not to blank, so rules and dashboards can count and escalate them. See the NHI Inventory Reconciliation guide.
  • GeoIP updates: download database updates as the provider releases them; MaxMind states that its licence terms require users to keep databases up to date. Record the database build date in the pipeline so you can explain a historical lookup.
  • Threat intelligence expiry: give every indicator a time to live by type. IP addresses on shared hosting and VPS providers churn quickly; file hashes stay valid far longer. Use the feed's own expiry where it provides one (STIX 2.1 indicators carry valid_from and an optional valid_until).

Cost, latency and accuracy trade-offs

Geolocation accuracy limits

MaxMind, one of the most widely used providers, states it cannot guarantee 100% accuracy and estimates about 99.8% accuracy at country level, but for US addresses only about 80% at state or region level and 66% at city level within 50 km. City results come with an accuracy radius that can be 100 km or more. Specific limits that break naive "impossible travel" rules:

  • VPNs and privacy networks: the database may locate the VPN server, not the user. A corporate VPN puts every remote worker in one city.
  • Mobile networks: carrier addresses can be used across a wide area, so providers may return only country and region.
  • Cloud egress and SaaS proxies: traffic from cloud workloads, secure web gateways and email security services appears from provider ranges, often in a different country from the user or workload. Tag these ranges as such rather than treating them as foreign logins.
  • Anonymisation infrastructure: attackers deliberately use proxies and rented servers (ATT&CK T1090.003 Multi-hop Proxy and T1583.003 Virtual Private Server), so a domestic location proves nothing.

Practical rule: alert on country plus ASN type (residential, mobile, hosting, known VPN), treat city as supporting context and carry the accuracy radius into the event.

Threat intelligence false positives

The commonest intelligence false positives come from shared infrastructure: CDN and cloud addresses, public DNS resolvers, popular domains and sinkholes that appear in feeds. Maintain warning lists of these and check matches against them before alerting. See the IOC False Positive Management Guide. Weight severity by confidence and recency.

Cost and latency

Ingest-time enrichment adds bytes to every event, so enrich only fields that detections or triage use. Query-time joins against large tables slow scheduled rules, so index lookups on the join key (Sentinel calls it the SearchKey) and keep tables lean. Pipeline enrichment adds processing time before events are searchable: measure it, because real-time rules depend on it.

Implementation steps

  1. Start from detections: list the 20 rules and triage steps that most need context, and the fields each needs. Build those first.
  2. Name a source of truth and owner per field: for example asset tier from the CMDB (owned by IT operations), NHI owner from the NHI inventory (owned by identity), GeoIP from a named database.
  3. Normalise first: map events to one schema (ECS, OCSF or your SIEM's model) so join keys are consistent.
  4. Choose the stage per field using the decision guidance above, and document it.
  5. Pilot in parallel: write enriched fields alongside raw ones on a few sources for two weeks, compare with manual analyst lookups, and measure latency and storage.
  6. Roll out with a kill switch: keep enrichment as separate, removable pipeline stages or lookups so a bad reference table can be disabled without dropping events. Never overwrite original fields.
  7. Record provenance: store the enrichment provider, dataset version or build date and enrichment time with each enriched field.
  8. Review quarterly: retire unused enrichments and re-test freshness.

Measuring whether enrichment works

MetricWhat it showsTarget direction
Asset match rateShare of events whose host or IP matches an asset recordAbove 95% for production sources
NHI owner coverageShare of NHI events enriched with a named, current ownerRising each quarter; UNASSIGNED trending down
Reference data ageTime since last successful refresh of each tableWithin the documented refresh interval
Intelligence match precisionShare of intelligence-match alerts confirmed as true positivesRising; warning-list hits removed before alerting
Triage timeMedian minutes from alert to first analyst decisionFalling after enrichment rollout
Pipeline enrichment latencyAdded seconds before events are searchableStable and within real-time rule tolerance

Alert when a lookup table fails to refresh or match rates drop suddenly (often an upstream schema change).

Framework mapping

FrameworkReferenceRelevance
NIST CSF 2.0DE.AE-02, DE.AE-03, DE.AE-07Analysis of adverse events, correlation across sources, integrating threat intelligence and context
NIST CSF 2.0ID.AM-01Hardware inventories that feed asset enrichment
NIST SP 800-53 Rev. 5AU-3(1), AU-6(5), SI-4Additional audit content, integrated analysis, system monitoring
NIST SP 800-53 Rev. 5CM-8, PM-16, RA-3(3)Component inventory, threat awareness programme, dynamic threat awareness
MITRE D3FENDD3-UGLPA, D3-IPRAGeolocation logon pattern analysis, IP reputation analysis

Common failure patterns

  • Enriching from an unmaintained CMDB: analysts learn the owner field is wrong and stop reading it.
  • Impossible-travel rules on city-level GeoIP: VPN concentrators, mobile carriers and cloud proxies generate floods of false alerts until the rule is disabled, taking real detections with it.
  • Intelligence feeds with no expiry: years-old IP indicators now assigned to cloud customers fire against legitimate traffic.
  • Only enriching humans: service account and API key events arrive with no owner or workload, so the alerts most likely to involve automation abuse are the slowest to triage.
  • Query-time lookups for point-in-time questions: last month's incident shows today's owner and privileges, not those at event time.

Practitioner checklist

  • List the detections and triage steps that need context and the exact fields each needs.
  • Assign a source of truth, owner and refresh interval to every enrichment table.
  • Normalise to one schema before joining, and join on immutable identifiers.
  • Decide per field whether to freeze context at ingest or look it up at query time, and document why.
  • Enrich NHI events with owner, workload, credential type and expected hosts; surface unowned NHIs explicitly.
  • Carry GeoIP accuracy radius and ASN type; tag corporate VPN, cloud and security-service ranges.
  • Apply time to live, confidence and warning lists to every intelligence feed.
  • Store provider, dataset version and enrichment time with enriched fields; never overwrite originals.
  • Track match rate, data age, intelligence precision and triage time monthly.

Standards and references

Related NHI Mgmt Group resources: SIEM Guide · Detection Engineering Guide · Detection Engineering for Non-Human Identities Guide · Log Management and Retention Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.