Key takeaway
- User and entity behaviour analytics (UEBA) learns normal activity and scores deviations to cut SOC alert noise. See how it works and where agents help.
User and entity behaviour analytics (UEBA) uses machine learning to build a baseline of normal activity for users, hosts and other entities, then flags activity that deviates from it so a security operations centre (SOC) can triage and automate response. It is aimed at threats that look legitimate on the surface, such as compromised accounts, insider attacks and lateral movement.
This guide is for SOC managers, detection engineers and security architects. It covers how UEBA builds baselines and scores, what data it needs, which behaviours it surfaces, how it feeds SOC automation, and where AI agents add and remove risk.
What is UEBA and how does it differ from other detection?
Microsoft's documentation on UEBA in Microsoft Sentinel says UEBA "continuously learn[s] from your data to surface meaningful anomalies" and is natively integrated into Microsoft Sentinel and the Defender portal. Rule-based detection fires on a known pattern. Behavioural analytics asks a different question: is this normal for this entity? It sits beside, not in place of, your SIEM, endpoint and identity tooling. For the wider SOC picture, see our guides to the security operations centre and to automating SOC work.
| Approach | Detects | Needs |
|---|---|---|
| Rule or signature detection | Known patterns and indicators | A rule or signature for each pattern |
| User and entity behaviour analytics | Deviation from an entity's own and its peers' normal activity | Enough history and quality data to form a baseline |
| Network behaviour analytics | Unusual traffic patterns on the network | Network and flow telemetry |
How does UEBA build a baseline and score anomalies?
Per the Sentinel page, UEBA builds dynamic behavioural profiles for users, hosts, IP addresses, applications and other entities, and detects anomalies by comparing current activity to established baselines. It weighs deviations across locations, devices and environments, changes over time and frequency against the entity's own history, differences from peer groups, and deviations from organisation-wide patterns.
Peer groups matter because "normal" depends on role. The Sentinel documentation says peer groups are calculated dynamically from security group membership, mailing lists and other associations. The page does not state how long the learning period is, so ask your vendor rather than assuming.
| Score | Range | Purpose |
|---|---|---|
| Investigation priority (BehaviorAnalytics) | 0 to 10 | Event-level triage in near real time |
| Anomaly score (Anomalies table) | 0 to 1 | Behaviour-level, batch, ML-based patterns over time |
Microsoft notes the two scores can correlate but do not always. Its example is a first-time Azure operation, which can show a high investigation priority and a low anomaly score. Treat scores as triage input, not a verdict.
What data does UEBA need?
The UEBA reference lists the sources the engine uses to train its models and set baselines, including Microsoft Entra ID sign-in and audit logs, Azure activity, Windows security events, firewall logs from vendors such as Check Point, Fortinet and Zscaler, AWS CloudTrail and GuardDuty, GCP audit logs and Okta. Output depends on enabled connectors, so a gap in sign-in data is a gap in baselines.
Identity context matters too. Identity information is synchronised from Entra ID and, through Defender for Identity, on-premises Active Directory, with enrichment such as whether an account is dormant, new or a local admin.
Which behaviours does UEBA surface?
The Sentinel reference describes activity comparisons such as a first-time action by a user, an action uncommonly performed by that user, and a country uncommonly connected from among peers. Common SOC use cases follow the same logic.
| Behaviour | What it may indicate | Why a baseline helps |
|---|---|---|
| Sign-in from an unfamiliar country, device or IP | Compromised credentials | Compares to the user's and peers' history |
| Unusual access to privileged resources | Privilege abuse | Flags access outside the role's normal pattern |
| Large or unusual downloads and transfers | Possible data exfiltration | Volume is judged against the entity's own norm |
| Scripts or queries unusual for the role | Misuse or compromise | Role and peer context separate normal from odd |
| Scanning or lateral movement across hosts | Intruder looking for access | Traffic differs from a host's usual connections |
How does UEBA feed SOC automation?
In an automated SOC, behavioural scores decide what an analyst or playbook sees first. A high-priority anomaly can open an incident with entity context attached, while low-priority events stay in the data for hunting. Microsoft describes a separate behaviours layer that aggregates raw logs into "who did what to whom" objects mapped to MITRE ATT&CK, which you enable independently of UEBA.
Pricing and storage need planning. The Sentinel page says UEBA is included with Microsoft Sentinel at no extra cost, but its data is stored in Log Analytics tables and follows standard Sentinel pricing. Other platforms differ, so check yours.
How do AI agents change behavioural analytics in the SOC?
UEBA tells you that something deviates. An AI agent can then gather the surrounding context, such as the user's recent sign-ins, the host involved and related alerts, draft an assessment and propose a response for an analyst to approve. That shortens the path from signal to decision without removing the analyst from it.
Agents also create new entities to baseline: their own service accounts and tool calls. Give each agent a scoped identity, log every action and keep a human approval step for containment actions. ElixirClaw is the AI agents computing platform XenonStack uses to build and run such agents. For adjacent reading, see security operations vs network operations, setting up security operations using Azure Sentinel and edge computing in autonomous SOCs.
What should you do first?
- List the identity, cloud, endpoint and network sources a baseline would need, and fix the gaps.
- Pick two or three high-value use cases, such as compromised credentials and data exfiltration.
- Enable UEBA for those sources and review scores with analysts before automating anything.
- Define which scores open an incident automatically and which only enrich.
- Give any AI agent a scoped identity and require approval for containment actions.
To map one decision your SOC agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Data Collection and Integration
UEBA uses data from various sources to build a big picture of the network's activity. These sources include Network devices such as firewalls and VPNs, security tools such as antivirus software, EDR, and SIEM, and identity and access management (IAM) databases such as Active Directory.
Machine Learning and Baseline Modeling
UEBA uses machine learning to calculate baseline behaviour models by analysing users’ activity data. This sets a general reference that can be used to determine any variation.
Risk Scoring and Alerting
UEBA provides risk scores for anomalous behaviour. A low-risk score suggests that the issue differs slightly from normalcy, while a high-risk score suggests the opposite. The risk score acts as an alert list that guides the SOC analyst on what actions to take.
Threat Intelligence Integration
External threat intelligence feeds are known to be useful and can be integrated into UEBA systems to boost the recognition of identified threats, including those presented in MITRE ATTACK.
Next Steps with SOC Automation
Talk to our experts about implementing compound AI system, How Industries and different departments use Agentic Workflows and Decision Intelligence to Become Decision Centric. Utilizes AI to automate and optimize IT support and operations, improving efficiency and responsiveness.
Frequently asked questions
What does UEBA stand for?
UEBA stands for user and entity behaviour analytics. It profiles users, hosts and other entities and flags deviations from their normal activity.
How does UEBA reduce alert noise?
It ranks activity by how far it deviates from an entity's baseline, so analysts can start with high-priority anomalies. Scores are triage input and need analyst review.
What data does UEBA need?
It needs identity, sign-in, audit, cloud and security logs. In Microsoft Sentinel, output depends on which connectors are enabled.
Is UEBA the same as a SIEM?
No. A SIEM collects and correlates events. UEBA adds behavioural baselines and anomaly scoring, and in Microsoft Sentinel it is built into the SIEM.
Can AI agents act on UEBA alerts?
They can gather context and propose a response, but they need scoped identities, logging and human approval for actions such as containment.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE