Zitek blog

Break-glass accounts in Active Directory: a safe setup

A break-glass account is the way into your domain when every normal route has failed. This post covers how many to keep, where the password lives, and how to test one without leaving it weaker than before.

What a break-glass account is for

A break-glass account is a domain admin account that nobody uses day to day. It exists for the day the normal way in has failed: your MFA provider or identity provider is down, the vault that holds your admin passwords can't be reached, your own admin accounts have been locked out or disabled during an incident, or the one person who knows the passwords is on a plane.

Because it can do anything in the domain, it's a tier 0 account and needs the same care as Domain Admins. The design rule that follows from its purpose is simple to state and easy to break: the account mustn't depend on any of the things it exists to work around.

How many to have

Two. One account is a single point of failure: it can be locked out, have its password copied down wrong, or be disabled by a well-meaning clean-up script. Microsoft gives the same advice for Entra ID, where it recommends at least two emergency access accounts. More than two gives you more passwords to guard without much extra resilience.

Many organisations use the domain's built-in Administrator account as one of the pair. Microsoft's guidance on securing the built-in Administrator account already reserves it for building the domain and for disaster recovery, which is the same job. An admin's personal account with domain admin rights isn't a break-glass account, however rarely it's used.

Where the password lives

Somewhere that still works when everything else doesn't. If your everyday tier 0 passwords live in a password vault, the break-glass passwords must also exist outside it, because the vault being unavailable is one of the reasons you'd reach for them.

A common arrangement is a long random password, printed, in a sealed tamper-evident envelope in a safe. Keep the two accounts' envelopes in different places, for example one in the office safe and one at a second site, and keep a short list of who can open each safe. Check the envelopes when you check the safe: a broken seal means the password has to change.

Places it shouldn't be: a spreadsheet, the team's shared password manager, an email to yourself, an old ticket, or the notes app on someone's phone. Anyone who can read those has tier 0 access.

Make it hard to misuse

Check yours this week

These commands only read. Run them from a domain controller or a tier 0 management machine with the Active Directory PowerShell module, and put your own account names in $names.

$names = 'bg-admin1', 'bg-admin2'

$names | ForEach-Object {
  Get-ADUser $_ -Properties PasswordLastSet, LastLogonDate,
      AccountNotDelegated, MemberOf |
    Select-Object SamAccountName, Enabled, PasswordLastSet,
      LastLogonDate, AccountNotDelegated,
      @{ n = 'Groups'; e = { ($_.MemberOf |
        ForEach-Object { ($_ -split ',')[0] -replace '^CN=' }) -join '; ' } }
}

Look for an account that's disabled, a password that was set years ago, or a LastLogonDate you can't explain. That date comes from the lastLogonTimestamp attribute, which Active Directory only updates every couple of weeks, so treat it as approximate.

To see exactly when the accounts were used, search the Security log on each domain controller for Kerberos ticket requests (event 4768) and NTLM credential checks (event 4776):

$match = ($names | ForEach-Object {
  "Data[@Name='TargetUserName']='$_'" }) -join ' or '
$xpath = "*[System[(EventID=4768 or EventID=4776)] and EventData[$match]]"

Get-ADDomainController -Filter * | ForEach-Object {
  Get-WinEvent -ComputerName $_.HostName -LogName Security `
      -FilterXPath $xpath -MaxEvents 50 -ErrorAction SilentlyContinue |
    Select-Object MachineName, TimeCreated, Id
}

No results can mean the accounts weren't used, or that your domain controllers don't record these events or don't keep the log for long. Check the first with auditpol /get /subcategory:"Kerberos Authentication Service","Credential Validation" on a domain controller. If success events aren't being recorded, you also have nothing to alert on yet.

Testing without weakening it

An untested break-glass account is a guess. The risk in testing is that the password is now known to whoever opened the envelope, so every test should end with a new password.

  1. Agree a time and tell whoever watches your alerts, so the alert is expected rather than ignored.
  2. Have two people open the envelope together and record who opened it and when.
  3. Sign in at a domain controller's console, or through your hypervisor's console, since that's the route you'd use if the network or remote desktop was the problem.
  4. Run whoami /groups and check the account is still in the groups you expect.
  5. Set a new long random password, print it, seal it in a new envelope and return it to the safe. This step changes the account.
  6. Confirm the alert arrived. If it didn't, fix the monitoring before the next test.

Step 5 is a real password change. Make sure the new password is printed and readable before you sign out, and test the second account on a different day, so you always have one account whose password you know works.

Test each account every few months, and again after anything that could break the route in: new MFA or sign-in policies, Group Policy changes to user rights, or someone who knows where the envelopes are leaving. Microsoft suggests validating Entra ID emergency access accounts at least every 90 days, which is a sensible rhythm for Active Directory too.

Where Rotara fits

Rotara keeps your everyday tier 0 passwords in one vault. Your identity provider's MFA applies before anyone can see one, every reveal, copy and rotation goes into an audit log that can't be rewritten, and changes to tier 0 accounts need a second administrator's approval.

Keep your break-glass passwords outside Rotara as well, as described above, so that no single system is the only way into your domain.

How Rotara is secured · Book a demo

More posts · Guides