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. 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. 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. So what this talk is not, if there is, is there anyone from Novell here? 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, issues, you guys can decide, maybe there are issues, maybe there are not. But this is not like a fix it list for Novell. I'm sure there are other things that I have not found that Novell should address. And so, you know, I really hope that Novell takes just a serious look at their identity management scheme, their architecture, kind of what they're doing in that space. Since it is billed as a security tool very often, I just, I would prefer that they go and look at it as a security tool and kind of look at some of the security implications of that, do some documentation around how to not set it up insecurely. I just got my picture taken, so they now know where to find me. I do have very high respect for the people at Novell. Crispin, go to his talk tomorrow night. He's very smart. He's a great guy. And Ed Reed, who was formerly there, great guy. So Novell has some great security people. I just want to just think that they have pushed out some of the identity management pieces a little bit faster than their security could keep up. So what is this talk? Basically an attempt to convince you that identity management is basically just another asset on your network. It needs to be protected just like any other asset. Most of you should be, you know, aware of that. For the not quite white hat side of the crowd, you know, hopefully you'll see some things here to take an interest in. And yeah, I'd like for people to go out and start doing research in how to evaluate the security of identity management systems as they are becoming a lot more prevalent in corporate environments, as we saw by the show of hands. All this information is pulled directly from public resources, straight from websites. So, you know, nothing I'm saying here is acquired in any way that's, you know, not public. So this is all public knowledge. Okay. So identity management. Most of you seemed like you knew what it was. So, you know, basically what is it? Actually, let's start with what's being said about it. This came out, I think, yesterday or the day before. ISC sent this little quote around. It's a front burner issue for lots of organizations. Basically it's becoming a big security issue. People in the security space are starting to look at identity management as a security tool. Which is great. It's very useful as a tool. But like any tool on your network, it has some liabilities. And so that's basically what I'm trying to raise awareness about. Theory of IDM, basically you have two systems, generic systems, basically, that hold user identities. And they're connected in some way by some meta system. And that's your identity management system. The identity management system continuously manages your identity throughout the whole life cycle of a person's identity. Provisioning, updating your authentication tokens, granting you authorization within those applications or systems. And it should all be done with the audit and prove repeatable. That's basically what IDM is. Specific products, should all be familiar with them. Who's running identity management? This is just Novell's customer list off of their publicly facing website. So there's a lot of developers, you know, a few of them. Universities, banks, hospitals. Lots of people are using it. Yeah, just do a search on identity management on the RFPs. Lots of government entities are using it. So worst common configurations, you know, typically when you think of identity management, you think of, or a lot of times people will think of an HR system connected to some sort of enterprise directory, which is then connected to other systems. And it's all automatically provisioning identities, controlling where there are. So, you know, HR database going into your directory. These are kind of some of the common ones that Novell pushes. And they are kind of important, as we'll see later. Because it really does depend on how you set up these things as to how they, how secure they are. So, what are the issues? When we look at identity management system, kind of what are the issues that come up with regard to security? Complexity. Bruce Schneier said yesterday, you know, hey, complexity is the enemy of security or something like that. Don't quote me directly, but I think that's what he said. But basically, you know, if you have any big complex system, it's going to be pretty difficult to secure it. And identity management systems are usually very complex. You look at Novell's identity manager, for instance. You've got, you know, lots of pieces within the system itself. The systems, you know, by definition, you're talking about at least two systems. And, you know, these could be entire, you know, server stacks. It might be a Windows stack and a Linux stack. It might be, you know, on the same server, but, you know, a database system and an operating system. Or, you know, a database server and a directory. But basically, you have at least two systems. Because obviously, you wouldn't be using identity manager if you're not trying to secure a system. You're trying to manage two systems. You also have management tools, because you probably want to manage the system somehow. So in the Novell space, that's, you know, designer, iManager, formerly console one. You have, you know, different ways of doing this. User-facing applications, very, very commonly, you see identity management being used to connect into some sort of user-facing application, some sort of portal, user self-service, you know, what have you. Very complex systems in and of themselves. And then, you know, you add on to this an identity management framework, and it becomes even more complex. And usually, you have systems in all this. We're dealing with identities. So naturally, they are going to be fairly high value, because this is, you know, usernames, passwords, or other authentication tokens. You know, if you're synchronizing certificates, you're going to be synchronized. This is where your authentication tokens reside. This is where they're being synchronized. So to break into the system, or any of these systems, is going to be a high value target. It also deals with authorization. So I want to make the distinction there. But, you know, these systems are automatically, based on business rules, determining what you as a user are authorized to do within a system. So, you know, if I can grant myself full access right now, I'm going to be able to do my rights, you know, then that's cool. I can break the system by doing that. And, of course, you're also very commonly dealing with HR systems, which contain things like social security numbers and, you know, other good things like that. So high value targets, very complex. And to be quite honest, a lot of administrators just kind of go, oh, it's Novell, it's secure. Oh, it's Novell security system. Therefore, it is in of itself secure. And they don't really take a step back and say, hey, how secure is it as an application, as a tool on our network? How secure is it? You know, best practices are out there for securing identity management. You can go download that off of Novell's website. Sometimes they conflict, and oftentimes they're very incomplete, I've noticed, as I've, you know, gone around set-up systems and as, you know, people have downloaded the best practices. So a lot of times people just, you know, don't really lock these down very well. So basically all I'm saying is it's a liability on your network, not a control. So let's look at the security of it. High target for attack. So, okay. So if we're actually going to exploit this, you know, we're going to have to deploy it. By the way, I should say I'm trying to get through, like, all the talking about things in about 20 minutes, and then we'll have about 30 minutes of some demos, and then we'll be done with it. So just some theory of exploiting it. Basically, how do you leverage complexity? Or, sorry. In a complex system, you want to leverage that to your advantage. You know, if you have lots of systems, these are usually in very large environments with very strict change control. So really the defender is at a disadvantage. The attacker is obviously at the advantage. Nothing new here. It was very much, or identity management very much is kind of a hot topic right now. I think the last couple of years has been, you know, kind of one of the emerging technologies. And therefore it's been rushed out by companies like Novell. And I'm picking on Novell, but honestly, go and look at any of the other ones. They're just as bad, if not worse. Actually, some of them are much worse. So, yes, I'm picking on Novell. And, yes, I'm picking on, you know, I'm picking on them because Novell rushed out their product a couple years ago. They've done a lot of fixes to it. But, you know, it's still, you can definitely tell the code quality is not there. Or at least it's not where it should be, in my opinion. When we look at an identity management system, we can attack it at a bunch of different layers, obviously. Most of the time, you're going to be having a network in between your systems. You know, sometimes you'll be doing all this on one box, but, you know, I'm not really sure why you would do that in too many cases. So most of the time you have a network layer. You can attack that. You have the connected systems. Basically, you know, you have a, you know, one of your systems might be a Windows system. So you have, you know, the entire Windows stack you can attack. It might be a Linux system. You have the entire Linux stack you can attack. Database directories, you know, what have you. At the application layer, so the actual identity management engine that's going to be running the whole thing. You know, the engines just code. It has vulnerabilities. It has bugs in it. So do all the agents that run all these connected systems. And the management tools themselves also have a lot of bugs. So you can attack a lot of places in the actual system itself. And then the next layer down, the rules themselves. So someone has come in and said, hey, here are the business rules for this organization. We need to codify them. You've then coded them into some sort of logic that the identity management system can understand. And often these can be exploited. And we'll show you some examples of that. So now I'm going to start picking on Novell because, you know, they're what I know. But again, I do want to be very clear. Novell is a great product. I do actually like a lot of their products. I'm running SUSE Linux right here. Microsoft's identity management is nightmare. It's a nightmare. It's a nightmare. It's a nightmare. It's a nightmare. Anyway, we won't even go there. So anyway, I pick it on them. But, you know, these are just some examples. And I really do want Novell especially to better their security. So that's why I'm picking on them. Why am I presenting this stuff? Basically, I think Novell has made a few poor decisions in their architecture. You know, whatever. They made some decisions that aren't really clearly documented. I find a lot of people, a lot of customers will go, they'll implement, you know, you know, the system as they think is best. And they don't really have any instructions on how to set up things securely. There's really few, very few best practices. And so they end up just setting it up horribly insecure as a result. And even when they do follow best practices, there are still a lot of ways that the system can be exploited, you know, whether or not the best practices have been used. So we'll look at a couple of those. And so, Minimal Novell Identity Manager System. You have eDirectory. You have the Meta Directory Engine, which is a big piece of code. I think I go into that. Yeah. So I'm going to cover all these more in depth. Meta Directory Engine is basically a set of Java libraries or native code libraries, depending on the exact platform. eDirectory loads them in and it does a bunch of rule processing and stuff for you. Within the identity management engine, there's the concept of drivers, which are pieces of rules. There's XML rules, along with a native code component that translates the output of these rules to native code or native application calls. And as I said, the driver rules and a shim, which is basically a Java class, which has a publisher and a subscriber. All right. Remote Loader, because it is running on a remote system, does have a lot of interesting characteristics. So the Remote Loader is basically a miniaturized, actually it's not a miniaturized engine. It's an application that loads the shim in so that it takes XML and translates it to native application protocols. It basically connects to the IDM engine over the network, password authentication for it, and it uses an XML-ish protocol to communicate with the engine. So hopefully as you're sitting there, you're kind of getting an idea of how complex these systems are, if you weren't aware of it. So how are these systems typically used? Basically, you kind of have your standard HR database, you know, often running on a Windows platform or, you know, an Oracle platform, something like that. Usually it has a Remote Loader out there, which is basically psyching things out of HR, putting that into some sort of enterprise directory, or putting it into your e-directory, in Novell's case. And from there, you're synchronizing out to different directories, different applications, that sort of thing. And there's usually this flow from HR to the Identity Vault, and then, you know, you synchronize from there. Which has its own security implications. I mean, you know, spot where your security concerns would be. Another common configuration, basically, you know, you have Novell admins that do all their work in your legacy NDS tree, that gets synchronized to MetaDirectory, and then that gets synchronized out to some sort of self-service portal, what have you. This is a fun one. Bringing Novell into an Active Directory environment, or, you know, if you made your environment. You know, some CTO says, hey, we're going to start doing Novell stuff. And so the Windows admins keep doing everything in Active Directory and it automatically synchronizes over to your Novell directory. But this has some common ‑‑ I mean, there's some problems with this, right? Because is Active Directory and eDirectory equally secure? They can be. I think there are ways that you can set up Active Directory to be secure. I was ‑‑ back when I was working for a consulting company, we went to a bank where it had this exact set up. We didn't know at the time. It took us about 45 minutes to compromise Active Directory, get an admin there. That's because ‑‑ 45 minutes because I had my firewall on on my TFTP server. Took us about half an hour to figure that out. So we got domain admin on Active Directory. Couldn't figure out how to get into eDirectory. You know, we're sitting there banging on it. So we tried, you know, the admin user that we created in Active Directory. You know, we thought, hey, why not? Let's give it a try. And lo and behold, it was there. Automatically synchronized across. So we actually had an admin user in eDirectory as well as an admin user in Active Directory because identity management system had very nicely synchronized that all across. So that's just something you have to keep in mind of, you know, the further upstream you're going with your identities, the more careful you need to be about how the systems are going to be broken into and protect them better or put in business rules to protect yourself when they do get broken into. So choosing your targets, obviously, aim high in the identity flow because you're going to have better payoff. If you compromise the HR database, then you can basically create any user you want in the system. Whereas if you're, you know, compromising one way down at the end, you know, who knows. Maybe it might synchronize back up. It might not. But this is going to be different from every environment. So I'm not saying you're making, I'm not making any blanket statements about the, you know, how you need to set out your network. But you just need to make those decisions, keep those security implications in mind as you're laying out your network. Just real quick, wanted to go over the security best practices from Novell. There are some really good ideas here, things you really need to do, and some things that you really don't help you at all. So their number one thing, use SSL. Absolutely, use SSL. It makes it a little bit harder to do certain types of attacks. It makes it impossible to do other types of attacks. And, you know, it's a good idea. It protects the confidentiality for someone just sniffing your network. Monitoring control access to your driver sets in your tree. Obviously, by default, very few permissions on those objects. So you should monitor them. Don't allow too much information, your password hints. If you're doing password self-service, force password changes. Follow industry best practices for security measures, such as blocking unused ports on the servers. Wow, that's a nice statement there. Designer, if you're using Novell's designer, which is kind of their management design tool as well as a management tool. In that case, you should limit your consultant's rights in your tree. Not sure why you only do that with designer, but, you know, that's what the best practices are. Control your project files. Basically, this is a fake application running on your consultant's laptop. It stores the passwords. We'll cover that later. And don't use encrypted attributes because designer can't understand them. There's a great security best practice. Tracking changes to sensitive information. Basically, you know, audit things well. All right. So that covers the theory. Exactly 20 minutes. Let's talk about how we would actually go about doing some bad things to one of these systems. What would be the goals that we're trying to do? I mean, you know, we talk about exploiting a system. What are we actually trying to do? Someone yesterday was talking about how, you know, the goal of your exploit is the data. I think it was H.G. Moore's talk. Excellent. You know, the goal really is your data. I mean, it's whatever data you're trying to get at within the system. But to get at that, you need identities, you need authorization, and that's what you're going to be attacking the identity management system to get. So one goal is to just gain an identity. You know, if you can create your own user, great. If you can get a user created in one of the connected systems, you know, great. You know, not as much access there, but, you know, you still have access. Exceeding your authorization. You know, if you're an employee, you know, the identity management system says, hey, you're supposed to have access to these files. If you can, uh, escalate that up and exceed what your authorization is based on system rules, great. Stealing someone else's identity. If you can steal their authentication tokens, you can become them on the network. Not that difficult to do. And basically violating the integrity of the auditing system. So that's our goal. You come into a network, how are you going to actually find out whether or not it's running identity manager? You know, maybe you're going to have to do some sort of, you know, maybe some of you guys work at companies and you don't know, actually, if you're running identity management at your company. Or you've broken in over the Internet and you don't know if this network has identity manager installed. First thing you're going to look for is if you can, you know, publicly browse the LDAP directory, you can search for the object class. Object class is by default readable by anonymous. So, you know, you can, anyone can anonymously connect to your LDAP ports and look for, you know, object class equals directXML driver. That's a dead giveaway. If you come up to an iManager server, there are a bunch of web pages that you can look at. If they don't have identity manager, which, you know, formerly directXML, they don't have that installed. They don't have the plug-ins to manage their identity management system installed on that version of iManager, then these will come back with 404s. If they do have the plug-ins installed to manage identity manager, you get 200 coming back. So, you know, it's an easy way to find it. Remote loader. Your remote loaders, so there's little applications that are basically just, you know, translating XML to native code. By default they run on port 8090. That's kind of the default start one. And then if multiple remote loaders are running on a system, it will just increment up the ports. So looking for open ports on 8090 and above is cool. But they are only open when the remote loader is listening for a connection. But the engine has not actually initiated that connection. Once it does that, then the remote loader only talks to the engine and doesn't listen to the network. And that does not return or returns a closed port in that case. Lastly, file system. You know, I don't know how many people have access to their Linux servers that are running directories. But, you know, if you do, userlib directXML or CNOVEL remote loader, just two of the places you can look. Okay. To find the installation. So these are complex systems. Lots of systems involved. Obviously you can do Windows exploits. I mean, you know, name an exploit and you can probably exploit a component of an identity management system. But, you know, nothing new there. Exploits in the actual identity management system itself. So in the actual code that manages the identities. That was interesting to me. You know, saw some things that looked a little bit ugly. As I mentioned, code could be a little bit more complex. But you know, code quality looked a little bit poor to me. So it was something I kind of took a look into. So again, you have med directory engine. You have some shims. You have a remote loader. Lots of good stuff to ‑‑ lots of good targets to look at. So three slides back, I kind of mentioned, you know, very trivial denial of service which, you know, very simple basically. We have a ‑‑ remote loaders running on a remote system. So, you know, a lot of reasons to the network. But as soon as someone connects it to it, it turns off. So, you know, Netcat, great denial of service tool. Just connect into the port if you see it open. And it ‑‑ basically your engine can no longer connect in. As long as you don't send it anything, it will hold that port open for forever. Just waiting for you to initiate with your password. So if you open the port, basically the whole system can never ‑‑ can't talk to the engine. Why is that a problem? Obviously if you're, you know, going to be deleted from a system and you know that, denial of service is pretty critical because if you can deny service on that connected system, then obviously you can't be deprovisioned, you can't have your authorization changed, and, you know, whatever access you have on that system, you're going to maintain because you can't get updated. I was going to demonstrate that, but, you know, oh well. Ran a fuzzer on this, you know, we're connected over a network. Let's look at some fuzzing statistics. Basically it took about a minute to five minutes to crash the remote loader. When we were doing a pure Java remote loader, so the remote loader was pulling in a pure Java library, basically Java would just get so confused and couldn't tell, you know, one side thought it was open, the other side would try to connect and it was closed and all sorts of confusion there. And basically we'd just come to a halt, not be able to resolve itself, after about five minutes. You load in an actual native code, like the Active Directory driver, you actually crash the application in about one minute. I do have dumps, if anyone knows how to write good exploits, talk to me. And about 20 minutes to crash the engine. Basically if you're fuzzing the engine side, it took about 20 minutes for the engine to just go all weird. Again, very heavy use of Java, so, you know, I don't think it's going to work. So, you know, I don't think any of them can be used for a, you know, remote exploit, but you can definitely throw into weird states where it just doesn't know what it's doing. And I did not get around to fuzzing the XML definitions that are actually held up in the directory, so directory objects that contain all these XML files. Been trying to do that, but I have to run my own fuzzer for that and haven't gotten around to it yet. Oh, dxcommand, which is kind of the command line utility that uses to, that uses NCP to control the driver functionality. Yeah, it basically choked on the first packet that got fuzzed, so it would just quit with the Java dump. So not real reliable, you know, for something that's really managing all your identities, not all that reliable. So, you know, let's say we can't fuzz things. If we own one of the systems, if we actually control your identity management, we're not going to be able to fuzz things. We're going to control the metadirectory, so the e-directory. We can just go and change the business rules pretty much any time we want. Of course, if you're an attacker, you go in and change the rules. That's pretty much, you know, it's pretty obvious. And you have to have admin in the e-directory. So, you know, not too useful, but obviously someone who's attacking your identity management system, they can do this. And what controls do you have in place to prevent someone from doing that? That's a question you can answer. Modifying the system. Modifying the system libraries and the applications that are up there. On a Linux stack, you know, running my demo system, I'm running OES here with e-directory. Good default permissions in the directory. Great, you know, file permissions are very tight. We then go over to Windows side and full control is granted to everyone by default after a default install. So I had a little fun with that. Basically, I thought, hey, you know, if I can create my own shim, you know, without anyone noticing, since full control is given to everyone, so, you know, me being everyone, I could just log in and change out the shim. Why not? So in our test tree here, basically we have a remote loader, remote console here, which is, you know, just controlling the connection between the server and the server. So we're going to make some connections to our different remote loaders that are running here. One of them is conveniently named driver to be Trojan, which is just to limit text driver. It's up there in our tree. I can ‑‑ yeah. Wrong way. So it's, you know, just driver running in my tree. So what do we do? Basically, when the remote loader starts up, it reads novel remote loader lib directory, pulls in every single jar file, uses that as your class path, and then if you look back at any of your ‑‑ the properties of any of your remote loaders, the Java class that's supposed to be called to initiate this shim, it's listed right there. So two things we need to do. We either need to swap out what that class points to within this directory, which is a little bit difficult. You get into some, you know, files being logged in and out. So we're going to swap out what that class points to within this can see the information that it has been logged and stuff when you try to swap that out. Or you just change them all. So that's, you know, just wanted to demo that real quick in case someone doesn't quite believe me. Basically, went and downloaded the driver SDK from Novell. Compiled my own driver, added in a little bit of code that wrote a file to a ‑‑ writes out a file to the C, you know, the root directory. I'm not a Windows person, so if I talk a little bit UNIXy ‑‑ sorry. So basically it writes the file out to your C directory. directory and then starts up like a normal driver. So we'll just copy that over since we have full control on the lib directory. That's cool. So now we have to make sure that when the driver starts up next time, it points to the right class, it points to our hostile class. So we'll go conveniently, our remote loader told us what the config file name is, which was config. So there is our class. Just swap that out real quick because that's fun. We'll save that. And obviously this is loading memory, so it's not looking at the config file right now. Like I said, after I fuzzed this a few times, it's not that easy. It's not that easy. It's not that easy. It's not that easy or not that difficult to crash one of these drivers. So causing a denial of service on these is far too easy. But for demonstration's sake, I'm just going to stop it. So our C drive, no weird files there. So let's start up our driver. And demo gods do not. There we go. So woohoo. Basically what it did, start up the driver, driver, my custom driver, run out of file to the C drive. And it's running as local system, so basically you can do whatever you want. And you know, some admin actually going to notice this, you know, they would get in their log files that, you know, hey, maybe the remote loader restarted. That's about it. So that was fun. Go build your own by go downloading the SDK. Just use amp to build the default examples there. And add in whatever you want. So we wrote our own shim. Can we write our own remote loader? You know, that might be possible. I looked at that, said, you know, hey, basically the engine is going there. It's, you know, it's given the IP address or, you know, the DNS name of the remote side. Can we write our own? That's going to mimic that and do some password stealing. I tried it out. One of the things I had overcome was, you know, basically they recommend to use SSL on this. But kind of get to that. They use it in kind of a weird way that basically SSL is used to authenticate the engine. But it's never used to authenticate the remote loader. So even if we're using SSL, we can get around that. Because it's not going to be a problem. It's not cryptographically protected. It's just authenticated by password. And there's basically two different passwords that are used. Your driver object password and your remote loader password. And your remote loader password is actually used in two different ways. One for the command, well, command window that actually controls the driver. And it's also used for the engine connecting in. So pictorially, hey, your remote loader is there. Listen to the network. Cool. Password authentication, when the command piece goes in and tries to connect to your remote loader, it does this great cryptographic challenge response. It takes a time stamp and it hashes it a couple times. You know, verifies that both sides know the password without overpassing the password over the network. Beautiful. That's how it should be done. When we're talking about the connection between the engine and the remote loader, the first thing that comes to mind is the fact that your passwords get sent in clear text. I don't know why. But anyway, they do. So because of that, we can write our own little Trojan. One thing I just want to point out, many people use the same password for these multiple passwords. And nowhere in the Novell documentation does it say, hey, use different passwords for these. So every Novell train you go to, most Novell consultants I've talked to, they always use the same password for the driver object password. And that's because the driver object and the remote loader. Bad idea. Because your engine is saying, hi, here's my password. Now authenticate to me. And if you're coming back with the same exact password, that's, you know, that's just too easy. So, you know, it's easy. So because it's easy, I decided to write a little tool to do it for me. I have a little server I'm going to start up. I'm going to start up a server. I'm going to start up a server. And then the other thing I need to do is basically, you know, there are many different ways, ARP spoofing, DNS redirection, you know, plenty of ways that you can get a, get, you know, redirect where this engine is talking to. For demo sake, because the demo gods hate me, I'm just going to go in and change the IP address. If it ever decides to load. So I'm going to do that. So, ah. So, formerly we're connected to our remote loader directly. I'm just going to change that to go to my server, which, 10.4. I'm just going to go to my server, which, 10.4. And, ah. So as soon as you make a change, it's going to restart the driver. Woo-hoo. And, ah. Let's go see what we got. We didn't get anything. There we go. So basically we were just listening to the network. The engine said, hey, here's my remote loader password, and please authenticate me and start talking to me. I basically 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 use that for my driver object password. And so I passed it back using the right protocol. And it gave me a success message so I know now that my passwords are the same. And it prints out here. This little tool here will be up on or will be pointed to. I haven't quite figured out a good place to host it yet. But I hate novell.blogger.com. I'll put it up there. SSL, you know, again, I'm just going to mention novell does some great things with cryptography and every once in a while you wonder what were they thinking. So they've made it very, very difficult to talk to remote loader as a fake direct small engine. But it's really easy to talk to it as a fake remote loader because there's no cryptographic authentication of the remote loader. It's physically impossible to load a certificate up on the engine side. And so that makes it all possible. However, they do use a really funky version of TLS. So I'm still kind of working out that to get this tool to run under SSL. But it should not be a problem. Like I said, it is possible. Okay. Using the rules. Basically, to actually, you know, figure out how you're going to use rules to your advantage, you know, you have to know what rules are up there. Fortunately, you can just do an LDAP search. You don't have to do a lot of research anonymously on your directory tree. And by default, you can get back the names of all the drivers, because, you know, it's in your CN. You know, it's in your RDN. So pretty much anyone can go there and read what rules you have defined for your IDM installation. And they can compare those to the default rules. Because, you know, most people go, they download the drivers from Novell, they use most of the default rules, they change a few. And so people can basically read what your business logic is based off of just an anonymous search of your tree. All right. All right. All right. All right. unless you turn that off, which I highly recommend. So, for example, if I go up and read that you have an Active Directory driver up there, and I know that Active Directory driver by default matches on full name, and I can troll one side, obviously I can start exploiting that by exploiting the default business logic that Novell gave you. And obviously if you have some custom logic in there, I'm not going to know that as an anonymous attacker, but as a reasonably tech-savvy person in your corporation, I can probably make some good guesses at it. Exploiting the rule of processing. This is another fun one. Basically your shim is taking XML code, translating it over to native application calls, and different drivers handle it differently. Every single one of these shims is written by a different person. You have vastly different code quality. I happen to have done a lot of work with the drivers, with JDBC and doing database connections. So I had some fun with it. And basically by default, if you just do a default install of the JDBC driver, this nice little rule comes in there, where it takes your common name and uses it in an update statement on your SQL server, running as DBO. So hopefully most of you get where I'm going with this. And within the next ten minutes, we will... ...quickly demonstrate a SQL injection in DirectXML processing. So, I have a little table here, this is my default database. Basically just a default install of the database, straight from Novell, so you can go and duplicate this yourself. I added in this little table for my little proof of concept. I'm now going to add in a user, there we go, to my directory. That one guy had a few special things added to him. And, let's see, so, got a few errors. And in this table, hello DEF CON, yes, we have SQL injection in your driver. This is a default driver from Novell. So anyone using the default driver from Novell should check up on this. SQL injections. Ch-ch-ch. Ch-ch-ch. Last one, passwords. A couple of different places that we deal with passwords, obviously, a lot of people use identity management for passwords. Don't use passwords. Okay, I can't say it enough, do not use passwords. They are the weakest form of authentication, but unfortunately a lot of you have to use them, so you don't have a choice. So, let's be careful. At least know what's, where your passwords are going. Using identity management for Active Directory, on the Windows side, you're going to have a password filter, which is basically just a little DLL that you've put in Active Directory, which says, hey, every time someone changes their password in Active Directory, write it out to this registry key. It does encrypt it. So if you go and look at it, Novell has not, I couldn't find out from Novell publicly how that encryption worked. So all I can say is, it is encrypted. Go and look at those keys yourself, if you can find a way to decrypt it. Cool. Write a utility for it. Universal passwords. So this is actually where my dislike of Novell started, and I have a rocky history with them as a result. But basically, they decided, as a company, to go with this whole idea of universal password, which was, hey, let's store our passwords in e-directory, instead of using this great hashing function that NDS has been using for years, let's store them just encrypted with triple-des. Okay. We're also storing the key to decrypt it, on the server. So that's a problem. If you're storing the encrypted version along with the key, is that really encrypted? We can debate that. But for the most part, it works pretty well. Basically, access into those passwords is controlled by a couple of factors. You have to be an admin. You have to have rights to that directory object, which is by default only given to admin. You have to access it over SSL. If you're accessing it in clear text, it won't give it back to you. And there's password policies that govern whether or not admin can read the password. Of course, admin owns these policies, and admin can change the policies whenever they want. That was kind of my reason for thinking that this was kind of a bad scheme. So as a result, yes, it is possible. You have your password policies. So as admin, I can just go in them and change them to say, hey, let me read them. I can then basically just go and ask the directory, say, hey, give me everyone's password. And I have them. Yes, this is what you're forced to use if you're using password synchronization with Identity Manager 3.0 or later. You have to use Universal Password. And Universal Passwords are just encrypted passwords. And encrypted passwords can be decrypted. I think I've hammered it enough. So that's, yeah, speaking of passwords, I mentioned Designer, which is that, you know, nice little management tool. It has an encoded password. And they do warn you about this. If you read the documentation, it says do not store your admin password in here. I was going to put up, I couldn't find my Perl script to decrypt it, but basically it's Base64 encoded, and you take the, it's basically a Base64 encoded string, and you take the first character of every three characters and move it to the last one, and then you just Base64 decode it, and you have the password back. It's those kind of things that just annoy me, because I'm a crypto guy, and, you know, you can encrypt things so easily. Why would you Base64 encode something and then do some transposition to encrypt it? I don't know. But, you know, those are the types of things I get mad about. So coming up on the end of this talk, I just wanted to say, whoever wrote The Art of Fuzzing, your proxy fuzzer is my friend. I found that tool. I love it. Great tool. Nice little Python script. Does great for fuzzing network connections. While I was in here doing this presentation, I wrote a little Perl script to go in and bulk update every attribute to, you know, a fixed string on your user, test user in your database. I recommend people doing this with things like, you know, common SQL injections, cross-site scripting. I didn't get to it because I don't have time, but, yeah, do some cross-site scripting, and try and view your user with iManager. You get some great results. But I'll have that script up on the website as well, or, you know, link to it somewhere, so you'll figure out how to do that. And fake remote loader, yeah, I'll throw that up there as well. Just go for it. Use it. Like I mentioned, yeah, there's several places where iManager just chokes when you rewrite people's attributes. It's pretty ugly. Novell Audit, another good application in theory, bad in implementation. Sorry, there's just been lots of bugs in implementation. And fortunately it's been replaced by Novell Sentinel. So, cool stuff. Really easy to fingerprint your drivers. User application. This is a huge application. It's your Linux server running JBoss with this entire portal application on top of it. It's kind of the new Identity Manager 3, if you're familiar with Novell. It was one of the big selling features of IDM3. And basically, again, it was just not the highest code quality. Lots of ugly things in there in the whole implementation. And I don't even have time to do all the write-ups on those. But, you know, maybe next year. And then Designer. I haven't even started looking at Designer yet, other than, you know, the little password thing. So, lots of work to be done. Basically, I can't find anyone else there out here who is doing research on the security of identity management systems. So if you're out there, please talk to me. Because I'd love to bank some ideas off of you. But, yeah, I'm out there doing it by myself at the moment. And would love some help. We don't really have much time. But basically, you know, whatever background you come from, you guys might think I'm crazy. Maybe I am crazy. Maybe I just think this is bad design because of some personal flaw. But I don't know. Maybe I'm way off. Maybe I'm right. Who knows? You guys can make up your own mind. So, conclusion. Hopefully, all you guys who raised your hands saying you're running Novell Identity Manager, you're aware of some ways people might exploit your system. Maybe you can go back and, you know, just put on your security hat, take a look at your system, and remember it's not invulnerable. Yeah, I hope Novell takes a look at their own stuff. And I really do hope someone out there sees it. And I have one minute. And someone else, you know, comes, joins me, doing some fun stuff. That's it. I have some more stuff I skipped. But, you know, that's what the Q&A room is for afterwards. So, thank you. Thank you.