Kerberos Constrained Delegation
Kerberos Constrained Delegation とは何ですか?
Kerberos Constrained DelegationAn Active Directory delegation mode that allows a service to impersonate users only to a specified set of target services — safer than unconstrained delegation, but still abused via S4U2Self / S4U2Proxy attacks when misconfigured.
Kerberos Constrained Delegation (KCD), introduced with Windows Server 2003, restricts which other services an account can impersonate a user to: the account's `msDS-AllowedToDelegateTo` attribute lists exactly those target SPNs. KCD comes in two flavors. Classic KCD requires Domain Admin to configure the trust on the delegating account. Resource-Based Constrained Delegation (RBCD), introduced in Windows Server 2012, inverts the configuration so the target service controls who can impersonate to it via `msDS-AllowedToActOnBehalfOfOtherIdentity` — useful for cross-forest scenarios. KCD is far safer than unconstrained delegation, but it is not safe by default: attackers with control of an account that has constrained delegation rights can use S4U2Self to mint tickets for arbitrary users (including Domain Admins) and then S4U2Proxy to access the allowed targets, an attack chain documented since the 2018 Elad Shamir 'Wagging the Dog' research. RBCD attacks via control of computer-account writes (CVE-2021-42278/42287, sAMAccountName spoofing) are equally well known. Modern hardening includes Protected Users group membership for sensitive accounts, the 'Account is sensitive and cannot be delegated' flag, and rigorous review of all delegation attributes in AD.
● 例
- 01
A web application's service account is constrained to delegate only to the SQL Server SPN; the same account cannot impersonate users to other services.
- 02
A red-team that gains write access to a computer object configures it for RBCD and S4U2Selfs into Domain Admin, demonstrating the need to restrict ms-DS-MachineAccountQuota.
● よくある質問
Kerberos Constrained Delegation とは何ですか?
An Active Directory delegation mode that allows a service to impersonate users only to a specified set of target services — safer than unconstrained delegation, but still abused via S4U2Self / S4U2Proxy attacks when misconfigured. サイバーセキュリティの ID とアクセス カテゴリに属します。
Kerberos Constrained Delegation とはどういう意味ですか?
An Active Directory delegation mode that allows a service to impersonate users only to a specified set of target services — safer than unconstrained delegation, but still abused via S4U2Self / S4U2Proxy attacks when misconfigured.
Kerberos Constrained Delegation はどのように機能しますか?
Kerberos Constrained Delegation (KCD), introduced with Windows Server 2003, restricts which other services an account can impersonate a user to: the account's `msDS-AllowedToDelegateTo` attribute lists exactly those target SPNs. KCD comes in two flavors. Classic KCD requires Domain Admin to configure the trust on the delegating account. Resource-Based Constrained Delegation (RBCD), introduced in Windows Server 2012, inverts the configuration so the target service controls who can impersonate to it via `msDS-AllowedToActOnBehalfOfOtherIdentity` — useful for cross-forest scenarios. KCD is far safer than unconstrained delegation, but it is not safe by default: attackers with control of an account that has constrained delegation rights can use S4U2Self to mint tickets for arbitrary users (including Domain Admins) and then S4U2Proxy to access the allowed targets, an attack chain documented since the 2018 Elad Shamir 'Wagging the Dog' research. RBCD attacks via control of computer-account writes (CVE-2021-42278/42287, sAMAccountName spoofing) are equally well known. Modern hardening includes Protected Users group membership for sensitive accounts, the 'Account is sensitive and cannot be delegated' flag, and rigorous review of all delegation attributes in AD.
Kerberos Constrained Delegation からどのように防御しますか?
Kerberos Constrained Delegation に対する防御は通常、上記の定義で述べたとおり、技術的統制と運用上の実践を組み合わせます。
Kerberos Constrained Delegation の別名は何ですか?
一般的な別名: KCD, Resource-Based Constrained Delegation, RBCD。
● 関連用語
- identity-access№ 652
Kerberos
対称鍵暗号と信頼された鍵配布センターを用いたチケットベースのネットワーク認証プロトコルで、サービス横断のシングルサインオンを安全に実現する。
- identity-access№ 014
Active Directory
マイクロソフトが提供する Windows ネットワーク向けの企業ディレクトリサービスで、ユーザー・コンピュータ・リソースに対する認証、認可、ポリシー管理を一元化する。
- identity-access№ 654
Kerberos Unconstrained Delegation
An Active Directory configuration that lets a service receive and store TGTs for any authenticating user, allowing it to impersonate them to any other service — a high-impact misconfiguration repeatedly abused for credential theft and domain compromise.
- attacks№ 651
Kerberoasting
サービスアカウントの Kerberos サービスチケットを要求し、その暗号化部分をオフラインで解析して平文パスワードを取り出すオフラインパスワード攻撃。
- attacks№ 886
Pass-the-Ticket
盗み出した Kerberos チケットを再利用し、パスワードを知らずにユーザーやサービスになりすます Active Directory 攻撃。
- attacks№ 836
NTLM リレー攻撃
MITRE T1557.001 に該当する中間者攻撃。被害者の NTLM 認証を別のサービスへ転送し、パスワードを知らないまま被害者になりすます。