Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft 365 Foundations v7.0.0 · 2.2.1

Sign-ins to emergency access accounts should raise an alert

  • E5 Level 1
  • Microsoft Defender
  • Manual check

This check looks at whether use of your emergency access (break-glass) accounts is monitored, so that someone is told when one of them signs in. The safe setting is an alert rule on the sign-in logs of those accounts that reaches a person who can react quickly.

Why it matters

Emergency access accounts are a deliberate exception: they are excluded from the usual protections so you can still get into the tenant if Conditional Access or MFA breaks. That makes them very powerful and very attractive to an attacker. In normal life they should almost never sign in, so any sign-in is either a real emergency or a sign of misuse, and either way somebody needs to know straight away.

Microsoft recommends exactly this on Microsoft Learn: Manage emergency access accounts in Microsoft Entra ID, which covers monitoring sign-in and audit logs for these accounts and alerting on their use. This check is a manual one: the tenant data can show that an alert rule exists, but someone has to confirm it reaches the right people.

How to check it yourself

Portal path: Microsoft Entra admin center → Identity → Monitoring & health → Sign-in logs, filtered to your emergency accounts, to see recent use. Then Azure portal → Monitor → Alerts → Alert rules, and look for a rule that queries sign-in logs for those account names and notifies an action group.

Read-only commands. The first reads recent sign-ins with Microsoft Graph PowerShell, the second lists alert rules in a subscription:

Connect-MgGraph -Scopes AuditLog.Read.All
Get-MgAuditLogSignIn -Filter "userPrincipalName eq 'breakglass1@contoso.example'" -Top 10 |
  Format-Table CreatedDateTime, UserPrincipalName, AppDisplayName, IPAddress

Connect-AzAccount
Get-AzScheduledQueryRule | Format-Table Name, Enabled, Severity

Replace the example address with your own. Also open the action group the rule uses and confirm that the recipients are people who will see it out of hours.

How to fix it

Portal steps: send the Microsoft Entra sign-in logs to a Log Analytics workspace (Entra admin center → Monitoring & health → Diagnostic settings). In Azure Monitor, create a log search alert rule on that workspace with a query that matches sign-ins from your emergency accounts, run it frequently, and attach an action group that sends email or a mobile push to your on-call people. Test it by signing in to one account in a planned test window.

Example query for the alert rule (Kusto), which only reads the log:

SigninLogs
| where UserPrincipalName in~ ('breakglass1@contoso.example', 'breakglass2@contoso.example')
| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress, ResultType

ConfigCobra itself never changes your tenant. It reports that the monitoring is missing and shows you steps like these.

What changes when you fix it

Nothing changes for normal users. The people affected are the on-call administrators or security contacts who receive the alert, so agree who they are and what they should do when it fires. The emergency accounts themselves keep working in the same way.

Plan for a small amount of extra work: a Log Analytics workspace needs to exist and receive the logs, and it keeps data for a retention period you choose. Document the alert and test it on a schedule, for example when you review the accounts, so a broken rule does not go unnoticed. Expect an alert on every genuine test sign-in and tell your team beforehand.

Included in

BenchmarkCIS IDProfile
CIS Microsoft 365 Foundations v7.0.02.2.1E5 Level 1

Check this on your Microsoft 365

ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial