# Do not sync krbtgt_AzureAD to Entra ID

Ensure krbtgtAzureAD is not synchronized from on-premises Active Directory.

Source: https://maester.dev/docs/tests/MT.1147

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/f-bader" title="Fabian Bader · Original author"><img src="https://github.com/f-bader.png" alt="Fabian Bader" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/f-bader">Fabian Bader</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Entra ID · Hybrid identity · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1147
```

## Overview

Ensure krbtgt_AzureAD is not synchronized from on-premises Active Directory.

The krbtgt_AzureAD account is a sensitive identity used by Microsoft's cloud services for Microsoft Entra Kerberos scenarios. Microsoft recommends keeping a clear separation between cloud and on-premises environments and not synchronizing this account to Entra ID. Synchronizing an on-premises krbtgt_AzureAD account creates an unnecessary privilege escalation path between the environments.

#### Remediation action

1. Review your Microsoft Entra Connect synchronization scope and identify the on-premises krbtgt_AzureAD account.
2. Exclude that account from synchronization, for example by OU filtering or domain filtering, so it is not synced to Entra ID.
3. Run a synchronization cycle and confirm that no synchronized krbtgt_AzureAD account remains in Entra ID.

#### Related links

* [Security considerations for Microsoft Entra Kerberos | Microsoft Learn](https://learn.microsoft.com/entra/identity/authentication/kerberos#security-considerations)
* [Microsoft Entra Connect Sync: Configure filtering | Microsoft Learn](https://learn.microsoft.com/entra/identity/hybrid/connect/how-to-connect-sync-configure-filtering)
* [Microsoft Entra admin center - Microsoft Entra Connect](https://entra.microsoft.com/#view/Microsoft_AAD_Connect_Provisioning/AADConnectMenuBlade/~/ConnectSync)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1147 |
| Severity | High |
| Suite | Maester |
| Product | Entra ID |
| Related products | Active Directory |
| Feature | Hybrid identity |
| Area | Infrastructure hardening |
| Resource type | User |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1558 Steal or Forge Kerberos Tickets |
| Supports controls | nist-800-53-r5:IA-5, nist-800-53-r5:AC-6 |
| PowerShell test | [Test-MtKrbtgtAzureADNotSynced](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1147.ps1) |
| Services | Graph |

</details>

## Source

- Test: [`tests/maester/entra/Test.MT.1147.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1147.ps1)
- Documentation: [`tests/maester/entra/Test.MT.1147.md`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1147.md)
