Good morning. First announcement, I got a list of announcements here. Tommy Pickles could not make it. I have his presentation here. I read it in Albertsons and I think I could do it. Second one, does any, like those people who have this badge, you know everyone has this badge, right? Has anyone figured out the fourth clicking on it, like the Mars code that's coming out of it? That's wrong. It says welcome to QueerCon. The fourth, or the third thing that I want to do, and this is really asking you guys a lot, I really want to see if we can get a wave going. Because no one's done it yet. So if we could do, like, we could start it from either side. I think this side looks a little ambitious. If we want to try to do the wave, it would be so awesome. Thank you, guys. All right. Good way to start off. All right. This is 802.1X Networking. Does anyone know what 802.1X Networking is? Can I get a share of hands? All right. That's a good portion of you. So we don't have to do this then. Who wants to talk about Jenny McCarthy or something? All right. If I'm not speaking loud enough at times, just yell. This is a pretty loose thing. I think we know each other well enough that we can yell at each other. Who is Tommy Pickles? Well, did the DEFCON Cannonball run for, like, four years until he got a DUI in Las Vegas. It's not that funny. Fifteen years doing computer stuff. MTV, Google, Nature Magazine. And that guy's a media whore. If you haven't seen him on TV, you probably don't live in any of the countries that speak English. Okay. What is 802.1X is one of the things we're going to talk about. Why do we use it? How does it work? What is required? How do you set this up? What problems exist? Can the problems be fixed? And we'll try to answer as many questions as possible. All right. I'm really, like, dry mouthed for a moment. All right. All right. All right. All right. I just got this one last night from, yeah. It stays in Vegas, stays in Vegas, right? Port-based network access. Basically, 802.1X is a way of securing network access and doing authentication over ports. It's not a wireless spec. A lot of people confuse 802.1X as being a next generation wireless. It's not. It's an IEEE spec that was created for wired, you know, Ethernet. It could be used for automatic VLAN assignments, which we'll talk about a little later. And obviously, it could be used to secure access, especially on wireless LANs. Wireless example on why we would use such things. Well, if you don't know already, WEP is very insecure. And this is the thing that everyone uses for network access. They'll use MAC address filtering and all that stuff. It's so easy to break. Wireless, of course, with replays and stuff like that. So, you really shouldn't use WEP at all. It also slows down your encryption on your access point just by using the encryption on the access point. 802.1X or TKIP, you know, WPA TKIP is not open to replay attacks. So, that's another reason why you should use better encryption. I could go through a lot of these things and talk about WEP. It's very useless to really talk about WEP and the man in the van kind of stuff, because if I could stay outside your business long enough, I'm going to generate so many IVs that I can actually decrypt your traffic really easy. So, it's not even worth even covering WEP. These are all of the tools you can crack wireless with. One of the things that's really funny, if you haven't seen it. And I know it's really hard to copy the tiny URL on the bottom, but there's a really funny video where they actually crack a 40-bit WEP off of, like, a Mac laptop in, like, I think it's, like, seven minutes or something just by doing replay attacks. So, you could show it to your bosses and say, the wireless is insecure here. Watch this video. And it has a cool, like, techno loop in the background so you don't get really bored. And also, let me give a little bit of background information. So, let me give a little bit of background to, like, props to, like, the Shmoop people, because Air Snort is pretty cool, especially since it does work on Windows as well. So, if you're going to run a packet, you know, capture and try to crack WEP, Air Snort's pretty good. If you want to go, like, really better than that, I'd actually suggest Backtrack. Backtrack's a really cool CD, if anyone knows what that is. It was actually made from Whopper, but they switched to Slacks for the OS. And you put it in, and it's really cool. So, yeah. It's just great cracking CD. All right. Wired example. Why would we use 802.1X? We're going to want to force unauthorized users into, like, a guest VLAN. Or an example would be, you have a large company, and you have conference rooms. And I come in with my little Ranch One bag or, you know, Pizza Hut bag. You don't know what's in it. And I'm walking around the office. I could drop a laptop in the corner and just start capturing packets off your LANs. You're going to want to force any unauthorized MAC addresses or things without a supplicant into a guest VLAN. So they only have Internet only. The other thing you can do is you can take your wired assets, such as, like, an employee workstation. He works in N. You have a salesperson. And you want to swap those two seats. You don't actually have to call networking to swap those two people and put them in different VLANs. You can automatically do that stuff. All right. I already pretty much covered this. Basically, I work for a company. A.K.A. MUGO will call it. I don't want to disclose any information. Some smart people out there. A lot of employees, sales, HR, IT departments. The problem is you want to be able to move these departments. You might have, like, 300 people in a department. You move them from from one floor to another, it's really hard to keep VLANs in track. So you might want to do something like have all these supplicants authenticate against a switch, and then you can actually switch them from floor to floor without even dealing with networks. What's required? Anyone have any questions yet so far? Like they don't understand or whatever, you know. Every OS, this works with everything pretty much. What's required for 802.1X network? You have to have a decent switch that actually supports 802.1X. You can't just buy a NIC gear and it's going to work in an 802.1X environment as an authentication switch. You're going to have to get something more like you know like HP or you know like 4000 whatever switch the access points a lot of access points out there will support 802 one X but the the wireless access points here tend to be a lot less favorable of 802 one X if you go to like Dublin or something like that pick up one of those neck ears they always support 802 one X so I don't know why other countries are ahead of us on the curve for security but that's the way it goes radius this is what you're gonna use to do a lot of your authentication there's a lot of different radius servers I recommend free radius because it says it right in the title it's free there's funk radius NT and radius X funk was just acquired by Cisco I think about 2003 Juniper thank you so obviously it's a good product they also make client software there's a lot of free client software out there X supplicant is what you'd use on Linux OS 10 has its own client Microsoft has its own client and you're gonna need a switched environment 802 one X is heavily dependent on arping and MAC addresses you can't run it in a broadcast network it's you can't even run it through multiple switches unless you're a funny excuse me I got like really dry mouth lame Hefe for that if anyone you know knows Hefe switch environment because you basically have to ensure that that node is that node all right how does it work I'm not gonna read through this whole rigmarole but basically it's passing authentication credentials to your authentication server it's you your switch isn't really doing the authentication it's the radius server that's doing the authentication it's only passing the credentials back and forth and then authenticating you on that switch basically this is how it kind of looks in a whole diagram what it's actually doing think of the authenticator as your wireless switch and your radius is obviously obviously doing your authentication the supplicant is going to be your your node it could be even a wired node it could be a wireless node it doesn't really matter and you're gonna pass some sort of credentials there which can be certificates or it can be username and password it's whatever you decide in your network and 802 one X can support a multiple multiple amount of protocols this is even taking it one step forward talking about how you can actually link your LDAP or your AD server to your authentication server to actually extend the authentication I'll talk more about how you can actually you know tighten up security and use LDAP servers later in the process presentation but this is just one one diagram to show you how everything actually works on different layers this I don't think you're gonna be able to read unfortunately because it's so tiny but everything's on the DEF CON CDs I tried to get as much in this slide as possible but it shows the authentication flowchart when you're actually using either a wireless node or a wired mode if you go through one one side of the the slide and you're wireless if you connect to the SSID and you exchange the right tkip and you're in the radius boom you can either at that point you're either forbidden or you get the proper VLAN and same thing on the wired end you could do the same exact thing I wish I had some music in the background or something so it seemed like this conversation flowed a little more how would you set up 802 1x the way you do this is you have to have a switch some sort of switch that supports 802 1x you have to have a radius server that's very important and like I said you could get a free one you got to configure the secrets for the switch to talk to your radius server and I would do this through a very secure tunnel because radius the way it talks it's not very secure and you could talk to the SHMU guys they have a great presentation on radius insecurities you want to configure your authentication on your radio server you could support like MSCHAP you can support MSCHAP v2 you can support LDAP it doesn't matter then you're going to configure the supplement on the workstation some of the stuff on the workstation they can configure is you can configure the supplement to actually use certificates you can do it through through TLS. You could actually do it through TTLS and only have the supplicant know what certificate you're authenticating against and then use username, password. There's 8 million ways of running it probably, but not really 8 million. There's probably 8 million minus 7 million, blah, blah, blah, blah. What problems exist with 802.1X networks? Laptop theft is one of them. I'll tell you a funny story about stealing laptops. Supplicant configs are in clear text on a lot of these things. And obviously the Shmoo guys have this presentation on how RADIUS can be attacked. All right. If the laptop gets stolen, you have all these credentials on the laptop. So one of the things that is a problem is a lot of people don't report laptop theft. And when they don't, they don't report it. I could clone the MAC address. I could actually copy the authentication stuff. I could just take the hard drive usually out of it and put in something else. Unless they're doing MAC authentication, still cloning a MAC is very trivial. If this happened on a weekend, you know, a couple goes to Barbados and they forget their laptop or think they forgot their laptop and I have it, they're not going to call work until Monday morning. And usually that security is not going to be there until Monday morning. So I have all weekend to break into that company. And if they have an Eng VLAN or that laptop, it could be huge. Supplicants that have it in clear text, X Supplicant on Linux is in clear text. OS10 has a supplicant also and that's also in clear text. And whenever you put your username and password in this, this is in the clear. And you can get to it through the file server system, which is true for most Linux and OS 10 stuff. A lot of stuff is in the clear. RADIUS can be attacked. Funny story, working at Moogle, we'll say, you might use a RADIUS server for more than one authentication. You might be using this for, say, one-time password, and also be using it for something like your 802.1x authentication. If you DOS RADIUS and cause too many connections because it's kind of limited with the UDP, because it serializes connections, you can actually take down the RADIUS server, and then you're not going to have any more authentications on your network. Can this be fixed? Yes. Laptops? Yeah, maybe. Subconfig, yeah. RADIUS protected from attacks, sure. And is there more ways of authenticating users to make this more secure? Sure. All right. I didn't write this in the slides, because this is just between us, OK? Talking about laptop theft, I worked for a company called MTV. You might have heard of them. They have a big security booth at the bottom and X amount of floors above them. And I had red hair back then. So I was a target. People said, how can you be a hacker with red hair? They know when you're coming. Well, they also get really used to you coming in and out of the building when you have bright red hair, and you talk sports with the guys at the security desk and all that stuff, and make them happy. I actually didn't work there for a whole three years. And still was coming in and out of that building, because they thought I worked there still. Because they're like, oh, that red-headed guy. So things we used to do, though, is we used to dress up as delivery guys for Ranch One and carry those bags that keep the food hot. Because when you go in the building, they don't stop you. When you come out of that building, they never ask to search that bag. So we'd have three or four laptops in there, just as a proof of concept. And then we would leave with them. There's a way of fixing this, and I'll talk about it in a second. Supplicants in the clear text. Mac OS has FileVault. I'm not a Mac OS guy. I don't know a lot of stuff about Mac OS. But one of the things when we were instituting OS X in a lot of, I mean, 802.1X. And the companies that had OS X in it, we were kind of worried that it wasn't clear text. And if a laptop gets stolen, we don't want the credentials easily off this laptop. So you might be able to use FileVault and encrypt the file system, just like Microsoft encrypts its file system now. And IBM has a chip on their computer, or Lenovo or whatever has a chip on their computer to do encryption. You might be able to just encrypt the file system. Linux is another issue. Linux is another issue. Linux, you might actually be able to write a shell script to GPG your credentials, and then un-GPG the credentials. And that might be another way so that you're actually putting in a really tight password to unlock your credentials. Radius, well, if you set up your networks properly, no one's going to be able to DOS your radius, unless they're inside. And if they're inside, you should know who is actually sending out this much traffic. You could just look at cricket grass and stuff. All right, more ways of authenticating users. This turns out to be the best thing ever. Because when you do set up 802.1X in a network, you usually set up the supplicant as a one-time, you enter the password, username and password, and it sticks in there, because you don't want the CEO of your company sitting there entering something over and over again that's a randomized password, because he's going to get it. He's going to get very upset at you. So what you do is you actually have it just boom. You put it in once and never take it out. Problem here is now if I steal your laptop through Rance OneBag and walk out with the MTV with it, you're pretty much, you left a hole open. So you have to get some other way of authenticating users. One way of doing this is you can actually connect your captive portal up. On your network. So they actually go through a web browser just like in any hotel and authenticate that user. And there's ways of doing it through like Active Directory and LDAP, but you could also even go further than that and use cookies or you could use some other way of letting that thing expire so the user has to do it again. And if you're doing it through Active Directory or LDAP, they're going to use a password that they've always used for their e-mail or whatever, so it becomes very easy, and said CEO doesn't get mad. And when they don't get mad, you end up keeping your job. All right. That's all I got really much. I ran through it because I think this should be more of a discussion, and I really got a headache. So I wanted to know what questions and what could we go through to really drill this thing down? Go ahead. Oh, oh, shoot. See? I actually went through my slides, and I thought I actually had that on my slide. OK. One of the things that we actually worked with for MTV is we used those proximity tags inside the laptop shell. Like if you open up a laptop shell, you actually, on the IBMs, you have a lot of area between the laptop and the actual screen, so you could put a lot of stuff in there. Now, when an employee leaves your office, they go through the Walmart security. It's a security thing, and it'll start beeping on them. And if it beeps on them, they have to actually show ID when they walk out. So it just helps determine who is supposed to walk out with a laptop. There's other companies, such as the New York Mercantile Exchange I just worked for. They won't let laptops leave unless you're authorized to do so. They'll actually take your bag, and they'll scan it through a, you know, like one of those X-ray machines. And actually see if you have a laptop in your bag. And then, if you do, they actually have to get some sort of authorization for you to remove the bag. Anyone else? Right over here. . . . . . . . . . True, very true. You can do username authentication from the machine just by doing the machine. The problem is when a user logs onto a machine, they're using their LDAP credentials usually using username and password. When you bring up the 802.1X client, you don't want to, or the supplicant, you're not going to want to actually configure that for the same username and password because now you're just making things a little too easy to hack. I know it's a little security through obscurity, but you're going to want to configure it for something different. You're not going to want your employees to type in something different all the time because that will get them mad. So instead, you create something that you can actually lock down to a time-based period of them going through a configuration. So you can take the Microsoft client and actually make it so that they have to enter a username and password each time. Func is actually doing their Odyssey client the same way. They're actually making it so you could not keep a password in there. So there's different ways of not doing the machine. You could actually be changing that password as much as you want, but it's a lot easier to authenticate the machine on the network and then do a captive portal than actually make the machine just have one factor of authentication like that. Does that answer? Okay. Anyone else? Questions? Over here. AUDIENCE MEMBER 4 quatre. Six. RADIUS, no, kidding with you. I believe you had a question about the guest VLAN being, when it falls back to a default VLAN, is that done by the RADIUS server? And the answer is yes. You could actually put VLAN IDs in your RADIUS. So when something authenticates against RADIUS, it actually throws a VLAN ID as like 101 or 102 or something. And that VLAN will actually be configured to your switch, what VLANs are actually thrown up. And if you don't authenticate, you could actually have it throw the guest VLAN from RADIUS or even from the switch at that point. Over here. . On the what switch? On the VoIP switch, it'll turn 802.1X off? . OK. There seems to be an issue, he's saying, with Cisco environment when you're using a Cisco VoIP. . On a phone, it'll actually turn off the 802.1X for that node, though, for that particular node. Well, see, in that, if you're using that, though, it would knock it back to a guest network. So I don't think, it depends what kind of network you're trying to hop VLANs. Does anyone work for Cisco in this room anyway? If they do, please raise your hand, because I want to talk some shit about Cisco. Cisco has gone ahead, and Cisco makes a RADIUS server also. I didn't include it, because they like to go outside the spectrum of the actual protocol. They actually run UDP over TCP, and that's to get more connections. So I don't use it. The other thing is, in a wireless environment, it's, I just, A, it's insecure. B, the LWAP stuff is, I think, a generation behind. The Aruba network that we're using for wireless here, even though I think we're getting overloaded, Aruba is awesome. If any of you guys are thinking about doing any really severe wireless, I'll plug Aruba, because Aruba is just friggin' amazing when it comes to next generation authentication. Had another question somewhere? . . the comment was, when you're running VoIP on your network, it's going to be separated from your data network anyway. Again, depending on who's configuring your VLAN. Like, I'm not going to bash any network engineers or something like that, but usually you're not going to have, I've never had VoIP in a network either, because there was no reason for VoIP. Alexander Graham Bell did a really good job with telephones. So I will never go to a business and go, you've got to do VoIP. It's really confusing. I do VoIP at home. I use Vonage, and I'm not going to give any of you guys my phone number, but the, I don't use VoIP in business, so those are great comments. And if I ever have to do VoIP in a business, awesome. Next question. I don't see any hands. Oh. The question is getting rid of hubs that might be in a network when you're trying to prepare for 802.1X. It's really hard to tell you. Like, a lot of engineers love to do the dual machine thing. And have their machines. And there's a lot of issues with that. So they'll want their actual switch. Most businesses, though, start running like four ports to each desk because they want to run their phone over Cat5 and stuff like that to do VoIP phones. But the only way to do that is actually put switches at desks and stuff like that. And try to keep switches there. You can actually. Be really hurt if you actually put broadcast stuff on each desk. Your 802.1X will work sometimes only. Like, you know, it won't work all the time. But if you have the other node come on there, you're going to see all the traffic and be able to clone that Mac and do a replay attack against the authenticator server to actually steal that traffic or hijack it. So the best policy is just tight with security. I just couldn't even name anything because, you know, it's not something that I've supported in a network. Over here. Say it again. A remote wipe. Yeah. A remote wipe. Say it again. A remote wipe. Yeah. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I've never used a remote wipe or even thought about that because by using a captive portal, when the laptop is stolen, they would have to authenticate again against the captive portal to get back in By that time, I should be notified by security or something like that, that they actually had a laptop. stolen because to get someone's username and password it it might be trivial in some cases you know like you know key loggers and stuff like that but the chances I don't think are enough reward for the overhead of trying to work out some remote wipe software for you know like wiping out the credentials up for 802.1x. that's true PG even PG P desktop I think actually works yeah you could use PG P desktop to encrypt the software on your laptop so that no one can get to those credentials anyone else over here yeah I he was talking about the low Jack's software for laptops. Also, there is another piece of software. It came out a long time ago. I'm not sure if it's still around, and you guys might remember it. The laptop actually gets stolen. There was one that actually had a modem dialer on the boot layer of the disk or something like that. So if ever connected to the internet or something, it would actually dial out and try to locate the laptop. I don't know if you could still use something like that because people don't usually use modems now. And if you do, good going to Alexander Graham Bell. Over here. No. I can imagine in the future if it was that kind of printer. Usually in a trading environment and stuff like that, I've seen that they always resort to a local printer and local devices that way. They don't use network devices. And if you were going to do 802.1X for that, there might be an actual node kind of thing like a switch that you would connect to it or something like a printer sharing switch or something. But I haven't seen anything come out like that. And the way that you would configure any 802.1X supplicants, I think there's just too many options in the network to actually have a shared device that actually uses 802.1X credentials. Because it's a firmware thing. And it's always changing. I mean, who knows when we'll have MSChap v3, which we should have coming out pretty soon after Vista. And that will be in 2020 or something. Anyone else? OK. . True. Again, he's talking about if you hibernate a laptop and you already logged in with 802.1X credentials, you're already logged in. So what stops you from going to another location or get back on the network if you steal a laptop? The one problem I see with that is when I hibernate, it asks for a username and password when I unlock my laptop. So obviously, it's going to secure my laptop. It's going to secure my laptop by default. And that should be set by a help desk department or something as a security policy. The other thing is, that's why you would use probably a captive portal in your network. Because for example, one of the companies I worked for had a four-hour captive portal. So after four hours, it would lock you out anyway. And you'd have to re-authenticate through a browser. And now that you're using a username and password in your browser, you would actually secure yourself from that laptop being stolen and used on the network again. Over there. Can you say that again? OK. The comment was, on a Cisco network, if you actually, uh, hibernate, it's going to force you to re-authenticate. If you have link state change, which, of course, would be in a hibernation, it'll ask you to re-authenticate with the network. How am I on time? I don't want to keep on. OK. You have like five minutes, 10 minutes, or something. So get them in when they're hot. Anyone? Anyone? Anyone? Over here. I hear two people talking. The guy here with the hat. Any captive portal software, which what? Oh, that I recommend using. No, the captive portal software, or the captive portal stuff, should come from your switch. Maybe I should have talked more about that. Your switch is doing all the authentication for you. Like, it's passing authentication back and forth. You're going to want that switch to support a captive portal. And if that vendor doesn't support a captive portal, they should be working on one. And again, I don't want to bash Cisco, but Cisco is really hard to get a captive portal working with it. You can do it off of a server, but now you're adding confusion to your network if you're not doing all your auth. Or. You're enforcing your authentication from your authenticator, which is going to be your switch. That's the way to do it. Someone else was talking over here when the question. I'd like you. I guess it was you over there. Go ahead. Again, it depends how you design your network and your firewall controls, whether or not you're going to prevent VLAN hopping. I can't go into the way I'm going to design a network here for VLAN hopping. We could be here for a while, and I don't have a whiteboard. Anyone else? We've got five more minutes here. Is there any . I don't understand. I can't hear you. Any authentication on the switches themselves? Amongst. To actually talk to each other, you're saying? Yeah, is there any authentication between the switches? The switch, in the networks I do, the switches don't talk to each other. Because they're all talking to the RADIUS server for their VLAN controls. The switches, I think you're talking about core switches, right? I don't know what switches you're talking about talking to each other. Yeah. Yeah. . Yeah. . They don't, though. That's the thing. You're not, yeah, they don't actually talk to each other that way. They actually, your switch is going to be a core switch anyway, in an 802.1X network. It's got to be a core switch, because that's what you're doing authentication through. You don't want other devices basically screwing up your authentication there. So your switch is actually a core switch, so it doesn't actually talk to any other devices. I think, unless I got one more, I'm out of here. All right. If you need to contact me, or Tommy Pickles, this is the info you can get him at. And that's pretty much all I got. And if you see me around, I'm pretty good talking one-on-one. This is just a lot of people. And I really appreciated you guys doing that wave. That was pretty fucking awesome. So thank you.