Let's start off with the most common question I get. Why is all your work Cisco-centric? Well, they do have quite some market share. 92% of all routers above $1,500, which I think nowadays is about like 500 euros, is actually Cisco equipment. And the other stuff in this area, like Juniper, like from a hacker perspective, Juniper is just like a really fucked up free BSD. So there is actually nothing interesting about it, neither from an exploitation nor from a forensics point of view. The same actually holds true for your arbitrary cheap home router because if you actually get off and unscrew the device and look at it and find out what it is, it is all Linux. So this is why I keep doing Cisco stuff. So why the hackers? Actually, we actually do network equipment forensics. By definition, the goal of the whole forensics deal is to explain the current state of a device, which means we acquire evidence, we recover information from the evidence because the evidence is actually going to be raw data, and then we actually do some analysis on this information and find out what actually happened. For common operating systems, methods and tools actually exist. So if you own a Windows, some certified forensics dude is going to take this apart and find out who you are and then bust you. For network equipment, there is nothing of this. We don't have a way to tell if a Cisco box actually crashed because it felt like it, which they do a lot, or if it actually crashed because some dude tried a buffer overflow attack on it. This is the most, like, frequent-asked question that I get since, I would say, about eight years. People go, like, this is all cool and stuff, but, like, who the fuck would hack a router? Like, why would you actually do this? There is no porn on it. So this is my reasoning for this. Like, if you compromise a single machine, you get all the porn that's on a single machine. If you compromise an important machine, you get... porn on this machine and, like, all the others that trust this machine. If you compromise the switch that connects those machines, like a workgroup switch, you can actually, like, make those people watch different porn than they wanted to watch. And it's really hard for them to tell why. And if you actually compromise the router, then you own the entire network and you can essentially, like, stream your porn everywhere you want. And, yeah. I'm inspired by the buzzword survivor. Here's some, like, PowerPoint buzzword pictures. So just to explain that to the really slow people of you. If you own a single system in today's networks, that actually does not give you a significant advantage. It certainly does give you an advantage, but it doesn't give you a significant advantage. So from the attacker point of view, owning a single system actually doesn't get you higher chances to get into the other systems next to it because the switch is going to block things like your op games and stuff. However, if you're actually owning the switch, all the separation is broken. You get to modify their communication streams and it's actually really hard to recognize from the host. Like, try to find out, connect to a switch anywhere in the world and then try to find out if this switch is compromised. There just is no reverse neck, like, network access control. Like, the network is trying to access control you, but there is actually no way for you telling if the network is fucked up or not. And, of course, if you actually own the router, that means you have control over the entire network and you can actually, like, add a bonus, impersonate this network to the internet. All right. So, I wanted to do a slide on, like, how this looks in the internet, but there's just way fucking too many routers in the internet. So, that doesn't work. So, we're back to, like, Cisco-style corporate network graphics. So, this is what a regular network looks like. Raise your hand if you have ever heard the term autonomous system in terms of routing. Ah! That actually improved. Good you guys are learning shit. So, what I'm trying to show here is, like, multiple autonomous systems connected together with a core network and then having, like, you know, government and, like, business and shit. To your top right, if you have seen other presentations from me, you know this. It's the international ASCII symbol of an asshole. Um. So, he's going to try to fuck with the network. The thing about those networks is this. On the border of the local network to the actual large parts, to the actual autonomous systems, we do have firewalls. We do actually have IDS, IPS. It's not like anyone is watching them, but we do have them. And whatever your silver bullet for security of the day is. . . You look further into the core, you actually have routers that border the different autonomous systems. They do the route distribution. They care about your local network talking to the core and stuff. They have ingress and egress filtering. They do anti-spoofing. They actually try to keep that core clean and try to prevent the asshole from injecting an evil routing message into the core. However, in the core, we actually do have full trust. This is because it wouldn't work otherwise. This core is actually exchanging information about the routing tables and about how the network is supposed to behave with each other. There is no other choice for the routers than to trust each other. There is no other way to do it. That means network security is actually a hierarchical thing. Defending against your downstream is a very common thing, otherwise all the ISPs would get owned by you guys with the DSL or cable modems all the time. They do not accept routing updates. They do not accept route advertisements for the 192.168 network from your fucking DSL connection. However. The other way around, upstream, is really, really bad. I mean, what are you going to do? If your upstream provider says the internet just moved, you have two choices. Either accept that message and go along with it, or have no internet. Defending against your peers in those networks is also very, very rare and common. As I said, it's really hard because you actually have to trust them, otherwise the shit is not going to work. If you control anything. Everything in this hierarchy. You control everything below. That means if you control anything in this core, then you control everything around it. Let's assume our little guy up there compromises this one router. He gets to actually have a say in the autonomous system to the top right. If he actually compromises another router, just like one other router that happens to be peer to the core, he actually does compromise the entire network. Some of you might actually say, yeah, this is all cool, but I got SSL, and I got my Debianized keys, and I got SSH, and secure whatnot. The thing is this. Those protocols actually work. There are people with actual brains compared to me that actually work on those protocols. However, they can only guarantee that your protocol messages are not modified, they're not fucked with, they're not spoofed, and they're not replayed. However, if anyone is actually going to do exactly that, if anyone is fucking with your protocol, what are you going to do? What are your options? Your SSL breaks? Your SSL doesn't work anymore? Your SSL bitch is about someone doing man in the middle? Yeah, but... Yeah, right. You know that now, but you can't actually get where you want it to go with the SSL connection. At some point in time, if someone compromises the network, the question becomes availability or security, one of the two. If your home banking doesn't work for about a week, then your choice is get off your lazy ass and actually walk up to the bank and do the transaction manually, or seriously, most people are going to click on fuck it. Even if they know, because they don't feel like leaving the room, and they will miss the next episode of, like, ooh, my bots. This is actually what happens. In a business context, this is actually worse, because there is nothing to click on. Those are automated systems. At some point, they will simply turn off all certificate validation, because they need to keep running. The reason for that is, if the user detects someone, like, fucking in the network, if he actually called choose a different traffic path, that is what we call source routing. That is actually... There is a very good reason this is not in the internet anymore, because that would mean the user has control over the network. The user can decide where the actual protocol messages go, what path they take, and this is really, really bad for networks. We turned that off about 30 years ago on the internet, so that doesn't work. What I'm trying to say with all those ramblings here is, all this is actually by design. IP by design has dumb leaf nodes, like stupid end users, and intelligent core nodes. If you compromise an intelligent core node... You actually... You actually compromise the entire network. This is by design. We can't do shit about this. This is why we try to do network equipment forensics. Does that make sense? Good. What types of attacks do we have? When we want to do forensics, we can do forensics the way that the certified forensics expert do it, or we can actually care about what we're trying to detect first. We're going to take the second route. This is... This is essentially the three classes you can do to a router. You can have protocol-based attacks. You can actually have attacks on the functionality point, or you can have binary exploitation. Protocol-based attacks. I've given my very first talk here at DEF CON, DEF CON 9, on protocol-based attacks. Essentially the whole idea is you inject control messages into the network. Like... You participate in a routing protocol, for example, and you tell the network that the routing should be different now. Let's say it goes over your machine, and you can inject your gate point. The attacker just becomes part of the normal network communication. Typical examples of that type include well-known things, R poisoning, Kaminsky DNS games, interior routing, etc. You just be part of an OSPF cloud and announce your routes. Or exterior routing, hijacking BGP. There's very good talk. This is the speaker over there, standing, wave. There's very good talk on Sunday. If you actually want to watch someone who knows really what happens with Cisco, go to his talk. You are in the wrong talk. That's what I'm saying. So... I'm sorry. On the functionality side, we actually do see a lot of configuration-based problems. The people... You have to realize this. Anyone here has a CCIE certification? Raise your hand if you're a CCIE. There are two. Have they taught you to change passwords? You study for two years, lab exam, and then all the lab has Cisco as a password? Cisco actually teaches people... to have Cisco as a password. Even the highest qualified. Which is really bad, because some people actually don't realize that in the real world they should not use Cisco as a password. So you still find a lot of routers with that problem. Then we have weak SNMP communities, which pretty much is the same thing. And we have people posting their configurations on the internet forums, because they can't figure the shit out themselves. And then someone else goes and decodes their passwords. We also have access check vulnerabilities, which fall into the same class for me. There is the Cisco HTTP vulnerability from like six years back, and you still see people scanning for this. People actually scan for Cisco routers that have that vulnerability. The thing is this. Blackheads are actually really good at telling you what actually works. So if people are still scanning for it, it means they actually find stuff. stuff. They wouldn't scan for stuff that's patched all over the Internet. Then we have the most beautiful vulnerability from my point of view, because I'm more of a router guy, the SNMPv3 vulnerability. Most people have actually not noticed it in all the noise that other vulnerabilities made this year. Here's the deal. SNMP is the absolute standard in how to manage routers. People do not use anything else. The thing is, SNMPv3 means version 3. The entire reason for this version actually was that in version 1 and 2, everyone was sending a cleartax password called the community string over the network, and so it was really easy to ... You sniff this off the network, and then own all the routers. In v3, they actually introduced crypto. I'm not making enough sense, so I'm drinking beer. They introduced crypto, and we all know crypto, hey, right? You put it in, it's all good. Civil bullet. Actually not. Then SNMP, the people who designed SNMP are the same people that tried to carve off single bits of messages, and then instead of putting a message plain into a packet, they invented ASN1, and everyone gets owned because nobody actually managed to implement that correctly, and nobody told them that there are actually compilers for ASN1. We end up having the same people think, hmm, we have a new authentication mechanism, but HMACs, cryptographic hashes, keyed hashes with a secret, this is what they use. HMACs, they're really good at this. They're really long, like 160 bits. Wow, that's saturated our network. Let's go talk to the crypto guys and see if we can make this a bit smarter. What they actually did was they talked to the crypto guys, and the crypto guys told them from a theoretical point of view, taking half of the hash is actually as much proof as taking the full hash. You can talk to Bruins over here, the guy with the yellow shirt, if you don't understand why that is correct. The thing is this. They thought, okay, we can take half of the hash. That's really cool. Now let's make this dynamic, and let's specify that we can actually take an arbitrary subset of the hash in a packet for authentication. What people implement is they do a memcompare between the hash they have on the router, the hash they get in a packet, and the length that was advertised in a packet. Does anyone see a problem here? If you advertise a length of one, you actually do have 256 tries. You have a lot of time to do that. You have a lot of time to do that until you own the router. It actually took several years for people to realize that. The net SNMP guys, the guys who write the open source version said, oops, we kind of barfed up here. They went to CERN and said, sorry, if you're running net SNMP, please patch. And then all the vendors crawl out of their holes and go like, yeah, we copied that code. This is like the biggest vulnerability in network terms that we had for many, many years. Added bonus, all lawful interception equipment is controlled by SNMPv3. I leave it up to the audience as a home exercise to become a lawful entity in your country. We do actually have routers that do SSH, and we do actually have routers that do SSH with Debianized keys. So that's also a way to get on your router. Then there is another bug class that I call the queuing bugs. They essentially, well, the reason they exist is because Cisco doesn't know software architecture, but we knew that. Essentially the problem is you have a router and interfaces have queues. Like when packets come in, they get queued up. And then someone has to take the packet and say I'm responsible for it, I'm gonna process it, I take it off the queue. If nobody does that, the packet is stuck in the queue. And there is a bunch of those vulnerabilities, and they're coming out on a regular basis about every two years. Pretty much like a Rock Band's album's release cycle. So this means that the router actually has a full queue at some point in time and doesn't actually accept any traffic anymore, so it gets stuck. And we want to detect those as well. And then we have binary exploitation. And in contrast to common belief, we want to detect those as well. And then we have binary exploitation. There has been Cisco hacking and binary exploitation before Mike Lin. However, he actually did a really good job in bringing in the interactive shell. So we do have binary exploits, which roughly fall into two classes. One is you attack a service that runs on the router. The router runs services like every other computer on the internet does. And you can attack those services. So as you see with the protocols, it's like, HTTP, FTP, and stuff like that. However, people that are actually a little bit smart about their routers, they don't have an HTTP server running on it. So there are other attacks, stuff that routers actually have to do, like OSPF, or IPv6, or something. And there have been remote exploits for that. . So in today's networks, how are people are actually monitoring and detecting intrusion? If. Most don't. Most just like not look at their routers. The ones that do use SNMP, as I said, for the most part, SNMP, the very protocol that is just totally broken two slides ago, is the thing for managing routers. The problem here is, from a forensics point of view, the problem is, from a forensics point of view, snmp is built it's called network management protocol so it is built for managing the network aspect of it so it tells you about the routing tables op tables blah blah blah all that stuff it doesn't actually tell you if you have an additional process running on your router then we actually have syslog which turns out to be a really useful tool for detection of intrusion into routers because it supports freeform strings so the coder of some piece of code in Cisco can actually go and like block a simple like text string and if you configured SNMP if you configure it so it will actually take this text string and send it over to a central server so you actually have a record of what's going on then there's configuration polling in most cases people actually watch their and fix if they ever change so there's a cool cool tool called rancid that people actually use to monitor changes in the configuration because like you're coming to work in the morning and this tool is telling you someone kind of like reconfigured your routers that is a telltale that you know you actually shall change from the meetings you had with the marketing guys to actually like fixing your routers today um for the protocol based attacks people run route monitoring and looking glasses what that is is just like another machine usually a router or somebody else debauched that participates in the routing protocol and just checks if the routes actually change in an unforeseen way the idea is pretty much the same as with a conflict polling and then we have a very surprising thing that we can use for forensics which is traffic accounting the thing is there's nobody Nobody actually watches their network closely enough to do any forensics or to actually see if the router gets owned or if someone does any mischief. However, they all do traffic accounting, and they all are really, really keen about not losing information who sent what traffic. The reason being, that's what they are paid for. This is what they use to charge you for the traffic. There is actually an interest in not losing this data, and there is actually an interest in making sure that nobody fucks with it. It turns out to be a really valuable source for forensics, because it's pretty much the only non-compromised central locked data that we have in networks. Take a table and see what of the attacks can we actually detect with the monitoring that we have in today's networks. Here's my virus scanner. Hands for my NOT32 virus scanner actually trying to update on the DEF CON network. That is so not smart. However, this is what kill switches are for. If you look at this table, you actually see them. In the bottom line, if you do binary exploitation, we don't see shit. We have no idea if it actually happened, unless the attacker was really, really stupid and wrote the configuration, because then we can get them with config polling. We're actually concentrating on this. What do binary exploits do? What are we trying to detect? What happens if the binary exploit actually worked? We're not going to detect the return address overwrite and then jump into some arbitrary code. We are going to detect what's happening afterwards, so we should care about what is happening afterwards. We do have this one type of attack that people use. There was actually a black hat talk on this, which is the binary modification of the runtime image. Essentially, you patch away user credential checking. or, essentially, you backdoor the router. You also, and that was not covered, you patch away logging. What is the point of patching away the user access credential checking when the log messages go to a central point and say, here's user FX logging into your central Cisco machine? You actually do patch logging as well. When you think about what goals people would have when they own the router, they will actually patch firewall functionality. They will actually make sure that your ACLs look really, really good, but they actually don't work. What also is done is data structure patching. You go ahead and you patch the access level of a VTY, which is virtual terminals, Cisco speech in we don't know how to implement ASF spawning telnet. You actually check those access credentials and patch the check out or set the privilege level to an already high value. You can bind additional VTYs, which is essentially like a port binding shellcode, or you just go ahead and terminate processes. There is a lot of annoying stuff running on a router that you don't want anymore once you own it, so you just terminate the processes. We need to detect that. We need to detect that. We need to detect that. You can change the configuration in runtime. You can change state machines. That is actually very, very powerful because it's really hard to detect, but actually so far nobody has done that. What has been done widely is TCL backdooring of routers. Mostly so far it has been done by people that worked for an ISP and then at some point didn't anymore but didn't want to lose their exclusivity. They can use that as anücken, and they've also done a lot of stuff in the context of It's a fairly exclusive access. The IOS in later versions has TCL script interpreters. Don't actually ask me why they use TCL, of all things. links. They do actually have TCL scripts. They do actually have the ability to bind to a TCP port. You can have a really, really short port binding shellcode in TCL and just run it. Of course, they implemented a new feature. They fucked it up badly. There is a large range of iOS versions where you can actually have your TCL script running in your authenticated context, and once you log out, the script keeps running with your former privileges. What we need for the forensics, what we need for finding all this is, as I said in the beginning, evidence acquisition. We need to recover information, and we need to analyze this information. By the way, it would actually not hurt to know how iOS works internally. Let's do that. What types of memory do we actually have in such a Cisco device? That's important for forensics, because we want to know how to get this memory. In general, how does that work? Cisco device like 50,000-foot view. When it boots, there is a bios type of thing that's called rambon which is kicking off your iOS image. The image may or may not be self-decompressing, so we have to take into account that the image that's actually loaded is not the one that's running. We're trying to make it work, and we're looking for what's actually there. The image that gets loaded is unpacking the image that will run eventually. The image may and will, in most cases, contain firmware for additional hardware. They do piggy-pack the bytecode for the ISDN controllers or what other line cards you have. They are actually in the iOS image. They are piggy-packed in there. The configuration is loaded as an ASCII text from NVRAM or from the network, which would be the most stupid thing to do, so we're not covering this. It is actually parsed on load. If the configuration is wrong, if it contains bullshit or if it contains weird statements that this version of iOS doesn't understand, the way they solve this is they actually parse it as if you were hacking it into the router every time you boot it. You can actually have a pretty fucked up configuration and still a working router. The statements in the configuration are going to be mixed with defaults of the iOS image. If you are not explicitly configuring a certain feature, it will default. The problem is, it will actually default to whatever it feels like in this version of iOS. This is not a consistent thing. The same configuration on two machines with slightly different iOS WRK . . . . There are some things that are not consistent. version will actually produce a different state. Everything is kept in RAM, so we don't have a hard drive in there. The configuration changes have immediate effect, so there is no incentive for an attacker or a network administrator to actually write them back to NVRAM. This is the most common thing with networks when you have a power outage, because the guys just do not save the configuration back to NVRAM. Then when you have a power outage, they go like, fuck, so what did we change the last two years in this configuration? I mentioned everything is kept in RAM. We need to actually get to this. On common operating systems and in forensic scenarios, the volatile information is actually add-on. It's bonus. If you pull the power plug of your Unix, Windows, God beware, Mac OS machine, when the police is crashing in your door, that is not a problem. All the evidence is actually on the hard drive. The add-on bonus information of what is the runtime state of your machine would have been nice, and they could throw this whole machine into super cooling and pull the keys off and stuff. But in fact, that's actually not required. In fact, you're leaving so much evidence on the hard drive that it's actually not a big deal. With Cisco, that's a different story. Because everything is in RAM, we actually need to get to this RAM when stuff is happening, when we want to know the state of the router, or when the router actually crashes. We need this on demand, or we need this before the router crashes. By the way, if you're not familiar with the system, the way crashing and rebooting is the default behavior of those routers. If they detect anything wrong, there is no Dr. Watson, there is no please tell Cisco about this vulnerability, it will just reboot as quickly as it can, which means it is destroying all the evidence that we potentially would have to find out why it is actually crashing. We do have non-voluntary evidence on a Cisco. Of course, we have the flash fire system. On a flash fire system, there is the image. If someone actually modified the image, like backdoored it, we can get it off the flash fire. We don't actually need to do anything fancy. We can just take it off the flash and put it into IDA and then read. NVRAM, I mentioned, contains the configuration, so if anyone changed the configuration and actually wrote it back, we get it off NVRAM. But in fact, nobody does that, because that would be really stupid. But from an attacker point of view, if you actually have a working zero-day against Cisco, you are not writing the configuration back to NVRAM. You're so not. You're so trying to stay in the RAM image and hide, because this thing, this exploit that you have there is way too valuable to give away just by writing the configuration changes. The good thing is... The Cisco engineers actually need pretty much the same thing, because if people complain about their routers crashing and those people actually pay for service, the Cisco people need a way to tell why the router was crashing. So they have this not widely documented developer thing that's called core dumpits. Essentially you can make an IOS machine dump core either on flash or onto a remote server. In two cases, either when you issue a command, write core, or when a machine crashes. This is exactly what we want. We get a complete memory image. It contains main memory. It contains I.O. memory. It contains the PCI bus memory. And it's a raw dump, so it's perfect evidence that the router doesn't try to fuck with it. However, we should actually configure this feature before shit happens. Afterwards, it's too late. We actually need to configure core dumps. What's good about this is it actually has no performance impact. You configure it, it just sits there as information, unless something happens. You can configure that. Imagine you have a centrally located FTP server in your network. You can configure all the routers to dump core to the central FTP server. You can configure all the routers to dump core to the central FTP server. That saves you a lot of monitoring, and it also means that you don't get called in the middle of the night when one of your routers rebooted and one of your network management apes saw this red dot blinking in HP OpenView. But you can actually tell them, you know, you're not calling me at night. I come in in the morning and look at the FTP server. If a core showed up in the incoming directory, I know something rebooted. This is actually really cool. Why it wasn't used before. Reason being, core dumps were only useful for Cisco engineers, kind of, and for exploit writers. Everyone else didn't have a use for it. We actually need a piece of software that goes ahead and tells us the state of the router that recovers all this information on the actual abstract state, like what processes were running, what packets were handled right away, and all that from the core dump. We want this to be 100% independent. We want this to be a second opinion on what Cisco tells you, because the command line on the router called lie. And it actually does, quite often. The thing that broke was Cisco code, so you're not going to rely on Cisco code to tell you why it broke, right? On the other hand, we want this to be a forensics tool. So, we don't want this to be, like, encased, so you get owned when you're actually looking at evidence, and then you tell people that this is actually not a vulnerability. We actually want this code to be solid, so you're not getting owned by someone, like, crashing your router in a very funny way, and then you get cross-site scripted when you look at the output. As you probably figured out by now, we have implemented such a tool. The way we do this is... We take the image that was supposed to run on this router, and use that together with the core. The reason is, iOS images are actually a large ELF binary. It's, like, the biggest LS binary you've ever seen. It runs directly on the router. It doesn't have any concept of, like, kernels or something. And the virtual memory mapping is just... It's baseline. So, they're, like, the TLB... Are you fucking kidding me? Shit. The TLB is actually... Only has only five or six entries that says, here's code, here's data, go fire. Processes on iOS, like, if you log into a Cisco machine, it shows you, like, all the processes. They're not processes. They are threads. They are CPU contexts. That's it. There is no memory protection whatsoever. It has... It has a really fucked up scheduling, and it has system-wide data structures, which is really useful for us in this case, because it has a common heap. Like, everything shares one heap. And it has very little abstraction over this stuff, so we can actually dig out the entire state really easily. So we take this image as a blueprint. We take this image, we take the section information, and we put it as a blueprint on top of the core. And... I wish it were as easy as it sounds. Cisco has probably found all, 100%, all possible ways to fuck up the ELF format. And then they have found some more. So it is actually really, really hard, and we wrote actually a lot of code, and we did a lot of testing to get this right. Once we got this, we can actually take this image and say, you know what? The code section, if that changed between the memory dump and the image, you got owned. It's like the most simple test in the world, but it actually works really, really well. So this is a fancy graphic of what we are doing. We take the ELF header, we map out where stuff is in a core file, and then we compare everything that is supposed to be really static and really equal, which is code segment and read-only data. It's called read-only data. Nobody shall write to it. This is what we get. The core guys from Core Impact, not Core Dump, they actually wrote a backdoor for Cisco IOS. Topo did the original research, and he called it Dick, that IOS rootkit. I can get to compare my tool to Topo's dick, which is kind of cool. He was nice enough to provide this backdoor to me before he actually showed it at ph-neutral. I put it into our tool, which is called SER, and out come the virtual addresses with the exact location where he actually patched the image in runtime. We can actually tell that his dick is only three times four bytes. I'm running out of time. I wanted to show you how his backdoor looks like. Because you get the virtual address, you just load it up as a core file into IDA and then press C at the right place. But I'm kind of running out of time, so maybe at the end. What we can do is also we can reconstruct the entire heap. IOS has so much overhead on a single heap block allocation that we actually find a lot of valuable information in that. The heap blocks even have names, like literal ASCII strings telling you what they're supposed to be. This is really good for us because we can tell what the block was actually supposed to be used for, and then if it contains a bunch of capital As, we know if it's not called the A strip block, then we know something is going on here. We can reconstruct the entire heap. We find things that Cisco does to their own heap in regular runs. We find things in runtime without being actually hacked that are really scary. They free memory somewhere in the read-only data section and then go, we don't need this memory anymore. Let's make it a heap block and just stick it into the linked list. How can you do this? We implement all the functionality that Cisco has that's called check heaps, like all the onboard tests. We implement that and a lot more. We find holes in the heap. Like heap overflow attacks, there's pretty much no hiding. We can even identify formerly allocated heap blocks, so we can actually tell what process was eating all your memory and then stop when you locked in, so you couldn't find out who it is. We extract the process list, of course. Threat list, process list, whatever. It is called process list. We do extract that. We also have the location of the stacks, which means now we do actually have process, memory, stack, and we can actually apply any known post-mortem analysis method to this, and we can actually find out what went wrong. We also extract the TCL chunks and try to find the backdoors. We're actually dumping the chunks right now. My biggest fear is that at some point in time, I will actually have an object, and I will to drink lots and lots of alcohol and then write a TCL decompiler to actually find the backdoors by itself when they're compiled, but I'm so scared of this. We have some random applications. You can imagine this tool is actually really cool for research because it actually gives you all the pointers and tells you what to do. You're not shutting me down. You're so not. I'm not shutting you down. Who thinks we should give FX five more minutes? That will be sufficient. Thank you very much for bearing with me. We also have something. Because we get the I.O. memory as well, we actually see stuff that I.O.S. does to packets. It is like when they process switch packets, when they actually have to load them into main memory and think about them. In the scenario of ACL matching, for example, or when they're running firewall stuff, we actually get to see those packets. Now, I.O. memory is a part of the main memory in the lower end shared memory routers. It is usually a very large part, and it is ring buffers. Ring buffers have this wonderful property that they override linearly, but they have different sizes of ring buffers. They actually have a ring buffer for small packets, medium medium packets, large packets, extra large packets. If your network is usually transporting TCP packets that have the full size because everyone is streaming porn and someone sends an exploit in a small packet, this small packet is going to stay in memory a long, long time. What we do is we extract the traffic. We actually dump the traffic that the router was routing in his recent past, which is in so far cool as that we can say, you know what, this packet over there is the one that your router crashed on, which means we get instantaneous ODAY collection in the form it was actually sent. This is how it looks like. We actually produce a PCAP file, and you can see all the passwords flying by and stuff, but if someone attacks the router, you can just take this one packet and say, save to disk, and you've got new ODAY. And that was the entire point of the exercise. So quickly, what about crash info? Some iOS devices actually write a file called crash info. It's a text file, and I'm just not going into the details. I'm just showing you something here. On the top, you see a very telltale number that someone exploited this device. The problem with crash info is it's information that iOS writes. It reads into a text file of what iOS thinks the cause of the crash was, and in most cases, if you look at this, in most cases it actually takes a process called crash writer, which is the process that gets started to write the graph stuff, so it wasn't actually existing at the point in time where something went wrong. IOS is just too fucking stupid to find out what crashed, so it's actually like blaming the process that writes the blame. . . Hackers like to get up on stage and say, I have this really cool tool, and it's 0.0.1 alpha and only compiles on Mac OS X on a Solaris platform. We actually put a lot of work in this. We actually have this in release state. We do actually work professionally on this. Since February, we do have an online service where you can submit core dumps, and you get a full report, and it's registration-free and everything. If there is interest, and I don't know so far, so feedback, please, there's going to be a free rootkit detection version that finds topo stick in your routers. And we actually do have a professional version that actually costs money because all that research costs a lot of money to find stuff and to use on your own FTP server in larger networks. To automatically process core dumps that come in. The challenge here is this. iOS images have about, like, there are about 100,000 different iOS images out there. 15,000 officially supported by Cisco at any given point in time. This is a great headache for us. It is also a great headache for exploitation because I want to make sure that you're not thinking, like, I'm saying, I'm not going to do this. I'm not saying everyone, like, all the Chinese hack your routers and own your routers. It's highly unlikely right now because remotely you actually have a chance, one to 100,000 to actually guess the right images. And stacks are not stable. Like, all the addresses are not stable. If you ever wrote a stable exploit, you know that hard-coded addresses really, really suck. But all the exploits, mine and everyone else's so far, have been, like, have been published with fixed addresses. So they work with one out of 100,000 images. So the diversity, the sheer diversity of code that Cisco puts out there is almost a better protection than the source port randomization patch that you apply to your DNS due to Kaminsky's fucking around. So they actually, like, make it better for the worse. This is a slide on, like, what I think people with backdoors will do. In the future. And as you see, there is no blanks on the detection side. Once we get all those iOS platforms, like the hardware platforms, covered, and that's a lot of work, once we do that, I think we should be pretty fine for the next couple of years if you guys start configuring your routers to actually dump core and not ignore reboots. And that is it. Thanks for the additional five minutes. If you're interested, if you're interested in this subject, I do recommend going to this website. There is a wiki. We actually try to fill it with useful information. And it actually contains exploits as well.