The next speaker up is Brandon Workington. He's from Security Matters, and he's going to talk a bit more about the CTFs that are here in place and also in CTFs in general, challenging the next generation of ICS security professionals. Brandon, here you go. Thank you, Larry. Thank you, Larry. I appreciate the opportunity to speak here. You'll notice there's actually two people on the title slide. That's because my colleague, Harry Thomas, actually was instrumental in creating the CTFs that we're going to talk about. His wife is about two weeks away from giving birth to their first child, and so in the interest of not getting divorced, he did not come to DEF CON. We are both ICS security engineers at Security Matters. We're a company that's focused on ICS security. We're happy to be a part of the ICS village this year. We're a part of the CTF right next door. What I'm going to talk today about is three points. Why did we build the CTF? Some problems and solutions that we ran into as we were doing this, especially this weekend. There were several. Some tips and tricks for that last part is really focused on... how you can use a CTF to be more educational, rather than just a contest. The first question is, why build the CTF? I looked at the DEF CON web page, the contest page, and there's 29 CTFs at DEF CON listed on their contest page this year. Why did we do another one? That's a lot. The main reason is because... ICS is a very specialized niche, and a lot of CTFs are focused on really that high-level person. So, for example, the DARPA Cyber Grand Challenge that was at DEF CON a couple years ago, that was focused on artificial intelligence, and you really needed to be an expert-level person in both AI and malware and all that in order to be successful at that, or even to compete in it. The DEF CON official CTF, or whatever they... call it, that's the same thing. It's a contest to find the best at CTFs. And then there's niche ones like the Social Engineering Capture the Flag, where ICS is not really talked about. So, we wanted to create something that was really focused on ICS for one huge reason, and some other reasons. But the huge reason is because there's this well-documented phenomenon that... there's a talent shortage of ICS security professionals. This little tweet thing is from a couple years ago now, but Dale Peterson runs ICS Focus Security Conference, and his guess was 5,000 ICS security professionals in the U.S., with most of those hidden away where we never hear from them. What this means is that it's a really small community. And so, I always... like to throw this one if I'm talking at a place that is not necessarily ICS security people, but maybe general IT security people. I like to point this out, because it's a small community, you can get involved, you can meet people really easily, and it's just a great way to get involved. I personally have only been involved in the ICS stuff for about five, six years. And within a year, I knew most... like a ton of people who gave talks at DEF CON and stuff on ICS security. Because it's such a small community. It's a really great community to become a part of. I've talked about ICS. One of the problems when you're talking about ICS security is industrial control system security. There's lots of acronyms. If you come from an enterprise security background, I'm sure you deal with that in other ways. But we talk about IT and OT. So, when I said IT security, that means your traditional... like... SQL injection attacks or password cracking. Things that a hacker, a generic hacker might do. There's some things that a security professional who comes from the IT world may not be able to get away with if they come to the OT world. Such as some devices, if you scan them in the OT world, they will fall down and cry into a little ball. On the OT side, it's just a different skill set because they have different requirements. And there's other people here this week who are talking more about that. But I just wanted to point that out. There's some ICS focused capture the flag stuff. Reed Whiteman is right outside. He does one at the S4 conference every January. There's some other ones, but there's not a whole lot of them. So, we saw this... We saw kind of an opening for something like this. So, we built our capture the flag. We call it the Lights Out Hacking Challenge. At DEF CON, it's a little different because we're a part of the ICS Village capture the flag. So, we have flags and all that kind of stuff that you get points for. In our other events where we do this... Like, this was from B-Sides Orlando in March. We call it the Lights Out Hacking Challenge where the winner is the first person to turn out the lights in Gotham City. To turn out the lights in Gotham City. So, Mike Mitchell was our first winner of the Lights Out Hacking Challenge. We'll hear from him at the end of this presentation. These are all people from college students in Florida. So, we were very happy that they participated. And won the first CTF we did. Now, I'm going to go into like the second area of my talk. The problems with creating an ICS focused CTF. Just in case you want to. The first problem I'm going to talk about is the operating systems. When I did CTF at B-Sides several years ago with the Pros versus Joes, everything was virtualized. Because you're attacking and defending Linux and Windows boxes. That kind of thing. In the ICS world, many times we don't run just your traditional Linux, Windows, Mac operating systems. We run proprietary operating systems that do a certain thing well. Hopefully they do it well. But it's a different operating system. You can't just go use the same tools with them. And so, virtualizing them can be much more difficult. So, you kind of have to have some real world stuff. It makes it much better of a CTF. And that gets into the next problem, which is money. ICS devices can be super expensive. This was off the rack. I just Googled Siemens S7 device. And took the first price I saw, $4,000. That's out of the range of somebody who wants to just build a CTF for their local maker space. Or their local B-Sides or something like that. So, that was the first problem that we had to overcome. And so, we did that with our business credit card. Because that can solve a lot of problems. We created our LightsOut CTF. Here's a picture of it. So, we can look at something prettier than a credit card. We created this. And it has several different use cases. So, one of them is CTFs. At B-Sides, here, we use it for CTFs. Another use case is for trainings. In B-Sides, Las Vegas, just this week, my boss gave a one-day training on network security monitoring. Focused on industrial control systems. And this is a non-vendor specific. This is a non-vendor specific. Using all open source tools, that kind of stuff. Just as a public service type thing. Sounds kind of cheesy. But we want to give back to the community in that way. But then we also can take this to trade shows. Which if you're, which we take the same things. We take it to a trade show. And we do demos for potential customers. And so, by making it a business credit card. This thing that we use for business. We were able to build this. Actually, I should say, Syberical. Do we see Syberical? Oh, we don't quite see. And there it is. Syberical built this. And they're an engineering firm based out of New Orleans. Who we contracted with to build Gotham City for us. And then we use it to, by using it to drive that business use case. We're able to then also do things like those B-Sides trainings. And capture the flags. And that kind of thing. The next problem we get into is shipping. This is a big problem sometimes. Like yesterday. I'll get into that in a minute. Shipping this can be kind of expensive. It costs a lot of money to ship a giant 150 pound box. Across the United States. We did. We put it in a Pelican case. We have multiple Pelican cases. With custom made liners. And all that kind of stuff. To make the model fit. The model fits in the liners and stuff. And then we have a portable server rack. That you can see outside. Or on the other side of the wall. We have the portable server rack that's in a Pelican case. To try to minimize any damage that comes from shipping. Sometimes it's unsuccessful. When FedEx loses a 150 pound giant black case. I don't know how they do that. But they did. And it ended up being a good thing. Because we were able to then make version 2.0 of our case. And we were able to switch out. We started with a Dell 1U server. Which was fine. But it didn't handle the shipping very well. And we were able to switch to a super micro ruggedized box. We were able to put a new KVM in it. That was more ruggedized. So we were able to kind of upgrade. Learn some lessons. And take the insurance payout from FedEx. And build a new box. So version 2.0 would be more hardy. As we shipped it. I'm sorry? How many of those $4,000 Siemens boxes were in that? How many $4,000 Siemens boxes were in that? Great question. Come out and we'll show you. We have an Allen Bradley MicroLogic PLC. A Schweitzer engineering RTAC. And a Schweitzer relay. Doing them. We insure it every time. So FedEx cut us a nice check. They actually found the box. And after they cut the check. And so they told us we could either send the check back. Or get our thing back. We were like we don't know what you did with it for the last two months. So we better just. It might have been sitting outside or whatever. Who knows. When you say MicroLogic PLC. Is that different from other PLCs? MicroLogic is a brand name for Allen Bradley. Allen Bradley. Yeah. So shipping sometimes helps you. But it can cause problems. And then any time you do something like this with technology. You're going to have technical difficulties. And you're going to have user errors. And we've had both of those. When we went to our first CTF at B-Sides Orlando. We got there. And our Wi-Fi router that we used for participants to get on. Was broken. And so luckily my boss is always prepared. And he had his travel router with him. And so we were able to use that at the second. At that first CTF. I told. We actually have another person who works in our company. Who's related to my boss. And I told her about that. That I was putting the Boy Scout slide up. And she said oh no. He's a Coast Guard person. They're always prepared. I never knew that. Coast Guard. Coast Guardian. I don't know. Whatever you call a Coast Guard person. He was in the Coast Guard. And so he's always prepared. Of course then we went to our next event. And he was not there. And we didn't bother to buy a router. So that one was definitely user error on that one. So again. Once again we have the business card. And we have Amazon two hour delivery. To the Denver hotel. So we were able to solve that problem. By spending more of my CEO's money. And then we have. This week. And I've talked to some of you about. What happened yesterday and today. We came in yesterday. At one o'clock in the afternoon. To set up our CTF. Like we planned to. And that right there. Is where that super micro. One you ruggedized. Computer is supposed to be. This was after we started looking at it for a while. That is where it is. That's where it's RAM is. And that's where it's hard drive is. It was shattered. You can see the weld. The metal welds that came apart. From FedEx. Shipping our box to us. That we found out yesterday. At one o'clock in the afternoon. That it was totally broken. So. If you're going to have that happen. Somewhere. This is the place to have those kind of issues. Because my boss. Did a training at B-Sides. And he had somebody he trained there. Who he talked to a little bit. And this guy was going to come test out our CTF for us. Run through all the flags. Make sure everything was working. Wonderful. Instead he showed up with three of his friends. And this guy. Is a hardware. Like genius. The guy. That you can kind of see in the back. Is apparently. Ubuntu genius. And they. With my boss. They went to Fry's. They bought RAM. Motherboard. Everything. They built a server for us last night. Which is why we were able to do the CTF this morning. We got everything networked. And working all the VMs on it. At about 9.45 this morning. For the 10 o'clock CTF. We played into the night last night. And honestly it would not have happened. Without these random people from Def Con. Who we never met. This guy. Fry's did not want to sell my boss. The two 32 gigabyte. RAM sticks. That we needed for it. Because they were the only two they had in the store. And the only two that would work with that motherboard. And so one per limit. So he put. He put one on his own credit card. For us. I mean. This community is phenomenal. So. So. But everything is working now. So now we actually have a CTF going. So one of the problems you have with a CTF. Is. Having to protect the devices. So what we did. Was we enumerated all the attack paths. That we might have. We determined which ones. Provided too much access to the players. And then we limited the risk. To attack paths. And we did that in a couple ways. The easiest way. Maybe not the most effective. Is to make it out of scope. So like we said. Don't take out the host hypervisor. We're not in the business of defending hypervisors. So that's out of scope for the contest. Most people are pretty cool. Except for the guy who was. Messing with everybody's DHCP server. Earlier this morning. But most people are pretty cool in this kind of thing. And so they respect that kind of thing. The other thing we did. Is we made the attack vector. Too difficult to compromise. So for example. We have an admin panel. That might have a 30 plus character. Randomized password. Because in a two day CTF. Realistically nobody is going to crack that. In a CTF. So even though we say. Nothing is unhackable. Realistically for the CTF. That's something that we don't have to worry about. I'm sorry? I'm sorry? Yeah the length. 30 plus I said. Yeah. That's why I didn't say 27 or 36. Alright. So. With our lights out challenge. And the title of this talk. Is creating a CTF that teaches. With. That is near to me. I used to be a teacher. I taught middle school and high school for several years. My. Boss does trainings all around the country. Like you said. He likes to teach. Like I said earlier. He likes to teach people. We want to do things that really drove the educational side of this. So that if we brought the CTF to somewhere like this. People are getting introduced to ICS devices. So I'm going to throw a couple educational terms at you. So the first one is scaffolding. So just like you might imagine. When you're painting a building. The scaffolding builds you up. So you can reach what you're doing. Scaffolding in education is providing supports. That allow the students. To be successful. So for instance. My colleague Harry. During the first CTF we did. He put out the tweet about our friend Krusty. Has taken up a new hobby. Steganography. Here's a hint to somebody. Or to the participants. Let them know hey. Maybe I should look into some. What the steganography thing is. So we give hints. We work with people to build them up. Another thing we do. Is guided questions. So we like to talk to the participants. What are they doing. Talk to them about what they're doing. Talk to them about where they're having problems. Especially like I said in Orlando. When we had the college students. That was like we were in Nirvana with that one. We can ask them what worked. So that they can. Kind of get. If you talk through what you've done. Then that helps you remember it better. So they can. That helps them. Give them ideas for where to. What to read up on. When we close for the night. We might talk to people about that. We've done that in the past. Kind of give those guided questions. To kind of give people hints on where. Where they should be looking. Another thing. Another kind of tactic. Is reinforcement. We can introduce skills. Early in the challenge. And then we can build on them. Or require more advanced use of those skills. Later in the challenge. So for example. If we have the password prison. For something. And no this is not one of our passwords. We might have that. Early in the CTF. And then later on. We might change that password. To something where they have to. Mudge the password a little bit. And we can talk to them about. How they can automate the process. Of changing out those characters. Making password variations. On how to. So that as they use a skill. Then they come back. Learn a little bit more about that skill. And build on it later on. So that kind of reinforcing. As you go on through the process. Another thing we've done. Is collect traffic captures. And honestly. This is partially selfish. Because we like to see the attacks. That are going on. Because we're in the security business. But participants can see what they've done. And then this one is really big. For me. When I've done. I did a CTF a few years ago. That was actually focused on. This was the only thing. They really focused on. Was seeing artifacts of what you did. It's very helpful. To see what network artifacts. Are occurring. In the PCAPs. That the defender is then able to see. So that if you're on the red team side. You learn what you have. You might learn how to. Avoid those artifacts. And if you're on the blue team side. You can learn what kind of checks. You might want to look for. And it also allows us. To improve the CTF over time. The more data we have. About what worked and what didn't. So that hopefully things improve over time. So I've mentioned. The guy from Orlando. Michael Mitchell was his name. The winner of the first. He was the one getting that challenge coin. He said. One of only two CTFs. That I have ever participated in. That were designed to teach participants. Rather than test them. Which was awesome. That's what we were going for. The little time I had. To compete in that CTF. Taught me far more. Than I was ever expecting. He put this out on his blog. After the fact. That was the best feedback. We could get. Honestly. If somebody like Larry. Or Reed Whiteman next door. If they win our CTF. I think we might be doing something wrong. Because our goal is to introduce people. Into the ICS world. To just prove who the best. ICS hackers are. So thank you. I'm. Just about out of time. My name is Brandon. My invisible colleague. Houdini. Like I said. I could not have done it without him. For this weekend. I could not have done it without. The DEF CON community. Stepping up and helping us save that server. That got destroyed by FedEx. Please go check out the ICS Village. CTF. Or if you don't want to do the CTF. Check out the demos. There's like an airplane cockpit. Or something that I saw in there. It's insane what they have. Here at DEF CON now. Are there any questions? Yes sir. We do not have a Siemens device. In our portion of the CTF. I do not know if any other groups. The way the ICS Village CTF is. There's like three or four or five different. People who all created parts of it. So the part that we did. We have the Allen Bradley device. Allen Bradley MicroLogix PLC. And then we have. Schweitzer Engineering. Relay. And Schweitzer Engineering RTAC. So the Schweitzer stuff. If you look at our demo rack. The blue boxes are the Schweitzer stuff. They control the electric city part. The PLC. That's sitting out on the table. Because it fell out of the server rack. It controls the ping pong balls. Flipping up and down. One comment. One question. Consider looking into event production shipping companies. That actually ship things for event production. They may have better insurance. They may take better care of your ship. Cool. Question. I'm a student. And a student leader in a cyber security club. I run a CTF. I want to integrate some ICS stuff. We can't afford hardware stuff like you guys have. Are there any software. Or virtual machine. Alternatives. Great question. He asked if there was any virtualized. Things that he can do for like a college. Cyber security club. The first thing that pops into my head. On something like that. Is Cybati. C-Y-B-A-T-I. That's run by a professor. From I believe DePaul University. Named Matt Lou Allen. Who's a great guy. He's been at the village before. I don't know if he's here today as well. It is the last time. Actually the last time I downloaded it. Was probably a year and a half ago. And it was like 28 gigabytes. Or something like that. So it's a hefty VM. Because he has that educational background as well. He has a virtualized network. With a bottle filling thing. So you can make. It's a virtualized thing. You can see the little. Bottle going across the screen. He has. Reference material. The reason the VM is so big. Is because he has a lot of reference material. Built into that. So that it's all ready to go. And that. You get it through a Google group. So it's. That Matt Lou Allen's. CYBODY is probably. The top of the line virtualized thing. I've ever seen. Yes again. So this CYBODY you just mentioned. Emulates or simulates some PLC devices right? Yeah. From your experience. How realistic is that in real world? I mean there's like. There's a challenge in actually simulating PLC's. Because you know. You don't have PLC's. You just watch them. So the. For something like that. In the virtualized environment. I think the biggest benefit. Is that it generates the traffic captures for you. So you're able to then see. What is happening. So you're able to see. Even though you don't have that real world. Experience of actually working. With a real PLC. You're able to see the network traffic. Yes. A comment about Codasys. Is it your own PLC company that does have. A port of their operating system. With Raspberry Pi. So you mentioned that Codasys. C-O-D-E-S-Y-S. Has a Raspberry Pi. Version of their operating system. So you can get. Cali has a Modbus. Module. I'm sorry. Velasio. Yeah. Velasio is a. It also produces. Like V-H-M-I. Stuff like that. V-E-L-S. Yes. In the. Yeah. You can get virtualized. For ADB 800 XA also. Yeah. Any other questions. Or comments. Yes. So you mentioned. That's really expensive. Like. Like. Like. Like. People who do that. That you want to talk to. It's a pretty small community. But I think it's a very accessible community. So. There are people who do that. And there's people who do red team. And that kind of thing. Is that the top company. Sure. Well. We are blue team. No. We're completely passive blue team. So. Red seal is one. Most of the. Yeah. Talk to people over there. Yeah. Yeah. Talk to people on the other side of the wall. Any other questions. I hope you all have a good con. . . . . . . . .