Detect when login is performed using a specified account (Cloud break glass account)
Description
It is best practice to have break glass accounts, which are excluded from all conditional access policies. To monitor all login activities under a specified account, this Detection Rule can be used. If any activity is performed using the specified account, an alert will be generated.
Query · kql
AADSignInEventsBeta
| where AccountDisplayName == "Input display name of account here"
| project AccountDisplayName,
Country,
IPAddress,
Timestamp,
Application,
DeviceName,
ReportId,
LogonType,
SessionId,
OSPlatform,
AccountObjectId,
AccountUpn