1 00:00:02,160 --> 00:00:10,140 Good afternoon, DEF CON. All right, so my name's Kerry. I was a software developer for 18 years 2 00:00:10,140 --> 00:00:17,800 within the DRM and security solution space. And around four years ago, actually, to this week, I 3 00:00:17,800 --> 00:00:25,960 joined the InfoSec game and joined Pentest Partners to get involved in all the cool stuff that we all 4 00:00:25,960 --> 00:00:31,320 do. So I've been dedicated to red teaming and offensive security tooling for the last two years 5 00:00:31,320 --> 00:00:37,740 and an author of several tools that I've released to the community, including Boffnet, Sweet Potato 6 00:00:37,740 --> 00:00:44,920 and SharpBlock. I more recently become a member of the Rubius maintainer team. So what we're going 7 00:00:44,920 --> 00:00:51,100 to cover on this talk today, so I'm going to give a very quick introduction to Kerberos. I'm going 8 00:00:51,100 --> 00:00:55,180 to go into some Active Directory specifics on authentication and authorization. 9 00:00:56,220 --> 00:01:02,620 I'm going to quickly cover some of spoofing attacks from previous vulnerabilities, namely the 10 00:01:02,620 --> 00:01:09,320 Sam the Admin group of CVEs. And then I'll cover the premise of this talk, which is a new spoofing 11 00:01:09,320 --> 00:01:16,560 vector. So a quick introduction then to some changes that have been made to Rubius to exploit, 12 00:01:16,720 --> 00:01:23,800 I should say, on a new set of enumeration tools for this spoofing vector. 13 00:01:27,240 --> 00:01:35,820 And then finally, what can be done to sort of mitigate this new vector. So what is Kerberos? So it's an 14 00:01:35,820 --> 00:01:41,920 authentication protocol used by Windows and Unix Linux based operating systems. The machines are joined 15 00:01:41,920 --> 00:01:48,580 to a common realm to facilitate mutual authentication of principals in the realm. So a principal being a 16 00:01:48,580 --> 00:01:55,180 sort of user or a computer that was within that realm. And they're identified by both a name and a principal type. 17 00:01:55,960 --> 00:02:03,000 Now Kerberos doesn't actually deal with authorization. It only deals with authentication. So the authorization is 18 00:02:03,000 --> 00:02:10,740 left to the implementer of that periodic Kerberos stack. And Windows and Unix and Linux hosts can be joined to 19 00:02:10,740 --> 00:02:18,320 the same realm. So what does a principal name look like? So it's made of the typical name string so, that 20 00:02:18,320 --> 00:02:24,360 would be the SAM account name, so John.doe or it could be a use principal name which is typically in the form of 21 00:02:24,360 --> 00:02:24,940 email address. 22 00:02:25,960 --> 00:02:29,080 even an LDAP distinguished name is a valid principal name. 23 00:02:29,380 --> 00:02:31,560 And of course, the service principal names 24 00:02:31,560 --> 00:02:34,620 for computer accounts or service account. 25 00:02:35,570 --> 00:02:37,140 And there's also the name type. 26 00:02:37,400 --> 00:02:43,040 This name type is a hint to the Kerberos authentication 27 00:02:43,710 --> 00:02:47,120 scheme so that the KDC has an idea 28 00:02:47,120 --> 00:02:48,780 of what sort of name principal it is. 29 00:02:49,260 --> 00:02:51,280 And as you can see from the table below at the bottom, 30 00:02:51,340 --> 00:02:53,580 there's a number of different principal types there. 31 00:02:53,580 --> 00:02:57,980 But the most common for users is the NT principal type. 32 00:03:01,200 --> 00:03:03,240 So Active Directory actually uses 33 00:03:03,240 --> 00:03:05,580 a fairly complex search algorithm 34 00:03:05,580 --> 00:03:08,080 for when you're authenticating with the principal. 35 00:03:09,380 --> 00:03:13,060 It uses multiple attributes within LDAP 36 00:03:13,060 --> 00:03:15,140 to actually find the user that you're looking at. 37 00:03:15,700 --> 00:03:18,740 And then as far as authorization decisions are made, 38 00:03:18,800 --> 00:03:20,820 it's always made from what's called 39 00:03:20,820 --> 00:03:22,260 the privileged attribute certificate 40 00:03:22,260 --> 00:03:23,560 that's embedded in the user. 41 00:03:23,560 --> 00:03:25,760 And that's inside the Kerberos ticket, 42 00:03:26,880 --> 00:03:28,900 collectively known as the PAC, I guess. 43 00:03:30,320 --> 00:03:32,320 Principal name collisions can occur, 44 00:03:32,520 --> 00:03:34,720 and this has led to previous vulnerabilities 45 00:03:34,720 --> 00:03:37,900 and privilege escalations in the past. 46 00:03:40,060 --> 00:03:44,660 So I've tried to sort of simplify Active Directory's method 47 00:03:45,020 --> 00:03:46,860 of searching for a principal. 48 00:03:47,680 --> 00:03:51,140 So the default, when you actually log into a Windows machine, 49 00:03:51,240 --> 00:03:53,320 it uses the name type of NT principal. 50 00:03:53,360 --> 00:03:53,540 It uses the name type of NT principal, 51 00:03:53,540 --> 00:03:56,740 And let's say for this example, we've got a username of John Doe. 52 00:03:58,180 --> 00:04:02,280 Now, by default, it will go to the right-hand side of that search. 53 00:04:02,520 --> 00:04:08,380 So because we're using the NT principle, Active Directory will actually search the SAM account name field first. 54 00:04:09,140 --> 00:04:15,300 And then if a user is not found, it will then actually append a dollar to the end of the name, 55 00:04:15,420 --> 00:04:19,440 just in case that you're actually authenticating with a computer account, 56 00:04:19,600 --> 00:04:23,020 because computer accounts generally have a dollar at the end of their name. 57 00:04:23,860 --> 00:04:26,680 And then finally, if it still hasn't been able to find a user, 58 00:04:26,900 --> 00:04:31,560 it will switch to the left-hand side of that flowchart, 59 00:04:31,720 --> 00:04:34,600 where it will search the user principle name field instead. 60 00:04:35,080 --> 00:04:40,220 And then if there's no username found at that stage, you get a user not found error. 61 00:04:40,540 --> 00:04:44,260 And of course, any time in between those stages, if a user is found, 62 00:04:44,540 --> 00:04:47,820 it then will try and authenticate the password. 63 00:04:49,960 --> 00:04:53,440 So the actual ticket makeup within an Active Directory, 64 00:04:53,540 --> 00:04:57,900 so the green area is what you'd say is part of the actual Kerberos RFC. 65 00:04:58,480 --> 00:05:01,640 That contains sort of the client name or the CNAME, 66 00:05:02,220 --> 00:05:07,200 and the service that the ticket is destined for on a start and end date. 67 00:05:07,480 --> 00:05:10,220 And then the Microsoft-specific sort of come into play, 68 00:05:10,360 --> 00:05:12,880 which is the red area of the ticket. 69 00:05:15,080 --> 00:05:18,700 Now, you can actually have a ticket with the pack missing altogether. 70 00:05:19,040 --> 00:05:22,420 And now when it comes to Windows-based authorization, 71 00:05:23,540 --> 00:05:26,900 even though the out-to-green ticket is actually valid, 72 00:05:27,120 --> 00:05:30,200 and it has a client name that's within Active Directory, 73 00:05:30,520 --> 00:05:33,800 you'll actually log on as an anonymous logon if the pack is missing. 74 00:05:34,260 --> 00:05:37,900 So as far as Windows is concerned, you always need the pack really to validate 75 00:05:38,850 --> 00:05:41,160 the user within Active Directory. 76 00:05:42,220 --> 00:05:47,760 So with that in mind, so what actually happened with the SAMLyAdmin group of CVEs? 77 00:05:49,020 --> 00:05:53,500 So back before the patch for the SAMLyAdmin CVEs, 78 00:05:53,540 --> 00:05:56,520 you could actually request the TGT without the pack present. 79 00:05:57,240 --> 00:06:00,660 So what the actual vulnerability was, you would do that. 80 00:06:00,760 --> 00:06:04,460 You'd actually request the TGT without the pack being embedded inside it. 81 00:06:04,720 --> 00:06:06,620 Now, the ticket is valid for eight hours. 82 00:06:06,840 --> 00:06:09,900 So in between that TGT that you've requested, 83 00:06:10,720 --> 00:06:12,500 so let me rewind a little. 84 00:06:12,680 --> 00:06:18,280 So first, you actually create a machine account using the Mac. 85 00:06:19,780 --> 00:06:23,420 Now, that machine account would be named similar to, let's say, 86 00:06:23,540 --> 00:06:24,000 Domain Controller. 87 00:06:24,760 --> 00:06:28,720 The only difference is the SAM account name field won't have the dollar at the end. 88 00:06:28,780 --> 00:06:32,320 So it's exactly the same name, but it doesn't contain the dollar at the end. 89 00:06:32,560 --> 00:06:35,000 And then you request your packless TGT, 90 00:06:35,160 --> 00:06:38,660 which means that the only thing in the ticket is the CNAME itself. 91 00:06:38,900 --> 00:06:40,740 So there's no pack in there at all. 92 00:06:41,060 --> 00:06:44,760 Then you rename the account to something else. 93 00:06:45,420 --> 00:06:49,780 Nothing that exists within AD, but you do have at least a Kerberos ticket 94 00:06:49,780 --> 00:06:53,360 now that looks like the Domain Controller ticket. 95 00:06:54,360 --> 00:06:58,940 Now, because you've renamed the account, you then request a service ticket from the KDC. 96 00:06:59,460 --> 00:07:04,000 And the KDC will realize that there's no pack embedded inside that ticket. 97 00:07:04,220 --> 00:07:08,660 So it will use the same search criteria as I just covered on some of the previous slides, 98 00:07:08,840 --> 00:07:14,440 but it'll use the the official Kerberos CNAME that's embedded in the green part of that ticket. 99 00:07:14,640 --> 00:07:18,860 And because you've renamed the account in between the point where you've got the TGT, 100 00:07:19,080 --> 00:07:23,340 it would it would have then actually found the real Domain Controller account and embed 101 00:07:23,540 --> 00:07:25,440 the pack for the real Domain Controller. 102 00:07:25,780 --> 00:07:28,840 And that resulted in a privilege escalation. 103 00:07:32,360 --> 00:07:35,300 So this is going back to the search algorithm again. 104 00:07:35,400 --> 00:07:36,900 This is the area within 105 00:07:38,100 --> 00:07:40,800 the SAM, the admin group of CVEs that were affected. 106 00:07:41,080 --> 00:07:44,880 So this is the right hand side there where the SAM account name is searched 107 00:07:44,880 --> 00:07:47,160 and then it would depend the dollar and so on and so forth. 108 00:07:48,960 --> 00:07:50,960 So what did they do to fix the SAM, the admin? 109 00:07:51,900 --> 00:07:53,520 Basically, you can't request the packless TGT. 110 00:07:53,540 --> 00:08:01,500 Microsoft deemed it that it wasn't a reliable way to identify users within AD 111 00:08:01,500 --> 00:08:04,480 unless you had a pack embedded within it. 112 00:08:05,400 --> 00:08:09,020 There were some other hardening attempts, so the SAM account name fields 113 00:08:09,020 --> 00:08:13,060 also now must end with a dollar whenever an unprivileged user creates it. 114 00:08:13,440 --> 00:08:19,940 And a few other hardening artifacts were made to the user account control settings. 115 00:08:20,340 --> 00:08:23,460 But you can actually still request the packless service ticket. 116 00:08:25,080 --> 00:08:26,880 So what's the new spoofing vector? 117 00:08:27,100 --> 00:08:31,680 So obviously, SAM account name had been looked at previously, 118 00:08:31,880 --> 00:08:35,620 and it has been hardened quite considerably since that group of CVEs. 119 00:08:35,800 --> 00:08:39,140 So I decided to have a look at the user principal name attribute 120 00:08:39,140 --> 00:08:40,520 and see what we could do with that. 121 00:08:41,100 --> 00:08:45,760 So the user principal name or the UPN is made up of the username element, 122 00:08:46,060 --> 00:08:51,120 the at and a domain suffix that basically looks like an email address. 123 00:08:51,840 --> 00:08:53,340 Now, to modify that, 124 00:08:53,540 --> 00:08:55,120 if you have a particular attribute within Active Directory, 125 00:08:55,440 --> 00:09:00,340 you're looking to have write permission on the public information attribute set 126 00:09:00,340 --> 00:09:05,080 or generic write over a computer or user account within Active Directory. 127 00:09:05,320 --> 00:09:09,520 So these are the sort of the prerequisites needed to to abuse it. 128 00:09:10,660 --> 00:09:14,220 But duplicated UPNs are not allowed in the same way 129 00:09:14,220 --> 00:09:16,180 the duplicate SAM account names are not allowed. 130 00:09:16,360 --> 00:09:20,060 So how exactly can we can we spoof if no duplicates are allowed? 131 00:09:21,140 --> 00:09:22,400 Well, as it turns out, 132 00:09:22,400 --> 00:09:26,480 you can actually set an invalid user principal name within Active Directory. 133 00:09:26,760 --> 00:09:29,900 It doesn't actually have to have the domain suffix. 134 00:09:30,120 --> 00:09:32,260 So for you can see from the screenshot there, 135 00:09:32,440 --> 00:09:35,880 we've got the John Doe account where the SAM account name is set to John Doe. 136 00:09:35,940 --> 00:09:41,940 But you can actually still update the user principal name to mimic that of another account. 137 00:09:42,100 --> 00:09:44,240 So let's say the domain administrator in this case. 138 00:09:47,740 --> 00:09:52,380 But there's another another difference to the search algorithm then is going back to the 139 00:09:52,400 --> 00:09:54,980 the name type hint that I talked about earlier. 140 00:09:55,660 --> 00:10:00,400 If you specify the name type as NT enterprise as opposed to principal, 141 00:10:00,600 --> 00:10:03,060 which is the typically the default one used within Windows, 142 00:10:03,300 --> 00:10:09,580 the search algorithm changes and it actually searches the user principal name first before SAM account name. 143 00:10:09,940 --> 00:10:13,200 So as I'm sure you can you can gleaned on that. 144 00:10:14,180 --> 00:10:21,700 Basically, you can get your spoofed account name to be found first prior to the real the real account to sit in within Active Directory. 145 00:10:24,020 --> 00:10:30,040 So as part of this, I made some updates to Rubius and they should be live on the current master branch on GitHub. 146 00:10:30,880 --> 00:10:35,620 And basically a new argument has been added to specify the principal type. 147 00:10:35,840 --> 00:10:39,240 So you can spell from the group that we've seen at the start of the slides. 148 00:10:39,280 --> 00:10:42,660 You can actually now specify the principal type that you're using. 149 00:10:43,040 --> 00:10:48,480 So as an example there on the left, that's how you would typically authenticate using Rubius at the moment. 150 00:10:48,580 --> 00:10:52,220 And by default, that would use the NT principal. 151 00:10:52,400 --> 00:10:54,140 Type as opposed to the enterprise type. 152 00:10:55,400 --> 00:11:01,920 So in a typical Active Directory network, the screen on the left there would actually you'd be tempted to log on as the domain admin. 153 00:11:02,180 --> 00:11:08,580 And since the domain admin password is not super secret, you get a pre authentication failure because the password is wrong. 154 00:11:09,260 --> 00:11:12,880 But going back to the modified John Doe account that I just showed you earlier, 155 00:11:13,060 --> 00:11:21,140 once you add the principal type of enterprise, the search algorithm changes and then it actually ends up for finding your John Doe account. 156 00:11:21,560 --> 00:11:22,040 But. 157 00:11:22,400 --> 00:11:26,360 The ticket that you actually get back contains administrator as the username. 158 00:11:27,460 --> 00:11:36,560 So from the outset, the ticket actually does look like a domain admin, but it's not the the pack inside that ticket still identifies John Doe. 159 00:11:36,680 --> 00:11:42,480 It's only the outer green part of the tickets that I showed you earlier that make it look like it's a domain admin. 160 00:11:43,760 --> 00:11:45,840 So what abuse factors do we have for this? 161 00:11:45,980 --> 00:11:48,580 So like I said, Windows is completely out. 162 00:11:48,640 --> 00:11:51,420 It purely relies on the pack for authorization. 163 00:11:52,460 --> 00:12:02,540 But when it comes to Kerberos authentication on your Linux and Unix machines, which leverages the GSS API, they tend to do things differently. 164 00:12:03,020 --> 00:12:07,760 Like I said, the pack is very specific to sort of Windows based environments. 165 00:12:09,180 --> 00:12:16,900 So what tends to happen is GSS API stack will actually rely on the green parts of the ticket for validating the username. 166 00:12:17,140 --> 00:12:20,960 And then the permissions for the user is done as a second stage. 167 00:12:21,040 --> 00:12:21,360 So. 168 00:12:21,360 --> 00:12:31,880 It may do an LDAP search on that name that is extracted from the ticket, and more often than not, that ends up being the same account name that is searching on. 169 00:12:32,140 --> 00:12:41,360 But of course, we've we've authenticated using the user principal name, but other solutions also include mapping Kerberos principal names to local account names. 170 00:12:41,820 --> 00:12:48,820 So, for example, you can create a machine using root dollar and that will actually log you in as root on Linux. 171 00:12:51,360 --> 00:12:57,980 Andrew Bartlett actually discovered that, who was the person that discovered the original SAM, the admin group of CVs. 172 00:12:58,180 --> 00:13:13,720 And he basically realized that using the Mac permissions and having the ability to create a machine with a low privilege user, you could call the machine root dollar, pass that ticket to SSH, and then you'd be logged in as root. 173 00:13:13,880 --> 00:13:17,340 And that issue actually still exists today and it's a no fix. 174 00:13:17,660 --> 00:13:18,860 So, I think that's a good point. 175 00:13:18,860 --> 00:13:19,880 Now, the issue with that, though. 176 00:13:19,940 --> 00:13:21,280 You can't actually in person. 177 00:13:21,360 --> 00:13:31,300 It existing 80 users because you wouldn't be able to create the machine in the first place because you'd get a collision with the SAM account name if you were trying to impersonate another user. 178 00:13:31,540 --> 00:13:38,880 So that's where this new technique comes into play, where you can now actually impersonate valid Active Directory users. 179 00:13:40,880 --> 00:13:49,420 So these are the services that I've seen so far that implement GL Kerberos authentication via GSS API. 180 00:13:50,080 --> 00:13:51,060 So SSH. 181 00:13:51,060 --> 00:13:54,620 I've confirmed is vulnerable to this, as well as Postgres database. 182 00:13:55,620 --> 00:13:58,480 I just haven't had the time to check all the others yet. 183 00:13:58,780 --> 00:14:10,760 But essentially, if any of these are claiming Kerberos authentication and GSS API support and they don't look at the Windows pack, they're all going to be vulnerable to this sort of attack, would be my guess. 184 00:14:12,940 --> 00:14:14,780 OK, so on to the demo. 185 00:14:15,360 --> 00:14:18,940 So both of these are live already. 186 00:14:19,140 --> 00:14:20,940 So I made them live just before the talk. 187 00:14:21,060 --> 00:14:26,840 So Rubius has the new argument so that you can specify the principal type. 188 00:14:27,020 --> 00:14:37,000 And I've also created a new set of Python tools to allow you to enumerate potential vulnerable Linux or Unix hosts within an Active Directory network. 189 00:14:39,340 --> 00:14:42,080 So it's a little bit small, but we'll work through it. 190 00:14:43,240 --> 00:14:50,760 So what I've set up here is, again, we're going back to the John Doe account and to be able to all the prerequisites to be able to actually 191 00:14:51,440 --> 00:14:55,460 abuse this issue is having generic writeover in account. 192 00:14:55,880 --> 00:14:58,860 Now, you'd need to authenticate as the user. 193 00:14:59,140 --> 00:15:01,620 So shadow credentials has worked, for example. 194 00:15:01,800 --> 00:15:06,060 So you don't necessarily need to do anything in your prevail. 195 00:15:06,120 --> 00:15:07,420 I've changed in the users' password. 196 00:15:07,640 --> 00:15:10,760 You can still use shadow credentials with this sort of technique. 197 00:15:13,560 --> 00:15:18,220 So are we're gonna do now is just change the properties of the user principal name 198 00:15:18,220 --> 00:15:20,960 from where it was to administrative. 199 00:15:21,060 --> 00:15:31,320 administrator. Okay. And you'll see, obviously, an active 200 00:15:31,320 --> 00:15:34,080 directory that the user principal name is now set and 201 00:15:34,080 --> 00:15:37,820 ready to spoof, but the SAM account name is left as it is, 202 00:15:37,880 --> 00:15:41,800 so we're using John Doe. So I'm just going to show that, 203 00:15:41,900 --> 00:15:45,060 without specifying the principal type, you'd essentially be 204 00:15:45,060 --> 00:15:47,680 trying to log on to the domain admin, which is incorrect in 205 00:15:47,680 --> 00:15:50,860 this case. So when that authenticates, you get a 206 00:15:50,860 --> 00:15:54,480 pre-authentication failure. But then if we use the new 207 00:15:54,480 --> 00:15:58,020 principal type argument and specify enterprise, the search 208 00:15:58,020 --> 00:16:01,800 algorithm changes, and now we're authenticated as John Doe, but 209 00:16:01,800 --> 00:16:04,880 with the username of administrator. And if you look 210 00:16:04,880 --> 00:16:08,960 at K-List, you'll see that that has been imported, and from 211 00:16:08,960 --> 00:16:11,680 the, you know, just looking at it, it does look like an 212 00:16:11,680 --> 00:16:14,720 administrator or domain admin, but the pack actually says 213 00:16:14,720 --> 00:16:15,100 differently. 214 00:16:16,520 --> 00:16:17,400 Now, the 215 00:16:17,400 --> 00:16:17,660 geolocation 216 00:16:17,680 --> 00:16:21,780 API tool, what the way that works is, it does a search 217 00:16:21,780 --> 00:16:25,400 with inside active directory for looking at the operating system 218 00:16:25,400 --> 00:16:29,760 field of every computer object, and any that don't have the 219 00:16:29,760 --> 00:16:33,900 word Windows in there, it assumes it to be a Linux or 220 00:16:34,500 --> 00:16:38,840 basically non-Windows-based host. And then once it compiles 221 00:16:38,840 --> 00:16:41,940 that list of machines, it will then try and connect to each one 222 00:16:41,940 --> 00:16:45,860 of them over SSH to determine what authentication schemes it 223 00:16:45,860 --> 00:16:47,580 supports, and then if it 224 00:16:47,680 --> 00:16:52,700 does realize that particular host supports a GSS API, it flags 225 00:16:52,700 --> 00:16:58,640 that host as potentially vulnerable. So, you can see in 226 00:16:58,640 --> 00:17:02,020 the output here, there are two machines found. One is Ubuntu, 227 00:17:02,180 --> 00:17:07,360 and one is CentOS. Now, Ubuntu, and I believe all other Debian 228 00:17:07,360 --> 00:17:13,180 based Linux operating systems don't have GSS API enabled by 229 00:17:13,180 --> 00:17:17,660 default, but CentOS, Red Hat Enterprise Server, they do. So, 230 00:17:17,680 --> 00:17:22,640 the minute you join a CentOS or Red Hat based Linux server to an 231 00:17:22,640 --> 00:17:25,560 active directory network, you're going to be sort of vulnerable 232 00:17:25,560 --> 00:17:29,800 to this sort of attack. And then the final stage is now that we've 233 00:17:29,800 --> 00:17:33,700 got our ticket imported and ready to use, we can use SSH 234 00:17:33,700 --> 00:17:37,160 with the minus K argument to indicate that we want to use 235 00:17:37,160 --> 00:17:40,540 Kerberos authentication. You have to fully qualify the 236 00:17:40,540 --> 00:17:43,740 username, so you'll see administrator at adging.com, and 237 00:17:43,740 --> 00:17:46,720 here we connect it. But the big question is, of course, what 238 00:17:46,720 --> 00:17:47,340 groups are we 239 00:17:47,340 --> 00:17:51,300 a member of? So, by doing a quick ID, we can actually see 240 00:17:51,300 --> 00:17:55,180 whether we are logged into the Ubuntu or at the CentOS host as 241 00:17:55,180 --> 00:18:09,260 the domain admin. So, I did contact MSRC about this, and 242 00:18:09,260 --> 00:18:14,700 they basically said the issue I reported is as designed. I was 243 00:18:14,700 --> 00:18:16,820 sort of questioning whose design they were talking about. 244 00:18:18,740 --> 00:18:22,960 So, I had a quick look at what the RFC says, and the RFC says it 245 00:18:22,960 --> 00:18:26,280 quite clear, as far as I'm concerned, principle names that 246 00:18:26,280 --> 00:18:29,280 differ only in the name type should identify the same 247 00:18:29,280 --> 00:18:33,140 principle. So, they are not listening as far as I can see 248 00:18:33,140 --> 00:18:37,800 to what the Kerberos RFC spec says. So, what sort of 249 00:18:37,800 --> 00:18:41,420 mitigation? Well, Microsoft themselves could hardly use a 250 00:18:41,420 --> 00:18:45,620 principle name by ensuring they all have a domain suffix. Or, 251 00:18:45,700 --> 00:18:47,320 additionally, they could cross the domain, which would be a very 252 00:18:47,320 --> 00:18:51,360 check the user principal name against the SAM account name to make sure that there are no 253 00:18:51,360 --> 00:18:58,600 collisions there but in the meantime defenders out there what so what kind of approaches can you take 254 00:18:58,600 --> 00:19:05,780 i guess disable anything that's gss api based authentication that's joined to an active 255 00:19:05,780 --> 00:19:10,920 directory realm or the less drastic approach may be monitoring for sort of user principal 256 00:19:10,920 --> 00:19:17,200 name updates that don't conform to a valid upn and then obviously investigate those sort of 257 00:19:18,340 --> 00:19:25,820 anomalies so i think i'm running out of time for actual questions so what i will do if anybody does 258 00:19:25,820 --> 00:19:32,400 want to ask a question we'll certainly i'll certainly hang around outside if needed i want 259 00:19:32,400 --> 00:19:40,160 to give a big shout out actually to charlie clark aka exploit ph he's been a sort of a great sounding 260 00:19:40,160 --> 00:19:46,640 board for some of these Kerberos shenanigans i'll say that we've we've discussed on this talk 261 00:19:47,320 --> 00:19:48,100 thanks for listening