{"id":2495,"date":"2016-01-05T23:01:38","date_gmt":"2016-01-06T04:01:38","guid":{"rendered":"https:\/\/adsecurity.org\/?p=2495"},"modified":"2017-12-04T13:51:57","modified_gmt":"2017-12-04T18:51:57","slug":"mimikatz-update-fixes-forged-kerberos-ticket-domain-field-anomaly-golden-ticket-invalid-domain-field-event-detection-no-longer-works","status":"publish","type":"post","link":"https:\/\/adsecurity.org\/?p=2495","title":{"rendered":"Mimikatz Update Fixes Forged Kerberos Ticket Domain Field Anomaly &#8211; Golden Ticket Invalid Domain Field Event Detection No Longer Works"},"content":{"rendered":"<p>In late 2014, I discovered that the domain field in many events in the Windows security event log are not properly populated when forged Kerberos tickets are used. The key indicator is that the domain field is blank or contains the FQDN instead of the short (netbios) name and depending on the tool used to generate the Kerberos tickets, other domain field anomalies may be present in the events.<br \/>\nThe likely reason for the anomalies is that third party tools that create Kerberos tickets (TGT &amp; TGS) don\u2019t format the tickets exactly the same way as Windows does.<\/p>\n<p>Around this time last year (early January 2015), I shared with customers these indicators for detecting forged Kerberos tickets and subsequently presented this information at BSides Charm 2015. Soon after, Mimikatz was updated with a domain field that was set to static values, usually containing the string \u201ceo.oe\u201d.<\/p>\n<p>As of 4\/16\/2015: Mimikatz generated tickets may include the string \u201c<a href=\"https:\/\/github.com\/gentilkiwi\/mimikatz\/commit\/55e292f89582ab917a1b13dad8841c8784e329d2\">eo.oe.kiwi : ) <\/a>\u201d in the domain field.<br \/>\nAs of 6\/29\/2015: Mimikatz generated tickets may include the string \u201c<a href=\"https:\/\/twitter.com\/cnotin\/status\/639791642170556416\">&lt;3 eo.oe \u2013 ANSSI E&gt;<\/a>\u201d in the domain field.<\/p>\n<p>Few things in life are as consistent as the guarantee that things will change. In infosec, that means the attack tools will continue to evolve to evade detection and the defensive tools need to constantly evolve and improve.<\/p>\n<p>If you protect your Active Directory admins (and service accounts), you will likely not have to deal with forged Kerberos Tickets since they require prior admin access. The problem is that <a href=\"https:\/\/adsecurity.org\/?p=1684\">Active Directory &amp; Enterprises are often not secured to protect against modern threats<\/a> and often, <a href=\"https:\/\/adsecurity.org\/?p=2362\">gaining Domain Admin rights to an AD domain is often too easy in many enterprises<\/a>.<\/p>\n<p><!--more--><\/p>\n<p><strong>Detecting forged Kerberos tickets, including Golden Tickets and Silver Tickets, by identifying for domain field anomalies is likely no longer possible<\/strong>. As of the <a href=\"https:\/\/github.com\/gentilkiwi\/mimikatz\">Mimikatz update dated 1\/5\/2016<\/a>, forged Kerberos tickets no longer include a domain anomaly since <a href=\"https:\/\/github.com\/gentilkiwi\/mimikatz\/commit\/fbb32cdcfa688892ab91b98044c453414193bb74#diff-60c3d6f46631121e0d6f97c2a2e143c9R602\">the netbios domain name is placed in the domain component of the Kerberos ticket<\/a>.<\/p>\n<p><span style=\"text-decoration: underline;\">Mimikatz code diff:<\/span><br \/>\n<a href=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105.jpg\" rel=\"attachment wp-att-2486\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2486\" src=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105.jpg\" sizes=\"auto, (max-width: 1495px) 100vw, 1495px\" srcset=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105-300x24.jpg 300w, https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105-768x62.jpg 768w, https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105-1024x83.jpg 1024w, https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/GT-DomainFieldUpdate-20150105.jpg 1495w\" alt=\"GT-DomainFieldUpdate-20150105\" width=\"1495\" height=\"121\" \/><\/a><\/p>\n<p>This means that attackers using the<a href=\"https:\/\/github.com\/gentilkiwi\/mimikatz\"> Mimikatz version dated 1\/5\/2016<\/a> and\/or Invoke-Mimikatz with this updated DLL will likely not trigger alerts based on the invalid domain fields <a href=\"https:\/\/adsecurity.org\/?p=1515\">I identified in the past<\/a>.<\/p>\n<p><em><strong>User behavior analysis tools such as <a href=\"https:\/\/adsecurity.org\/?p=1583\">Microsoft Advanced Threat Analytics (ATA)<\/a> is the best current method to detect this and other attack types. The best way to detect Golden Tickets is to correlate TGS requests to prior TGT requests. If there&#8217;s no prior TGT request (within a threshold), then the TGS request may be related to a Golden Ticket.<\/strong><\/em><\/p>\n<p><strong>Golden Ticket event from using <a href=\"https:\/\/adsecurity.org\/?page_id=1821\">Mimikatz <\/a>dated (11\/2015): Has the an invalid domain value (\u201c<em><a href=\"https:\/\/twitter.com\/cnotin\/status\/639791642170556416\">&lt;3 eo.oe \u2013 ANSSI E&gt;<\/a><\/em>\u201c)<\/strong><\/p>\n<p><a href=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainField-201511-02.jpg\" rel=\"attachment wp-att-2491\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2491\" src=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainField-201511-02.jpg\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" srcset=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainField-201511-02-240x300.jpg 240w, https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainField-201511-02.jpg 592w\" alt=\"Mimikatz-GoldenTicket-DomainField-201511-02\" width=\"368\" height=\"460\" \/><\/a><\/p>\n<p><strong>Golden Ticket event from using <a href=\"https:\/\/adsecurity.org\/?page_id=1821\">Mimikatz <\/a>dated (1\/\/05\/2015):<\/strong>\u00a0 Has the correct domain value (\u201cRD\u201d)<a href=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainFieldUpdate-20160105-02.jpg\" rel=\"attachment wp-att-2492\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2492\" src=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainFieldUpdate-20160105-02.jpg\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" srcset=\"https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainFieldUpdate-20160105-02-240x300.jpg 240w, https:\/\/adsecurity.org\/wp-content\/uploads\/2015\/05\/Mimikatz-GoldenTicket-DomainFieldUpdate-20160105-02.jpg 590w\" alt=\"Mimikatz-GoldenTicket-DomainFieldUpdate-20160105-02\" width=\"393\" height=\"492\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I have updated the appropriate references:<\/p>\n<ul>\n<li><a href=\"https:\/\/adsecurity.org\/?p=1515#DetectingForgedKerberosTickets\">Detecting Forged Kerberos Tickets<\/a><\/li>\n<li><a href=\"https:\/\/adsecurity.org\/?page_id=1821\">Mimikatz Unofficial Guide and Command Reference<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In late 2014, I discovered that the domain field in many events in the Windows security event log are not properly populated when forged Kerberos tickets are used. The key indicator is that the domain field is blank or contains the FQDN instead of the short (netbios) name and depending on the tool used to &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/adsecurity.org\/?p=2495\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":2486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[565,11],"tags":[20,113,86,790,481,480,482,479,303,791,207,304],"class_list":["post-2495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-activedirectorysecurity","category-microsoft-security","tag-activedirectory","tag-activedirectorysecurity","tag-adsecurity","tag-detectforgedkerberoticket","tag-detectgoldenticket","tag-detectingforgedkerberosticket","tag-detectsilverticket","tag-forgedkerberosticket","tag-goldenticket","tag-kerberosgolden","tag-mimikatz","tag-silverticket","item-wrap"],"_links":{"self":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/2495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2495"}],"version-history":[{"count":9,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/2495\/revisions"}],"predecessor-version":[{"id":3845,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/2495\/revisions\/3845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/media\/2486"}],"wp:attachment":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}