Next to pick her up is Brandon Workentine, he's from Security Matters, and he's going to talk a bit more about the CTFs that's here in place, and also in CTFs in general, challenging the next generation of ICS security professionals. So, 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, and we're happy to be a part of the ICS village this year. We're part of the CTF right next door. So, what I'm going to talk today about is kind of three points. Why did we build the CTF? Some problems and solutions that we ran into as we were doing this, and especially this weekend, there were several. And 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. So, 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. So, why did we do another one? That's a lot. Well, 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 big reason, one huge reason, some other reasons, but the huge reason is because there's this well-documented phenomenon that the 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, 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, uh, ICS security is industrial control system security. So there's lots of acronyms. Uh, if you come from an enterprise security background, I'm sure you deal with that in other ways. Uh, but we talk about IT and OT. So when I said IT security, that means your, uh, traditional, uh, like SQL injection attacks or password cracking, things that a hacker, a generic hacker might do. Uh, that there's some things that we, that a security professional who's 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, uh, fall down and cry into a little ball. Uh, on the OT side, uh, it's just a different skill set because they have different requirements. Uh, and there's other people here this week are talking more about that, but I just wanted to point that out. Uh, there's some ICS focused, uh, capture the flag stuff. Uh, Reid Whiteman is right outside. He does one at the S4 conference every January. Uh, there, there's some other ones, but there's not a whole lot of them. So we saw this, uh, we, we saw a kind of a opening for something like this. So we built our capture the flag. Uh, we call it the lights out hacking challenge. Uh, at DEF CON it's a little different because we're a part of the ICS village capture the flag. Uh, 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 maybe. Uh, the, we call it the lights out hacking challenge where the winner is the first person to turn out the lights in Gotham City. Uh, to turn out the lights in Gotham City. So that's, uh, Mike Mitchell was our first winner of the lights out hacking challenge. Uh, we'll hear from him at the end of this presentation. Uh, these are all people from college students, uh, in Florida. Uh, so we were very happy that they, uh, participated and won the first CTF we did. Uh, now I'm gonna go into like the second area of my talk. The problems with creating an ICS focused CTF. Uh, just in case you want to. Uh, the first problem I'm gonna talk about is the operating systems. Uh, when I did, uh, CTF at B-Sides several years ago with, uh, the Pros versus Joes, everything was virtualized because you're attacking and defending Linux and Windows boxes, that kind of thing. Uh, in the ICS world, we don't run, many times we don't run just your traditional Linux, Windows, Mac operating systems. Uh, we run proprietary operating systems that do a certain thing well, hopefully they do it well. Uh, but they, but it's, it's a different operating system. You can't just go use the same, the same, uh, 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. Uh, and that gets into the next problem, which is money. Uh, ICS devices can be super expensive. Uh, this was off the rack. I just Googled Siemens S7 device and took the first price I saw, $4,000. Uh, that's out of the range if, of somebody who wants to just build a CTF for their local makerspace or their local B-sides or something like that. Uh, so that was the first problem that we had to overcome. And so we did that with our business credit card because that's how, can solve a lot of problems. Uh, we, created our Lights Out CTF. Uh, here's a picture of it. So we can look at something prettier than a credit card. Uh, we created this and it has several different, uh, use cases. So one of them is CTFs. Uh, at B-sides, uh, here we use it for CTFs. Another use case is for trainings. Uh, and B-sides Las Vegas just this week. Uh, my boss gave a one day training on network security monitoring, uh, focused on industrial control systems. And this was a non-vendor specific, this is a non-vendor specific, uh, using all open source tools, that kind of stuff. Uh, just as a public service type thing. Uh, it sounds kind of cheesy, but we, we want to give back to the community in that way. Uh, but then we also can take this to trade shows, uh, 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 thing that we use for business, we, we were able to build this. Uh, actually I should say Cyberical, uh, do we see Cyberical? Oh, we don't quite see, and there it is. Cyberical, uh, built this. They're an engineering firm based out of New Orleans who, uh, we contracted with to build, to build, uh, Gotham City for, for us. Uh, 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 besides trainings and capture the flags and that kind of thing. Uh, the next problem we get into is shipping. Uh, this is a big problem sometimes, like yesterday. Uh, I'll get into that in a minute. Uh, shipping this can be kind of expensive. It costs a lot of money to ship a giant 150 pound box across the, uh, United States. Uh, 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, uh, the model fit. The model sits in the liners and stuff. And then we have a, a portable server rack, uh, that you can see outside, uh, or on the other side of the wall, we have the portable server rack that's in a Pelican case, uh, to try to minimize any damage that comes from shipping. Uh, sometimes it's unsuccessful when FedEx loses 150 pound giant black case. I don't know how they do that. Uh, 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, uh, we started with a Dell 1U server, uh, which was fine, uh, but it didn't handle the shipping very well. And we were able to go, 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, uh, more hearty as we shipped it. I'm sorry? How many $4,000 Siemens boxes were in that? Uh, and, and, and, and, and, and, and, and, and, uh, our great question, uh, come out and we'll, we'll show you. We have a PL, an Allen Bradley MicroLogic PLC, uh, SEL Schweizer Engineering RTAC and a Schweizer Relay, uh, doing them. Yeah, uh, we insure, we insure, we insure it every time. So FedEx cut us a nice check. They actually found the box, but, and after they cut the check, and so they told us we could either send the or get our thing back when we're like, well, we don't know what you did with it for the last two months. So we better just who might've been sitting outside or whatever, who knows? MicroLogix is a brand name for Alan Bradley. Yeah, Alan Bradley, yeah. So shipping sometimes helps you, but it can cause problems. And then anytime 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. We went to, when we went to our first CTF at B-Sides Orlando, we got there and our Wi-Fi router that we use 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 what, 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 1U 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 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 kinds 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, I think the guy in the blue shirt 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. After working late 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. And so he put one on his own credit card for us so we could buy that and do it. I mean, this community is phenomenal. So, but everything's working now. So now we're into it. 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 from those attack paths. And we did that in a couple of 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's 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 being compromised. I'm sorry? I'm sorry? Yeah, the length. So 30 plus I said. Yeah, that's why I didn't say 27 or 36. All right, so with our lights out challenge, and the title of this talk is creating a CTF that teaches. And 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, if I find a picture, maybe I should look into 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 when 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 reinforced. If you talk through what you've done, then that helps you remember it better, so that helps them. Give them ideas for what to read up on when we close for the night. 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 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, then later on, we might change that password to something where they have to munch the password a little bit, and we can talk to them about how they can automate the process of changing out those characters, very 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's really big for me. When I've done, I did a CTF a few years ago where 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 when you do an attack, what network artifacts are occurring in the PCAPs that the defender is unable 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, the better we can do 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've 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 Reid 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, not to just prove who the best ICS hackers are. So thank you, I'm just about out of time. My name is Brandon Workingteen, my invisible colleague Houdini, InfoSec 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. I mean, 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, 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 for Allen-Bradley MicroLogix PLC. And then we have a Schweitzer Engineering relay and Schweitzer Engineering RTAC. So the Schweitzer stuff is the blue box. 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 controls the ping pong balls flipping up and down. They may have better insurance. They may take better care of your shit. I've been in production. That might help you. Question. I'm a student and a student leader in a cybersecurity 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 integrate things that he can do for like a college cybersecurity club. The first thing that pops into my head on something like that is called CyBody. C-Y-B-A-T-I. That's run by a professor from, I believe DePaul University named Matt Llewellyn 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. But 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 you get it through a Google group. But Matt Llewellyn's CyBody is probably the top of the line virtualized thing I've ever seen. Yes, again. So 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. Yeah. So you mentioned that Codesys, C-O-D-E-S-Y-S, has a Raspberry Pi version of their operating system. So you can get, Kali has a Modbus module. I'm sorry? Velacio. Yeah. Yes. Yeah. Any other questions or comments? Yes. 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. Who are the top company? Sure. Well, we are Blue Team. Nope, we're completely passive Blue Team. So Red Seal is one. Most of it, yeah. Talk to people over there. Yeah, talk to people on the other side of the wall. Any other questions? All right, thank you very much for your time. I hope you all have a good con.