AI against AI (part 2): What is UEBA in Microsoft Sentinel and why you need it
In my previous blog AI against AI, I described how attackers increasingly use artificial intelligence to stay under the radar. Phishing is getting smarter, attacks are becoming more subtle, and abuse of legitimate accounts has become the norm. In this blog, we zoom in on one of the most important defense mechanisms on the Blue Team side: User and Entity Behavior Analytics, or UEBA for short.
Because if attackers use AI to disguise themselves as "normal" behavior, how do you still detect that?
The shift: from breaking in to logging in
Hackers no longer break in. They log in.
Using stolen credentials, OAuth tokens, or abused service accounts, attackers move through environments as if they were legitimate users. To classic SIEM detection rules, this often looks perfectly valid:
- It's an authentic user
- A valid MFA is being used
- The device is legitimate
And yet, things go wrong.
This is where the playing field of AI against AI begins – where defenders no longer look at what someone does, but at how that behavior compares to normal use.
What is UEBA?
- Users
- Devices
- Service accounts
- Applications and workloads
As soon as behavior statistically deviates from that baseline, it is flagged as suspicious.
UEBA doesn't look at a single isolated action, but at the complete context and pattern.
Examples:
- A user always logs in from the Netherlands, but suddenly and consistently from multiple continents.
- A valid user logs in from their Entra joined device. Shortly after, the token from this session is used from a different user agent and a different location.
- An account suddenly downloads far more data than usual.
- A service token is used outside its usual time window and scope.
So not a rule-based alert, but a behavioral anomaly.
UEBA within Microsoft Sentinel
The first signals that something is wrong often come from Microsoft Entra ID Protection, for example through risky sign-ins or suspicious account activity. UEBA in Microsoft Sentinel then goes a step further by putting this signal into context and enriching it with behavioral analysis over time.
Sentinel combines data from sources including:
- Microsoft Entra ID
- Microsoft Defender XDR
- Azure Activity Logs
- Endpoint and network telemetry
Where Entra ID Protection looks at individual identity events, UEBA connects them to broader user and entity behavior across the entire environment. Sentinel acts as the central platform where identity risks, UEBA insights, and other security signals come together. Using machine learning, Sentinel automatically builds behavioral profiles and assigns risk scores to users and entities. These models continuously learn. Behavior that changes structurally (for example due to a new role or work location) is automatically incorporated into the baseline.
Why UEBA fits perfectly into 'AI against AI'
- Make phishing attacks more realistic
- Adapt their behavior to the target
- Spread out activities to remain undetected for as long as possible
UEBA uses AI to:
- Recognize subtle anomalies
- Add context to log data
- Base alerting on probability, not certainty
This is the fundamental difference.
Where attackers use AI to minimize detection of malicious activity, the Blue Team uses AI to give that activity meaning after all.
UEBA doesn't ask: "Is this wrong?"
UEBA asks: "Does this make sense, given everything we know?"
What does UEBA detect better than classic SIEM rules?
- Compromised accounts - especially with MFA fatigue and token theft.
- Insider threats - deliberate or unintentional abuse of privileges, often spread out over time.
- Lateral movement - behavior that may be legitimate in itself, but deviates from the pattern.
- Abuse of service accounts - non-personal accounts are often barely monitored, yet regularly hold elevated privileges.
In all these cases, the same applies: the action is valid, the behavior is off.
UEBA and incident response in Sentinel
- Enrich existing alerts
- Raise or lower the priority of incidents
- Provide context to SOC analysts
An analyst not only sees what happened, but also:
- How unusual it is
- Compared to whom
- Compared to historical behavior
This reduces alert fatigue and improves the quality of decisions – crucial in a SOC where AI-driven attacks demand speed.
What UEBA is not
UEBA as a foundation within Zero Trust and cloud security
But verification doesn't stop at login.
In hybrid and cloud environments, with:
- SaaS
- Remote work
- APIs
- AI agents
- Non-human identities
... continuously verifying behavior is indispensable.
UEBA thus forms a bridge between:
- Identity
- Detection
- AI-assisted defense
Exactly where the Blue Team can make the difference, taking down that one malicious account before it exfiltrates all the data it has gathered.
Conclusion: defend AI with AI
That is what AI against AI is ultimately all about.
Curious what UEBA in Microsoft Sentinel could mean for your organization? Get in touch.