1 00:00:00,000 --> 00:00:21,400 All right. I think it's about 4 o'clock or so. So I'm going to start talking. This is identity management. If this is not what you were expecting, yeah, I'm not sure why all of you are here, but why not? So I'm going to be talking a little bit about identity management. Yeah, this should be fun. 2 00:00:22,620 --> 00:00:50,640 I was going to do like the whole Johnny Long intro, but I'm not as cool as he is, so who I am is not really relevant. Yeah. You guys. So we're talking about identity management. Hopefully a few of you guys know what identity management is. Let's go for a raise of hands. Identity management. Sweet. How many of you guys actually use some sort of identity management in your organization? Sweet. 3 00:00:51,400 --> 00:01:13,860 And how many of you guys use Novell Identity Manager? Wow. All right. So this is going to be pretty centric around Novell Identity Manager, because that is what I used to do a lot of consulting on. And I know it pretty well. Knew some of the ins and outs of it. And found some ugly things while I was using it. And I'm going to talk about those. 4 00:01:15,120 --> 00:01:20,820 So what this talk is not, if there is, is there anyone from Novell here? 5 00:01:21,960 --> 00:01:51,380 Sweet. Sweet. If Novell happens to be downloading this talk later. What's that? Is there any press here? Is that what you mean? I'm sure there's press here. And so I'm, oh, well. So if Novell happens to take a look at this talk any time in the future, this is not a fix-it list. Like, I'm going to talk about some specific things that are, I see these things as, you know, 6 00:01:51,400 --> 00:01:54,240 issues, you guys can decide, maybe there are issues, maybe 7 00:01:54,240 --> 00:01:58,200 there are not. But this is not like a fix it list for Novell. 8 00:01:58,380 --> 00:02:01,220 I'm sure there are other things that I have not found that 9 00:02:01,220 --> 00:02:07,660 Novell should address. And so, you know, I really hope that 10 00:02:07,660 --> 00:02:10,000 Novell takes just a serious look at their identity management 11 00:02:10,440 --> 00:02:13,020 scheme, their architecture, kind of what they're doing in that 12 00:02:13,020 --> 00:02:17,140 space. Since it is billed as a security tool very often, I 13 00:02:17,140 --> 00:02:20,380 just, I would prefer that they go and look at it as a security 14 00:02:20,380 --> 00:02:23,160 tool and kind of look at some of the security implications of 15 00:02:23,160 --> 00:02:25,960 that, do some documentation around how to not set it up 16 00:02:25,960 --> 00:02:33,600 insecurely. I just got my picture taken, so they now know 17 00:02:33,600 --> 00:02:38,680 where to find me. I do have very high respect for the people at 18 00:02:38,680 --> 00:02:42,180 Novell. Crispin, go to his talk tomorrow night. He's very smart. 19 00:02:42,320 --> 00:02:46,640 He's a great guy. And Ed Reed, who was formerly there, great 20 00:02:46,640 --> 00:02:50,360 guy. So Novell has some great security people. I just want to 21 00:02:50,380 --> 00:02:52,800 just think that they have pushed out some of the identity 22 00:02:52,800 --> 00:02:55,660 management pieces a little bit faster than their security could 23 00:02:55,660 --> 00:03:00,220 keep up. So what is this talk? Basically an attempt to convince 24 00:03:00,220 --> 00:03:03,640 you that identity management is basically just another asset on 25 00:03:03,640 --> 00:03:05,980 your network. It needs to be protected just like any other 26 00:03:05,980 --> 00:03:10,600 asset. Most of you should be, you know, aware of that. For the 27 00:03:11,260 --> 00:03:15,680 not quite white hat side of the crowd, you know, hopefully you'll 28 00:03:16,340 --> 00:03:18,460 see some things here to take an interest in. 29 00:03:21,220 --> 00:03:24,580 And yeah, I'd like for people to go out and start doing research in 30 00:03:25,220 --> 00:03:28,860 how to evaluate the security of identity management systems as they 31 00:03:28,860 --> 00:03:32,440 are becoming a lot more prevalent in corporate environments, as we 32 00:03:32,440 --> 00:03:36,020 saw by the show of hands. All this information is pulled directly 33 00:03:36,020 --> 00:03:41,700 from public resources, straight from websites. So, you know, nothing 34 00:03:41,700 --> 00:03:47,980 I'm saying here is acquired in any way that's, you know, not public. 35 00:03:48,080 --> 00:03:49,900 So this is all public knowledge. 36 00:03:51,360 --> 00:03:54,720 Okay. So identity management. Most of you seemed like you knew 37 00:03:54,720 --> 00:04:01,480 what it was. So, you know, basically what is it? Actually, 38 00:04:01,760 --> 00:04:04,480 let's start with what's being said about it. This came out, I 39 00:04:04,480 --> 00:04:07,480 think, yesterday or the day before. ISC sent this little 40 00:04:07,480 --> 00:04:11,940 quote around. It's a front burner issue for lots of 41 00:04:11,940 --> 00:04:16,060 organizations. Basically it's becoming a big security issue. 42 00:04:16,560 --> 00:04:18,460 People in the security space are starting to look at identity 43 00:04:18,460 --> 00:04:19,720 management as a security tool. 44 00:04:20,380 --> 00:04:25,060 Which is great. It's very useful as a tool. But like any tool on your 45 00:04:25,060 --> 00:04:29,160 network, it has some liabilities. And so that's basically what I'm 46 00:04:29,160 --> 00:04:33,780 trying to raise awareness about. Theory of IDM, basically you have two 47 00:04:33,780 --> 00:04:39,100 systems, generic systems, basically, that hold user identities. And 48 00:04:39,100 --> 00:04:42,200 they're connected in some way by some meta system. And that's your 49 00:04:42,200 --> 00:04:45,620 identity management system. The identity management system 50 00:04:45,620 --> 00:04:50,360 continuously manages your identity throughout the whole life cycle of a 51 00:04:50,380 --> 00:04:53,720 person's identity. Provisioning, updating your 52 00:04:53,720 --> 00:04:57,400 authentication tokens, granting you authorization within those 53 00:04:57,400 --> 00:05:01,460 applications or systems. And it should all be done with the 54 00:05:01,460 --> 00:05:05,560 audit and prove repeatable. That's basically what IDM is. 55 00:05:07,420 --> 00:05:12,060 Specific products, should all be familiar with them. Who's running 56 00:05:12,060 --> 00:05:16,660 identity management? This is just Novell's customer list off 57 00:05:16,660 --> 00:05:20,360 of their publicly facing website. So there's a lot of 58 00:05:20,380 --> 00:05:25,840 developers, you know, a few of them. Universities, banks, hospitals. 59 00:05:26,380 --> 00:05:30,200 Lots of people are using it. Yeah, just do a search on identity 60 00:05:30,200 --> 00:05:35,120 management on the RFPs. Lots of government entities are using it. 61 00:05:38,120 --> 00:05:42,160 So worst common configurations, you know, typically when you think of 62 00:05:42,160 --> 00:05:45,080 identity management, you think of, or a lot of times people will think 63 00:05:45,080 --> 00:05:48,660 of an HR system connected to some sort of enterprise directory, which 64 00:05:48,660 --> 00:05:50,220 is then connected to other systems. 65 00:05:50,380 --> 00:05:52,600 And it's all automatically provisioning identities, 66 00:05:53,560 --> 00:05:58,720 controlling where there are. So, you know, HR database going 67 00:05:58,720 --> 00:06:04,740 into your directory. These are kind of some of the common ones 68 00:06:04,740 --> 00:06:07,540 that Novell pushes. And they are kind of important, as we'll see 69 00:06:07,540 --> 00:06:10,680 later. Because it really does depend on how you set up these 70 00:06:10,680 --> 00:06:16,780 things as to how they, how secure they are. So, what are the 71 00:06:16,780 --> 00:06:20,260 issues? When we look at identity management system, kind of what 72 00:06:20,380 --> 00:06:23,800 are the issues that come up with regard to security? 73 00:06:25,320 --> 00:06:29,020 Complexity. Bruce Schneier said yesterday, you know, hey, 74 00:06:29,520 --> 00:06:32,520 complexity is the enemy of security or something like that. 75 00:06:32,720 --> 00:06:36,280 Don't quote me directly, but I think that's what he said. But 76 00:06:36,280 --> 00:06:39,880 basically, you know, if you have any big complex system, it's going 77 00:06:39,880 --> 00:06:44,460 to be pretty difficult to secure it. And identity management 78 00:06:44,460 --> 00:06:49,080 systems are usually very complex. You look at Novell's identity 79 00:06:49,080 --> 00:06:49,940 manager, for instance. 80 00:06:51,760 --> 00:06:55,980 You've got, you know, lots of pieces within the system itself. 81 00:06:57,800 --> 00:06:59,760 The systems, you know, by definition, you're talking about 82 00:06:59,760 --> 00:07:02,360 at least two systems. And, you know, these could be entire, 83 00:07:02,600 --> 00:07:06,380 you know, server stacks. It might be a Windows stack and a 84 00:07:06,380 --> 00:07:09,320 Linux stack. It might be, you know, on the same server, but, 85 00:07:09,340 --> 00:07:13,240 you know, a database system and an operating system. Or, you 86 00:07:13,240 --> 00:07:16,380 know, a database server and a directory. But basically, you 87 00:07:16,380 --> 00:07:18,660 have at least two systems. Because obviously, you wouldn't 88 00:07:18,660 --> 00:07:20,360 be using identity manager if you're not trying to secure a 89 00:07:20,380 --> 00:07:21,860 system. You're trying to manage two systems. 90 00:07:23,320 --> 00:07:26,800 You also have management tools, because you probably want to 91 00:07:26,800 --> 00:07:30,260 manage the system somehow. So in the Novell space, that's, you 92 00:07:30,260 --> 00:07:35,760 know, designer, iManager, formerly console one. You have, 93 00:07:35,800 --> 00:07:38,620 you know, different ways of doing this. User-facing 94 00:07:38,620 --> 00:07:42,680 applications, very, very commonly, you see identity 95 00:07:42,680 --> 00:07:45,580 management being used to connect into some sort of user-facing 96 00:07:45,580 --> 00:07:50,300 application, some sort of portal, user self-service, you know, what 97 00:07:50,380 --> 00:07:55,500 have you. Very complex systems in and of themselves. And then, 98 00:07:55,560 --> 00:07:59,520 you know, you add on to this an identity management framework, and 99 00:07:59,520 --> 00:08:04,100 it becomes even more complex. And usually, you have systems in 100 00:08:04,100 --> 00:08:12,040 all this. We're dealing with identities. So naturally, they 101 00:08:12,040 --> 00:08:14,340 are going to be fairly high value, because this is, you 102 00:08:14,340 --> 00:08:18,580 know, usernames, passwords, or other authentication tokens. You 103 00:08:18,580 --> 00:08:20,360 know, if you're synchronizing certificates, you're going to be 104 00:08:20,380 --> 00:08:23,640 synchronized. This is where your authentication tokens reside. 105 00:08:24,000 --> 00:08:26,520 This is where they're being synchronized. So to break into 106 00:08:26,520 --> 00:08:29,540 the system, or any of these systems, is going to be a high 107 00:08:29,540 --> 00:08:37,320 value target. It also deals with authorization. So I want to make 108 00:08:37,320 --> 00:08:40,280 the distinction there. But, you know, these systems are 109 00:08:40,280 --> 00:08:43,660 automatically, based on business rules, determining what you as a 110 00:08:43,660 --> 00:08:47,300 user are authorized to do within a system. So, you know, if I can 111 00:08:47,880 --> 00:08:50,360 grant myself full access right now, I'm going to be able to do 112 00:08:50,380 --> 00:08:55,840 my rights, you know, then that's cool. I can break the system by 113 00:08:55,840 --> 00:08:59,940 doing that. And, of course, you're also very commonly dealing with 114 00:08:59,940 --> 00:09:03,360 HR systems, which contain things like social security numbers and, 115 00:09:03,400 --> 00:09:08,140 you know, other good things like that. So high value targets, very 116 00:09:08,140 --> 00:09:13,340 complex. And to be quite honest, a lot of administrators just kind of 117 00:09:13,340 --> 00:09:17,560 go, oh, it's Novell, it's secure. Oh, it's Novell security system. 118 00:09:17,760 --> 00:09:19,680 Therefore, it is in of itself secure. 119 00:09:20,380 --> 00:09:23,120 And they don't really take a step back and say, hey, how secure 120 00:09:23,120 --> 00:09:26,740 is it as an application, as a tool on our network? How secure 121 00:09:26,740 --> 00:09:35,460 is it? You know, best practices are out there for securing identity 122 00:09:35,460 --> 00:09:37,640 management. You can go download that off of Novell's website. 123 00:09:40,940 --> 00:09:43,820 Sometimes they conflict, and oftentimes they're very 124 00:09:43,820 --> 00:09:47,580 incomplete, I've noticed, as I've, you know, gone around 125 00:09:47,580 --> 00:09:50,260 set-up systems and as, you know, people have downloaded 126 00:09:50,380 --> 00:09:57,560 the best practices. So a lot of times people just, you know, don't 127 00:09:57,560 --> 00:10:03,000 really lock these down very well. So basically all I'm saying is it's 128 00:10:03,000 --> 00:10:07,460 a liability on your network, not a control. So let's look at the 129 00:10:07,460 --> 00:10:18,220 security of it. High target for attack. So, okay. So if we're 130 00:10:18,220 --> 00:10:20,360 actually going to exploit this, you know, we're going to have to 131 00:10:21,100 --> 00:10:22,800 deploy it. By the way, I should say I'm trying to get through, 132 00:10:22,860 --> 00:10:24,740 like, all the talking about things in about 20 minutes, and 133 00:10:24,740 --> 00:10:28,360 then we'll have about 30 minutes of some demos, and then we'll be 134 00:10:28,360 --> 00:10:32,480 done with it. So just some theory of exploiting it. 135 00:10:32,580 --> 00:10:36,300 Basically, how do you leverage complexity? Or, sorry. In a 136 00:10:36,300 --> 00:10:38,220 complex system, you want to leverage that to your advantage. 137 00:10:38,920 --> 00:10:41,940 You know, if you have lots of systems, these are usually in 138 00:10:41,940 --> 00:10:45,020 very large environments with very strict change control. So 139 00:10:45,660 --> 00:10:48,320 really the defender is at a disadvantage. The attacker is 140 00:10:48,320 --> 00:10:49,380 obviously at the advantage. 141 00:10:50,380 --> 00:10:57,020 Nothing new here. It was very much, or identity management very 142 00:10:57,020 --> 00:11:02,080 much is kind of a hot topic right now. I think the last couple of 143 00:11:02,080 --> 00:11:04,340 years has been, you know, kind of one of the emerging 144 00:11:04,340 --> 00:11:08,200 technologies. And therefore it's been rushed out by companies 145 00:11:08,200 --> 00:11:11,920 like Novell. And I'm picking on Novell, but honestly, go and look 146 00:11:11,920 --> 00:11:14,420 at any of the other ones. They're just as bad, if not worse. 147 00:11:15,160 --> 00:11:19,240 Actually, some of them are much worse. So, yes, I'm picking on 148 00:11:19,240 --> 00:11:20,360 Novell. And, yes, I'm picking on, you know, I'm picking on 149 00:11:20,380 --> 00:11:21,880 them because Novell rushed out their product a couple years 150 00:11:21,880 --> 00:11:25,940 ago. They've done a lot of fixes to it. But, you know, it's still, 151 00:11:26,360 --> 00:11:31,360 you can definitely tell the code quality is not there. Or at 152 00:11:31,360 --> 00:11:37,380 least it's not where it should be, in my opinion. When we look 153 00:11:37,380 --> 00:11:39,720 at an identity management system, we can attack it at a 154 00:11:39,720 --> 00:11:43,160 bunch of different layers, obviously. Most of the time, 155 00:11:43,180 --> 00:11:45,640 you're going to be having a network in between your systems. 156 00:11:46,620 --> 00:11:49,620 You know, sometimes you'll be doing all this on one box, but, 157 00:11:50,380 --> 00:11:52,820 you know, I'm not really sure why you would do that in too many 158 00:11:52,820 --> 00:11:55,160 cases. So most of the time you have a network layer. You can 159 00:11:55,160 --> 00:12:00,260 attack that. You have the connected systems. Basically, 160 00:12:00,520 --> 00:12:04,840 you know, you have a, you know, one of your systems might be a 161 00:12:04,840 --> 00:12:07,100 Windows system. So you have, you know, the entire Windows stack 162 00:12:07,100 --> 00:12:09,320 you can attack. It might be a Linux system. You have the 163 00:12:09,320 --> 00:12:13,240 entire Linux stack you can attack. Database directories, 164 00:12:13,280 --> 00:12:18,800 you know, what have you. At the application layer, so the actual 165 00:12:18,800 --> 00:12:20,360 identity management engine that's going to be running the 166 00:12:20,380 --> 00:12:23,780 whole thing. You know, the engines just code. It has 167 00:12:23,780 --> 00:12:27,320 vulnerabilities. It has bugs in it. So do all the agents that 168 00:12:27,320 --> 00:12:30,400 run all these connected systems. And the management tools 169 00:12:30,400 --> 00:12:34,100 themselves also have a lot of bugs. So you can attack a lot of 170 00:12:34,100 --> 00:12:37,880 places in the actual system itself. And then the next layer 171 00:12:37,880 --> 00:12:40,700 down, the rules themselves. So someone has come in and said, 172 00:12:40,780 --> 00:12:44,380 hey, here are the business rules for this organization. We need to 173 00:12:44,380 --> 00:12:50,280 codify them. You've then coded them into some sort of logic 174 00:12:50,380 --> 00:12:54,460 that the identity management system can understand. And often 175 00:12:54,460 --> 00:12:58,800 these can be exploited. And we'll show you some examples of that. 176 00:13:01,780 --> 00:13:06,120 So now I'm going to start picking on Novell because, you know, 177 00:13:06,120 --> 00:13:10,280 they're what I know. But again, I do want to be very clear. Novell 178 00:13:10,280 --> 00:13:14,200 is a great product. I do actually like a lot of their products. I'm 179 00:13:14,200 --> 00:13:18,880 running SUSE Linux right here. Microsoft's identity management is 180 00:13:19,860 --> 00:13:20,360 nightmare. It's a nightmare. It's a nightmare. It's a nightmare. It's a 181 00:13:20,380 --> 00:13:23,660 nightmare. Anyway, we won't even go there. So anyway, I pick it on 182 00:13:23,660 --> 00:13:26,760 them. But, you know, these are just some examples. And I really 183 00:13:26,760 --> 00:13:30,240 do want Novell especially to better their security. So that's 184 00:13:30,240 --> 00:13:35,060 why I'm picking on them. Why am I presenting this stuff? Basically, 185 00:13:35,140 --> 00:13:38,260 I think Novell has made a few poor decisions in their 186 00:13:38,260 --> 00:13:44,780 architecture. You know, whatever. They made some decisions that 187 00:13:44,780 --> 00:13:47,320 aren't really clearly documented. I find a lot of people, a lot of 188 00:13:47,320 --> 00:13:50,360 customers will go, they'll implement, you know, you know, 189 00:13:50,380 --> 00:13:54,560 the system as they think is best. And they don't really have any 190 00:13:54,560 --> 00:13:57,180 instructions on how to set up things securely. There's really few, 191 00:13:57,220 --> 00:14:00,620 very few best practices. And so they end up just setting it up 192 00:14:00,620 --> 00:14:06,580 horribly insecure as a result. And even when they do follow best 193 00:14:06,580 --> 00:14:11,940 practices, there are still a lot of ways that the system can be 194 00:14:11,940 --> 00:14:15,440 exploited, you know, whether or not the best practices have been 195 00:14:15,440 --> 00:14:18,200 used. So we'll look at a couple of those. 196 00:14:21,240 --> 00:14:26,540 And so, Minimal Novell Identity Manager System. You have eDirectory. 197 00:14:27,520 --> 00:14:32,100 You have the Meta Directory Engine, which is a big piece of code. I think I go into that. 198 00:14:32,220 --> 00:14:37,520 Yeah. So I'm going to cover all these more in depth. Meta Directory Engine is 199 00:14:37,520 --> 00:14:43,720 basically a set of Java libraries or native code libraries, depending on the exact platform. 200 00:14:45,940 --> 00:14:49,000 eDirectory loads them in and it does a bunch of rule processing and stuff for you. 201 00:14:54,040 --> 00:15:02,040 Within the identity management engine, there's the concept of drivers, which are pieces of rules. 202 00:15:02,200 --> 00:15:07,480 There's XML rules, along with a native code component that translates the output of these rules 203 00:15:07,480 --> 00:15:17,500 to native code or native application calls. And as I said, the driver rules and a shim, 204 00:15:17,600 --> 00:15:20,220 which is basically a Java class, which has a publisher 205 00:15:20,380 --> 00:15:20,540 and a subscriber. 206 00:15:22,300 --> 00:15:28,000 All right. Remote Loader, because it is running on a remote system, does have a lot of interesting 207 00:15:29,680 --> 00:15:39,340 characteristics. So the Remote Loader is basically a miniaturized, actually it's not a miniaturized 208 00:15:39,340 --> 00:15:47,380 engine. It's an application that loads the shim in so that it takes XML and translates it to native 209 00:15:48,420 --> 00:15:49,460 application protocols. 210 00:15:50,680 --> 00:16:00,460 It basically connects to the IDM engine over the network, password authentication for it, and it uses an 211 00:16:01,100 --> 00:16:09,140 XML-ish protocol to communicate with the engine. So hopefully as you're sitting there, you're kind of 212 00:16:09,140 --> 00:16:16,940 getting an idea of how complex these systems are, if you weren't aware of it. So how are these systems 213 00:16:16,940 --> 00:16:19,540 typically used? Basically, you kind of have your standard 214 00:16:20,900 --> 00:16:26,100 HR database, you know, often running on a Windows platform or, you know, an Oracle platform, something like that. 215 00:16:26,440 --> 00:16:34,380 Usually it has a Remote Loader out there, which is basically psyching things out of HR, putting that into some sort of 216 00:16:34,380 --> 00:16:39,840 enterprise directory, or putting it into your e-directory, in Novell's case. And from there, you're synchronizing 217 00:16:39,840 --> 00:16:48,140 out to different directories, different applications, that sort of thing. And there's usually this flow from HR to the 218 00:16:48,140 --> 00:16:50,200 Identity Vault, and then, you know, you synchronize from there. 219 00:16:52,600 --> 00:16:59,460 Which has its own security implications. I mean, you know, spot where your security concerns would be. 220 00:17:01,400 --> 00:17:07,880 Another common configuration, basically, you know, you have Novell admins that do all their work in your legacy NDS 221 00:17:07,880 --> 00:17:14,320 tree, that gets synchronized to MetaDirectory, and then that gets synchronized out to some sort of self-service portal, 222 00:17:14,520 --> 00:17:20,360 what have you. This is a fun one. Bringing Novell into an Active Directory environment, or, you know, if you made your 223 00:17:20,380 --> 00:17:25,060 environment. You know, some CTO says, hey, we're going to start doing Novell stuff. And 224 00:17:25,060 --> 00:17:30,020 so the Windows admins keep doing everything in Active Directory and it automatically synchronizes 225 00:17:30,020 --> 00:17:37,460 over to your Novell directory. But this has some common ‑‑ I mean, there's some problems 226 00:17:37,460 --> 00:17:44,000 with this, right? Because is Active Directory and eDirectory equally secure? They can be. 227 00:17:44,000 --> 00:17:51,100 I think there are ways that you can set up Active Directory to be secure. I was ‑‑ back 228 00:17:51,100 --> 00:17:55,580 when I was working for a consulting company, we went to a bank where it had this exact 229 00:17:55,580 --> 00:18:00,380 set up. We didn't know at the time. It took us about 45 minutes to compromise Active Directory, 230 00:18:00,580 --> 00:18:06,300 get an admin there. That's because ‑‑ 45 minutes because I had my firewall on on my 231 00:18:06,300 --> 00:18:13,560 TFTP server. Took us about half an hour to figure that out. So we got domain admin on 232 00:18:13,560 --> 00:18:13,920 Active Directory. 233 00:18:15,060 --> 00:18:18,200 Couldn't figure out how to get into eDirectory. You know, we're sitting there banging on it. 234 00:18:18,620 --> 00:18:22,620 So we tried, you know, the admin user that we created in Active Directory. You know, 235 00:18:22,660 --> 00:18:27,800 we thought, hey, why not? Let's give it a try. And lo and behold, it was there. Automatically 236 00:18:27,800 --> 00:18:32,200 synchronized across. So we actually had an admin user in eDirectory as well as an admin 237 00:18:32,200 --> 00:18:37,240 user in Active Directory because identity management system had very nicely synchronized 238 00:18:37,240 --> 00:18:37,700 that all across. 239 00:18:39,540 --> 00:18:43,180 So that's just something you have to keep in mind of, you know, the further upstream 240 00:18:43,180 --> 00:18:47,360 you're going with your identities, the more careful you need to be about how the systems 241 00:18:47,360 --> 00:18:52,700 are going to be broken into and protect them better or put in business rules to protect 242 00:18:52,700 --> 00:18:54,440 yourself when they do get broken into. 243 00:18:56,320 --> 00:19:01,940 So choosing your targets, obviously, aim high in the identity flow because you're going 244 00:19:01,940 --> 00:19:06,460 to have better payoff. If you compromise the HR database, then you can basically create 245 00:19:06,460 --> 00:19:10,960 any user you want in the system. Whereas if you're, you know, compromising one way 246 00:19:10,960 --> 00:19:13,160 down at the end, you know, who knows. 247 00:19:13,160 --> 00:19:17,360 Maybe it might synchronize back up. It might not. But this is going to be different from 248 00:19:17,360 --> 00:19:20,880 every environment. So I'm not saying you're making, I'm not making any blanket statements 249 00:19:20,880 --> 00:19:25,660 about the, you know, how you need to set out your network. But you just need to make 250 00:19:25,660 --> 00:19:32,060 those decisions, keep those security implications in mind as you're laying out your network. 251 00:19:34,420 --> 00:19:38,980 Just real quick, wanted to go over the security best practices from Novell. There are some 252 00:19:39,400 --> 00:19:43,140 really good ideas here, things you really need to do, and some things that you really 253 00:19:43,160 --> 00:19:44,900 don't help you at all. 254 00:19:46,640 --> 00:19:53,420 So their number one thing, use SSL. Absolutely, use SSL. It makes it a little bit harder to 255 00:19:53,420 --> 00:19:57,480 do certain types of attacks. It makes it impossible to do other types of attacks. And, 256 00:19:58,120 --> 00:20:02,180 you know, it's a good idea. It protects the confidentiality for someone just sniffing 257 00:20:02,180 --> 00:20:02,480 your network. 258 00:20:04,160 --> 00:20:09,080 Monitoring control access to your driver sets in your tree. Obviously, by default, very 259 00:20:09,080 --> 00:20:13,040 few permissions on those objects. So you should monitor them. Don't allow too much 260 00:20:13,160 --> 00:20:16,680 information, your password hints. If you're doing password self-service, force password 261 00:20:16,680 --> 00:20:22,580 changes. Follow industry best practices for security measures, such as blocking unused 262 00:20:22,580 --> 00:20:25,560 ports on the servers. Wow, that's a nice statement there. 263 00:20:28,440 --> 00:20:33,260 Designer, if you're using Novell's designer, which is kind of their management design tool 264 00:20:33,260 --> 00:20:38,060 as well as a management tool. In that case, you should limit your consultant's rights 265 00:20:38,060 --> 00:20:42,460 in your tree. Not sure why you only do that with designer, but, you know, that's what 266 00:20:42,460 --> 00:20:43,100 the best practices are. 267 00:20:43,160 --> 00:20:48,780 Control your project files. Basically, this is a fake application running on your consultant's 268 00:20:48,780 --> 00:20:55,780 laptop. It stores the passwords. We'll cover that later. And don't use encrypted attributes 269 00:20:55,780 --> 00:20:59,420 because designer can't understand them. There's a great security best practice. 270 00:21:01,920 --> 00:21:05,660 Tracking changes to sensitive information. Basically, you know, audit things well. 271 00:21:08,500 --> 00:21:12,800 All right. So that covers the theory. Exactly 20 minutes. 272 00:21:14,500 --> 00:21:18,640 Let's talk about how we would actually go about doing some bad things to one of these 273 00:21:18,640 --> 00:21:23,580 systems. What would be the goals that we're trying to do? I mean, you know, we talk about 274 00:21:23,580 --> 00:21:28,080 exploiting a system. What are we actually trying to do? Someone yesterday was talking 275 00:21:28,080 --> 00:21:32,500 about how, you know, the goal of your exploit is the data. I think it was H.G. Moore's talk. 276 00:21:32,960 --> 00:21:36,840 Excellent. You know, the goal really is your data. I mean, it's whatever data you're trying 277 00:21:36,840 --> 00:21:42,960 to get at within the system. But to get at that, you need identities, you need authorization, 278 00:21:44,000 --> 00:21:48,000 and that's what you're going to be attacking the identity management system to get. So 279 00:21:49,240 --> 00:21:53,080 one goal is to just gain an identity. You know, if you can create your own user, great. 280 00:21:55,380 --> 00:21:59,420 If you can get a user created in one of the connected systems, you know, great. You know, 281 00:21:59,480 --> 00:22:03,140 not as much access there, but, you know, you still have access. 282 00:22:04,500 --> 00:22:08,460 Exceeding your authorization. You know, if you're an employee, you know, the identity 283 00:22:08,460 --> 00:22:12,440 management system says, hey, you're supposed to have access to these files. If you can, 284 00:22:12,440 --> 00:22:12,640 uh, 285 00:22:13,160 --> 00:22:21,160 escalate that up and exceed what your authorization is based on system rules, great. Stealing someone 286 00:22:21,160 --> 00:22:26,680 else's identity. If you can steal their authentication tokens, you can become them on the network. 287 00:22:27,500 --> 00:22:37,220 Not that difficult to do. And basically violating the integrity of the auditing system. So that's 288 00:22:37,220 --> 00:22:37,420 our goal. 289 00:22:38,680 --> 00:22:41,880 You come into a network, how are you going to actually find out whether or not it's running 290 00:22:41,880 --> 00:22:43,140 identity manager? You know, maybe you're going to have to do some sort of, you know, 291 00:22:43,140 --> 00:22:46,520 maybe some of you guys work at companies and you don't know, actually, if you're running 292 00:22:46,520 --> 00:22:50,880 identity management at your company. Or you've broken in over the Internet and you don't 293 00:22:50,880 --> 00:22:53,340 know if this network has identity manager installed. 294 00:22:54,340 --> 00:22:58,760 First thing you're going to look for is if you can, you know, publicly browse the LDAP 295 00:22:58,760 --> 00:23:07,340 directory, you can search for the object class. Object class is by default readable by anonymous. 296 00:23:07,560 --> 00:23:13,120 So, you know, you can, anyone can anonymously connect to your LDAP ports and look for, you 297 00:23:13,120 --> 00:23:16,280 know, object class equals directXML driver. That's a dead giveaway. 298 00:23:17,120 --> 00:23:22,800 If you come up to an iManager server, there are a bunch of web pages that you can look 299 00:23:22,800 --> 00:23:28,600 at. If they don't have identity manager, which, you know, formerly directXML, they don't have 300 00:23:28,600 --> 00:23:31,900 that installed. They don't have the plug-ins to manage their identity management system 301 00:23:32,540 --> 00:23:38,200 installed on that version of iManager, then these will come back with 404s. If they do 302 00:23:38,200 --> 00:23:43,100 have the plug-ins installed to manage identity manager, you get 200 coming back. So, you 303 00:23:43,120 --> 00:23:48,320 know, it's an easy way to find it. Remote loader. Your remote loaders, so there's little 304 00:23:48,320 --> 00:23:55,180 applications that are basically just, you know, translating XML to native code. By default 305 00:23:55,180 --> 00:24:00,400 they run on port 8090. That's kind of the default start one. And then if multiple remote 306 00:24:00,400 --> 00:24:05,880 loaders are running on a system, it will just increment up the ports. So looking for open 307 00:24:05,880 --> 00:24:11,880 ports on 8090 and above is cool. But they are only open when the remote loader is listening 308 00:24:11,880 --> 00:24:12,280 for a connection. 309 00:24:12,280 --> 00:24:17,700 But the engine has not actually initiated that connection. Once it does that, then the 310 00:24:17,700 --> 00:24:23,500 remote loader only talks to the engine and doesn't listen to the network. And that does 311 00:24:23,500 --> 00:24:26,440 not return or returns a closed port in that case. 312 00:24:27,520 --> 00:24:32,380 Lastly, file system. You know, I don't know how many people have access to their Linux 313 00:24:32,380 --> 00:24:38,700 servers that are running directories. But, you know, if you do, userlib directXML or 314 00:24:38,700 --> 00:24:41,660 CNOVEL remote loader, just two of the places you can look. 315 00:24:42,380 --> 00:24:42,820 Okay. 316 00:24:42,820 --> 00:24:50,480 To find the installation. So these are complex systems. Lots of systems involved. Obviously 317 00:24:50,480 --> 00:24:55,000 you can do Windows exploits. I mean, you know, name an exploit and you can probably 318 00:24:55,000 --> 00:24:59,760 exploit a component of an identity management system. But, you know, nothing new there. 319 00:25:01,360 --> 00:25:05,620 Exploits in the actual identity management system itself. So in the actual code that 320 00:25:05,620 --> 00:25:10,720 manages the identities. That was interesting to me. You know, saw some things that looked 321 00:25:10,720 --> 00:25:12,260 a little bit ugly. As I mentioned, code could be a little bit more complex. But you know, 322 00:25:12,280 --> 00:25:16,200 code quality looked a little bit poor to me. So it was something I kind of took a look 323 00:25:16,200 --> 00:25:16,440 into. 324 00:25:18,020 --> 00:25:22,480 So again, you have med directory engine. You have some shims. You have a remote loader. 325 00:25:22,720 --> 00:25:25,280 Lots of good stuff to ‑‑ lots of good targets to look at. 326 00:25:27,300 --> 00:25:34,160 So three slides back, I kind of mentioned, you know, very trivial denial of service which, 327 00:25:34,380 --> 00:25:41,060 you know, very simple basically. We have a ‑‑ remote loaders running on a remote 328 00:25:41,060 --> 00:25:41,440 system. 329 00:25:42,280 --> 00:25:46,040 So, you know, a lot of reasons to the network. But as soon as someone connects it to it, it 330 00:25:46,040 --> 00:25:53,580 turns off. So, you know, Netcat, great denial of service tool. Just connect into the port 331 00:25:53,580 --> 00:26:00,640 if you see it open. And it ‑‑ basically your engine can no longer connect in. As long 332 00:26:00,640 --> 00:26:05,520 as you don't send it anything, it will hold that port open for forever. Just waiting for 333 00:26:05,520 --> 00:26:11,880 you to initiate with your password. So if you open the port, basically the whole system 334 00:26:12,280 --> 00:26:13,660 can never ‑‑ can't talk to the engine. 335 00:26:15,460 --> 00:26:19,800 Why is that a problem? Obviously if you're, you know, going to be deleted from a system 336 00:26:19,800 --> 00:26:26,360 and you know that, denial of service is pretty critical because if you can deny service on 337 00:26:26,360 --> 00:26:30,380 that connected system, then obviously you can't be deprovisioned, you can't have your 338 00:26:30,380 --> 00:26:33,960 authorization changed, and, you know, whatever access you have on that system, you're going 339 00:26:33,960 --> 00:26:35,900 to maintain because you can't get updated. 340 00:26:37,840 --> 00:26:40,100 I was going to demonstrate that, but, you know, oh well. 341 00:26:43,140 --> 00:26:48,560 Ran a fuzzer on this, you know, we're connected over a network. Let's look at some fuzzing 342 00:26:48,560 --> 00:26:52,660 statistics. Basically it took about a minute to five minutes to crash the remote loader. 343 00:26:55,240 --> 00:27:00,400 When we were doing a pure Java remote loader, so the remote loader was pulling in a pure 344 00:27:00,400 --> 00:27:04,640 Java library, basically Java would just get so confused and couldn't tell, you know, one 345 00:27:04,640 --> 00:27:08,860 side thought it was open, the other side would try to connect and it was closed and all sorts 346 00:27:08,860 --> 00:27:12,240 of confusion there. And basically we'd just come to a halt, not be able to resolve itself, 347 00:27:12,240 --> 00:27:13,420 after about five minutes. 348 00:27:14,320 --> 00:27:20,200 You load in an actual native code, like the Active Directory driver, you actually crash 349 00:27:20,200 --> 00:27:27,240 the application in about one minute. I do have dumps, if anyone knows how to write good 350 00:27:27,240 --> 00:27:32,980 exploits, talk to me. And about 20 minutes to crash the engine. Basically if you're fuzzing 351 00:27:32,980 --> 00:27:38,620 the engine side, it took about 20 minutes for the engine to just go all weird. Again, 352 00:27:38,800 --> 00:27:42,220 very heavy use of Java, so, you know, I don't think it's going to work. So, you know, I don't 353 00:27:42,240 --> 00:27:46,100 think any of them can be used for a, you know, remote exploit, but you can definitely throw 354 00:27:46,100 --> 00:27:48,400 into weird states where it just doesn't know what it's doing. 355 00:27:51,180 --> 00:27:55,880 And I did not get around to fuzzing the XML definitions that are actually held up in the 356 00:27:55,880 --> 00:28:02,240 directory, so directory objects that contain all these XML files. Been trying to do that, 357 00:28:02,280 --> 00:28:04,700 but I have to run my own fuzzer for that and haven't gotten around to it yet. 358 00:28:06,560 --> 00:28:11,760 Oh, dxcommand, which is kind of the command line utility that uses to, that uses NCP to 359 00:28:11,760 --> 00:28:17,240 control the driver functionality. Yeah, it basically choked on the first packet that 360 00:28:17,240 --> 00:28:24,340 got fuzzed, so it would just quit with the Java dump. So not real reliable, you know, 361 00:28:24,380 --> 00:28:32,000 for something that's really managing all your identities, not all that reliable. So, 362 00:28:32,580 --> 00:28:39,940 you know, let's say we can't fuzz things. If we own one of the systems, if we actually 363 00:28:39,940 --> 00:28:41,740 control your identity management, we're not going to be able to fuzz things. We're going 364 00:28:41,740 --> 00:28:46,420 to control the metadirectory, so the e-directory. We can just go and change the business rules 365 00:28:46,420 --> 00:28:51,440 pretty much any time we want. Of course, if you're an attacker, you go in and change 366 00:28:51,440 --> 00:28:56,360 the rules. That's pretty much, you know, it's pretty obvious. And you have to have 367 00:28:56,360 --> 00:29:01,020 admin in the e-directory. So, you know, not too useful, but obviously someone who's attacking 368 00:29:01,020 --> 00:29:05,120 your identity management system, they can do this. And what controls do you have in 369 00:29:05,120 --> 00:29:11,360 place to prevent someone from doing that? That's a question you can answer. Modifying 370 00:29:11,360 --> 00:29:11,640 the system. 371 00:29:11,740 --> 00:29:18,000 Modifying the system libraries and the applications that are up there. On a Linux stack, you 372 00:29:18,000 --> 00:29:26,140 know, running my demo system, I'm running OES here with e-directory. Good default permissions 373 00:29:26,140 --> 00:29:32,920 in the directory. Great, you know, file permissions are very tight. We then go over to Windows 374 00:29:32,920 --> 00:29:41,120 side and full control is granted to everyone by default after a default install. So I had 375 00:29:41,120 --> 00:29:41,720 a little fun with that. 376 00:29:43,840 --> 00:29:49,400 Basically, I thought, hey, you know, if I can create my own shim, you know, without 377 00:29:49,400 --> 00:29:54,120 anyone noticing, since full control is given to everyone, so, you know, me being everyone, 378 00:29:54,560 --> 00:29:58,560 I could just log in and change out the shim. Why not? 379 00:30:01,960 --> 00:30:09,800 So in our test tree here, basically we have a remote loader, remote console here, which 380 00:30:09,800 --> 00:30:11,720 is, you know, just controlling the connection between the server and the server. So we're 381 00:30:11,740 --> 00:30:16,920 going to make some connections to our different remote loaders that are running here. One 382 00:30:16,920 --> 00:30:22,620 of them is conveniently named driver to be Trojan, which is just to limit text driver. 383 00:30:23,300 --> 00:30:31,960 It's up there in our tree. I can ‑‑ yeah. Wrong way. So it's, you know, just driver 384 00:30:31,960 --> 00:30:40,920 running in my tree. So what do we do? Basically, when the remote loader starts up, it reads 385 00:30:43,280 --> 00:30:47,740 novel remote loader lib directory, pulls in every single jar file, uses that as your 386 00:30:47,740 --> 00:30:54,180 class path, and then if you look back at any of your ‑‑ the properties of any of your 387 00:30:54,180 --> 00:31:02,140 remote loaders, the Java class that's supposed to be called to initiate this shim, it's listed 388 00:31:02,140 --> 00:31:07,360 right there. So two things we need to do. We either need to swap out what that class points 389 00:31:07,360 --> 00:31:11,440 to within this directory, which is a little bit difficult. You get into some, you know, files 390 00:31:11,440 --> 00:31:11,720 being logged in and out. So we're going to swap out what that class points to within this 391 00:31:11,740 --> 00:31:13,800 can see the information that it has been logged and stuff when you try to swap that out. Or 392 00:31:13,800 --> 00:31:18,980 you just change them all. So that's, you know, just wanted to demo that real quick in case 393 00:31:19,760 --> 00:31:25,920 someone doesn't quite believe me. Basically, went and downloaded the driver SDK from Novell. 394 00:31:26,500 --> 00:31:30,420 Compiled my own driver, added in a little bit of code that wrote a file to a ‑‑ writes 395 00:31:30,420 --> 00:31:37,000 out a file to the C, you know, the root directory. I'm not a Windows person, so if I talk a 396 00:31:37,000 --> 00:31:41,240 little bit UNIXy ‑‑ sorry. So basically it writes the file out to your C directory. 397 00:31:41,240 --> 00:31:45,420 directory and then starts up like a normal driver. So we'll 398 00:31:45,420 --> 00:31:49,080 just copy that over since we have full control on the lib 399 00:31:49,080 --> 00:31:54,960 directory. That's cool. So now we have to make sure that when 400 00:31:54,960 --> 00:31:57,920 the driver starts up next time, it points to the right class, it 401 00:31:57,920 --> 00:32:02,120 points to our hostile class. So we'll go conveniently, our 402 00:32:02,120 --> 00:32:06,720 remote loader told us what the config file name is, which was 403 00:32:10,840 --> 00:32:17,960 config. So there is our class. Just swap that out real quick 404 00:32:19,000 --> 00:32:26,640 because that's fun. We'll save that. And obviously this is 405 00:32:26,640 --> 00:32:29,060 loading memory, so it's not looking at the config file right 406 00:32:29,060 --> 00:32:36,460 now. Like I said, after I fuzzed this a few times, it's not that 407 00:32:36,460 --> 00:32:36,700 easy. It's not that easy. It's not that easy. It's not that 408 00:32:36,720 --> 00:32:40,660 easy or not that difficult to crash one of these drivers. So 409 00:32:40,660 --> 00:32:49,800 causing a denial of service on these is far too easy. But for 410 00:32:49,800 --> 00:32:54,320 demonstration's sake, I'm just going to stop it. So our C 411 00:32:54,320 --> 00:33:02,160 drive, no weird files there. So let's start up our driver. And 412 00:33:04,520 --> 00:33:06,440 demo gods do not. There we go. 413 00:33:06,440 --> 00:33:12,340 So woohoo. Basically what it did, start up the driver, driver, my 414 00:33:12,340 --> 00:33:15,800 custom driver, run out of file to the C drive. And it's running 415 00:33:15,800 --> 00:33:20,360 as local system, so basically you can do whatever you want. And 416 00:33:20,360 --> 00:33:23,000 you know, some admin actually going to notice this, you know, 417 00:33:23,020 --> 00:33:24,980 they would get in their log files that, you know, hey, maybe 418 00:33:24,980 --> 00:33:33,260 the remote loader restarted. That's about it. So that was fun. 419 00:33:34,200 --> 00:33:38,520 Go build your own by go downloading the SDK. Just use 420 00:33:38,520 --> 00:33:43,640 amp to build the default examples there. And add in 421 00:33:43,640 --> 00:33:49,980 whatever you want. So we wrote our own shim. Can we write our 422 00:33:49,980 --> 00:33:56,560 own remote loader? You know, that might be possible. I looked 423 00:33:56,560 --> 00:34:00,120 at that, said, you know, hey, basically the engine is going 424 00:34:00,120 --> 00:34:03,220 there. It's, you know, it's given the IP address or, you 425 00:34:03,260 --> 00:34:07,660 know, the DNS name of the remote side. Can we write our own? 426 00:34:07,760 --> 00:34:12,740 That's going to mimic that and do some password stealing. I 427 00:34:12,740 --> 00:34:16,920 tried it out. One of the things I had overcome was, you know, 428 00:34:16,940 --> 00:34:22,020 basically they recommend to use SSL on this. But kind of get to 429 00:34:22,020 --> 00:34:26,660 that. They use it in kind of a weird way that basically SSL is 430 00:34:26,660 --> 00:34:28,760 used to authenticate the engine. But it's never used to 431 00:34:28,760 --> 00:34:31,760 authenticate the remote loader. So even if we're using SSL, we 432 00:34:31,760 --> 00:34:33,240 can get around that. Because it's not going to be a problem. 433 00:34:33,260 --> 00:34:37,180 It's not cryptographically protected. It's just authenticated 434 00:34:37,180 --> 00:34:40,120 by password. And there's basically two different 435 00:34:40,120 --> 00:34:42,680 passwords that are used. Your driver object password and your 436 00:34:42,680 --> 00:34:46,220 remote loader password. And your remote loader password is 437 00:34:46,220 --> 00:34:50,700 actually used in two different ways. One for the command, well, 438 00:34:50,780 --> 00:34:53,060 command window that actually controls the driver. And it's 439 00:34:53,060 --> 00:34:58,180 also used for the engine connecting in. So pictorially, 440 00:34:58,360 --> 00:35:01,060 hey, your remote loader is there. Listen to the network. Cool. 441 00:35:02,800 --> 00:35:07,460 Password authentication, when the command piece goes in and 442 00:35:07,460 --> 00:35:10,360 tries to connect to your remote loader, it does this great 443 00:35:10,360 --> 00:35:12,800 cryptographic challenge response. It takes a time stamp 444 00:35:12,800 --> 00:35:18,080 and it hashes it a couple times. You know, verifies that both 445 00:35:18,080 --> 00:35:21,420 sides know the password without overpassing the password over 446 00:35:21,420 --> 00:35:26,100 the network. Beautiful. That's how it should be done. When 447 00:35:26,100 --> 00:35:29,020 we're talking about the connection between the engine 448 00:35:29,020 --> 00:35:31,040 and the remote loader, the first thing that comes to mind is the 449 00:35:31,060 --> 00:35:35,920 fact that your passwords get sent in clear text. I don't know 450 00:35:35,920 --> 00:35:40,920 why. But anyway, they do. So because of that, we can write our 451 00:35:40,920 --> 00:35:47,740 own little Trojan. One thing I just want to point out, many 452 00:35:47,740 --> 00:35:50,480 people use the same password for these multiple passwords. And 453 00:35:50,480 --> 00:35:53,000 nowhere in the Novell documentation does it say, hey, 454 00:35:53,100 --> 00:35:55,840 use different passwords for these. So every Novell train you 455 00:35:55,840 --> 00:35:59,740 go to, most Novell consultants I've talked to, they always use 456 00:35:59,740 --> 00:36:01,040 the same password for the driver object password. And that's 457 00:36:01,060 --> 00:36:03,120 because the driver object and the remote loader. Bad idea. 458 00:36:03,540 --> 00:36:08,060 Because your engine is saying, hi, here's my password. Now 459 00:36:08,060 --> 00:36:10,600 authenticate to me. And if you're coming back with the same 460 00:36:10,600 --> 00:36:14,280 exact password, that's, you know, that's just too easy. So, 461 00:36:15,320 --> 00:36:22,100 you know, it's easy. So because it's easy, I decided to write a 462 00:36:22,100 --> 00:36:28,960 little tool to do it for me. I have a little server I'm going to 463 00:36:28,960 --> 00:36:31,040 start up. I'm going to start up a server. I'm going to start up a 464 00:36:31,060 --> 00:36:35,860 server. And then the other thing I need to do is basically, you 465 00:36:35,860 --> 00:36:38,900 know, there are many different ways, ARP spoofing, DNS 466 00:36:38,900 --> 00:36:45,120 redirection, you know, plenty of ways that you can get a, get, 467 00:36:45,280 --> 00:36:51,660 you know, redirect where this engine is talking to. For demo 468 00:36:51,660 --> 00:36:55,980 sake, because the demo gods hate me, I'm just going to go in 469 00:36:55,980 --> 00:37:01,040 and change the IP address. If it ever decides to load. So I'm 470 00:37:09,220 --> 00:37:21,620 going to do that. So, ah. So, formerly we're connected to our remote 471 00:37:21,620 --> 00:37:26,840 loader directly. I'm just going to change that to go to my server, 472 00:37:27,000 --> 00:37:31,040 which, 10.4. I'm just going to go to my server, which, 10.4. 473 00:37:33,880 --> 00:37:37,940 And, ah. So as soon as you make a change, it's going to restart the 474 00:37:37,940 --> 00:37:43,740 driver. Woo-hoo. And, ah. Let's go see what we got. We didn't 475 00:37:43,740 --> 00:37:46,700 get anything. There we go. So basically we were just listening to 476 00:37:46,700 --> 00:37:53,240 the network. The engine said, hey, here's my remote loader password, 477 00:37:53,400 --> 00:37:56,920 and please authenticate me and start talking to me. I basically 478 00:37:56,920 --> 00:38:01,040 said, great, thank you for that password. I'm going to turn around and use that. Just try to use that it. If it, ah. So, it just 479 00:38:01,040 --> 00:38:05,620 use that for my driver object password. And so I passed it 480 00:38:05,620 --> 00:38:08,920 back using the right protocol. And it gave me a success message 481 00:38:08,920 --> 00:38:12,480 so I know now that my passwords are the same. And it prints out 482 00:38:12,480 --> 00:38:17,760 here. This little tool here will be up on or will be pointed to. 483 00:38:17,960 --> 00:38:21,000 I haven't quite figured out a good place to host it yet. But I 484 00:38:21,000 --> 00:38:29,540 hate novell.blogger.com. I'll put it up there. SSL, you know, 485 00:38:29,540 --> 00:38:32,540 again, I'm just going to mention novell does some great things 486 00:38:32,540 --> 00:38:35,140 with cryptography and every once in a while you wonder what were 487 00:38:35,140 --> 00:38:39,700 they thinking. So they've made it very, very difficult to talk 488 00:38:39,700 --> 00:38:44,720 to remote loader as a fake direct small engine. But it's 489 00:38:44,720 --> 00:38:46,780 really easy to talk to it as a fake remote loader because 490 00:38:46,780 --> 00:38:50,380 there's no cryptographic authentication of the remote 491 00:38:50,380 --> 00:38:52,900 loader. It's physically impossible to load a 492 00:38:52,900 --> 00:38:58,980 certificate up on the engine side. And so that makes it all 493 00:38:58,980 --> 00:38:59,300 possible. 494 00:39:00,180 --> 00:39:04,440 However, they do use a really funky version of TLS. So I'm 495 00:39:04,440 --> 00:39:07,480 still kind of working out that to get this tool to run under SSL. 496 00:39:07,620 --> 00:39:13,140 But it should not be a problem. Like I said, it is possible. 497 00:39:15,360 --> 00:39:22,720 Okay. Using the rules. Basically, to actually, you know, figure 498 00:39:22,720 --> 00:39:26,160 out how you're going to use rules to your advantage, you know, 499 00:39:26,160 --> 00:39:28,460 you have to know what rules are up there. Fortunately, you can 500 00:39:28,460 --> 00:39:29,520 just do an LDAP search. You don't have to do a lot of 501 00:39:29,520 --> 00:39:32,140 research anonymously on your directory tree. And by default, 502 00:39:32,220 --> 00:39:34,820 you can get back the names of all the drivers, because, you 503 00:39:34,820 --> 00:39:39,140 know, it's in your CN. You know, it's in your RDN. So pretty 504 00:39:39,140 --> 00:39:41,680 much anyone can go there and read what rules you have defined 505 00:39:41,680 --> 00:39:46,740 for your IDM installation. And they can compare those to the 506 00:39:46,740 --> 00:39:49,240 default rules. Because, you know, most people go, they 507 00:39:49,240 --> 00:39:52,220 download the drivers from Novell, they use most of the 508 00:39:52,220 --> 00:39:55,320 default rules, they change a few. And so people can basically 509 00:39:55,320 --> 00:39:58,820 read what your business logic is based off of just an anonymous 510 00:39:58,820 --> 00:39:59,500 search of your tree. All right. All right. All right. All right. 511 00:39:59,500 --> 00:40:01,740 unless you turn that off, which I highly recommend. 512 00:40:04,240 --> 00:40:08,240 So, for example, if I go up and read that you have an Active Directory driver up there, 513 00:40:08,360 --> 00:40:14,020 and I know that Active Directory driver by default matches on full name, 514 00:40:14,160 --> 00:40:17,740 and I can troll one side, obviously I can start exploiting that 515 00:40:17,740 --> 00:40:20,840 by exploiting the default business logic that Novell gave you. 516 00:40:22,760 --> 00:40:24,620 And obviously if you have some custom logic in there, 517 00:40:25,280 --> 00:40:27,340 I'm not going to know that as an anonymous attacker, 518 00:40:29,500 --> 00:40:32,640 but as a reasonably tech-savvy person in your corporation, 519 00:40:33,420 --> 00:40:35,420 I can probably make some good guesses at it. 520 00:40:38,200 --> 00:40:39,200 Exploiting the rule of processing. 521 00:40:39,460 --> 00:40:40,460 This is another fun one. 522 00:40:40,620 --> 00:40:42,600 Basically your shim is taking XML code, 523 00:40:42,860 --> 00:40:46,220 translating it over to native application calls, 524 00:40:47,960 --> 00:40:50,740 and different drivers handle it differently. 525 00:40:50,920 --> 00:40:53,360 Every single one of these shims is written by a different person. 526 00:40:53,740 --> 00:40:55,440 You have vastly different code quality. 527 00:40:56,500 --> 00:40:59,480 I happen to have done a lot of work with the drivers, 528 00:40:59,500 --> 00:41:01,060 with JDBC and doing database connections. 529 00:41:02,160 --> 00:41:03,300 So I had some fun with it. 530 00:41:05,360 --> 00:41:09,280 And basically by default, if you just do a default install of the JDBC driver, 531 00:41:09,860 --> 00:41:11,440 this nice little rule comes in there, 532 00:41:11,560 --> 00:41:17,860 where it takes your common name and uses it in an update statement on your SQL server, 533 00:41:18,800 --> 00:41:20,100 running as DBO. 534 00:41:20,360 --> 00:41:23,140 So hopefully most of you get where I'm going with this. 535 00:41:24,240 --> 00:41:25,840 And within the next ten minutes, 536 00:41:26,900 --> 00:41:27,780 we will... 537 00:41:29,500 --> 00:41:36,880 ...quickly demonstrate a SQL injection in DirectXML processing. 538 00:41:37,440 --> 00:41:40,500 So, I have a little table here, this is my default database. 539 00:41:41,340 --> 00:41:43,580 Basically just a default install of the database, 540 00:41:44,260 --> 00:41:46,260 straight from Novell, so you can go and duplicate this yourself. 541 00:41:46,680 --> 00:41:48,920 I added in this little table for my little proof of concept. 542 00:41:49,920 --> 00:41:57,340 I'm now going to add in a user, there we go, to my directory. 543 00:41:58,620 --> 00:42:02,020 That one guy had a few special things added to him. 544 00:42:04,900 --> 00:42:08,220 And, let's see, so, got a few errors. 545 00:42:10,600 --> 00:42:15,100 And in this table, hello DEF CON, yes, we have SQL injection in your driver. 546 00:42:15,700 --> 00:42:17,060 This is a default driver from Novell. 547 00:42:17,200 --> 00:42:22,040 So anyone using the default driver from Novell should check up on this. 548 00:42:24,420 --> 00:42:25,320 SQL injections. 549 00:42:25,820 --> 00:42:26,720 Ch-ch-ch. 550 00:42:26,860 --> 00:42:27,320 Ch-ch-ch. 551 00:42:27,340 --> 00:42:28,300 Last one, passwords. 552 00:42:28,800 --> 00:42:31,180 A couple of different places that we deal with passwords, obviously, 553 00:42:31,700 --> 00:42:35,040 a lot of people use identity management for passwords. 554 00:42:36,480 --> 00:42:37,400 Don't use passwords. 555 00:42:37,920 --> 00:42:40,440 Okay, I can't say it enough, do not use passwords. 556 00:42:41,000 --> 00:42:42,680 They are the weakest form of authentication, 557 00:42:43,200 --> 00:42:46,180 but unfortunately a lot of you have to use them, so you don't have a choice. 558 00:42:46,480 --> 00:42:47,960 So, let's be careful. 559 00:42:48,160 --> 00:42:50,340 At least know what's, where your passwords are going. 560 00:42:50,940 --> 00:42:53,480 Using identity management for Active Directory, 561 00:42:54,540 --> 00:42:57,060 on the Windows side, you're going to have a password filter, 562 00:42:57,060 --> 00:43:00,540 which is basically just a little DLL that you've put in Active Directory, 563 00:43:00,720 --> 00:43:03,140 which says, hey, every time someone changes their password in Active Directory, 564 00:43:03,520 --> 00:43:05,700 write it out to this registry key. 565 00:43:05,920 --> 00:43:06,760 It does encrypt it. 566 00:43:07,480 --> 00:43:09,920 So if you go and look at it, Novell has not, 567 00:43:10,060 --> 00:43:13,880 I couldn't find out from Novell publicly how that encryption worked. 568 00:43:14,880 --> 00:43:17,640 So all I can say is, it is encrypted. 569 00:43:18,980 --> 00:43:21,860 Go and look at those keys yourself, if you can find a way to decrypt it. 570 00:43:23,140 --> 00:43:23,500 Cool. 571 00:43:24,860 --> 00:43:25,920 Write a utility for it. 572 00:43:25,920 --> 00:43:27,220 Universal passwords. 573 00:43:27,820 --> 00:43:32,060 So this is actually where my dislike of Novell started, 574 00:43:32,320 --> 00:43:35,440 and I have a rocky history with them as a result. 575 00:43:36,180 --> 00:43:38,720 But basically, they decided, as a company, 576 00:43:38,760 --> 00:43:40,280 to go with this whole idea of universal password, 577 00:43:40,440 --> 00:43:43,980 which was, hey, let's store our passwords in e-directory, 578 00:43:44,020 --> 00:43:47,800 instead of using this great hashing function that NDS has been using for years, 579 00:43:47,960 --> 00:43:50,940 let's store them just encrypted with triple-des. 580 00:43:52,480 --> 00:43:52,960 Okay. 581 00:43:53,680 --> 00:43:55,760 We're also storing the key to decrypt it, 582 00:43:55,920 --> 00:43:56,340 on the server. 583 00:43:57,500 --> 00:43:59,080 So that's a problem. 584 00:43:59,260 --> 00:44:01,440 If you're storing the encrypted version along with the key, 585 00:44:02,600 --> 00:44:03,560 is that really encrypted? 586 00:44:04,720 --> 00:44:05,560 We can debate that. 587 00:44:06,180 --> 00:44:08,520 But for the most part, it works pretty well. 588 00:44:09,440 --> 00:44:14,740 Basically, access into those passwords is controlled by a couple of factors. 589 00:44:14,880 --> 00:44:15,660 You have to be an admin. 590 00:44:15,820 --> 00:44:18,080 You have to have rights to that directory object, 591 00:44:18,300 --> 00:44:19,840 which is by default only given to admin. 592 00:44:20,320 --> 00:44:22,200 You have to access it over SSL. 593 00:44:22,260 --> 00:44:23,680 If you're accessing it in clear text, 594 00:44:23,860 --> 00:44:24,900 it won't give it back to you. 595 00:44:26,480 --> 00:44:31,060 And there's password policies that govern whether or not admin can read the password. 596 00:44:31,320 --> 00:44:33,860 Of course, admin owns these policies, 597 00:44:34,020 --> 00:44:36,400 and admin can change the policies whenever they want. 598 00:44:37,140 --> 00:44:42,500 That was kind of my reason for thinking that this was kind of a bad scheme. 599 00:44:43,680 --> 00:44:46,700 So as a result, yes, it is possible. 600 00:44:46,860 --> 00:44:48,060 You have your password policies. 601 00:44:48,520 --> 00:44:52,000 So as admin, I can just go in them and change them to say, 602 00:44:52,120 --> 00:44:53,240 hey, let me read them. 603 00:44:53,240 --> 00:44:56,560 I can then basically just go and ask the directory, 604 00:44:56,680 --> 00:44:58,080 say, hey, give me everyone's password. 605 00:44:58,300 --> 00:44:58,980 And I have them. 606 00:45:00,220 --> 00:45:02,720 Yes, this is what you're forced to use 607 00:45:02,720 --> 00:45:03,920 if you're using password synchronization 608 00:45:03,920 --> 00:45:06,240 with Identity Manager 3.0 or later. 609 00:45:06,760 --> 00:45:08,600 You have to use Universal Password. 610 00:45:08,780 --> 00:45:12,180 And Universal Passwords are just encrypted passwords. 611 00:45:12,500 --> 00:45:14,520 And encrypted passwords can be decrypted. 612 00:45:15,380 --> 00:45:16,620 I think I've hammered it enough. 613 00:45:17,960 --> 00:45:20,260 So that's, yeah, speaking of passwords, 614 00:45:20,520 --> 00:45:22,760 I mentioned Designer, which is that, 615 00:45:22,760 --> 00:45:24,640 you know, nice little management tool. 616 00:45:24,840 --> 00:45:26,820 It has an encoded password. 617 00:45:27,080 --> 00:45:28,280 And they do warn you about this. 618 00:45:28,380 --> 00:45:29,180 If you read the documentation, 619 00:45:29,420 --> 00:45:31,360 it says do not store your admin password in here. 620 00:45:32,640 --> 00:45:33,500 I was going to put up, 621 00:45:33,600 --> 00:45:36,860 I couldn't find my Perl script to decrypt it, 622 00:45:36,940 --> 00:45:39,040 but basically it's Base64 encoded, 623 00:45:39,080 --> 00:45:40,260 and you take the, 624 00:45:41,840 --> 00:45:43,360 it's basically a Base64 encoded string, 625 00:45:43,620 --> 00:45:46,760 and you take the first character of every three characters 626 00:45:46,760 --> 00:45:48,100 and move it to the last one, 627 00:45:48,240 --> 00:45:49,820 and then you just Base64 decode it, 628 00:45:49,880 --> 00:45:51,120 and you have the password back. 629 00:45:52,060 --> 00:45:53,520 It's those kind of things that just annoy me, 630 00:45:53,600 --> 00:45:55,040 because I'm a crypto guy, 631 00:45:55,280 --> 00:45:55,760 and, you know, 632 00:45:56,860 --> 00:45:58,620 you can encrypt things so easily. 633 00:45:58,740 --> 00:46:00,900 Why would you Base64 encode something 634 00:46:00,900 --> 00:46:04,900 and then do some transposition to encrypt it? 635 00:46:05,260 --> 00:46:05,840 I don't know. 636 00:46:06,400 --> 00:46:08,480 But, you know, those are the types of things I get mad about. 637 00:46:10,980 --> 00:46:13,180 So coming up on the end of this talk, 638 00:46:13,400 --> 00:46:14,240 I just wanted to say, 639 00:46:14,720 --> 00:46:16,960 whoever wrote The Art of Fuzzing, 640 00:46:17,120 --> 00:46:19,520 your proxy fuzzer is my friend. 641 00:46:19,660 --> 00:46:20,660 I found that tool. 642 00:46:20,660 --> 00:46:21,280 I love it. 643 00:46:22,040 --> 00:46:22,640 Great tool. 644 00:46:23,080 --> 00:46:24,160 Nice little Python script. 645 00:46:25,200 --> 00:46:26,780 Does great for fuzzing network connections. 646 00:46:28,340 --> 00:46:30,600 While I was in here doing this presentation, 647 00:46:30,980 --> 00:46:32,660 I wrote a little Perl script to go in 648 00:46:32,660 --> 00:46:34,420 and bulk update every attribute 649 00:46:34,420 --> 00:46:39,080 to, you know, a fixed string on your user, 650 00:46:39,220 --> 00:46:40,080 test user in your database. 651 00:46:40,360 --> 00:46:42,260 I recommend people doing this with things like, 652 00:46:42,300 --> 00:46:43,340 you know, common SQL injections, 653 00:46:44,060 --> 00:46:45,060 cross-site scripting. 654 00:46:46,140 --> 00:46:47,920 I didn't get to it because I don't have time, 655 00:46:48,000 --> 00:46:50,300 but, yeah, do some cross-site scripting, 656 00:46:50,660 --> 00:46:52,520 and try and view your user with iManager. 657 00:46:53,020 --> 00:46:54,260 You get some great results. 658 00:46:56,120 --> 00:46:59,700 But I'll have that script up on the website as well, 659 00:46:59,800 --> 00:47:00,800 or, you know, link to it somewhere, 660 00:47:00,940 --> 00:47:01,880 so you'll figure out how to do that. 661 00:47:04,620 --> 00:47:05,840 And fake remote loader, 662 00:47:05,860 --> 00:47:07,340 yeah, I'll throw that up there as well. 663 00:47:09,200 --> 00:47:10,680 Just go for it. Use it. 664 00:47:12,520 --> 00:47:13,800 Like I mentioned, yeah, 665 00:47:13,880 --> 00:47:16,400 there's several places where iManager just chokes 666 00:47:16,400 --> 00:47:19,820 when you rewrite people's attributes. 667 00:47:21,380 --> 00:47:22,440 It's pretty ugly. 668 00:47:22,980 --> 00:47:26,500 Novell Audit, another good application in theory, 669 00:47:26,660 --> 00:47:27,740 bad in implementation. 670 00:47:28,700 --> 00:47:30,540 Sorry, there's just been lots of bugs in implementation. 671 00:47:32,080 --> 00:47:34,160 And fortunately it's been replaced by Novell Sentinel. 672 00:47:35,180 --> 00:47:36,540 So, cool stuff. 673 00:47:38,460 --> 00:47:39,820 Really easy to fingerprint your drivers. 674 00:47:40,000 --> 00:47:40,480 User application. 675 00:47:41,880 --> 00:47:43,320 This is a huge application. 676 00:47:43,700 --> 00:47:45,860 It's your Linux server running JBoss 677 00:47:45,860 --> 00:47:49,800 with this entire portal application on top of it. 678 00:47:50,440 --> 00:47:52,680 It's kind of the new Identity Manager 3, 679 00:47:52,920 --> 00:47:54,680 if you're familiar with Novell. 680 00:47:55,060 --> 00:47:57,720 It was one of the big selling features of IDM3. 681 00:48:00,040 --> 00:48:01,340 And basically, again, 682 00:48:01,500 --> 00:48:03,920 it was just not the highest code quality. 683 00:48:06,120 --> 00:48:08,160 Lots of ugly things in there in the whole implementation. 684 00:48:08,620 --> 00:48:12,380 And I don't even have time to do all the write-ups on those. 685 00:48:12,960 --> 00:48:14,060 But, you know, maybe next year. 686 00:48:14,680 --> 00:48:15,480 And then Designer. 687 00:48:15,620 --> 00:48:17,540 I haven't even started looking at Designer yet, 688 00:48:18,000 --> 00:48:19,640 other than, you know, the little password thing. 689 00:48:20,700 --> 00:48:22,260 So, lots of work to be done. 690 00:48:23,040 --> 00:48:26,060 Basically, I can't find anyone else there out here 691 00:48:26,060 --> 00:48:29,100 who is doing research on the security of identity management systems. 692 00:48:29,580 --> 00:48:31,640 So if you're out there, please talk to me. 693 00:48:31,740 --> 00:48:34,040 Because I'd love to bank some ideas off of you. 694 00:48:36,180 --> 00:48:39,740 But, yeah, I'm out there doing it by myself at the moment. 695 00:48:39,800 --> 00:48:41,100 And would love some help. 696 00:48:43,600 --> 00:48:45,060 We don't really have much time. 697 00:48:45,200 --> 00:48:49,280 But basically, you know, whatever background you come from, 698 00:48:49,280 --> 00:48:52,260 you guys might think I'm crazy. 699 00:48:52,460 --> 00:48:53,100 Maybe I am crazy. 700 00:48:53,700 --> 00:48:55,840 Maybe I just think this is bad design 701 00:48:55,840 --> 00:48:57,800 because of some personal flaw. 702 00:48:58,100 --> 00:48:58,600 But I don't know. 703 00:48:59,620 --> 00:49:00,420 Maybe I'm way off. 704 00:49:00,600 --> 00:49:01,180 Maybe I'm right. 705 00:49:01,320 --> 00:49:01,700 Who knows? 706 00:49:01,960 --> 00:49:03,160 You guys can make up your own mind. 707 00:49:05,880 --> 00:49:06,720 So, conclusion. 708 00:49:07,040 --> 00:49:08,940 Hopefully, all you guys who raised your hands 709 00:49:08,940 --> 00:49:11,640 saying you're running Novell Identity Manager, 710 00:49:13,680 --> 00:49:15,880 you're aware of some ways people might exploit your system. 711 00:49:16,000 --> 00:49:18,400 Maybe you can go back and, you know, 712 00:49:18,400 --> 00:49:21,260 just put on your security hat, take a look at your system, 713 00:49:21,380 --> 00:49:22,760 and remember it's not invulnerable. 714 00:49:26,200 --> 00:49:29,620 Yeah, I hope Novell takes a look at their own stuff. 715 00:49:29,900 --> 00:49:32,400 And I really do hope someone out there sees it. 716 00:49:33,000 --> 00:49:34,340 And I have one minute. 717 00:49:34,420 --> 00:49:36,860 And someone else, you know, comes, joins me, 718 00:49:36,900 --> 00:49:37,720 doing some fun stuff. 719 00:49:38,640 --> 00:49:39,180 That's it. 720 00:49:39,500 --> 00:49:40,880 I have some more stuff I skipped. 721 00:49:40,980 --> 00:49:43,980 But, you know, that's what the Q&A room is for afterwards. 722 00:49:44,260 --> 00:49:45,560 So, thank you. 723 00:49:48,400 --> 00:49:49,420 Thank you.