{"id":1381,"date":"2023-10-14T13:36:26","date_gmt":"2023-10-14T12:36:26","guid":{"rendered":"https:\/\/crowmoor.se\/blog\/?p=1381"},"modified":"2026-10-20T09:53:26","modified_gmt":"2026-10-20T08:53:26","slug":"reset-krbtgt-twice-yes-twice","status":"publish","type":"post","link":"https:\/\/crowmoor.se\/blog\/?p=1381","title":{"rendered":"Reset krbtgt twice. Yes, twice"},"content":{"rendered":"<p>The krbtgt account is the account whose password is used to sign every Kerberos ticket granting ticket in your domain. If an attacker gets its password hash, he can create his own tickets, golden tickets, for any user, with any rights, for as long as he likes. Changing the passwords of all admins doesn\u00b4t help. The tickets are still valid.<\/p>\n<p>The fix is to reset the krbtgt password. And you need to do it twice. Why?<\/p>\n<p>Because Active Directory keeps the current and the previous password for krbtgt. That is a feature: when you reset the password, tickets already issued with the old key keep working, so users aren\u00b4t thrown out. But it also means that a golden ticket made with the old hash keeps working after the first reset. Only after the second reset is the stolen key gone.<\/p>\n<p>But don\u00b4t do the two resets right after each other. Wait until the first change has replicated to all domain controllers and the existing tickets have expired, by default ten hours. Otherwise you will break authentication for a lot of users and services. Microsoft has published a script that helps check replication and do it safely.<\/p>\n<p>Do this after every incident where Tier 0 may have been compromised. And do it regularly as maintenance, for example twice a year, so it isn\u00b4t the first time you do it in the middle of a crisis.<\/p>\n<p>One reset closes the door. The second one changes the lock.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The krbtgt account is the account whose password is used to sign every Kerberos ticket granting ticket in your domain. If an attacker gets its password hash, he can create his own tickets, golden tickets, for any user, with any rights, for as long as he likes. Changing the passwords of all admins doesn\u00b4t help. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12,4,13],"tags":[55,131,132],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-methodology","category-security-architecture","category-technology","tag-active-directory","tag-kerberos","tag-krbtgt"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1381"}],"version-history":[{"count":1,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1381\/revisions"}],"predecessor-version":[{"id":1406,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1381\/revisions\/1406"}],"wp:attachment":[{"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crowmoor.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}