My name is Dror Shalev. I'm working for Smart Defense Research Center in Israel. Sorry for my bad English. I need to translate everything twice. So I hope that you will understand me and the slides will be good and the demo will went well. Okay, let's start. So we are talking about, today we'll talk about, we'll do some kind of small introduction. We'll talk about trust, technology, and new privacy issues raised by technology. We'll chat a little bit about overview about home networking and privacy. I will give you the steps to make a crazy toaster like I did here. We'll do a small demonstration. I hope it will not crash because it's like a live network. So this is like very dangerous network to go. So if it won't work, you have to forgive me. It worked this morning. I will chat a little bit about side effect of this research, like Windows, SSDP, distributed denial-of-service. We'll not show zero days of stuff here, but I will try to make a small demonstration of the denial-of-service. And we'll talk about some to-do, some extend ideas about the home networking and about cool devices. After that, we'll give some respect to the people that helped me. And then I went on their own way. And then we'll leave some time for a Q&A. Okay, from the beginning, it's dangerous. So I stole those pictures from guys called hackthetoaster.com. They have very cool ideas over there. And it can be dangerous. So the mission of this research was to make, like... world domination via a single UDP packet. This mission was failed. Okay, so I heard some guy from Google, some smart guy from Google, talked about trust and about privacy and about do we care, about all kinds of stuff with technology. And he said that do we care if our home devices will see us naked, you know? You wake up in the morning, go grab a coffee or something. And you're naked on the way to the kitchen. And do you care or not? So I think that we need to be cared. I think that home devices can turn against us and spy on our network. I think that privacy and trash issues raised by new technologies and new hardware and cool devices. If you look about some devices that support the SSDP and UPnP, we can check, like, cell phones. Like Nokia phones. We have some cool devices like clocks, radio, internet radio, Windows Media Player 11, Xbox and some DVDs and cool stuff. So this cool stuff raised, like, new tricks and new issues. And I want to chat about them today. So... Common privacy issues. Technology is about to replace the trust model we use today. People get confused between people that know things and machines that know things. Do we care if Google machines know that we would like to pay for porn? Does this information can be given to a human? Usually we don't trust humans to deal with this information. Should we trust corporate? Should we trust hardware vendors and software vendors? This is a matter of which we want to trust. Home devices in XP and Windows Vista have some kind of new component. You can see in the lower button, the lower side of the screen. You can see some kind of way of icon. That when we use devices that is internet-enabled, the Windows box and the Vista box have support for those devices. devices. We'll chat or we'll not chat about peer-to-peer networking, but this is part of the home networking in Vista. And there is like network appliances and wireless devices. The UPnP architecture, it's very cool architecture. We'll mention a little bit about it. We'll do some kind of overview of distributed UPnP architecture based on TCP, UDP, and HTTP. We'll not mention the IPv6 vector that we introduced like old exploits that were already fixed in IPv4, like land attack last year. And we will talk about security exploits and early threats in those protocols, and we'll give respect to the people that found them. In a new Vista, there is a better support for device discovery. So, you can see that devices and software can be easily discovered. Those protocols behind it's netBIOS, UPnP, SSDP, and some other protocol that don't really know about it. Okay, in Vista, there is the peer-to-peer networking, people near me feature. It's a network discovery and media sharing. So if you can see in my slides over there, I just mentioned, I will just show the network discovery and the media sharing feature in Vista. And if we are talking about device scenario, we are talking about smart home, about computers all over in kitchen, living room, master bedroom, garage, or I don't know where. When we look on the new Vista interface, we have some kind under the network neighborhood or the network discovery. We have like a place for the computer that we use. You can see it on the lower left corner. We have some media sharing feature. It's the second one from the left. And we have some fake devices that we can add, like the remote UI client, the crazy toaster, and the fake Intel access point. So this is the presentation page, and this is when someone wrote his device description. You can choose whatever you like to put inside over there. When we are talking about home networking, each one of those devices can be own PC. PC. In the LAN, it can be a web page with a virus. It can be a media center, VoIP devices, wireless access points, cell phones, any appliance or crazy toaster like I did here today. So each one of them can be own and can be a target to hackers inside our local network. We'll use wireless connectivity to advise ourselves and show our stuff over there. When we are talking about the UPNP architecture, we are talking about very cool architecture. It was made by a couple of vendors. Microsoft was one of them, not the leader one. But it's internet-based technology. It's built on TCP IP, UDP, HTTP, XML, and other technologies as well. The UPNP software is based on the UPNP software. The data support in XP is divided into two parts. The SSDP, the Simple Search Discovery Protocol, is a service that is default enabled. And the UPNP that show the presentation and talk with the devices is not enabled by default. So we have a listening port. Import. 180. 1,000. 2,000. 1. I will show you by written later. So we have the support for internet gateway device discovery, and we have support for a couple of components inside, but not all of the picture is still ready. That was changed on Vista. On XP installation, we can find our device under a... We can install it. We can install it under the network services. We have a default support for internet gateway devices. If you can look on the graph over there, we have four steps when we add our device to the network. We have four steps. The device joins the network. Advertising is present by doing a multicast. The control point. So the control point in our point is the XP system. We ask for device, for device description. It's an XML-based technology. The device gets the service description that the device is supporting. And then the computer, the control point, invoke methods and start to control the device itself. Some early threats that was found in the SSDP and UPnP stuff. Part of them was found in the XP boxes, like the previous one, the first one. Part of them was found in the device itself. Lots of research made by EI. They are very cool guys. They did lots of crazy stuff in lots of protocols. So they have get the respect over there. We see vulnerabilities in devices, like appliances, routers and stuff. Part of the exploits were buffer overflows. Part of them was some logical bugs that allow opening ports and get username and password of ADSL stuff. And part of them was DCRPC. The major one was DCRPC found by iDefense and a couple of more people. It was a DCRPC interface for the UPnP. And it wasn't like broadcasting stuff, but it's the same stuff. The last one was found by Michael Lane. It wasn't on the Microsoft. It was on the OS Bonjour. So it's very similar to SSDP and UPnP, but it's work over DNS. But it's same stuff over there and it's do the same. So let's talk about steps to create a crazy toaster progen. When we started this research, we looked for open services in XP. And we found the SSDP and the UPnP that is related to the SSDP. And we realized that not only routers, media players and servers and other cool stuff can connect to the networks, but also that can be used for the attackers. A scenario of crazy toaster, a Trojan device or a software with TCP IP capabilities like router, media players, access point that join to the local network is possible and it start to make like hacking inside the local LAN. If you look in the picture over here, we can see how I can present my stuff in my network places. And when the user goes and do a run, he can write click and properties on this icon. He can see like I can write whatever I want. Like I can put myself as a fake Intel access point. There is no really SSL certificate or any something that will verify my true ideas. So steps to create a crazy toaster. What you need to build your own toaster. Needed ingredients. So you need a toaster. Okay, you don't have to, but you need a toaster. You need a hardware. You can use any hardware or none. You need a software. I choose, because I'm very lazy, I choose a stack vendor sample from Intel. There are a couple of them, but I was very lazy. I took the Intel one. It's cross platform. It's very cool. And you just need to take it, compile it, and run your stuff. Also, you need network access to victim network. It can be a warm victim. We will use multicast to broadcast our present inside the network. And we will use some social engineering and physical or physical access. So I can be part of the network or I can just take my toaster and put it near the window. Of the guy, not even inside the home. And just use the wireless network. The Intel SSDP and UPNP stuff, SDK is very cool. They have three layers. There is the client or service application. This is the application that I wrote. In this case, I just put some browser exploits over there and I put it inside the web server. And I did the, forwarding to a third party website and run my code from there. We have the SDK layer from Intel that give us the web server, the HTTP, SSDP support, GEN, SOAP, and XML parsers over there. So they give us everything we need to run our stuff. But we also need some kind of TCP stack give by the operating system. Some problems of this cool project so we had the heat problem. Okay, if someone is turn off the toaster, the computer or the hardware inside can melt. I wasn't able to solve this problem, the heat problem. We had some Linux to Nokia Ipso porting issues. I wanted to bring like a cool software or cool hardware to plug into the toaster and I had to rewrite everything like every TCP IP address. So I had to use TCP stuff like socket stuff to run on the cool Nokia Ipso. We use in Check Point, we use the Nokia Ipso to run our firewall over there. So they didn't like the idea that I would like to present the Trojan on the same hardware, but it was a cool one. And last one, we had the shipping problem. How can I bring my toaster with all those stuff here? I can, how can I go via custom? I wanted, I didn't want to go to Guantanamo Bay instead of come to Las Vegas. So we had to FedEx everything. Okay, our crazy toaster will advertising present on victim local network. We will use the discovery process that we will use. We will use HTTP U. It's HTTP over UDP. We will do UDP multicast to all of the networks. So I don't really need to know about my victim's network. The multicast is to this strange address because I'm very nervous. I can't really pronounce all the numbers over there. But it's go to this port that is already listening in XP and on Vista. We'll send couple of packets, multiple multicast packets over UDP. We'll do some social engineering. We declare ourselves as some standard computing equipment or kitchen appliance and we can choose whatever we like to do. And then we'll wait for the victim, for the LAN user to come and click our icon under the network neighborhood place. The presentation web server, I had lots of thinking. What should I present? Should I try to steal his Gmail contacts? Should I read his local... I'm talking about the victim. Should I read his inbox? Should I write a progen? Should I do like... I don't know, read stuff? Kill stuff? And I decided to go and use some known techniques and experts from the wild. It's the MPAC toolkit. It was like one month before on the news. They... The tool was written by Russian people. PHP scripts. Very easy one. It's like a toolkit to allow people to install their own progen using a patch vulnerabilities. I came from Israel. Okay, we are single CD country. We have one XP installation in all Israel. So not all of us get patches. And... And the toaster, the MPAC, the toaster will use just for pipe to bring traffic from third party website. We'll retrieve the attack payload from the remote host. And then we'll run it from the local LAN. Okay, you can see some stuff that was needed to this crazy toaster. So I bought like a 15 bucks toaster oven. I took the Nokia hardware on the left. But I didn't use it after all the porting stuff. I took like a regular Pentium 3 PC. And I plug it over here. Also you need bread. In this demonstration, I will run the crazy toaster. We'll do the discovery process. We'll do the presentation. We'll do the social engineering. And I will show you the browser exploits. If you will have time, and I think that you will have time because I'm running. If you will have time, I will open the source code of the JavaScript attack. This is a multi-platform attack that use known techniques. When someone comes in, to the website, the site gave him, send him to the right page to run his code over there. We'll not use the IPSO hardware. And we will use the, I use the Windows SDK to run everything. I do it on a live network, so I hope it will run. . Okay, when I plug my toaster to the network, I can see here, the local toaster. And when I first time plug my toaster to the network, I see some kind of notification over here. Because I tested like 2,000 times before, we will not see this notification. But it's in the first time that you are there, it's pumping over there. So we'll ask our user to click on it. It's inside the LAN. And now we will forward the traffic to outside, to our, to my web server. This is the MPAC. So now the MPAC is running. I put some alerts inside to show the process over there. But we will try to download a Trojan, the same Trojan that I use in the toaster, and try to distribute it inside the network. So now, after the, I had some kind of browser identification, so this web server sent me to the right location. This is an unpatched machine, so all the exploits works over there. What I, what we'll now try to do, the bug that was really made all the mess of the MPAC was the bug that was found by Finjan. It was very logical bug. I heard lots of talks in DEF CON and in Black Hat about a heap spraying. Heap spraying become a huge problem. But this bug was some kind of logical bug. So in this point, my Trojan was downloaded and was run. If that exploit were failed, eh, the toolkit try lots of other exploits and try to run until he get hit the box. Okay, so after I ran my toaster and I infected the network, I got like, eh, spread the toaster from other places as well. So if you have one box that is unpatched in your system, it's enough for us because we will download our payload, our Trojan and run it. I would like to show you a little bit more about the MPAC. The MPAC was sold for a little bit less than one K. And they promised to give like some updates to people that buy it. It's a PHP based. So you have statistics of how many exploits and how many traffics, what was the exploit that was used and which OS they are running it. So it's help you like, eh, inject stuff with malicious website. The MPAC was eh, quite eh, big hit, not because, the MPAC was a big hit, not because the bugs that was used over there, but because eh, they had compromised lots of sharing, shared hosting facilities with some stupid C panel local exploit. So, if they had like a zero day, they eh, infected more than 10 K of hosting, eh, shared hosting sites. So if they had like a zero day, they can eh, took over the internet. So, a side effect of this research, of this research was eh, some eh, way that the SSDP eh, protocol, the simple eh, search discovery protocol, we made like, a distributed denial of service. It was eh, a little bit eh, strange, because we were able to kill all the eh, PCs on the local LAN, which wasn't a remote code execution, but we sent like eh, malformed or well formatted XML eh, document. So it wasn't eh, we had some kind of recursion over there that eh, send all the computers in the LAN to, to go to, to 100% eh, CPU. So we're talking about recursive logic bomb. We had some memory consumption, virtual page, visual, virtual memory page eh, went crazy. So it took the computers couple of hours to eh, go out from this 100 CPU eh, effect. Sorry I had some short eh, flashback. Too much LSD in this. The 90s. So. Okay. You have a very cool distributed damage and possible attack vectors for that. But eh, eh, remote attacker must be inside the local eh, LAN segment to do it. It, we can do it by eh, Trojan. You can do it by, by warm or by other stuff. MS promised to fix it on service pack 3 for XP. So. I will not show you the exploit, but I will show you all the other stuff. You can make the XML very easily. You don't need to do, to me, to show you how to do it. It's like eh, known bad XML that used for Explorer as well. But we'll do a notify. Notify it's like get and post, but just for SSDP. So we'll advertise our present. We'll send it to the specific multicast address. So we don't need to know about, about how the LAN is look at. We will eh, give a URL. So we'll have to have a web server that will eh, eh, give it back the eh, XML. The malicious XML. And we'll give eh, respect to EI for doing lots of research in this field. So if we talked about four steps of the discovery process, we are going to kill the system on the third one. Advertising is the system. Same. The second page. The second stage is the control point. Ask for eh, device description. And the device bring like a very crazy or very recursive XML file with description that make everything go nuts. Okay. So we'll try to make small demonstration about eh, how we make the smart home become a crazy home. And I will try to lo, to show you the logic bomb discovery. So let's go ahead and start. . Okay. Let's see. on its way. This is the exploit. It's peril-based. This is the notify packet we are planning to send. This is port number. And this is the broadcast. Okay, now we can see the other victim. He is 100% CPU. It was very fun to do it in checkpoint production land because we have like 200 PCs and I was able to kill or don't allow them to work anymore so I asked the forgiveness after that. I do it like 2,000 or 4,000 times. But this is the reason they asked to kick me out of the network after. Okay, some extended idea that can be do in those fields. When I started to look into home devices, I had like lots of ideas and I talked with people and they described and gave us lots of ideas. So you can do ARP spoofing. ARP poisoning. So you can, the toaster can read all the traffic inside the local network. You can use kernel bugs like wireless drivers, bugs to run your code if the network have a very bad, very bad drivers installed. There is lots to do in wireless hacking, web cracking. I play a little bit with MIPS and Linux. I play a little bit with Linux. I play Linux embedded systems. It's become very, very cheap. In Israel, when you buy a six pack of Coke, you get like a free DVD. So I think that in the future, we'll see lots of embedded systems, very cheap one, and it can be a problem. Cell phone hacking like Nokia phones, GPS, attacker can use the GPS things over there and know stuff about attack systems. privacy and location. And IP phone. I guess they will see lots of IP phones exploits very, very soon because I see that lots of you have IP phones. iPhone, not IP phone. iPhone, like Apple stuff. It will be very easy to exploit them. Media centers can be a very good target. Game console. So we can use the game console to send our stuff and try to get more victims. I had some thinking about DVX worm to make like a movie that when you steal movies like all of us is doing via peer-to-peer, you will get some kind of copyrights bomb that will whip all your movies or something like this. And we can also think about physical security. Maybe put a microphone inside and a webcam or something and just broadcast from the toaster outside to the world. Also IPv6 will give us all the refrigerators and all the home equipment will be IPv6. So I guess there are lots of work to do over there. Conclusion. I am running. Conclusion. Cheap hardware appliance open door for the bad guys. I told you before about when you buy the Coke, you get a free DVD in Israel but I think that it will come very, very common to do like embedded software, embedded hardware, and give it for free and stuff. Wireless hardware. IPv6 open you ball games like reintroduce stuff that already fix used before. I think that you trust no one. Hardware and software vendors and free gifts, so even if you have a very cool device, you don't really need to trust him. Home devices can be target for remote attackers as well, and not just from places inside the LAN. That can be buffer overflows, that can be cross-site request fergy or XSS, like we've seen in the Jeremiah talk a couple of times. The SSDP service in the UPnP on XP must be disabled. This is my conclusion. And in Vista, you need to disable the network discovery protocol. So, can home devices turn against us? I think they can. Home devices are as bad as their software authors. So, if you are a badass and you write, hardware and software, you will make a badass home devices. I would like to give some respect to the people and the places that I stole some information from them and learn about them. So, the UPnP forum, it's a very cool site that has lots of descriptions and links for everything that is connected to UPnP. I would like to give some respect to the hackthetoaster.com, the guys did like the opposite side, they took PC and put inside a toaster or screen, so they went for the other side, but they are very cool. In the beginning when I started this toaster work, I thought I'm so cool and I'm the first one who's doing this, but I've seen that it is very old idea of mad toaster or toaster that do stuff, so I wanted to give some respect to the people that did this. I would like to give another respect. For EI guys, for the SSDP and the UPnP staff and for the other staff that they did on the security research arena, I would like to give you a link of a project, Cowbird, that I heard about it in a last Black Hat, made by a friend of mine, Jonathan, a new friend that I met a couple of days before. He talked about how to make, how to take a very cheap hardware, like a Linksys. It's a media center and 30 minutes and a 30 network, so we replaced the OS inside and give like a, make it a wireless scanner, so it was a very cool idea. There is the exploiting embedded systems made by Barnaby Jack or whatever, he's a cool guy, so he showed how to make a shellcode on an ARM, a shellcode on an ARM. I want to have links to the UPnP stack vendors like Intel, CyberLink, and Siemens. There is the OSGI Alliance, they are making the software for the future smart home, so it's very cool stuff. And on DEF CON 9, some dude called Dog showed a very cool way to, you know, do a talking toaster. So you need to go and look his work he did over there. Another website, it's UPnP Hacks, that is, was a very nice one. Okay, so the slides and the toaster source code are in my website. You are, you can go over there and download stuff. You can contact me, send me an email, questions. Okay. You can send me questions, everything, if you would like to play together. Cool stuff. I am ready. Any questions? Thank you. Excuse me? Maybe next year. We are open for new ideas. Thank you for your time.