Most SOCs now own a SIEM with a UEBA feature switched on, yet few can say which detections should be written as rules and which should be left to behavioural baselines, so they get duplicate alerts on the noisy cases and silence on valid-account abuse. SIEM correlation and UEBA are two different kinds of detection logic: one encodes what an analyst already knows is bad, the other learns what is normal for each entity and scores departures from it. This guide compares them as detection methods rather than products, including how to baseline service accounts and other non-human identities. It is for detection engineers, SOC leads and platform owners; the foundations are in the SIEM Guide and the UEBA Guide.
Key takeaways
- Rules encode knowledge, baselines encode normality. A SIEM correlation rule fires when events match a pattern you wrote; UEBA fires when an entity departs from its own history or its peers. Each catches what the other misses.
- UEBA is mostly a SIEM feature now. The major SIEM platforms ship UEBA or entity risk scoring inside the product, so the real decision is which use cases go to which logic, not which tool to buy.
- Non-human accounts suit rules better than most teams think. A well-run service account's behaviour is narrow enough to express as an explicit allow list (source, logon type, API set, schedule). Use baselines for the long tail you cannot enumerate.
- The two fail differently. Rules fail on the unknown and drift as environments change; baselines fail on poisoned or thin history and on noisy automation. Tune each with its own method.
- Data needs differ. Correlation needs the right fields from the right sources for each rule; UEBA needs weeks of consistent history, resolved identities and HR or ownership context. A source that is fine for rules can be useless for baselines.
The short answer
Write a SIEM rule when you can describe the bad behaviour precisely: a known technique, a policy violation, a sequence of events in a time window, or a forbidden action. Use UEBA when the behaviour is only suspicious relative to what the entity normally does: a user reading ten times their usual volume or a service principal calling a new API family. The joint living off the land guidance from CISA, NSA, FBI and partners recommends both in the same list: consider SIEM tools for log aggregation, establish and continuously maintain baselines, and leverage UEBA to correlate activity across data sources.
| Dimension | SIEM correlation rules | UEBA behavioural baselines |
|---|---|---|
| Detection logic | Explicit conditions, thresholds, sequences and joins written by an engineer | Statistical or machine learning models of normal per entity and per peer group |
| Question answered | Did this known-bad pattern happen? | Is this entity behaving unlike itself or its peers? |
| Strongest against | Known techniques with stable indicators, policy breaches, ordered sequences | Valid-account misuse (T1078), insider data collection, unusual access paths |
| Weakest against | Unknown behaviour and attacks using normal tools and permitted actions | Attacks that match the baseline, slow drift, entities with no history |
| Output | An alert per rule match, with severity set by the author | Anomalies with scores, often accumulated into an entity risk score |
| Explainability | High: the rule is the explanation | Variable: needs the baseline, the peer group and the contributing anomalies shown |
| Time to value | Immediate once data and rule exist | After a learning period on consistent data |
| Tuning lever | Edit conditions, add exclusions, change thresholds | Adjust weights, peer groups, suppression and score thresholds; fix inputs |
| Portability | High with Sigma rules converted per platform | Low: models and scores are platform specific |
Detection logic compared
Rules and correlation
The threat model behind correlation is "we know what this attack looks like". An engineer translates a technique, an incident lesson or a policy into conditions on fields. Sigma, the open rule format, shows the range of logic now expected of a SIEM. Its correlation rules specification (version 2.1.0) defines event_count (for example ten failed logons for one account in five minutes), value_count (one source trying many distinct accounts, the shape of T1110.003 Password Spraying), temporal and temporal_ordered (events from several rules within a time span, in any order or a fixed order), and aggregations such as value_sum, value_avg and value_percentile. The specification itself warns that some backends cannot preserve event order or only match within fixed time boundaries, which can cause false positives and false negatives, so converted rules need testing on each platform.
Architecture, in words: parsed and normalised events land in the SIEM; scheduled or streaming queries evaluate each rule; matches create alerts with entities attached; the SOC triages. Every rule has an author, a test and an owner, which is why correlation is explainable and auditable. See the Detection Engineering Guide for the rule lifecycle.
Behavioural baselines
The threat model behind UEBA is "the attacker will look legitimate". Stolen credentials, insiders and living off the land techniques produce events that match no signature, so the platform learns normal behaviour and scores deviation. The platforms describe this in similar terms. Microsoft's Sentinel documentation says UEBA builds dynamic behavioural profiles and detects anomalies by comparing current activity to established baselines. Splunk's Enterprise Security documentation says its UEBA identifies anomalies by comparing current activity against learned baselines for users and assets. MITRE D3FEND catalogues the family as D3-UBA User Behavior Analysis, with children such as D3-ANET Authentication Event Thresholding, D3-RAPA Resource Access Pattern Analysis and D3-UDTA User Data Transfer Analysis.
Architecture, in words: features are extracted from events (logon count, bytes transferred, distinct hosts, first-seen country); per-entity and per-peer-group baselines are learned over a window; each new event or time bucket is scored against them; anomalies accumulate into an entity score with decay; high scores create alerts or enrich existing ones.
Where the two logics overlap
The boundary is blurred in practice. A Sigma value_percentile correlation or a hand-written query comparing today's volume with a 30-day average is a simple baseline built as a rule. Conversely, risk scoring in several platforms accumulates the output of ordinary rules per entity. The useful distinction is who defines normal: the engineer (rule) or the model (UEBA).
Convergence: UEBA inside the SIEM platform
Standalone UEBA products still exist, but the main SIEM platforms now ship behavioural analytics or entity risk scoring as part of the product. Platforms are listed alphabetically; each row uses the vendor's own feature names, and order is not a ranking.
| Platform | Behavioural or risk feature (vendor terms) | What the documentation describes |
|---|---|---|
| Elastic Security | Entity analytics: entity risk scoring, asset criticality, prebuilt machine learning anomaly detection jobs, privileged user monitoring | User, host and service risk scores calculated as a weighted sum on a 0 to 100 scale; anomalies from prebuilt jobs that you install and run |
| Google Security Operations | Risk Analytics, with a Risk Analytics for UEBA curated detection category | Entity risk score built from the highest finding score plus a weighted sum of the others, normalised to 1 to 1000, over a configurable risk calculation window |
| Microsoft Sentinel | UEBA, with BehaviorAnalytics, IdentityInfo, UserPeerAnalytics and Anomalies tables, and an optional behaviors layer | InvestigationPriority score of 0 to 10 combining entity anomaly and time series scores; peer ranking of the top 20 peers per user |
| Splunk Enterprise Security | UEBA, with UEBA dashboards and content apps, feeding the Entity Risk Score | Behavioural features such as login frequency and data access volume, a baseline per entity, and entity risk scores from deviations |
Availability: licensing, edition and enablement steps for these features differ between all four platforms and change often, so check current terms in each vendor's documentation.
When a standalone UEBA product still makes sense: the SIEM holds only a subset of the data the models need (for example because of ingest cost), several SIEMs coexist after an acquisition, or insider risk is a separate programme with its own data handling rules. In each case, send the UEBA output back to the SIEM as enrichment so the SOC triages in one place. The wider platform trade-offs are in Next-Gen SIEM vs Traditional SIEM, and evaluation questions are in the User and Entity Behaviour Analytics (UEBA) buyer's guide.
Baselining non-human accounts: rule or model?
The LOTL guidance says automated tools and service accounts should be predictably bounded by time of day, source and destination hosts, and user accounts. If you can write those bounds down for a non-human identity, a rule beats a model, because it alerts on the first deviation with no learning period and no risk of learning the attacker as normal. Reserve UEBA for NHIs you cannot describe yet, or whose behaviour varies legitimately.
| NHI behaviour | Better as a SIEM rule | Better as a UEBA baseline |
|---|---|---|
| Logon type for a Windows service account | Any interactive (type 2) or RemoteInteractive (type 10) logon is an alert; see How to detect interactive logons by service accounts | Only if the account's purpose is unknown |
| Source of a CI/CD deploy role | Allow list of runner networks or workload federation issuers; anything else alerts | Large fleets with autoscaling sources that change daily |
| API set of a cloud workload identity | Explicit deny-list of sensitive API families (key creation, logging changes, T1098.001 Additional Cloud Credentials) | New API families compared with the identity's history, for identities with broad roles |
| Data volume of an integration account | Hard ceiling where the job's volume is fixed | Volume relative to the account's own history where it varies by season or customer |
| Schedule | Activity outside a defined job window | Jobs triggered by events rather than a timetable |
| AI agents with tool access | Explicit tool allow list and denied actions | Sequence and volume of tool calls, which vary by task; see the AI Agent Behaviour Baselining and Anomaly Detection Guide |
Two cautions specific to NHIs. First, a baseline learned while a credential is already compromised treats the attacker as normal; a rule written from the documented purpose does not. Second, UEBA peer groups are often built from HR data, which non-human accounts lack, so workloads need peer groups by application and environment or they get compared with people. The Okta Breach, where a support service account's credentials were saved in a personal browser profile and then used by an attacker, included a download of a full user report: a bulk-read action that account would rarely perform, and exactly the kind of bound a rule can state. Ownership and inventory come first: see the Service Account Security Guide.
Failure modes of each approach
| Failure mode | SIEM rules | UEBA |
|---|---|---|
| Unknown attack | No rule, no alert | Detected only if it departs from normal |
| Attacker who looks normal | Missed unless a policy rule applies | Missed when activity stays inside the baseline |
| Environment change | Rules break silently when a field, log format or source changes | Re-learning after migrations, reorganisations or new apps produces anomaly storms |
| Thin data | A missing field disables one rule | Short history or unresolved identities make every action look rare |
| Poisoned baseline | Not applicable | Slow, gradual misuse becomes the baseline |
| Noise source | Broad conditions and unmaintained exclusions | Unlabelled automation, shared accounts and tiny peer groups |
The Snowflake Breach shows both sides. The intrusions used valid credentials with ordinary SQL, so no signature fired. The lessons on that page split cleanly: logins from commercial VPN ranges and new client tools are baseline questions for each account, while enforcing network allow lists and alerting on large copies to temporary stages can be written as explicit rules.
False-positive tuning, method by method
Tuning rules:
- Record why each alert was closed (benign true positive, false positive, duplicate) so tuning is driven by data, not complaints.
- Prefer narrowing conditions (specific process, parent, logon type) over adding broad exclusions such as a whole subnet.
- Give every exclusion an owner, a reason and an expiry date, and review them quarterly.
- Test each change against a replay of historical data before deploying, and keep the previous version to roll back.
Tuning UEBA:
- Fix inputs first: resolve identities across systems, label automation and service accounts, and correct peer groups. Most UEBA noise is a data problem.
- Weight anomalies by asset criticality and privilege, so rarity on a kiosk user scores lower than on a Tier 0 administrator, using the platform's asset or entity context where available.
- Suppress known-benign patterns with time-bound exclusions; prefer time-bound over indefinite exclusions.
- Set alert thresholds on accumulated entity scores, not single anomalies, and let scores decay.
- Expect an anomaly surge after migrations or reorganisations; plan a reduced-alerting period with a named reviewer rather than turning the feature off.
Avoid tuning the same use case in both places. If a rule and a UEBA anomaly both fire for one pattern, decide which owns it and suppress the other, or merge them into one alert with the anomaly as enrichment.
Data requirements
| Requirement | SIEM rules | UEBA |
|---|---|---|
| Sources | The specific sources each rule needs; prioritise by use case (see the SIEM Log Source Onboarding Checklist) | Identity provider sign-ins, directory, endpoint, cloud control plane, SaaS audit and network logs, consistently over time |
| History | Enough retention for investigation and replay testing | Weeks of continuous history before scores are meaningful; gaps distort baselines |
| Identity resolution | Helpful for triage | Essential: one person or workload must be one entity across UPN, SID, email and cloud role session names |
| Context | Asset and threat intelligence lists for enrichment | HR and ownership data for peer groups; application and environment tags for workloads |
| Normalisation | Parsed fields matching the rule's schema | Stable fields over time; a parser change mid-window resets features |
| Integrity | Tamper-resistant storage; the LOTL guidance recommends centralised, write once, read many logging | Same, plus protection of the models and baselines themselves |
Ingest cost is the common conflict: teams drop verbose sources to save money, which leaves rules working but starves UEBA of history. Decide per source which logic depends on it before changing collection or retention. The Log Management and Retention Guide covers tiering.
Decision criteria
- Write a rule when the behaviour is a known technique, a policy breach, an action an entity should never take, or an ordered sequence.
- Use UEBA when only the entity's own history or peers can say whether the behaviour is wrong: volumes, first-seen access, unusual times for variable roles, insider collection.
- Use both, merged for high-value identities: rules for hard bounds, UEBA scores as enrichment that raises priority.
- Small teams: turn on the UEBA built into your SIEM, connect identity sources first, use scores as triage enrichment, and spend engineering time on a short list of high-fidelity rules, including NHI bounds.
- Large teams: run detection-as-code for rules, give UEBA a named owner who tunes inputs and peer groups, and measure both with the same metrics.
- Insider risk programmes: UEBA output often feeds a separate insider risk process with HR and legal; agree data access and escalation rules before go-live. See Insider Risk vs Insider Threat.
Worked scenario: one support agent, two lenses
A financial services firm reviews the Coinbase Insider Breach, where bribed support agents used legitimate accounts to copy customer records. Its own support platform logs every record view with agent ID, customer ID and ticket ID.
- SIEM rule: alert when an agent views a customer record with no open ticket for that customer. This is a policy breach that can be stated exactly, so it is a rule, tested by replaying a month of logs to measure noise.
- UEBA baseline: score agents whose daily record views exceed their own history and their peer group (same team, same queue). Mass viewing within ticketed work is not a policy breach, so only a baseline can flag it.
- Merging: both outputs land on the agent entity. A high UEBA score raises the priority of any ticketless-view alert for that agent; neither alone pages the on-call analyst at night.
- Tuning: the first two weeks show anomalies for new joiners. The team fixes peer groups to use start date and queue, rather than suppressing new joiners.
- Measurement: the team tracks ticketless-view alerts closed as true positive and the share of UEBA alerts that led to a case.
How to implement both without duplication
- Inventory use cases: list current rules and UEBA detections, mapped to ATT&CK techniques, and mark overlaps.
- Assign each use case one primary logic using the decision criteria; the other becomes enrichment.
- Prepare data: onboard identity sources, resolve identities, tag service accounts and workloads with owner and purpose, and load HR context.
- Write NHI bound rules for every service account with a documented purpose.
- Enable UEBA in observe mode: let it learn and record scores without alerting, and review the top-scoring entities weekly.
- Pilot alerting on one population (privileged users or one business unit), then expand.
- Roll back by reverting thresholds to observe mode; keep rule versions in source control.
Detection and measurement
- True positive rate by logic: share of alerts closed as true positive, reported separately for rules and UEBA.
- Duplicate alert rate: incidents with both a rule and a UEBA alert for the same activity that were not merged.
- NHI bound coverage: share of service accounts with a documented purpose that have an explicit bound rule.
- UEBA input health: share of events attributed to a resolved entity, and share of service accounts labelled as automation.
- Exclusion hygiene: exclusions and suppressions past their expiry date.
- Detection time for valid-account misuse: from first malicious use of a credential to alert, measured in purple team tests; see the Security Operations Metrics Guide.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | DE.AE-02; DE.AE-03; DE.CM-03 | Analysis of adverse events, correlation from multiple sources, monitoring of personnel activity and technology usage |
| NIST SP 800-53 Rev. 5 | SI-4 System Monitoring; AU-6 Audit Record Review, Analysis, and Reporting; AC-2 Account Management | Monitoring and analysis for both logics; account management for NHI ownership and bounds |
| MITRE D3FEND | D3-UBA User Behavior Analysis; D3-ANET; D3-RAPA; D3-UDTA | Named defensive techniques for behavioural analytics |
| MITRE ATT&CK v20 | T1078 Valid Accounts; T1078.004 Cloud Accounts; T1110.003 Password Spraying; T1098.001 Additional Cloud Credentials; T1213 Data from Information Repositories | Techniques used in this guide's rule and baseline examples |
Common failure patterns
- Baselining what could be a rule: leaving service accounts to UEBA when their purpose is documented, which delays the alert and risks learning the attacker as normal.
- UEBA switched on without identity data: enabling the feature before connecting identity sources and resolving entities, then judging it on the noise.
- Double alerting: rule and UEBA alerts for the same pattern triaged separately by different analysts.
- Permanent suppressions: exclusions with no expiry that silently remove whole populations from both logics.
- Cost-driven source cuts: dropping verbose logs to save ingest cost without checking which baselines depended on them.
- Scores treated as verdicts: closing or escalating on a risk number without reading the contributing anomalies.
Practitioner checklist
- Map every detection to one primary logic, rule or baseline, and record it.
- Write bound rules for every service account and workload with a documented purpose.
- Resolve identities across directory, identity provider, cloud and SaaS before relying on UEBA.
- Build workload peer groups by application and environment, never from HR data.
- Run UEBA in observe mode before alerting, and pilot on one population.
- Merge rule and UEBA outputs on the entity so analysts see one picture.
- Give every exclusion an owner, reason and expiry.
- Check which logic depends on a source before changing collection or retention.
- Report true positive rate separately for rules and UEBA each quarter.
Standards and references
- CISA, NSA, FBI and partners: Identifying and Mitigating Living Off the Land Techniques
- CISA and ASD's ACSC: Guidance for SIEM and SOAR Implementation
- MITRE D3FEND: User Behavior Analysis
- SigmaHQ: Sigma Correlation Rules Specification
- Elastic: Entity analytics overview
- Google Cloud: Risk Analytics overview, Google Security Operations
- Microsoft Learn: Identify threats with UEBA in Microsoft Sentinel
- Splunk: UEBA overview in Splunk Enterprise Security
Related NHI Mgmt Group resources: ITDR vs UEBA, ITDR vs SIEM, SOAR vs SIEM, Detection Engineering for Non-Human Identities Guide.