Investigating BehaviorEntities: The User Wasn't Suspicious. The Behaviour Was.
The account belonged to a trusted employee.
The sign-ins looked normal.
No malware was detected.
No critical alerts fired.
Yet something did not look right.
The behaviour had changed.
BehaviorEntities revealed the pattern.
Lesson overview
Learn how IdentityInfo helps defenders understand who an account belongs to, what access it has and how much risk it represents.
Why BehaviorEntities matters
Investigation scenario
Step 1 — Review recent behaviour entities
- 1
- 2
- 3
- 4
- 5
- 6
- 7
BehaviorEntities | where Timestamp > ago(7d) | project Timestamp, EntityType, AccountName, RiskLevel, InvestigationPriority | order by Timestamp desc
Step 2 — Investigate high-risk behaviour
- 1
- 2
- 3
- 4
- 5
- 6
BehaviorEntities | where Timestamp > ago(30d) | where RiskLevel == "High" | project Timestamp, EntityType, AccountName, RiskLevel, InvestigationPriority | order by InvestigationPriority desc
Step 3 — Review one user
- 1
- 2
- 3
- 4
- 5
- 6
- 7
let TargetUser = "user@company.com"; BehaviorEntities | where Timestamp > ago(30d) | where AccountName == TargetUser | project Timestamp, EntityType, AccountName, RiskLevel, InvestigationPriority | order by Timestamp asc
Step 4 — Identify risky behaviour changes
- 1
- 2
- 3
- 4
- 5
- 6
BehaviorEntities | where Timestamp > ago(14d) | where InvestigationPriority > 70 | project Timestamp, AccountName, EntityType, RiskLevel, InvestigationPriority | order by InvestigationPriority desc
Step 5 — Build the behaviour timeline
- 1
- 2
- 3
- 4
- 5
- 6
let TargetUser = "user@company.com"; BehaviorEntities | where AccountName == TargetUser | project Timestamp, EntityType, RiskLevel, InvestigationPriority | order by Timestamp asc
Step 6 — Pivot from behaviour to investigation evidence
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
let RiskyUsers = BehaviorEntities | where Timestamp > ago(14d) | where InvestigationPriority > 70 | distinct AccountName; CloudAppEvents | where Timestamp > ago(14d) | where AccountDisplayName in (RiskyUsers) | project Timestamp, AccountDisplayName, Application, ActionType, IPAddress
