So, I guess we'll get started. My name's Reid. I work for a company called Digital Bond Labs, and I'm going to be talking about vulnerability inheritance in programmable logic controllers. And if you don't know what a programmable logic controller is, go check out the ICS Village. It's down in Bronze 1, I think, down at the end of the hall, this way. It's the last door down there. So, about our company, we're a new division of Digital Bond. Digital Bond is a small consulting company that's been doing industrial control system and SCADA security consulting since about 2001. Our little part of Digital Bond is focused on working with vendors and some end users, trying to find new vulnerabilities in industrial control systems so that we can mitigate those vulnerabilities. I'm really biased because I do that for a profession. I'm really a big advocate of red teaming products. So, what am I going to talk about today? I'm going to be talking about vulnerabilities and what they are, and it's sad that I have to define that, but there's a group that does industrial control system security disclosure that has an unfortunate definition of the term. And then we'll be talking about some third-party libraries in the industrial space and look at some cool vulnerabilities that live in those libraries and what vendors are doing to not fix problems. So, a vulnerability is really weird. So, ICS-CERT, they're the ICS Computer Emergency Response Team. They're a group that's run by the Idaho National Labs. They're kind of like a government organization that discloses vulnerabilities in industrial systems, and they put out these advisories, and they put out these newsletters. A few years ago, they made this weird statement saying that they weren't going to consider design issues security vulnerabilities. So, if something had... If there was no security in its design, or if it had a poor design that wasn't securable, they weren't going to consider the device vulnerable. It was only going to be software bugs that were considered vulnerabilities. So, a lot of us kind of fought back against that, and they've kind of relented, but never officially. We get them to publish advisories for design bugs all the time now, but they still never officially changed their position. My definition, of course, of a vulnerability is any mechanism that lets you change a system or modify it to do something that the operator doesn't intend to do. So, that includes kind of traditional bugs, like bypassing authentication, parsing errors, that kind of stuff, but also includes these design issues, where things are insecure by design. So, let's look at some cool third-party libraries. Well, what is a third-party library? Anything that runs on... I specifically focus on embedded systems. Anything that runs on your system is really a third-party library, right? There are operating systems. There are these common servers that usually live on industrial computers. There are controllers. There was just a talk in here at the last session talking about, you know, looking at some embedded systems that have, you know, like an SSH backdoor. So, like, the SSH server would be a, you know, third-party library, I guess, but really a server sitting on that system. I'm looking in particular at industrial ones, and so two that I have focused on in the last couple of years have been this Codasys library and Prokonos library for industrial controllers. Yeah, so we'll skip over that, because that's more important to vendors. So, Codasys is a ladder logic runtime, right? So, these industrial controllers are little computers that sit there, and they monitor sensors, and they make decisions based on what they're seeing. They say, oh, when the temperature's too high, we need to open up the coolant valve, or what have you. So, these little industrial PLCs are used by all these ICS vendors. The Codasys library is a thing that sits on a PLC, and actually executes ladder logic, and it does a bunch of other stuff, too. They're primarily used in Europe right now, but we do see a few of them, at least, in the U.S. There's a couple of Japanese vendors that have started making these things with the Codasys runtime inside of them. So, here's a couple of vendors. When we initially disclosed issues in the Codasys library, 3S Software, who are the makers of Codasys, used to have this list of all of their clients on it that had, like, 300 industrial controllers, control systems vendors. They took that down when the advisory came out, I guess so that, you know, people wouldn't know who the affected controllers were. But, luckily, you can go on archive.org and look at an old version of their website and, you know, grab that complete list still, because the Internet never forgets. Some of these are names that you might recognize, because, like, Mitsubishi is, like, kind of a household name, so is Bosch, right? Some of these are more well-known in the industrial space. So, Codasys, like I said, a lot of stuff, right? So, there's a ladder logic runtime, which is executing the logic for the PLC, right? So, that sits on the controller itself. That runs on top of a lot of embedded operating systems, you know, VXWorks, Windows CE, Linux. There's an RTOS called Nucleus. There's a bunch of others that we found. So, it executes the ladder logic, right? And it also runs a small listening service for communications, so that you can connect a PC to pull the PLC and say, hey, what's going on? How is the process working? Are things going okay? And also for uploading and downloading the actual logic that the PLC is going to be executing. So, Codasys is also a piece of engineering workstation software. So, this is like Visual Studio for programming an industrial process, right? You get to drag and drop little software components to say, oh, if this input gets to be too high, then open this valve. You know, if this output is like this and this input is like that, then do this other thing. You get to define all that stuff in one of these programming languages. And the Codasys engineering software, like I say, it looks a lot like Visual Studio if you're a programmer. In addition to that, they also have this thing called an OPC server. OPC is like another protocol. It's kind of a universal protocol for industrial processes. It stands for OLE for process control. If you do much programming with Microsoft stuff, you might have some familiarity with OLE. From like doing Excel sheets and Excel formulas and that kind of stuff. And it's the same thing. Then there's a gateway service that's optional that can sit between the engineering workstation and the PLC and can do all kinds of weird stuff. So, here are the main components of the Codasys network, I guess you'd call it, right? So, the PLC is that black box at the top and then you have all these services that can talk to the PLC and some of these services can talk to each other. And usually when these services are talking to each other, they're also using the same CodeAssist protocol that we looked at. So there are a couple of versions of the CodeAssist protocol, which makes things a little bit even more complicated. There's a version 2 protocol, which is part of CodeAssist v2.3 and v2.4. We did some analysis of that back in 2012. It didn't take very long. And then we also looked at the version 3 protocol, which changed a lot of stuff. We did some analysis of that in 2014, developed a couple of internal attack tools that we haven't released publicly. The version 2 stuff we've released publicly, and it's all out there, and you can grab it, and you can even search Shodan, and I'll show you how to do that. The protocol changed a lot, though. So let's look at the CodeAssist version 2 flaws. So first of all, there's no authentication on uploading new ladder logic. So you can actually change a factory's recipe for making whatever it is it makes without providing it as your name and password. So that's pretty bad. Then there's a little command line that lives as part of this service. That you can actually run a few commands via sort of like a command line interface, but it's actually packed binary. But yeah, you can interface with the PLC and issue it commands, and there's even a help command built into it, so you can say, like, hey, what can you actually do on this command line? Then there's the ability to start and stop the PLC from even operating. Without authentication, there's ability to retrieve files. So normally the file retrieval and upload is for uploading files. So you're uploading and retrieving the current ladder logic from the PLC, but there's a directory traversal vulnerability in the server, so you can actually grab any file off the controller that's running it. So that means you can upload and download any file you want. Usually the process on the controller is running as root or system or, you know, whatever the super user for the operating system happens to be. So you actually, because of the way the ladder logic works, you actually get free root kits because of it, and I'll talk about that. And there are quite a few of these systems that are Internet-connected. So Aaron Leverett, who's hanging around DEF CON and giving a talk tomorrow afternoon, I would go check it out. He and I did a joint paper a few years ago where we scanned the Internet. This was before Shodan, like, accepted third-party plug-ins. This was before ZMAP existed. You know, we were running NMAP, and we actually ran Unicorn Scanner and found a bunch of these things directly connected to the Internet and then tried to get them removed with mixed success. So there were a couple of ICIs and cert advisories about this. There were some CVEs issued. Both have a score of 10 because they're a complete compromise of the system with, you know, no patches, et cetera. So CODIS's version 3 has pretty much all the same problems as version 2, and that gets interesting because we'll look at the advisory that the 3S software company put out about it. The Internet scan for version 3 turns out to be a little bit more complicated because they have a UDP, UDP version of the protocol that gets kind of tricky to scan, and I'll talk about that. So deployment issues. Like I said, usually when the vendors put out their PLCs, they run the CODIS's runtime with root privileges on Linux or system privileges on Windows CE, and the reason is because this latter logic is actually interacting directly with hardware that's attached to the PLC, so it's usually using, like, GPIO, and who wants to spend the time, figuring out how to do that stuff with least privilege. It's better just to, you know, give the process super user privileges, and then it can do whatever it wants, and you don't need to think about it. Usually, to me, that's a sign of rushed development. So the weird thing about the CODIS's runtime is those latter logic recipes that the CODIS's engineering software produces, they're actually binary blobs compiled for the processor that sits in the PLC. So you get to upload them without authentication, right? So basically, you get to, this service listens, and you can upload code to it, and then it will execute that code as root. Doesn't that stink? Because, I mean, basically, like I said, you can upload a malicious latter logic update that actually contains executable code, which is a root kit, for example. So to summarize the flaws, there's no security, right? I think the 3S software originally assumed that, you know, nobody would bother learning the protocol, and nobody would bother attacking these systems. It's kind of one of these laws, though. It's like, as soon as you put an Ethernet port in something, it's going to end up connected to the Internet, right? So they probably should have thought about that. And I don't think 3S software ever had a red team look at the product, because if they did, the red team would have screamed. And that'll get even more obvious when we look at the version 3 protocol, especially the code to it. So the original vendor, the 3S software in this case, they've said, well, security isn't really a priority of this system, so we're going to protect this product. That was their official announcement. They did add a username and password feature, but they're like, we don't assume that this will actually stop anyone attacking the system, so, you know, protect your system some other way. Nice response. So the version 2 protocol, you can grab some sample scripts from our website, digitalbond.com, but the protocol's pretty simple, right? It starts with a couple of start bytes, BBBB or CCCC, or the normal ones. It uses TCP 1200, 2455, and, you know, figuring out the rest of the protocol is pretty easy, right? You just stare at the bytes until they make sense. You know, you're like, oh, well, this four bytes is always the length, and, you know, this thing looks kind of like a function code because normally it's one, meaning pull the status out of the thing, and every once in a while, when I click something in the GUI, that little function code byte changes to something different. So you can kind of figure out what does what in the protocol that way. Yeah, I already talked about the code injection thing. So the CodeAssist version 3 protocol is kind of interesting. I bought a PLC that runs V3 thinking, like, oh, okay, well, you know, I'll learn the version 3 protocol and see what's different, and I did that because when 3S Software released their advisory, they said, oh, version 2 is vulnerable, you know, but version 3 is not, don't worry about it, like, you're fine. Because I only released exploit code for version 2, and that's probably why they said version 3 is fine. The exploit code didn't work against version 3. So it can use UDP or TCP and UDP limits the attack surface. TCP might, I haven't actually looked at one of the PLCs that runs TCP just because I don't have enough money to be buying that kind of stuff. You know, these PLCs cost usually like $1,000 or $2,000 for a crummy little controller with no inputs and you have to buy all kinds of equipment to support them. So the version 3 notes that I'm going to go over, I'm going to kind of talk about the protocol a bit. I'm reverse engineering the protocol, so what I say the fields are aren't necessarily what they are. They're really called, although it is what they really do. And it uses UDP 1740 or TCP 11740 as the port by default. So when CODIS is version 3, when the engineering software first connects to the PLC, it sends this kind of UDP SYN packet, I guess, something like that. It's a really weird thing, though. So it always starts with this C573 4040 0011 and then it has this 00E6 which is actually the last octet of the IP address of the destination that we're sending this to. So this packet was being sent to the IP address 192.168.63.230 so that field 00E6 is actually a word that is 230 and that's what they do. They put it inside of the data payload of the UDP packet which is really weird. And they also put the last octet of the IP of the source address as the next field which is the purple one that says 1E. And then they have CRC which is this kind of dark purple thing down in the left hand corner, the 6AD579F4, that's actually a CRC of the entire packet. And then they have this random nonce, this next 4 byte thing, this E1179D84. So this took a little bit more analysis to figure out what all these fields actually meant. So when we sent that initial session ID, we get our first reply back from the PLC and the first reply back from the PLC you'll notice that the source and destination fields, the 1E and E6 have changed positions because the packet is going the other way now. But we kept the same session ID that 2C, the CRC obviously is updated. But yeah, so that session ID that we... When we send the first reply we're actually sending a session ID that the PLC generates. It's been a while since I've looked at this. So when the next packet that kind of finalizes the communication, the master system has to then send that session ID as part of the payload of that next packet before it can start issuing commands. And then it also has some sequence numbers. It's kind of weird. So what they're really doing is they're implementing TCP on top of UDP. So they're trying to create some kind of notion of sessions inside of this protocol even though UDP doesn't have sessions. But that's kind of in a nutshell what they're doing. The CRC algorithm is actually kind of interesting. So that CRC32 that I showed you, I was reverse engineering the binary trying to figure out what CRC algorithm they were using and I found a CRC algorithm as going through code but nothing actually called it. And I was like, well, I think they're using CRC32 and then I wrote some code and found out, yes they are. And then I was like, why is there no cross reference to the CRC32 algorithm that I can find where it's being called. Because I want to find the protocol parser. It turns out that there are a bunch of CRC algorithms implemented in the code but only the CRC32 seemed to get used. The answer to this weird mystery turned out to be that they used one of the bytes of the packet as a pointer into a function pointer table to decide which CRC algorithm to apply to the packet in order to verify it. That sounds really weird. But it is. So basically you accept this packet you pull out one of the bytes and it's the fourth byte of the packet you compare it to hex 41 and then if it's less than or equal to hex 41 you use it as an index into a function pointer table and then finally you call that index. Whatever happens to be at that index. So does anybody know who here is an x86 assembly person? Anybody? What's JLE? Signed or unsigned? I'll answer for you. It's signed. So that value could be negative. Think about that for a moment. So if the value of the byte in the packet is negative and then we use that as an index into an array, what happens? Well we just grab whatever happens to be sitting in memory before that array which could be anything and then we actually call that as though it's code. So that's pretty weird and pretty dangerous. So there's a lot of opportunity to do this in really interesting ways to do arbitrary code execution. So yeah, somebody else I'll probably start looking at this again because I haven't dusted it off in a while but if somebody else wants to look, go for it. It's really an interesting place to look for bugs for me. And there's a lot of suggestion that other fields in the protocol like some of the function codes take arguments and some of those arguments have weird parsers. There's some suggestion that those other functions of the protocol parser work the same way. So a good red team would have kicked and screamed and been like what are you doing, this is crazy. But it never happened I guess. So the security anyway of the UDP protocol is entirely reliant on that session ID. Remember the PLC generates a session ID and sends it to the master and then the master has to use that session ID for every request that it sends after that. The weird thing about the protocol in the UDP version is that those octets of the IP address they actually dictate where the response is going to go to. So if you're on a totally different subnet and you send a packet to a UDP port of one of these PLCs the PLC will respond to the IP address that happens to have the last octet within its local subnet. So it's a really weird thing with routing. But if you're a hacker and you're on the local subnet you win 100% of the time because you can see what the session ID is supposed to be. However if you're on a remote subnet it's actually pretty easy to work around. It has a 2 byte value so there are 65,535 possible values for that session ID. Unfortunately they increment it by 4 every time. So there are actually only 16,000 possible session IDs so you can brute force that pretty quick. You can just issue a connection request and then slam it with stop operations or stop production requests just guessing all the session IDs. It only takes 16,000 packets which is like that on a gigabit network. So Codasys version 3 is vulnerable. We wrote some internal exploit tools for it. ICS cert in their original advisory Any ICS cert people in the room? Thank goodness. So in their advisory which is still the official advisory they say Codasys version 3.x is not affected by these vulnerabilities. Unfortunately it is. ICS cert probably got their information from 3S software. ICS cert has kind of a tendency of just taking whatever the vendor tells them and taking what the researcher says as gospel unfortunately. So 3S software also got it wrong. This was their official advisory. They said that their version 2.3 run time was vulnerable. Unfortunately their version 2.4 run time is vulnerable and their version 3 run time is vulnerable. Another unfortunate thing is if you are an end user of one of these PLCs you can't just patch it. You have to go to your equipment manufacturer. You have to go to ABB. Or whoever made your PLC and have them generate you a new firmware to have the fix. And that takes a lot of time unfortunately. So look at a couple of affected vendors. One is that Hitachi EHV plus line of controllers. So that thing runs Codasys version 3. We bought an EHV CPU 1025 We couldn't buy it in the United States. We actually had to buy it from a European retailer. Which was pretty cool. It's the UDP version of the protocol. The command line like I said there is a kind of weird debugging command line on these things. The command line of that particular PLC is disabled. There might be a way to enable it via the configuration files but we haven't figured out how to do it yet. So first off what they did right Hitachi did actually disable a lot of services on this particular controller. It doesn't have any open TCP ports by default. There is only one open UDP port which is that Codasys protocol. It's a lot smaller attack surface than most PLCs. A lot of PLCs have little embedded web servers that are full of vulnerabilities. They have FTP servers all kinds of weird stuff with back doors. So doing a lot better than a lot of vendors. On the downside there is no way to actually update the firmware on one of these things. So they just don't provide any mechanism for it. I actually asked them are they ever going to produce a firmware update? They wouldn't answer. I noticed there is no firmware update mechanism for this in any of your software. But that kind of stinks. So to exploit the UDP version of the protocol like I said there is no security so we just have to guess that SID. There is no method for actually adding a password to this thing via the Codasys tool. The exploit scripts that we wrote we can start and stop the CPU we can retrieve and send ladder logic to the device we can send a new config file to the device using the directory traversal bug. We can do some other weird stuff we can change the PLC's IP address and do some other goofy things. And just to kind of visualize the attacking UDP thing if you are off network you just issue that session initiate the thing is going to send back the session ID to some PC on the local network and then you are just going to have to guess what the actual session ID is. And that is how our tool works. Another vendor that is vulnerable to the Codasys stuff is Sanyo Denki. They produce a line of controllers called the SanMotion C controller. And they are running the Codasys version 2.3 protocol. They have VxWorks on the system. Who remembers the VxWorks debugger service? It is a really old school vulnerability. I think it has been around since 2005. Basically it is a debug port that lets you connect and read all the memory out of a PC that is running VxWorks. And then there is a couple of backdoor accounts on the system too. So I didn't actually buy one of these Sanyo Denki controllers. I actually owned this one already. They look pretty similar, right? And then I was doing a little more searching because I was like, wow, that is really weird. And then there is, so this is the Sanyo Denki. This is the Festo CECX controller. This is the Caba CP232 controller. It turns out they are all the same thing. When I grabbed the firmware off the controller that I had, I just was like, wow, I never bothered looking for any vendor names in the thing. You know, I just was like, oh, it is a Festo controller. I know it is a Festo controller. Sure enough, there are actually tons of vendor strings in the firmware. There is Caba, Kuka, Trumpf, Hytain, Bueller, Dwer, Engel. There is a couple of other vendors too that all seem to use the same hardware. So they have an OEM relationship as far as hardware is concerned and firmware. So that is kind of interesting. We think that the OEM for this is actually Caba Automation. They are an Austrian company just based on a lot of analysis of the firmware and product release dates from all the vendors. So there is a ton of software components in the system though. There is VxWorks, the operating system. There is Codasys, the ladder logic runtime. There is the can open protocol stack. They have a whole bunch of other third party libraries that they have included in the firmware. So it has all the problems from Codasys version 2. We first contacted Festo through ICS cert in 2013. Festo didn't really do anything. So, eventually ICS cert actually gave up and published an advisory without input from them. Festo basically refused to fix any problems. And who knows if they can, right? Because if this thing isn't even manufactured by them maybe their hands are tied. They might not even have access to the source code. And, you know, kind of a question I have is did they contact Caba? Like upstream, their upstream provider and say, hey, somebody reported these bugs like can you make a new firmware for everyone? Who knows? And then, of course, that makes me ask the question do they share information about hardware defects with each other? I don't know. I wish I knew the answer to that question. So, yeah, it also had the VxWorks backdoor thing that was, you know, there was a CV for it back in 2005. Like I said, that's unauthenticated read-write to all memory. Which is really the same thing that Codasys lets you do. But a little bit easier because you can download tools to do it from Wind River. But it's important to note that when the PLC was released that VxWorks CVE had been around for five years. So the PLC came out in 2010. That VxWorks CVE was much older than that. So, yeah, of the nine total companies that were affected by that piece of hardware that one PLC you know, nine companies actually selling it none of them spotted the security problems. Right? Otherwise they would have fixed it before they put it out. So I don't think any of those companies do internal testing. And, you know, who knows if these companies share information about vulnerabilities with each other. So I think I'm going to run out of time before I can do the Prokonos stuff too deeply. So I'm going to do a not so deep dive and also talk about Iran. So Prokonos is another third party ladder logic piece of software made by another German company. So these German companies seem to love this and they take three words and put them together and capitalize and do the camel case thing with their names. So it's made by this company called KW Software. But KW Software was actually bought by Phoenix Contact and definitely go look at the ICS Village. There are tons of Phoenix Contact PLCs down there and I will neither confirm nor deny that they're vulnerable to this issue. So the CVE for this was in 2014. It also gets a score of 10 because it allows complete compromise of the controller. There's no authentication needed for uploading and downloading ladder logic. You can start and stop process control without authentication. It kind of stinks. See I don't know who to attribute this quote to but it is from Phoenix Contact slash KW Software. They basically said it's up to the OEMs to implement security. We're not responsible for that. It's their job. So Prokonos was a little bit harder to find affected vendors for because they weren't nice to include a vendor list on their website. So I can't use the Internet Wayback Machine to go find a list of affected vendors. We've been searching online and buying a couple of PLCs. We do know that there are some Emerson controllers out there that are affected by this so they're a pretty big name in the industrial space. Advantech is a PLC that I actually bought to play with the Prokonos protocol so we know they're affected. And then there's this weird company called Kontronic that I'll talk about. So you can actually search for the Prokonos stuff anyway on Shodan. You can search for just the word Prokonos and you'll find a whole bunch of controllers. There's a couple hundred I think right now. It usually runs on port 20547. Anyway on to Kontronic. I was doing this kind of funny thing where I was finding people's resumes and I ran just by searching for random terms. So I was like well I wonder if anybody there is running ABBR2. So I'm like ABBRTU countrycode.ir and sure enough you find some people's resumes and there were a bunch of people with resumes that were like I installed this ABBRTU560 in this weird substation in Esfahan. It's like wow that's cool. It's neat open source intelligence. One of the things I stumbled on was this PLC manufacturer in Iran and this got me really interested because I was like wow I don't know anything about indigenous PLC manufacturers. It's not as important now that the embargoes are all being lifted but if that had continued I mean Iran can't buy Siemens PLCs anymore so they have to start making their own. What are they going to start doing? And so this was an indigenous Iranian PLC made by this company called Kontronic called their PLC500 and sure enough it actually runs the Prokonos ladder logic runtime on it and uses that software for configuring it. So it was just kind of neat to find a vulnerable PLC in Iran without actually being able to visit the country. So I was mentioning before that Aaron Leverett and I did some scanning of the internet. In 2014 I shared a Codasys search script to John Matherly who runs Shodan. Wrote up a little script in Python to help identify Codasys systems because I was tired of doing the searching myself. You can now search for Codasys version 2 on Shodan. If you search for the word 3s-smart you'll find a lot of controllers. So I searched this morning and there were like 2200 of these PLCs directly on the internet. Just for some random stats, I gave a version of this talk back in June and when I gave that talk there were only 1700 of them on the internet. And there are actually 2200 devices on the internet this morning. So there's actually 150 were found in the last 24 hours. As I updated my slides for today. So that's kind of cool. One of the things I found that was kind of interesting was a ferry controller so it was a ferry navigation and engine control system on a piece of public transportation in Europe. We managed to get that taken offline so that was fun. There's a lot of these controllers that are running HVAC systems I search a lot for stuff in my state. I recommend if you're into this sort of thing just give it a try. Search for stuff in your local area because you'll have at least some opportunity to meet people in your area to be like, hey, you have this vulnerable thing connected to the internet and you shouldn't have it there. Let's go chat and have a coffee or something. But most of these systems we don't really know what they do, right? I find a lot of HVAC ones, I find a lot of weird small pump ones, but a lot don't have any information that you can pull out safely to know what they're doing. So on scanning for systems so Aaron and I scanned the internet back in 2013. We found 600 of these code assist controllers. It cost us a lot of money to do it back then because we had to rent servers and we had to run a whole bunch of kludged together scripts and massage data. We figured out it cost about $50 to find one vulnerable controller on the internet back then. Today, thanks to Shodan, I can pay $20 and just type in a single search query and then I can find 2,200 of these things. So the cost to find them now is down to one cent. And the reason I mention this metric is just because governments now are kind of wondering what can we do to protect critical infrastructure or what can we do to protect industrial systems. And I think this is one of the things that we can start doing. Because this is so cheap to do. If you can manage a database of these systems as vulnerabilities come out, if the system is important enough, you can find the owner and get them to take it offline. Although that getting them to take it offline part is actually a little bit of a challenge. So the hardest part of that whole scanning for systems is really how do you get it offline. I mean these industrial systems are hanging on the internet and there are more and more of them being attached every day. I've been doing a whole bunch of different tries at getting stuff taken down because I find a lot of weird stuff on the internet. So I can say most of the computer emergency response teams and like official government incident response teams don't have any authority to do anything. Most of the PLCs and industrial stuff you find is connected to just an ISP's net block. Meaning it's a PLC connected to Verizon's network. Well the government can say hey Verizon can you contact the owner but Verizon's probably going to say no. Like why would we do that? That's just more work for us. And then there's liability issues that the ISP's have because they're like well if we do it for one person and we don't do it for somebody else like maybe that somebody else is going to end up suing us for doing the wrong thing. It's just liability that we don't want for whatever reason. Most ISP's that I've contacted they don't do anything. I mean they just are like thank you for your information we will probably never do anything with it. Bye. There's that. Every once in a while I find a controller that has some project information in it where it has a person's name. And usually from that I can figure out who they are because I control LinkedIn I can search for that person's name who's an industrial automation person and find the person. And every once in a while there's this nice success story where I'm like hey you have this thing attached to the internet please take it down and they do. It's pretty rare unfortunately. So anyway I guess conclusions of all this bugs in software and ICS is doomed. I really think that the ICS vendors need to step up their game. Start identifying these security problems before they release products. The vendors really need to do a good job of building up a list of what third party software they're using internally. And some of them are starting to do this and others are really falling short on it. But if you build up a list of third party software you're using in your product and you're bundling with your product then you can at least have some chance of saying okay I need to produce an updated firmware or an updated release and patch this stuff. So in the Sandio Denki example the controller was released in 2010 and had well known vulnerabilities that would have been found just by running like Nessus or Nmap or whatever against the system. And then in the Hitachi example sure the V2 code assist problems weren't released at that point but they're a huge company and they should have a competent red team. They really should have been red teaming this stuff back then. The other thing is that these control systems components never plan to patch it seems like. Some of the new products that are coming out now are a little bit better but they really need to come up with good update mechanisms ways to manage the firmware images that are installed on your devices so that you know what you're running and can patch things easily. And yeah design problems are still a pretty big deal for the ICS space. So to pick on Schneider Electric for a minute we found a whole bunch of vulnerabilities in Schneider Electric PLCs relating to the Modbus protocol. So their Modbus protocol has similar features to Code Assist. They have a special function code called function code 90 that lets you do like ladder logic upload download issue these start stop commands it's kind of like their secret sauce of their engineering software. Those problems still exist in their PLCs. They've been issuing a lot of security patches for their PLCs fixing web server like true bugs but this is a design problem it's a lot harder to fix and it's been I don't know how many years now since those problems have been disclosed and there still aren't fixes for them. And then in the 3S software example they fixed directory traversal vulnerabilities really quick because that's a real bug but again the design issue of not having authentication is going to take them a lot longer. So that's all I have. Any questions, comments, tomatoes? Definitely do. Like I said there's a lot of Phoenix Contact PLCs to look at. Yeah the question was what's my rate of kind of vendors saying that's not a vulnerability where I say that it is. It actually hasn't been that high. When getting in touch with vendors directly a lot of them will be like yeah that is a security problem. I'd say the real challenge is the kind of 3S software response and even the KW software response was both yes that's a security problem but that's not our job. Like it's not our job to fix that. It's up to the OEM to fix it or the end user to deal with it. I'd say that's a much more common issue. Any others? Okay. Thanks. Thank you.