It's Sunday morning at 10 a.m. at DEF CON. Be amazed I'm alive. I didn't say not hungover, I said alive. So, everyone, I'm Dan. If you're expecting some, you know, second Dan Kaminsky talk, that's not at all what this is about. A couple months ago, Tiffany and N-Grain came to me asking for some data. For some reason, they thought I had DNS information. And I asked, you know, what for? And they actually explained it to me. And I'm not going to steal N-Grain's thunder, but it was one of those really classic, hacking is not about, you know, some crazy stunt you pull. Sometimes it's just about noticing something so painfully obvious. You're amazed it's never come up in discussion before. I was really impressed. I thought it was something that really should be at DEF CON. And I think we really do need to have more speakers, more mentorship in our community. So, I said, dude, come out to DEF CON, present your data, we'll all like it. And we'll all come and listen to you talk. So, that's what we're here for, and I will give the mic over to N-Grain. All right. How's everyone doing? Yeah. Thanks. This is my first time at DEF CON and presenting, so. Thank you. Thank you. Hi. N-Grain, drink. No thanks. No thanks. I'm all set. I am N-Grain, but my real name is Elliot Bradbury. Yes. Here we go. Well, first of all, I just want to say that while the information in my section of the presentation is specific to USM, we actually found that it applies to other universities, a lot of other universities. So, I don't want to make the impression that we're targeting the University of Southern Maine, because that's not what we're trying to do here. Okay. So, discovery. Well, I first connected to the USM network. In the spring of 2008, and it was on the wireless network on our campus. And I just want to start by saying, our campus is split between two cities, so it's kind of weird. One of the cities has all the dorms, and then there are some classrooms there. And then the other campus has all classrooms. So, when I say wireless network, I'm usually talking about the campus that's all classrooms that's in Portland. So, I first connected to that network in the spring of 2008, and naturally, one of the first things I did was connect to IRC, you know, just as usual. And, thanks. So, I was just hanging out, joining the normal servers that I do. And all of a sudden, I realized that people were addressing me with my full name. And I thought, okay, either I got hacked or someone's just playing a joke on me. And I did. I just dug around a little bit. It really only took a simple who is on myself and discovered that, first of all, the DHCP server that's used on the wireless network leases internet-routable IP addresses. Completely public IP addresses. And that, more importantly, the domain names take the form of firstname-lastname.wireless.usm.main.edu. And I was just, yeah, awesome. Thank you for that. So, later in the fall of 2008, discovered that the dorms, I moved on campus, so now to the other city, Gorham, and discovered that the dorms have a similar configuration. And in the dorms, you generally use the wired Ethernet LAN there. So, those, that network has a similar configuration. Your domain name is firstname-lastname.dorms. And your domain name is firstname-lastname.dorms.usm.main.edu. And actually, earlier this summer, I had to go into IT, the IT office on campus, to get some help with a separate issue. And I don't know if anyone uses Horde, the webmail client, but it logs where you last logged in from, the IP address or the domain name. And so, when I went into the office, the person that helped me let me log into my email account from there. So, kind of exposed that they're using even a similar configuration for their own IT staff. So, the domain names take the form of firstinitial, middleinitial, lastname.acs.usm.main.edu. So, even from within the IT network, they have a similar configuration. So, what does this mean, exactly, with these unnecessarily verbose domain names? It means that sensitive... Sensitive information is now unnecessarily public, and it's out there for anyone. You know, it just takes a simple reverse DNS lookup, and you have all this information. So, what information, exactly, does the domain name that is assigned to you when you connect to these different networks, what does it contain? Well, the most general thing, and pretty much unavoidable, is that the user is... Attending a main university. You really can't avoid that piece of information. More specifically, that the user is attending University of Southern Maine, and how the user is connected to the network. And if... Well, there's basically two ways that you connect. There's the wireless network, or there's the wired LAN in the dorms. And especially with prior knowledge of how the campus is set up, the split campus, it's easy to get an approximate physical location from your domain name, just from looking at it. Because there's either the wireless subdomain or dorms subdomain. And lastly, and most importantly, the user's full name is in there for everyone to see. So, the bottom line is that it's just an unacceptable policy. Why on earth are they using these naming conventions? Why on earth are they using these naming conventions? you access the network, when you log in, why is it like this? So at about the time that I realized that this was a really bad thing, I wanted to really do more research. So I decided to turn it into a class project for Tiffany. And this is when I started looking into how access is controlled on the network. The wireless network is not open to the public, so there are some forms of access control. So I remember when I first connected, I think I was using my laptop, you're required to log in with your university account. This is probably very common, probably any other college students could confirm that their universities do a similar thing. So basically, the first time you connect a device, you're redirected to a web page that asks you to enter your university account information. And at USM, actually when you go to the page, it tells you this is your MAC address, so enter your password. So it was pretty obvious that what they were doing for an access control system was they were pairing your MAC address with your university account. And so if you successfully authenticate, then that MAC address is permanently paired with your account, and it's also paired with a semi-static public IP address. I say semi-static because it's reserved for you, but they still use DHCP. And I want to stress public IP address, meaning that it's internet routable, you're not shielded by any edge devices. There aren't any routers in your way. Everyone's just right out there, completely public IP addresses. So after you go through this authentication process for the first time, subsequent access to the network is just automatic. You don't have to log in every time you want to use the network. And that's because you've already registered that device, you've already registered that MAC address. So there's this network-wide device registration database. And it somehow interfaces with the DHCP server so that it leases the correct IP address to you. So weaknesses in this access control system, well complete trust is placed in the MAC address as a unique identifier. Which isn't a bad thing. But it shouldn't be. Be trusted that it can never be changed. Everyone knows that you can spoof MAC addresses. Okay, so that's probably the biggest weakness here. The second one is why are they using global IP addresses? It just puts the user at an unnecessary risk and I don't, maybe someone can tell me, but I don't know why they use a configuration like that. Just doesn't make sense to me. Then the third weakness is that there's no port-based security on the LAN in the dorms, meaning that MAC addresses are not locked to physical ports on the switch. And it's pretty much impossible to do that on campus because pretty much everyone has a laptop. They register it in their room, run next door to their friend's room, plug it in there, go to another dorm, whatever. You just can't lock down the network like that. It's just too mobile. So potential for abuse here. What if you spoof your MAC address to someone else's that's already registered on the network? You would effectively impersonate that user and be able to do whatever you want basically under their identity. You could view questionable web content, you could do file sharing, whatever you want to do. And how could that be done? Well, basically what it would involve would be logging what users are on the network. And that's very simple. It's just you can basically sit there and passively sniff any kind of traffic and log who has access to the network. And that's pretty simple. And basically what you're doing is recreating the database that the university uses to see if a user is allowed on the network. So you're basically making your own copy so you know, okay, these MAC addresses are valid. And because of the domain name that gets assigned to you when you access the network, you actually have a list of full names and the MAC addresses that go with those accounts. So you can basically pick and choose if you wanted to. If someone wanted to do this, you could pick by name, okay, I want to screw Tiffany over so I'm going to take her identity and, I don't know, do some bad things, hack into some university servers or something. That's possible. Not that you would want to do that. That's a terrible idea. I'm just saying. It's possible, I guess. Okay, so kind of some unanswered questions here. The DHCP servers build these domain names and dole them out to the users along with their IP address and all the other usual information that DHCP does. But how exactly is the DHCP server giving you your subdomain? How is it adding your full name in there? How does it know what your full name is? So is this feature part of a DHCP package or is it something that the university has created themselves? Are they possibly pulling that information from their HR database or something along those lines? That's not clear, the back end, how they're getting your full name. I mean, obviously they have it, but is this a feature that's built into DHCP? I mean, is this a feature that's built into a DHCP server already? Why is each device on the network given an internet-relatable IP address? And most importantly, why does my host name contain my full name? Okay, so I created this proof of concept tool. It's just a network analysis tool. Very simple. You could actually kind of recreate it. You could create it with other tools grouped together. But it basically logs the MAC addresses and domain names, which contain full names, of anyone that accesses the network. And then, so once you build up this database, you can then, at a later date, scan the network, compare the two lists, see what hosts are online, which ones are offline, and that kind of gives you an idea of where you are. So you could go from there. And I'm still working on it. Work in progress. But I will make it available at that URL. And that's pretty much my part, Tiffy. Hi. My name is Tiffany Radden. I'm an adjunct professor at the University of Southern Maine. I teach in the computer science department. And I teach a class. Where we analyze technical aspects of computer programs, hacking networks, and then we look at the legal aspects of it. I'm also a licensed attorney in the state of Maine. And we found that having an ethics class required for all computer science undergraduates is pretty important. Because when we do look at network analysis tools, for instance, there's one part, does it work? Yes. Elliott's works fantastically. But then we look at other aspects of it. Such as. When Elliott came to me with this, this was his final project for my class, we were looking through the code. And I found out that it did something very interesting with reverse DNS. So who do I call but Dan Kaminski. And I was talking to Dan. We talked a little bit about what the tool did. And then we started thinking, well, the tool does this. What kind of legal consequences or relation can we make to how USM is handling this, University of Southern Maine, and how other schools are doing it. I got to say about Elliott Bradbury that's fantastic. He's one of the best students I've had in the computer science department. I come from Carnegie Mellon University where I got my BS. And yeah, great, thank you. And I'm very impressed with Elliott in this class. He is the result of a high school program that goes on in Maine. I don't know if it still exists, but it did when he was in high school, called the Tiger Team. It's where they teach high school students how to hack. And they learn how to break stuff. They learn how to fix it. They learn the vulnerabilities. And teaching kids on that level encouraged him to go into computer science in college. And now he's going to, I already know, he's going to be a fantastic security InfoSec researcher someday. So I'm just saying he's a fantastic product of a high school program that he took through into the college program. All right, so these host name equals real names are used at many universities. University of Southern Maine is only one of about 65 that we found. And one of the things that we started talking about. Okay, real names equals host names. There's some privacy concerns. What are those? And what types of federal law and privacy law affect those? And why, one of the questions we had is why do universities, some of them do this and so many do this. We were quite surprised when Dan was running some look ups how many we did find. So University of Southern Maine is in no way the only school doing this. There are quite a few. The first thing we thought about was FERPA. FERPA is federal legislation that the government requires universities to protect students. personally identifying information and that means that there's information that students such as in a directory by default most schools have it that if you sign up for school you go into like for instance a directory of who's at that school you can sign forms to opt out of that but often that means your name won't get listed on Dean's List for instance so FERPA is something that we looked at with this and a lot of schools need to consider that because when people's real names are associated with the host names if you think you're sending email and honestly like from an account that you've set up some some other username you're probably not it is something that if you're doing Google searches it is possible for people to find out who you who you are if they look so this information is coming outside of the university the way that it is set up and we thought okay what other issues can there be with FERPA? one of the the things is if it's considered to be directory information that the school's releasing and the student hasn't signed an opt-out form that's not a violation of FERPA but with this there is personally identifying information that is it's possible for people to find out a lot more about students than just this is their name and they're on the internet some of the legal issues we talked about is is why why why do schools have this set up and one of my specialties in addition to computer laws intellectual property and some of them use the we believe the digital mending Copyright Act it's one of the reasons why some schools do release this information when IT departments get takedown notices for instance very quickly they have a short window when they need to address who did this and send them a legal notice that this this information must must come down so I think that IT departments can use the We do set this up for in relation to how to deal with some of this copyright law This is something that is one of the most interesting pieces that I found about this project when I read Elliot's final project is that What can be done with this information? If your law school if you have a university of which your study and there is a law school there So there's something called attorney-client confidentiality and in the clinic setting in the law school the lawyers work or professors who are licensed practitioners take Clients into the program and you do real cases you go to court you make filings Privacy is really important. If you're one of these universities that has 65 that we found we're not releasing those names, but It's not very difficult to do as Dan's going to talk about some reverse DNS lookups to find who is doing this but if you have Confidentiality that needs to be preserved. It's difficult to do that for instance um for a hypothetical would be in a law school clinic if For instance if they're filing patents, it's very important when the patent system being first to file that You don't release any information about what the technology is if you're helping someone write the patent if you're in a clinic setting and The one of the attorneys working on the case has real name equals the host name and this is kind of going out to the internet Someone could watch and potentially find out what you're looking at and kind of piece together the technologies that make up the patent Alright one of the other issues we talked about is did they do this to combat anti well combat piracy? We were looking at some cases with the help I was working with um got a little bit of information from Ray Beckerman he's done a lot of defense for students and has a great database about rea cases and the The question we had is is it possible for someone to determine who in like a person's full a person's full name? Who is searching from music downloading music or movies? Where they're living and is it possible that you could get around warrants required or court orders for? for instance the rea or any organization like that to figure out who's doing what without having to go through the traditional warrant requirement and serve or get a court order and talk to the IT department at the university about that We one of the things that we want what I will tell you is Are we did not find a way that we could technically prove that? So when I say that it there might be a correlation and is it possible that the rea could determine? What's coming out of universities find out people's real names who's downloading what and then get the legal threat notices? Yes, it is possible. That's something that was one of the most interesting issues we had do we know they do it? No, we do not Dan and I were saying the only way that we could really figure that out is if one of us goes, you know Or for instance, I would probably meet me because I have an account on the universities at the university going down on like nine nine thousand Songs get on the rea's radar and then determined. Did they follow proper warrant procedures to find out my real name and Neither of us wanted to do that Yeah, pretty risky, especially with a lot of the the way that they're pretty severe fines now people are getting for this Oh, there's that it's illegal. I wasn't gonna do that. So we cannot find I'm not gonna get sued by the RIAA for DEF CON I thought you were hardcore. Oh Hey Dan, you know, I think Elliot might be able to set up an account for you. Why don't we why don't you give it a try? Yeah, I think he's okay. I am too. So we technically could not prove that The RIAA the cases that I looked through probably a hundred cases in the RIAA ones that were universities got legal takedown notice there are legal threats for students not necessarily takedown notices and All I can say is there there are quite a few that have this set up and One thing that's kind of funny is if the RIAA wasn't doing this before well Here we're telling you right now It's it's possible to do and whether you like the RIAA or not Um, this is information that we wanted to talk about and for instance also this applies to law enforcement If there any There it is possible to get information about what people are doing on the network. This is public information that's going out there This isn't your private. This isn't the question is is there an expectation of privacy? If your name is just going out saying I am searching for medicinal uses of marijuana It's something like that If there if there is someone under investigation This possibly is a way that you can get around getting a search warrant is just look what's already being out being put out there There is a privacy concern and Dan's going to talk a little bit more about that When like IRC chat rooms your real name host? I mean your host it comes right up red does reverse DNS look up And there's your name Xbox live he was mentioning does this too So if you think? You're at nice University and your searches are private They they probably are not and we found that this applies to both students and faculty members I did a little bit of research some faculty members their information is also being broadcast out All right, are there influences on the D and digital and Copyright Act? With the RIAA like I said, we're not gonna we can't prove that technically from what we've we've looked into But it would be disappointing to find that intellectual property law is affecting privacy and infosec. I Got to say I believe that Probably is and it's disappointing to see that some universities may have set up under pressure set up I'd say and where privacy isn't a concern because of copyright law and vigilant enforcement of that and Lastly I was about the DMCA. I mentioned already that there's a there's a takedown notice requirement IT departments are under a ton of pressure. You got to take this down You got to find out who this is? Or you lose your safe harbor provision and I'm working on a case right now where an ISP has lost a safe harbor provision Which means that they are going to be held civilly liable for Whatever it is that the defendant in the case is so ISPs are under a great deal of stress under the takedown notice requirements you don't want to lose the safe harbor provision unless you're challenging the DMCA and We talked about FERPA and one of the things that Dan might is probably going to talk about is What are some of the recommendations for what should schools do if you do care about if you are concerned about this issue? Maybe students should be opt-in You know if you want your name to be your host name let them opt into that instead of opt-out and if schools are going To have opt-out make the procedure Make the procedure very clear so that students and all students understand exactly technically what well technically explain the privacy implications of this and We don't want to say that the There is a correlation, but it's it is Well the REA could use this technology especially since we're talking about it And it's interesting after the school's been our well the school that we looked at has been our University of Southern Maine doing this for about ten years and so if the REA hasn't been doing it already Well, maybe maybe they can now and we're not supporting that. I'm just saying that that is it's possible with this information And I'm sorry. That's the last slide, but I'm gonna. I'm gonna have Dan Dan talk about what he did with reverse DNS lookup And his results. Thank you All right, so Just in case anyone in the room is not actually familiar with the the database being exposed to the data set being exposed Normal DNS traffic you have a name www.fu.com you get an IP address 1.2.3.4 in reverse DNS you have the exact Opposite you provide an IP address 1.2.3.4, and you get back a name Now usually this name is like the name of a computer and doesn't mean anything This case no, that's the guy sitting behind the terminal Which has actually a fairly amusing thing to populate inside of DNS In terms of being someone who's trying to use or abuse this data you pretty much have two choices Two different channels the first channel is to just sweep the net sweep by sweep IP ranges and see who's where So you take a particular university that uses the system you take their IP range you just sweep through DNS Reverse DNS and see what comes back and What are you finding out well there this list of students? They're on this campus Maybe you know they're in you know, North Main, you know this area main or that area main Yeah, it's interesting It's it's not It's not as interesting as the second mode Second mode is where you host some service on the internet You host a web page and ad network You you host or you're in part of a peer-to-peer network or you're playing Xbox live and in each of these situations The IP address of a university student is provided to individuals outside of the university that at that time the fact of what they are doing and who they are can actually be linked and actually be linked so an Bring up X box 360 because it's the source of what I thought was probably the funniest change to internet security in the last few years Some guys figured out how to monetize bot nats and And the way they figured out how to monetize bot nets was they rented you had 12 year old kids R renting bot nets to each other or providing sitting sets or letting students park into their room room R consoles and offices and other stuff like that because They rented patients on theirormant for the internet toxicity concerns and crime so you just don't have access to going �め so that that guy who was really pissing them off on Halo 3, well, they'd just go ahead and flood them off the internet for a few hours. I thought that was kind of amusing. It gets even more amusing when you realize not only that, but you kind of find out where the kid is and can look him up and send him a horse's head or something. You shot me too many times. So, you know, this is DEF CON is traditionally considered a security conference. And here we are talking about a lot of privacy implications. What's up with that? Well, this is really interesting. I mean, this has come up professionally in a fair number of audits that I've done. It turns out security work and privacy work, we kind of work together a lot. Consider something like a phone home. You have a piece of software that is calling back to the mothership for something. On the one hand, well, this is a privacy implication. Did you ask the user, is it okay for you to go back? On the other hand, it's an awesome attack surface, which is very often quite as vulnerable. So, you know, it is a relatively common instance during an audit where phone homes are found if you're doing it in a security context, you pop it over the fence to the privacy guys and say, hey, does this meet all the legal requirements? And that's the other thing. That's one thing that's really different. There are legal requirements in privacy. In security, it's pretty much us geeks that think something needs to be done. You know, we're all raw, raw. We want to see secure code. We want to see quality. No one really knows what that means. Well, no one knows what privacy means either, but that doesn't stop a heck of a lot of law and a heck of a lot of activism around I don't want anyone to know. It turns out there's in security, there's a thinking there might be a hacker and we should stop them if there were a hacker. In privacy, the assumption is always those bastard advertisers are selling my infos. So, it's a totally different presumption. It's a totally different burden of proof, and it does actually show up all over the place. There are there's an interesting implication behind all of this. Nobody is saying that use of the internet at a university should be fully anonymous. In fact, the whole point of takedown provisions and other things is that you should actually with some work be able to get back to the individual that that was behind the traffic. We seem to be wanting to have a system which can be summarized as in order to extract someone's identity, from the network, it should be difficult, but not impossible. Building systems where it's difficult, but not impossible for your personal information to be exposed is starting to prove difficult, if not impossible itself. Either you are fully anonymous and can't be tracked down at all, or there's a thousand different ways to get at your personal information. This particular path is a ridiculously easy way of getting at your information. And that's kind of where the concerns come in. There is a really interesting implication of the spoofing work. This is what I thought was really cool. I don't know if you guys noticed this, people really believe whatever the hell it is the computer tells them. They do a lookup, it gives them an answer, says, aha, I have the answer, I'm gonna go move on with my life. What Endgrain found, is that, you know, that it's actually really easy to do a look around, figure out what other people's MAC addresses are, and then later on, spoof those MAC addresses so you can actually assume their identity on the network. Now, I think from his work, when he was looking at this, he found this specifically in terms of just looking at what was on your LAN, and just saying, okay, well, whoever has the IP 1.2.3.4 has the MAC address of this. If I use the MAC address of this, I will now have their name. That's how the system works. Turns out that actually also works off LAN as well. You issue a query with a NBT stat, and one of the helpful things you get out of Samba, out of SMB, is, okay, well, here's the user, here's the shares, and by the way, here's his MAC address. Which, it turns out on this network, lets you go ahead and assume their identity, to appear as them. It's bad enough having people think IP addresses are IP, their identities, but what happens if any kid can just go ahead and appear to grab a bunch of porn, or grab a bunch of problematic content, or do a bunch of attacks, and stick his buddy, or not so much his buddy's name, all over it? That's going to be lawsuit bait. That's going to be really easy lawsuit bait. And at the end of the day, not only is it lawsuit bait, it's lawsuit bait that wouldn't have been possible before. If you actually had a situation where it was difficult, but not impossible, to acquire the authenticating information, or the identifying information, there would be a human involved, there would be an investigation, and there would actually be enough resources applied to figure out the difference between, oh, this is just a trivial spoof, and wait a second, there's something more interesting going on. The reality is, a lot of people, when they're looking at computer systems, don't ask enough questions. This is DEF CON, we ask questions. So, you know, I think I've gone on kind of long enough about all the interesting implications of security and privacy here. As Tiffany said, this is a small thing now. This could grow. This could be something that we turn around and lots of places are doing it, just to stop the flood of requests. If it's, you know what, we're getting a thousand takedown requests an hour, why don't we just publish all the information and now people don't need to ask for it? That is a model. It could come. It would not actually be a good thing for the future of the Internet. The reality is, and this is what all the privacy guys have figured out, perhaps long before the rest of us have, if you can't use the Internet, if you can't use a resource without an implication that no one's watching over your shoulder, you just won't. And we won't end up with a particularly free society. So that's pretty much what I've got on this. I have one final thought to leave you with. How many of you guys are still in school? Cool. All of you, every last one of you, are going to have huge final projects to do. And you could do the normal thing, do something that's been done a thousand times before, get a pat on the back by a teacher who's done the same review over and over and over again. Or you could end up dragging your teacher out to DEF CON and showing off what you've done.