[00:02.410 --> 00:03.010] Okay. [00:03.010 --> 00:03.990] Hey, everyone. [00:04.210 --> 00:06.070] Today we've got a real treat for you. [00:06.070 --> 00:14.450] We've got some folks here, Coyne and Hubbell from BC Security, who are going to do a presentation on an introduction to CTFs. [00:14.670 --> 00:16.830] First off, I just want to highlight BC Security. [00:16.830 --> 00:24.910] They've been a perennial sponsor of the Red Team Village, and we are grateful for that and appreciative, and we're glad to have you here. [00:24.910 --> 00:27.070] So I'm excited to get this started. [00:27.170 --> 00:28.110] My name is Billy. [00:28.110 --> 00:30.190] I'm a member of the Red Team Village. [00:30.190 --> 00:39.290] And just for ROEs, rules of engagement here, as we go through the briefing, please feel free to leave any comments you have, you know, right in YouTube. [00:39.290 --> 00:44.370] We'll get them here, and then Hubbell and Coyne will be able to answer as we go along. [00:44.470 --> 00:48.550] So with that, over to you guys to introduce yourself and get going. [00:49.190 --> 00:49.790] Awesome. [00:49.790 --> 00:50.970] Thanks for the intro. [00:51.610 --> 00:58.990] So if you guys haven't been on any of our webinars or workshops or anything, I'm Hubbell. [00:59.650 --> 01:01.590] Also, Jake. [01:01.730 --> 01:05.550] I'm the Red Team's lead for us at BC Security. [01:05.810 --> 01:08.550] I specialize in operational technology stuff. [01:08.550 --> 01:20.350] I started off in the Air Force doing fighter tests, so cybersecurity tests for fighter aircraft, and then transitioned out and have been doing some operational technology stuff, traditional Red Teaming, that kind of thing. [01:20.350 --> 01:28.110] We have a really strong focus on operational enablement for organizations, along with, like, threat emulation. [01:28.110 --> 01:29.810] I'll hand it over to Anthony. [01:30.630 --> 01:31.750] I'm Anthony. [01:31.750 --> 01:32.530] I go by Coyne. [01:32.530 --> 01:34.250] I'm, like, the ResEdit nerd. [01:34.450 --> 01:39.410] My background is electrical engineering, so anything wireless is super exciting to me. [01:39.410 --> 01:42.850] I also dabble in, like, AI, ML, like, machine learning stuff. [01:42.850 --> 01:47.290] So, you know, throwing those buzzwords that everybody uses these days with their EDRs. [01:47.530 --> 01:49.670] That's kind of what I dabble in now. [01:49.670 --> 01:52.070] So that's it for us. [01:52.070 --> 01:55.870] I think everybody's ready to get started on this quick little introduction. [01:57.770 --> 02:05.970] Yeah, so we're just... this is meant to be, like, an intro webinar for, like, people that have never done a CTF before. [02:05.970 --> 02:14.110] So we're not going to go, like, deep diving into anything super off the wall in terms of, like, TTPs or, like, techniques or anything. [02:14.230 --> 02:26.610] But we know a lot of people are interested in doing CTFs, and it's, like, a really daunting thing to get started with, especially at somewhere like DEF CON, where there's lots of people that are very, very into it and very good at it and have been doing it for a long time. [02:26.610 --> 02:32.130] So we thought it'd be helpful to give people an idea of, like, how do you prepare for a CTF as DEF CON approaches? [02:32.410 --> 02:34.310] Did you have anything you wanted to add, Anthony? [02:35.370 --> 02:35.990] Nope. [02:35.990 --> 02:36.890] You got it. [02:39.730 --> 02:46.610] So if you've never done a CTF before, it's a hacking competition to collect flags off of a network, traditionally. [02:46.610 --> 02:47.690] Sometimes it's a single box. [02:47.690 --> 02:49.050] Sometimes it can be a network. [02:49.870 --> 02:51.810] But the flags are there. [02:51.810 --> 02:59.430] They are how you prove that you were able to access a certain part of the computer, a certain file, retrieve certain memory space, all those kinds of things. [02:59.430 --> 03:05.550] They're just, like, text strings, basically, that you put in that give the answer. [03:06.310 --> 03:08.450] They're really cool puzzles. [03:08.490 --> 03:23.690] One thing to note as we get through this, and we'll hit on it a couple of times, is, like, CTFs, while they are really good for showing off your hacking skills, and they are a good way of getting into the industry and making a name for yourself, a core part of them is that they're a puzzle. [03:23.990 --> 03:32.850] And they have specific things that are structured in a way that, like, the first time you do it may not make a lot of sense, but you'll see it carried through across a lot of CTFs. [03:32.970 --> 03:37.690] And so learning that style of puzzle and what they're looking for makes life a lot easier. [03:37.690 --> 03:46.210] So, like, reading write-ups and stuff can help you learn that aspect of it, because there's a lot of things in CTFs that won't work because it's intentionally broken, because they want you to do it a different way. [03:46.210 --> 03:48.430] Just little nuances like that. [03:49.070 --> 03:54.890] Yeah, I would not equate CTFs to, like, essentially, like, a real pen test or a real red team assessment. [03:55.070 --> 03:57.350] They're very much gamified for a reason. [03:57.350 --> 04:00.850] So single path through is what they're aiming for. [04:00.850 --> 04:07.330] I remember me and Jake were on Discord with some people, and they asked questions like, why is Mimikatz not working on, like, Empire? [04:07.390 --> 04:20.550] And, you know, next thing we find out, it's a CTF box that has, like, LSAS, like, permanently disabled, you can't do, like, certain things, and all these weird shenanigans that you would never actually find in, like, a real deployed environment. [04:20.950 --> 04:28.650] Yeah, or, like, one of my favorite stories to tell is because I started cyber in the military, I never really did any CTFs. [04:28.650 --> 04:33.430] I just got training from the military on how to do cyber and got into the industry that way. [04:33.510 --> 04:40.230] So the very first time I ever did a CTF was at a DEF CON after I'd just gotten off the stage speaking at Recon Village. [04:40.230 --> 04:50.270] We had done all this stuff, like, attacking Microsoft Outlook servers and had found, like, some interesting things about the way they were doing sandboxing and a vulnerability in their sandbox. [04:50.690 --> 04:59.450] And so, like, we were walking down the hall after having just got off the stage, and some group came and was like, our person just dropped out, like, would you be willing to, like, help us with our CTF? [04:59.450 --> 05:01.290] And I was like, sure, I've never done one before. [05:01.510 --> 05:02.890] And I was utterly useless. [05:02.890 --> 05:12.010] Like, I'm pretty sure they questioned the fact that I was wearing a speaker badge as, like, I was walking around, because I was just... it was... I'd never done anything in that context in that way. [05:12.010 --> 05:16.850] So I didn't even understand, like, what they were trying to get me to do when they were asking questions and stuff, like reading the prompts. [05:17.070 --> 05:20.890] So yeah, it's definitely a skill in and of itself. [05:21.310 --> 05:24.370] But there's a couple of different types of CTFs. [05:24.550 --> 05:32.110] There's Jeopardy style, which is basically, they give you a huge long list of challenges, and you just complete as many challenges as you can. [05:32.110 --> 05:34.730] And the challenges aren't necessarily linked together. [05:34.750 --> 05:40.030] You can do them like in... some of them will be linked, you'll have to do one to get information about another one. [05:40.030 --> 05:45.930] But a lot of them are just built in a way that you can kind of, you know, pick and choose which one you want to do. [05:45.930 --> 05:50.110] And those are really good for dividing up between teams, like with specialties. [05:50.110 --> 05:57.050] And then there's attack and defense ones, where you actually have like a server that stood up that you're trying to defend while someone else is attacking you. [05:57.050 --> 06:02.370] And you're simultaneously trying to attack other people within the competition to gain information from their servers. [06:02.370 --> 06:04.250] And then you can do like a mix of both. [06:09.780 --> 06:11.820] So Anthony, you want to take over the platforms? [06:12.320 --> 06:12.880] Sure. [06:13.060 --> 06:16.680] So there's a wide range of platforms if you're not familiar with CTFs. [06:16.680 --> 06:19.600] Plus, if you're trying to get into things, it's kind of like, where do I find these? [06:20.620 --> 06:24.620] You know, you have your easy ones that are that are kind of out there, like hack the box and try hacking that. [06:24.740 --> 06:28.580] You just sign up and they kind of just deploy boxes for you, which is kind of like really nice. [06:28.840 --> 06:33.560] You start moving into like Vulnerability Hub, you're going to be downloading some VMs and deploying those. [06:34.100 --> 06:36.300] Or there's ones on like GitHub as well. [06:37.340 --> 06:41.460] People build them and they deploy Dockers and you can go download the Dockers to go do those. [06:41.460 --> 06:47.780] But these are definitely fun to like get your hands like kind of like a little bit in the weeds on kind of like how these work. [06:48.200 --> 06:51.060] Some of them might be a little hard, so don't get frustrated. [06:51.840 --> 07:04.080] Yeah, and there's one of the nice things about the platforms is especially some of the older boxes, like I know Vulnerability Hub has a ton of write-ups for all of the boxes and hack the box. [07:04.080 --> 07:08.940] Once a box gets retired, you'll have a bunch of people post write-ups of old boxes on how to do them. [07:09.220 --> 07:17.800] So it's a really nice place to go and you can try yourself to do something and then go find a ton of write-ups on the internet and like walk through it step by step. [07:17.840 --> 07:29.380] Because it is useful and kind of interesting to read like people's write-ups from their from like CTF competitions, but you don't have necessarily have the machines in front of you to try and walk through it yourself to learn what they were like, what hints they were looking at, [07:29.380 --> 07:30.860] what they were seeing on the keyboard. [07:30.880 --> 07:32.760] You only have like what they wrote. [07:32.760 --> 07:36.820] So like I said, Vulnerability Hub and Hack the Box tend to have like a ton of write-ups. [07:37.120 --> 07:43.040] TryHackMe is much more of a beginner one that will... the rooms typically have a write-up that goes with the room when you do it. [07:43.040 --> 07:48.700] It's like a walkthrough on how to do various things, which is really nice, especially if you're trying to learn... [07:48.700 --> 08:00.060] you start doing CTFs and you realize that like I know nothing about... like I'm super good at Active Directory exploitation, but I know nothing about web exploitation or how to do cross-site scripting or something like that. [08:00.060 --> 08:06.400] You can go to TryHackMe and find like a specific room about that individual TTP and just kind of do like really focused learning. [08:10.420 --> 08:13.820] And then there's like just more stuff to look at. [08:13.820 --> 08:16.960] YouTube, there's tons of YouTube videos out there. [08:17.400 --> 08:19.520] Tons of Discord stuff. [08:19.520 --> 08:25.000] Reddit's got a large active group, especially the security CTF. [08:25.000 --> 08:26.420] There's a bunch of stuff there. [08:26.580 --> 08:28.340] Hacking is like more general. [08:28.340 --> 08:31.080] And then NetSec's kind of more of a news site. [08:31.080 --> 08:31.960] Like it is interesting. [08:31.960 --> 08:38.540] You'll see some CTF stuff on there, but it's more like a news feed about recent hacks and tools that people are building and that kind of stuff. [08:39.540 --> 08:41.700] And then, yeah, we have our own Discord. [08:41.700 --> 08:43.580] We're more than happy to help you guys. [08:43.820 --> 08:46.780] Oh , Anthony finally figured out how to make comments, it looks like. [08:47.740 --> 08:48.480] Well , sort of. [08:48.480 --> 08:50.960] I was trying to give the link, but I think links are disabled. [08:51.580 --> 08:52.240] Oh , okay. [08:52.240 --> 08:53.740] For the CTF challenge. [08:53.740 --> 08:55.740] Yeah, we'll figure out how to get that. [08:55.740 --> 08:57.940] We'll put it on Twitter or something after this. [08:59.440 --> 09:00.480] And then, yeah. [09:00.540 --> 09:02.800] Have you watched the IPSec videos? [09:02.800 --> 09:05.220] Anthony, I know he's super popular, but I haven't actually watched any of those. [09:05.220 --> 09:06.240] I haven't watched a lot of his. [09:06.240 --> 09:11.500] I mean, I watch a lot of John Hammond's, so I know people watch the IPSec one. [09:11.900 --> 09:12.140] I know. [09:12.140 --> 09:19.840] John Hammond was like when we were coming up, so I don't know if there's someone newer that's the more prolific person now since a lot of John Hammond's stuff's gotten a little old. [09:19.840 --> 09:22.320] Still very useful, but definitely a little older now. [09:25.300 --> 09:29.280] So I'll let Anthony take this one because he's definitely much better at web exploitation than me. [09:29.480 --> 09:30.360] Thanks. [09:30.680 --> 09:38.400] So we're going to go over a couple different examples of what you would find in a CTF to kind of get some familiarity with things. [09:38.400 --> 09:42.720] So typically, in a CTF thing, you're going to find some sort of web exploitation. [09:43.560 --> 09:45.440] That's almost guaranteed. [09:45.440 --> 09:47.500] This is the bread and butter when it comes to these things. [09:47.500 --> 09:54.100] You're going to find something where you have to do some sort of SQL injection to get past a password or query a database. [09:55.360 --> 10:06.460] Maybe you're using a ticket and you're trying to forge something to get to another web page, or even coming down to maybe some sort of remote code execution or a command injection of the website. [10:06.900 --> 10:14.040] So if you're not familiar with what all those words mean, SQL is kind of like a database language. [10:14.460 --> 10:20.600] If you don't do good sanitation on the front end, you can kind of inject in commands when they do the search. [10:20.600 --> 10:23.600] So you have that login and that password bar. [10:24.340 --> 10:27.960] You know, that's where you see that like one equals one stuff. [10:27.960 --> 10:29.080] And then you comment stuff out. [10:29.080 --> 10:30.780] That's kind of where that all comes from. [10:31.060 --> 10:35.060] It's kind of a little example on the right to kind of give you guys an idea of kind of what that would look like. [10:35.400 --> 10:40.700] And then the challenge that I have for you guys, you'll have a CTF thing to kind of play around with it. [10:41.240 --> 10:41.840] Oh, perfect. [10:41.840 --> 10:43.040] And they posted the link. [10:43.040 --> 10:45.840] So if you get a chance to go... Perfect. [10:46.320 --> 10:47.840] So now you guys can go check it out. [10:47.840 --> 10:49.660] I put together a CTF for everybody. [10:49.680 --> 10:53.980] It's got a few little small challenges, very beginner level on the challenges. [10:54.000 --> 10:58.940] But once again, it's kind of an intro thing to kind of get you guys kind of thinking about how CTFs work. [10:58.940 --> 11:01.560] And then you could try some harder ones on like some of those other sites. [11:02.140 --> 11:02.340] Yeah. [11:02.340 --> 11:22.320] And then something that I kind of thought of while you're talking, Anthony, because I think we did this for the challenge we built last year of something to keep in mind for CTFs is sometimes you'll see like, quote unquote, like old schools techniques that aren't really used anymore in like real life situations. [11:22.320 --> 11:28.180] Things like inspecting the HTML to look for like comments or a password in the HTML code. [11:28.180 --> 11:33.160] I don't think I've seen that actually happen in real life in like 10, 15 years. [11:33.160 --> 11:42.960] But like you'll still see CTFs where like inspecting the HTML has like hints to what you're supposed to be doing in the CTF. [11:42.960 --> 11:54.240] So some of those more basic things that you wouldn't do anymore in like an actual pen test or something like that are still worth checking because sometimes there's hints and stuff there. [11:54.600 --> 12:00.340] Like I said, like we keep repeating, like a lot of it is the more you do them, the more you'll kind of have an idea of where to go look to start with. [12:00.340 --> 12:01.440] And that'll help. [12:01.820 --> 12:03.380] Yeah, it's a gamified aspect. [12:03.540 --> 12:04.480] Yeah, definitely. [12:09.820 --> 12:14.640] So reverse engineering is also something that's super common in CTFs. [12:14.640 --> 12:18.800] There are entire CTFs built around just doing reverse engineering. [12:19.440 --> 12:23.720] So it's definitely like a worthy skill to have. [12:26.020 --> 12:32.760] I can't remember if this is in the tips or tricks thing, but since this is up here with IDA Pro and like Ninja and Ghidra now that that's out. [12:32.900 --> 12:42.420] One thing to keep in mind is you might see tools that are really popular to use like write-ups or what everyone's using, but the most effective tool is a tool that you're good at using. [12:42.420 --> 12:56.740] So like everyone uses Burp for the most part, like Burp Suite for doing stuff, but I still use Fiddler a lot of times for web traffic, just because for whatever reason, when I was learning how to do like web traffic manipulation, Fiddler was the tool that I learned how to use. [12:56.740 --> 12:59.620] And I'm much more effective with Fiddler than I am with Burp Suite. [12:59.740 --> 13:05.640] So just because like that is the popular tool, if you have a tool that works for you, there's nothing wrong with using that tool. [13:06.760 --> 13:08.460] Just understand the limitations of it. [13:08.460 --> 13:18.700] There may be a reason that no one's using that tool, but just something to keep in mind, like the best tool to use in a CTF is the one that you're most effective with, not necessarily the one that's most popular. [13:19.600 --> 13:29.040] Yeah, I mean, IDA Pro, I mean, maybe if you're a professional CTF firm, but I mean, that's kind of a paid product that's... and I also don't like it. [13:29.200 --> 13:31.860] Binary... I messed up the thing, I sort of said Binary Ninja. [13:32.280 --> 13:35.380] That's what I'd use for reverse engineering stuff. [13:35.380 --> 13:39.140] And I like their product a lot, like really good. [13:39.140 --> 13:42.140] Ghidra, I mean, was that a NSA tool to put out? [13:42.440 --> 13:43.760] Some people really like it. [13:43.760 --> 13:44.640] I don't. [13:44.640 --> 13:48.680] I think it is very clunky, not very user-friendly. [13:48.700 --> 13:50.580] So once again, it comes down to preference, right? [13:50.580 --> 13:53.640] I know plenty of people who use Ghidra and IDA Pro for everything. [13:53.640 --> 13:56.780] And I just have my preference with Binary Ninja. [13:59.860 --> 14:03.460] Yeah, so Forensics is another one that's really fun. [14:03.760 --> 14:24.040] You'll see memory analysis, the one that'll get some people, unfortunately, we don't have Kevin on the discussion today, but he's really opposed to Stagnography stuff because he's like, it's never used in anything but CTFs, which is not true, but a whole nother thing. [14:24.040 --> 14:25.060] There are people that are very... [14:25.060 --> 14:25.520] C2 traffic. [14:25.520 --> 14:27.460] You'll see it in C2 traffic. [14:27.460 --> 14:34.220] A couple other things, but I mean, no one's hiding anything in a picture on their desktop, let's be honest like that. [14:34.780 --> 14:38.780] But so Stagnography is one to know and kind of a cool thing. [14:38.780 --> 14:46.340] Network traffic analysis, memory analysis, file recovery, all those kinds of basic things will get you hints and potentially flags. [14:47.160 --> 15:05.980] Memory analysis specifically is one that I think is a little tricky to get used to figuring out how to do, whether you're using WinDebug or depending on what you're trying to do in the memory analysis or just dumping memory and looking at the files that you get from those dumps. [15:05.980 --> 15:13.120] I'm totally blanking on the file format when you do like a mini dump that it comes out in because it's technically not a binary, but neither here nor there . [15:14.060 --> 15:15.920] It's just a dump file, isn't it? [15:16.500 --> 15:17.780] Is it just a dump file? [15:17.780 --> 15:18.660] Is that all it is? [15:18.660 --> 15:20.360] It might be all it is. [15:20.620 --> 15:21.180] Yeah. [15:22.860 --> 15:32.040] And the network traffic analysis, I have much more experience doing that for threat hunting than for CTFs, but definitely something to look at. [15:32.040 --> 15:34.720] There's lots of stuff that you can put in headers and those kinds of things. [15:34.720 --> 15:46.820] I mean, stuff I've seen that are kind of interesting is you'll see network traffic flying across and then you have to recover like a picture or you have to recover like a video feed or maybe like a VoIP conversation. [15:46.820 --> 15:49.600] I've seen some interesting ones on the network traffic analysis. [15:50.740 --> 16:01.820] And then going back to like file recovery, sometimes you'll find like files that will have like a byte just like mixed up at the very top and you have to fix the byte to then recover the file. [16:01.960 --> 16:03.980] So you'll find like weird things like that. [16:04.460 --> 16:09.380] You may find deleted files or files in like your recycling bin that you got to recover. [16:09.540 --> 16:11.400] Those are also interesting ones. [16:11.580 --> 16:22.800] So once again, you'll find like the file recovery one is actually very, very useful when you're talking about like real world pentests and red teaming things because people delete things. [16:22.800 --> 16:25.840] I know plenty of people that actually use the recycling bin as like another folder. [16:25.900 --> 16:29.700] They just have thousands of things in the recycling bin and they never actually delete it. [16:30.340 --> 16:37.560] So if you can get to a user's recycling bin, you'll be very surprised what you find in there because they just throw things in there and there's just gigs full of stuff. [16:38.480 --> 16:40.220] Yeah, and you're right. [16:40.220 --> 16:44.880] I totally wasn't thinking about like the VoIP recovery from a network traffic analysis. [16:45.080 --> 16:50.580] I'm so used to inspecting like the NetFlow and the packet headers and stuff. [16:50.580 --> 16:54.540] Yeah , like VoIP recovery is a really popular one for CTS. [16:54.540 --> 17:05.720] Like if you go to Packet Hacking Village, if you've never done any CTFs or anything and you want to just get started, Packet Hacking Village has a really cool one that's like an intro that they'll walk you through as you go go do it. [17:05.720 --> 17:06.900] And they always have a VoIP recovery one. [17:06.900 --> 17:16.420] It's kind of cool the first time that you like took all these random binary bits that are just flying across the, you know, Wireshark and combine them all to be able to replay it into like an actual audio file. [17:16.740 --> 17:18.880] So that's always cool. [17:20.540 --> 17:22.120] The math nerds. [17:22.120 --> 17:23.680] Yeah, yeah, cryptography. [17:23.880 --> 17:25.140] I always enjoy these ones. [17:25.140 --> 17:26.240] These are fun. [17:27.100 --> 17:36.680] Typically, I mean, I don't enjoy when they come up with their own cryptography, like a completely custom cryptography and you're essentially recreating whatever their algorithm is. [17:36.680 --> 17:39.140] Those hurt my brain. [17:39.140 --> 17:55.560] But I mean, pretty often you're going to find some sort of incorporation of cryptography encryption somehow, like it's something maybe as simple as the flag uses something as like a Caesar cipher, which is just shifting like the letters across. [17:55.560 --> 17:58.460] That's all it is using a mod if you're familiar with math. [17:59.040 --> 18:01.600] Maybe they're doing some sort of like modern encryption on there. [18:01.600 --> 18:08.100] So they're encrypting flags with AES keys and then you have to find the key and then recover the flag that way. [18:08.880 --> 18:10.820] Maybe they're hashing things. [18:11.440 --> 18:19.240] Quite often you'll find things that are just like base 64 encoded or pick your base whatever, base 16 encoded just to mess with you. [18:19.700 --> 18:24.420] So you'll find things typically hiding in those sort of formats throughout. [18:26.280 --> 18:30.700] This tends to be like if you're really good with Python, this is super helpful. [18:31.200 --> 18:35.540] Build a quick script and you're done instead of having to figure out how to do this. [18:35.540 --> 18:38.560] Another good tool for this specifically is like Cybershef. [18:40.240 --> 18:42.280] I love... Oh, you're gonna tell Cybershef. [18:42.280 --> 18:43.840] I love Cybershef. [18:43.840 --> 18:46.640] So I learned recently when I... [18:46.640 --> 18:51.860] So I built a lot of CTFs and I built a CTF earlier this year that we ran. [18:51.860 --> 18:54.520] And I thought, I didn't realize you could do this. [18:54.520 --> 18:58.020] You can script like multiple things and then have it like loop. [18:58.240 --> 19:09.580] So I thought it was really creative by building like this thing where it took like the flag and then it reversed it, base 32 encoded, encrypted it, reversed it again, and did all these things. [19:09.760 --> 19:13.300] And then I looped through that like 15 times or whatever. [19:13.300 --> 19:15.700] And I was like, oh, they're going to have to write a script to do this. [19:15.960 --> 19:18.420] And then at Cybershef, you can actually script it and loop through. [19:18.420 --> 19:19.540] And I was like, oh, darn. [19:19.680 --> 19:21.380] That was way too easy apparently. [19:21.640 --> 19:24.040] So Cybershef is amazing. [19:25.700 --> 19:26.060] Yeah . [19:26.260 --> 19:28.480] And someone asked which village I mentioned earlier. [19:28.480 --> 19:29.920] It was Packet Hacking Village. [19:30.480 --> 19:35.860] They do a like over the wire CTF every year. [19:35.860 --> 19:47.920] That's just like a, and I say CT, they have like a real CTF that's like an actual competition, but they also have just like a beginner, I've never done this before, like quote unquote CTF style event. [19:47.920 --> 19:54.640] Then they have like volunteers that are walking around, they'll walk you through all the challenges to help you like learn how to do all that stuff. [19:54.640 --> 19:56.080] It's a really cool thing. [19:56.080 --> 19:59.360] It was one of the very first things I did when I went to DEF CON. [19:59.940 --> 20:02.200] Oh man, I don't want to think about how long ago it was. [20:03.080 --> 20:03.780] 17. [20:05.300 --> 20:07.620] Yeah, it's 2017, something like that. [20:08.400 --> 20:12.900] It was my first DEF CON and like, it was one of the first villages I went to and it was very cool. [20:13.020 --> 20:15.140] So I definitely recommend checking that out. [20:15.640 --> 20:20.700] Sorry to, you know, plug a different village there, guys. [20:20.700 --> 20:25.060] But the Red Team Village is also awesome. [20:25.060 --> 20:26.800] The Red Team Village didn't exist at that time. [20:27.660 --> 20:34.340] Well, and I also end up at Social Engineering Village because I find the phone calls extremely fascinating and hilarious every time. [20:34.980 --> 20:37.620] But we can answer those questions later. [20:37.620 --> 20:54.340] Yeah, so binary exploitation is kind of one of the more traditional challenges that you'll, that you think about, like when you think about just doing hacking in general of, you know, creating a buffer overflow that gets you to remote code execution. [20:54.340 --> 20:57.940] They're very popular within CTFs. [20:57.940 --> 21:05.480] You'll see all kinds of things from buffer overflows to like format string vulnerabilities, ROP stuff. [21:05.740 --> 21:19.120] I don't know that it falls under binary exploitation, but this is where you'll also see things that are not necessarily SQL injection, but like command injection, where there may be an interface that takes a user input. [21:19.120 --> 21:22.780] And if you format the input correctly, you can get it to execute the code for you. [21:23.060 --> 21:27.740] We don't, I don't think we have a section for that, like a slide for that type of exploits. [21:27.740 --> 21:29.720] I think it kind of fits here the best. [21:30.000 --> 21:34.000] But you'll just see tons of stuff like this, where you're trying to create buffer overflows. [21:35.040 --> 21:41.000] Actually, I don't know if they do any use after free vulnerabilities, because those are kind of hard to set up intentionally. [21:41.200 --> 21:47.180] But those kinds of, I don't know if you have anything else you want to add in there. [21:47.200 --> 22:03.420] And this is where you'll see like WinDebug and stuff used a lot, or like your IDA Pro, like where you kind of get a blend between like that reverse engineering and like your use of stuff, because you may have to reverse engineer it to be able to see where the lines of code are being executed. [22:04.520 --> 22:06.340] Oh, you know what we didn't put in there? [22:06.340 --> 22:12.560] Although I haven't seen it in a while in a CTF, we should put IL-SPY for .NET assemblies. [22:13.300 --> 22:14.980] Yeah, IL-SPY would be a good one. [22:14.980 --> 22:16.540] I mean, go ahead and talk about it real quick. [22:16.540 --> 22:27.800] Yeah, so IL-SPY is like a reverse engineering tool for .NET stuff specifically, because a .NET EXE, like it was written in C-sharp, is actually not a true binary. [22:27.880 --> 22:32.740] It's a like in-between, it's an intermediary language code. [22:32.740 --> 22:38.480] It's fully reversible, but you need a different tool than using like, actually item might support C-sharp. [22:38.480 --> 22:39.760] I actually haven't tried that. [22:39.760 --> 22:43.720] But so I'm not going to say that I can't do it, because I don't know for a fact, so I've never tried. [22:43.720 --> 22:48.080] But if I'm C-sharp or .NET reverse engineering, I use IL-SPY. [22:48.160 --> 22:55.140] It's a really useful tool for decompiling .NET stuff for, and you can like fully decompile it. [22:55.140 --> 23:04.640] That doesn't mean that any, it won't undo obfuscation that's applied to the actual code itself, but it'll undo like just the compilation and that kind of stuff. [23:04.640 --> 23:06.480] So it's a super useful tool. [23:06.800 --> 23:12.760] Yeah, if you're talking about like normal binaries, like C code in that case, that compiled, you can't get the raw code. [23:12.760 --> 23:17.260] So you got to like do some reverse engineering things, drop it in Binary Ninja. [23:17.540 --> 23:28.460] You can use like something like GDB to like go in and run it, start pulling out like what's happening in memory and start doing all of that stuff that's associated with it. [23:28.920 --> 23:40.220] Talking about like all the stuff we talked about thus far, this is probably going to be like, in my opinion, more of the difficult stuff, at least when it comes to not as intuitive, if you haven't done it before. [23:40.920 --> 23:47.780] Just because it requires some like art to it, because you're really like stepping through programs, reading memory. [23:48.500 --> 23:59.820] This is where you're doing like you're running tools to like throw in like A's and B's to see like what gets overwritten in the buffer and then tracking where that is and then calling that address and then trying to overwrite that address. [23:59.820 --> 24:06.820] Yeah, and learning another thing that we didn't put on here that we should have is like background information. [24:07.000 --> 24:24.320] If you're going to be doing binary exploitation and reverse engineering, it's very helpful to understand the PE file structure, like all the headers and stuff that go into like PE files to know where all the tables are and where certain things are, because you have to... when you start doing binary exploitation, [24:24.320 --> 24:34.060] you may have to do like stuff where you're modifying the memory in a specific location to change like a call table so that it goes where you want it to go and API hooking and all that kind of stuff. [24:34.060 --> 24:42.380] So learning the PE file like structure is like a very useful thing if you're going to get into this type of exploitation. [24:48.960 --> 24:52.580] Yeah, so there's all kinds of other stuff. [24:52.780 --> 24:57.740] Something that like... so Anthony putting here miscellaneous and like social engineering. [24:57.740 --> 25:11.620] Social engineering has its own CTF that it does, but something that I will say that I've seen in CTFs is they'll put in like fake social engineering stuff where like you can call a desk and try and get stuff. [25:11.620 --> 25:14.840] And a lot of times there are challenges that are like that. [25:14.840 --> 25:28.800] They're kind of red herrings that are meant to be like you'll call the person in the competition and they'll try to keep you on the phone as long as possible to like to waste your time instead of working on the other parts of the CTF. [25:29.040 --> 25:41.360] I know they did that a couple of years ago during the Team Fortress CTF thing where like if you get far enough in the CTF, like your Team Fortress team gets like additional stuff. [25:41.360 --> 25:50.600] They had a bunch of challenges that were designed to just distract the CTF team so they weren't actually achieving things for the Team Fortress people on time. [25:51.380 --> 26:02.780] So just that's... we have some tips and tricks that we'll go through more, but that kind of just brings up like the social engineering is like sometimes you'll see it in a normal CTF and a lot of times it's just a red herring to like waste your time. [26:04.160 --> 26:10.840] But yeah, then they have like all kinds of programming puzzles and all that kind of stuff. [26:10.840 --> 26:12.080] I don't know if you have anything. [26:12.120 --> 26:13.660] Yeah, same with the physical security tasks. [26:13.660 --> 26:18.520] That's another one that they had like that I've seen in CTFs that are meant to be just like a waste. [26:18.520 --> 26:22.120] Like they'll be like, oh, we'll give you 100 points so you can escape out of these cuffs. [26:22.120 --> 26:29.440] And it's meant to just take away one of your teammates for 15 minutes during the CTF instead of actually like getting you like a meaningful amount of points. [26:30.140 --> 26:32.140] Yeah, the physical security ones. [26:32.520 --> 26:34.440] I mean, I've incorporated them before. [26:34.440 --> 26:43.420] If like everybody's on prem, you could have like a code that goes to like some sort of like online portal of some sort, but it's locked in a box. [26:43.420 --> 26:45.540] They got to pick the lock or they have to shim the lock. [26:45.540 --> 26:52.100] So, I mean, there are real ones, but I mean, you're typically not going to find them too often. [26:52.100 --> 26:56.700] I mean, it's kind of hard, especially when you're virtual, to hand out a bunch of locks for people to go shim. [26:57.040 --> 27:06.120] And if you haven't shimmed a lock or any of those things, definitely check that out at DEF CON because it's super easy to shim a lock and a lot of the easy locks are very easy to pick. [27:07.460 --> 27:09.420] Some of your high-end ones get really hard. [27:09.820 --> 27:11.740] I have a bunch of lock picking sets. [27:11.740 --> 27:12.460] They're fun. [27:14.560 --> 27:15.980] A bunch of tools. [27:16.620 --> 27:21.200] This is not an all-inclusive list, obviously, but it's kind of a thing to get you started. [27:22.820 --> 27:29.120] Most of these tools, like I'd say like probably like 90% of these tools are going to come pre-installed on your operating system. [27:29.120 --> 27:32.420] We have another slide on like some operating systems to run. [27:32.420 --> 27:35.340] I mean, everybody has like their favorite one. [27:35.520 --> 27:39.740] You'll see Kali, you'll see Parrot OS. [27:40.280 --> 27:43.160] I've started using Exegol, which is kind of nice. [27:43.400 --> 27:54.880] Just don't walk into a CTF with nothing or don't show up to a CTF or DEF CON with Hannah Montana like Linux, which we have seen before in a workshop that has nothing installed. [27:54.880 --> 27:58.320] You're going to want to have some sort of tools installed. [27:58.320 --> 28:05.040] Otherwise, you're at the liberty of the DEF CON Wi-Fi, which I would not trust. [28:05.520 --> 28:07.440] Well, it's just slow. [28:07.440 --> 28:12.140] Yeah, I would not plan on using it during the like to download like gigs of tools and stuff. [28:12.520 --> 28:15.420] Yeah, so these are all good tools. [28:15.420 --> 28:17.420] I think the next slide is the OS one. [28:17.980 --> 28:19.480] Slide got cut off there. [28:20.380 --> 28:25.660] So these are kind of the three main OSs that everyone uses. [28:26.600 --> 28:31.100] Kali is like a Debian-based, like Ubuntu, Linux type of thing. [28:31.100 --> 28:39.160] So you could use like a Debian whatnot, Ubuntu, Debian-based Linux, like go install your own Debian and like redo it. [28:39.760 --> 28:42.440] They're really nice because they come pre-installed with a lot of tools. [28:42.440 --> 28:51.000] One thing that I would make sure, especially in recent years with Kali, I'm less familiar with Parrot, is testing your tools. [28:51.000 --> 28:57.020] And if you're going to update any tools, like Kali's package manager has fallen into a bit of disarray. [28:57.260 --> 29:04.520] I don't really know why, but for a while they were sponsoring and like working very closely with a lot of the open source tools they were packaging. [29:04.520 --> 29:13.820] And then about two years ago, that kind of went away a bit based on decisions that Kali was making. [29:14.380 --> 29:20.100] And since then, some of the package managers don't work as well as they used to. [29:20.100 --> 29:34.580] So you might be better off installing the tools directly from GitHub and understanding how to do that and making sure that you're like pre-flighting all your tools before you go into the CTF, because the last thing you want to be doing is fighting with a package manager. [29:34.580 --> 29:40.940] That's just a whole lot of extra time that you don't need to spend when you have like tons of other things to be doing during the CTF. [29:41.020 --> 29:42.580] I'll say go back, Jake. [29:42.820 --> 29:45.900] So going back to that, a lot of tools are written in Python. [29:45.900 --> 29:47.240] You'll find tons of them. [29:47.560 --> 29:59.320] If there's any conflicting version numbers, they're typically going to upgrade to whatever the most up-to-date version or whatever that package is, which is typically where it breaks things. [29:59.740 --> 30:04.820] They also have a bad habit of installing dev versions of Python, which have bugs. [30:05.140 --> 30:07.420] So be careful if you're doing that. [30:07.420 --> 30:12.120] Like Jake said, downloading tools directly from the source and then running in virtual environments. [30:12.120 --> 30:14.780] That tends to be the best way to do it. [30:15.060 --> 30:23.760] Run poetry, run your virtual environment, or go to some... The reason why I like Exegol, they do everything in Docker, so everything's independent. [30:23.960 --> 30:27.680] So if one tool is broken, it's not going to break your entire OS. [30:28.540 --> 30:32.920] Since it's all Docker-based, it's maybe a little bit of a harder learning curve. [30:32.920 --> 30:37.160] But I like Dockers because they're black magic and they work. [30:39.320 --> 30:46.900] Yeah, the virtual environment part's really important because, like Anthony said, you can create conflicting versions. [30:46.900 --> 30:58.820] And once you create that conflict within your image, it becomes very difficult to untangle it to the point that a lot of times you're better off just if you have a snapshot reverting it. [30:58.820 --> 31:14.420] That's actually a good thing to remember is sometimes you may want to have a snapshot of your box from when you're starting in case you do decide to go install tools or those kinds of things and you break something so that you can quickly revert to a working version of your box. [31:14.880 --> 31:22.320] You may lose some of the work you're doing, but you can always throw files and stuff onto a USB and then revert your snapshot. [31:23.340 --> 31:36.760] Once you get the cross-contamination between different Python versions being installed and the package managers not knowing which version it's supposed to be calling in your path, it just becomes a nightmare to untangle. [31:36.760 --> 31:43.260] So virtual environments are really important just to prevent you from having trouble during the event. [31:46.170 --> 31:47.370] Do you want me to talk about something? [31:47.850 --> 31:48.870] Go ahead. [31:49.230 --> 31:50.650] I don't see if you wanted me to cover it. [31:50.650 --> 31:51.210] Go ahead. [31:51.210 --> 31:52.250] No, you can go ahead. [31:53.410 --> 31:55.810] I know we talked about it earlier, like preparation. [31:56.930 --> 31:58.650] It always comes down to practice. [31:58.670 --> 32:03.370] If the first time you do a CTF like Jake is at DEF CON, you're not going to do well. [32:04.570 --> 32:13.090] I recommend doing them, playing around with them, kind of get an idea of what you need to know, what sort of tools you have to have available, because there's challenges. [32:13.090 --> 32:15.490] They are designed to be difficult. [32:15.490 --> 32:17.110] They're designed to be confusing. [32:17.330 --> 32:21.110] And they're designed as puzzles, like mini puzzles. [32:21.610 --> 32:24.590] So that's just kind of how they are. [32:24.590 --> 32:29.350] So going in and practicing them and going through different ways to do them is extremely important. [32:30.450 --> 32:34.090] Here's a quick list of things you're going to find or do with them. [32:34.090 --> 32:36.590] So go out and do them. [32:36.590 --> 32:37.870] That's kind of just how this works. [32:37.870 --> 32:41.850] You're not going to learn anything just by sitting around and listening to us talk. [32:42.490 --> 32:43.090] Yeah. [32:43.250 --> 32:46.670] Well, you will learn something, just maybe not all the skills you need. [32:48.950 --> 32:51.490] Hopefully they learned something today while we've been talking. [32:51.490 --> 32:52.090] Fair. [32:54.050 --> 33:03.190] So one question I have for you guys on the previous slide is, you know, I think today we're really lucky because there's all these platforms to practice on, right? [33:03.190 --> 33:05.290] Hack the Box, TryHackMe, all those things. [33:05.510 --> 33:07.010] That hasn't always been the case. [33:07.010 --> 33:12.670] And I think, you know, folks are cutting their teeth and they're learning how to do CTFs through those platforms. [33:13.030 --> 33:25.170] But when do you think folks are ready to kind of transition from Hack the Box and TryHackMe and into trying to, you know, sign up at conferences and, you know, participate in real life CTFs? [33:26.350 --> 33:27.730] Go ahead. [33:28.630 --> 33:41.270] My opinion comes from the way I also approach, like, I used to run like triathlon and all that kind of stuff, is that there's a basic level of learning that you should do, obviously, before you get there. [33:41.290 --> 33:48.630] I don't think there's ever, like, a perfect time where you're like, oh, if you've achieved this level on Hack the Box, then you are 100% ready for a CTF. [33:49.270 --> 33:57.430] I think it's better to set, like, an actual date or goal of, like, I want to be ready for DEF CON next year. [33:57.430 --> 34:00.870] I want to do, like, those kinds of things and just commit to doing that. [34:00.870 --> 34:02.770] And it's okay if you don't do well the first time. [34:02.770 --> 34:04.090] Like, that's not the end of the world. [34:04.570 --> 34:08.030] You know, we all want to do well, and you may be a little disappointed. [34:08.130 --> 34:23.650] But if you're waiting for the perfect time where you're like, I think I can jump in and compete and get third or podium at my first CTF, and that's what you're waiting to be ready for, then you may never end up doing it versus just kind of committing to doing it and accepting that, [34:23.650 --> 34:25.010] like, it may not go well. [34:25.010 --> 34:31.290] You may show up and be like, I thought I was ready, and they threw all these challenges at me, and I had no idea how to do them. [34:31.430 --> 34:35.350] And so now I have all these lessons learned to go back and do. [34:35.350 --> 34:41.310] Because as much pressure as we put on ourselves, the reality is that a CTF is a pretty low-threat environment. [34:41.310 --> 34:48.250] If you crash and burn, then the worst thing that comes out of that is that your name is low on the list at the end of the event. [34:48.250 --> 34:51.490] There's no real harm done from not doing well in a CTF. [34:51.910 --> 35:04.890] Because I know one thing that concerns people about getting ready for CTFs is that a lot of people have been told that making a name at CTFs is a good way to get into the industry and make a name for yourself. [35:05.430 --> 35:12.490] Doing bad at your first CTF doesn't mean that you can, like, that all of a sudden you're blacklisted going forward for future CTFs. [35:12.490 --> 35:17.470] When you do well in future CTFs, they're like, well, did you see how he did the first time? [35:17.470 --> 35:20.450] You know, we obviously can't hire... like, that's not how it works. [35:21.110 --> 35:23.830] Once you start doing well, that's what people care about. [35:23.830 --> 35:28.530] So you're not hurting yourself by going to a CTF and not necessarily doing all that well. [35:29.710 --> 35:31.970] Jake, do you hire just off of CTF scores? [35:32.510 --> 35:32.890] No. [35:34.950 --> 35:36.570] No, but I know a lot of people... [35:37.970 --> 35:41.370] it is a way to get into the industry and network and meet people. [35:41.390 --> 35:47.190] And it does look good on resumes if you have no work experience or that kind of stuff. [35:47.190 --> 35:48.830] So I just know that's a concern for people. [35:48.830 --> 35:52.370] They're like, well, what if I go to the CTF because I'm trying to break in and I don't do well? [35:52.750 --> 35:56.570] And that's one of the things that people get hung up on, and it's not the end of the world. [35:57.830 --> 35:59.370] Yeah, I definitely agree with that. [35:59.370 --> 36:00.470] I think you nailed it. [36:01.130 --> 36:08.850] I think that you should try to do one of the team-based ones as early as possible, because doing it on your own is completely different than doing it as a team. [36:09.810 --> 36:22.410] Very quickly, you're going to find that if you have nobody leading the team and nobody giving tasks out, two people or more are going to end up doing the same task and you're going to waste time. [36:23.090 --> 36:25.910] Or you're all going to sit there and be like, we're all stuck, what do we do? [36:26.870 --> 36:36.990] So getting into some sort of team-based one early on is going to be extremely important, because if all you ever do is just do them on your own, 100% different. [36:39.330 --> 36:43.010] Yeah, so this kind of gets into what we're going to say here. [36:43.450 --> 36:48.610] One thing I will say, I agree with Coyne that you should try to get into a team one. [36:48.610 --> 36:52.010] But again, I know some people are not necessarily the most outgoing. [36:52.010 --> 36:57.210] They're like, well, what do I do if I don't have friends that want to do a CTF with me? [36:57.210 --> 36:58.450] How do I make a team? [36:59.550 --> 37:02.310] You can show up to a CTF and form teams. [37:02.350 --> 37:13.790] There's lots of... especially at DEF CON and some of the village ones, the black badge CTF contest you have to qualify for, so that when you can't quite just show up and make a team. [37:13.790 --> 37:21.610] But there's lots of village ones where you can show up and just start sitting down and ask someone if they want to work on the CTF with you and start working that way. [37:21.810 --> 37:23.670] But it is okay to compete by yourself. [37:23.670 --> 37:26.790] You're probably not going to win, especially if it's one where teams are allowed. [37:26.810 --> 37:36.850] You're very, very difficult to be the best when you're competing against five people working together, and it's just by yourself, just from the work throughput. [37:37.270 --> 37:39.610] But it doesn't mean that you can't compete. [37:39.790 --> 37:48.510] Because even if you go and you don't have a team, you can't necessarily form the team there because you have to register ahead of time, you'll still meet and talk to people. [37:48.510 --> 37:51.910] And the fact that you're there is a way to start meeting and networking with people. [37:53.190 --> 37:55.850] Hack Fortress pretty much always is forming teams. [37:55.850 --> 37:59.250] They have set teams, but there's always people standing around. [37:59.250 --> 38:00.790] They're like, we're looking for one more. [38:01.510 --> 38:03.430] Yeah, that's how I got pulled into it. [38:03.470 --> 38:07.270] That's the one I got pulled into was the Hack Fortress one when I told that story. [38:07.270 --> 38:09.910] I was walking down the hall and they're like, we had a guy that didn't show up. [38:09.910 --> 38:10.690] He's too hungover. [38:10.690 --> 38:11.470] Can you come? [38:14.230 --> 38:19.570] Yeah, like Anthony was saying, in terms of actually forming a team, having clear team roles is important. [38:20.490 --> 38:28.670] It doesn't mean that you necessarily have to have a so-and-so is the person in charge of the team. [38:28.670 --> 38:40.790] You just need to have some pre-established way of, especially if you have a four-person team of breaking ties if the team's divided on what you should be doing. [38:40.790 --> 38:42.950] You want to have those things ahead of time. [38:43.770 --> 38:47.870] And then you have diverse skills, and I stole Anthony's thunder a little bit, so I'll let him... [38:48.930 --> 38:50.230] No, you're all good. [38:51.210 --> 38:52.910] I got nothing else on the slide. [38:53.090 --> 38:53.770] Okay. [38:59.300 --> 39:00.760] So I'll let you take this one. [39:01.280 --> 39:02.140] Oh, thanks. [39:03.160 --> 39:07.380] So a couple things to be able to think about for strategies. [39:07.960 --> 39:11.700] You know, this is kind of how I go about it. [39:12.320 --> 39:19.220] I also build a lot of these just for fun nowadays, because that's what we throw in our courses, just because people find them entertaining. [39:19.220 --> 39:21.640] And they're a good way to assess challenges. [39:21.800 --> 39:23.440] So remember, they're challenges. [39:23.440 --> 39:34.100] So when you're on a team, you've got to go through and figure out what challenges are there, what kind of points are available to them, and then how difficult they are to do based on your team composition. [39:34.860 --> 39:40.920] Because sometimes, some of them, you're going to be like, we got nobody that knows whatever this challenge is. [39:41.820 --> 39:44.460] We're just going to have to skip that one and focus on these other ones. [39:44.460 --> 39:50.500] Or there may be one that you're like, oh, I could do this, hacking a satellite, easy enough, hack a sat. [39:50.500 --> 39:51.580] I got this. [39:51.600 --> 39:53.740] And you go in and go do it. [39:54.000 --> 39:56.020] So figure those out. [39:56.180 --> 39:58.380] And also don't get stuck on challenges. [39:58.660 --> 40:04.700] They give you 60 minutes, and there's six challenges, and you're on the first challenge, and you're at 20 minutes. [40:05.140 --> 40:06.880] You might want to go check out the other ones. [40:07.200 --> 40:13.360] So don't waste all your time on just one, because there's typically going to be lots of them that you got to go work through. [40:13.520 --> 40:18.740] So one thing that I will contradict Anthony slightly on, and it's a specific use case. [40:18.740 --> 40:19.940] It's a specific use case. [40:19.940 --> 40:26.160] That's why general advice, like 100% correct to focus on high value and solvable challenges first. [40:26.160 --> 40:43.260] But I have seen a few times where it's coming down to the wire, and it's crunch time, and a team's just been like, screw it, let's go find all of the low point ones, and just knock out 15 challenges in the last half hour, because we know they won't take us very long, [40:43.260 --> 40:45.020] and we're stuck on the hard ones. [40:45.020 --> 40:49.880] And that can push them over into a few slots higher, because you know you can achieve those. [40:49.880 --> 40:51.320] And so don't ignore them. [40:51.520 --> 40:55.880] But it's a specific use case, not a niche circumstance. [40:55.880 --> 41:10.220] But sometimes it's useful to be like, okay, if we're running out of time, and we're low on points, we've got set aside easy ones that we can come back to, that we'll just knock out quickly to get those last 30 points that we need to jump over the team in front of us, [41:10.220 --> 41:12.040] or whatnot. [41:12.160 --> 41:13.680] Okay, I don't disagree with that. [41:13.680 --> 41:16.540] I normally start with easy ones to build my confidence. [41:16.720 --> 41:21.800] And I reserve all the other easy ones where my confidence is low, and I failed all the other challenges. [41:22.360 --> 41:24.900] So it's all about strategy. [41:25.160 --> 41:28.160] Yeah, it goes back to the... [41:30.180 --> 41:31.560] it's a learning event. [41:31.560 --> 41:40.500] And like, the more you do them, the more you'll get, because there are, like, there's strategy beyond just the actual hacking to like the actual structure of like, how are we going to build our team? [41:40.500 --> 41:41.540] How are we going to communicate? [41:41.540 --> 41:43.000] How are we going to plan our tasks? [41:43.000 --> 41:44.120] All that kind of stuff. [41:44.560 --> 41:48.160] There's as much strategy going on there as there is actually in the hacking and stuff. [41:49.660 --> 41:54.320] Yeah, so how do you, you know, when you're working with a team, I've never done one as part of a team. [41:54.320 --> 41:55.960] So I'm generally interested in this. [41:55.960 --> 42:00.740] But how do you keep your teammates from going down those proverbial rabbit holes? [42:01.940 --> 42:05.160] Well, that kind of gets into the next part, like, communications key. [42:05.440 --> 42:08.280] Like, if your team's not communicating, you're going to lose. [42:09.280 --> 42:11.860] Like, that crosstalk has to happen. [42:12.140 --> 42:16.860] If everybody's working independently, you're better off having like five or four independent teams. [42:17.440 --> 42:18.880] Because you need to delegate tasks. [42:18.880 --> 42:21.760] There may be like a single challenge that has multiple parts. [42:21.920 --> 42:28.640] And like, you're like, I need you to figure out like, whatever this encryption is and get me back whatever that key is, because I need the key for whatever this part is. [42:29.340 --> 42:39.020] So that kind of goes back like me and Jake, you know, prior military guys, like, managing small teams and having communication are all key things that we do all the time. [42:39.220 --> 42:41.340] So that's what we focus on. [42:41.340 --> 42:44.000] So being able to like, communicate is great. [42:44.720 --> 42:48.040] A lot of people do like some sort of like collaboration tools. [42:48.040 --> 42:49.440] I mean, there's tons of them out there. [42:49.440 --> 42:51.940] It could be as simple as Slack and Discord, honestly. [42:51.940 --> 42:56.200] You could have a OneNote that you share documents in and make annotations. [42:56.200 --> 42:58.600] And they're like, it doesn't have to be complicated. [42:58.880 --> 43:00.480] Like, you could just use something very simple. [43:00.820 --> 43:17.720] I'm a big fan of like, chat apps, like Slack or Discord, or when it's something where it's really easy to reference to people, because you'll get, you know, halfway through and someone has started working on a challenge, you're like, wait, Coyne, weren't you working on this earlier? [43:17.720 --> 43:21.520] Like, I think I know how to fix what you were doing, like, but I can't find what you're doing. [43:21.520 --> 43:35.780] And being able to just quickly reference and be like, hey, here's the message where we were working on that so that you can quickly refer teammates back is really, really useful for tracking and being able to like, if someone does give up on a challenge, [43:35.780 --> 43:41.180] because it's just taking too long, and someone goes back to it, it makes it easier to pick that challenge back up. [43:41.400 --> 43:51.060] But going back to managing that team, that is where one of the advantages for teams that have worked together a lot comes from. [43:51.240 --> 43:58.720] Because like, Anthony and I know each other really well, I'm one of those people that gets really focused on a task and has a hard time moving on when it's something that I'm stuck on. [43:58.720 --> 43:59.840] And Anthony knows that. [43:59.840 --> 44:06.460] So he knows if like, he hasn't heard from me in like 15 minutes or so that he needs to just be like, hey, Hubble, what are you doing? [44:06.460 --> 44:08.660] It's time to move on to something else. [44:09.100 --> 44:10.680] And like, prod me that way. [44:10.680 --> 44:24.760] So like, that's one of the advantages of like, the teams have worked together a lot, they get those interactions and know where, where do I need to keep track of, you know, this person, because I know that this is a weakness in them when we're competing and those kinds of things. [44:24.760 --> 44:31.860] And hopefully, you have teams that complement each other so that one person's weakness is covered by another, and they can all help each other to build better. [44:31.900 --> 44:40.020] But that's a little, those kinds of interactions are a little harder when you we form a team, like on the spot, because you don't know those people's habits and stuff yet. [44:40.020 --> 44:42.180] But you can still get together. [44:42.240 --> 44:53.400] And I will say when you're forming teams on the spot, not being afraid to be the person telling people what to do is really advantageous. [44:54.480 --> 44:59.720] That doesn't mean be like, overbearing, like, you know, unpleasant person to be around. [44:59.720 --> 45:08.620] But a lot of times you'll see one of the things that hurts teams that have just been formed is they sit there and they all kind of look at each other because they don't know what to do. [45:08.620 --> 45:09.840] And no one's telling them what to do. [45:09.840 --> 45:11.920] So everyone just sits there without an idea. [45:12.180 --> 45:16.500] So, and especially, you know, cliche a little bit. [45:16.580 --> 45:20.300] Not all of us are the most extroverted people. [45:20.300 --> 45:26.440] So people don't feel like confident speaking up, especially new people when they haven't done it before. [45:26.440 --> 45:31.820] So even just being the person of like, I think we should work on these exercises can get the team moving. [45:31.820 --> 45:34.200] And once you get inertia going, then people start opening up. [45:34.200 --> 45:35.860] It's much easier to work with people. [45:35.860 --> 45:41.020] But getting over that initial just kind of like shyness and everyone being like, what are we supposed to be doing? [45:41.020 --> 45:50.460] Being that person willing to step forward and say like, hey, I think we should do this is really useful for like those on the spot formed teams. [45:51.200 --> 45:53.920] A bunch of introverts at DEF CON, I would never guess this. [46:00.900 --> 46:04.880] So yeah, methodical approach, read carefully. [46:05.660 --> 46:15.360] This is the whole like, you know, fifth grade test where the teacher tells you to read the whole test and you get to the end, it says, turn in the test without doing anything type of thing. [46:15.580 --> 46:18.880] Those kinds of trip ups exist in the CTF instructions. [46:18.880 --> 46:22.540] So reading everything is really useful. [46:23.420 --> 46:31.660] I've definitely been guilty of like having basically solved a problem, but not grabbing the flag because I thought I needed to do something else because I didn't read the instructions properly. [46:34.120 --> 46:43.080] I don't know if you want to talk about this, Anthony, but setting aside like time during the CTF to actually do research to go like, hey, we don't know how to do this. [46:43.080 --> 46:51.640] Let's go spend 15 minutes researching this concept to see if it's something we can crack or if it's something we just need to totally discard is really useful. [46:51.640 --> 46:56.660] All of your time doesn't have to be just like hammering away directly at the challenge. [46:57.940 --> 47:00.520] So I don't know if you have any inputs on that. [47:00.520 --> 47:02.520] Maybe not 15 minutes, but sure. [47:04.720 --> 47:07.280] Definitely should do some research on things. [47:07.640 --> 47:12.880] If it's like you got to decrypt this, you know, and you're sitting there writing your own AES like decryption library. [47:12.920 --> 47:17.160] When in reality, you did a quick search, you could have found there's an easy package you could have done. [47:17.820 --> 47:20.300] And there's a lot of things like that that you could go do. [47:20.300 --> 47:25.940] And I mean, that there's already tools that do the hard part for you, and you thought you had to build it yourself. [47:27.740 --> 47:42.740] And then just keeping notes, like we talked about on the previous slide is really important during the CTF, both for doing like debriefs after the fact to figure out what went right and what went wrong, as well as just being able to like reference stuff back for other teammates. [47:43.940 --> 47:46.780] Yeah, those walkthroughs don't write themselves. [47:47.280 --> 47:48.980] And then I didn't put it on here. [47:48.980 --> 47:58.260] But something that I like to do is either have some VMs set up for tasks that they're not necessarily to do the challenge. [47:58.260 --> 48:05.740] But like if you're going if you need to use Hydra and do a password spray, or if it's an Active Directory test, you need to do like a PS exec. [48:05.740 --> 48:07.400] I like having some boxes set up. [48:07.400 --> 48:09.180] You can also leverage TryHackMe to do this. [48:09.180 --> 48:10.420] I've done that before too. [48:10.740 --> 48:17.180] Set up to go test the tool to make sure that if something's failing, it's not because I have my commands wrong. [48:18.200 --> 48:24.160] Like I've definitely spent had times where I've been doing something, and we've been fighting it for like an hour, and they're like, oh, I'm an idiot. [48:24.160 --> 48:24.900] The command's wrong. [48:24.900 --> 48:26.240] That's why this wasn't working. [48:26.280 --> 48:40.460] So going to a box where you know that it should work, and if it's failing, it's because of your because something you're doing versus like it's intentionally broken on the on the range is like really useful to be able to just go, okay, we're running Hydra. [48:40.460 --> 48:41.100] I ran the command. [48:41.100 --> 48:42.020] That should have worked. [48:42.020 --> 48:44.160] I have a box set up for me to do a password spray. [48:44.160 --> 48:49.880] Let me check my command and run it and go, okay, it did or didn't work on that box that I know it should work on. [48:49.880 --> 48:56.460] It saves you a lot of time of like troubleshooting to try and determine is the issue with the challenge or the issue with like my tooling. [48:57.140 --> 48:59.060] So that's like really useful. [49:02.060 --> 49:03.300] Things not to do. [49:03.360 --> 49:04.340] These are always fun. [49:05.220 --> 49:06.840] Oh , you did have it on here. [49:06.960 --> 49:10.100] Like when I said like don't overlook the easy points, you had it on here. [49:10.560 --> 49:11.440] I mean, yes. [49:11.440 --> 49:14.520] Yeah, there's a lot of things don't to not do. [49:15.020 --> 49:22.260] Yeah, I mean, easy points, like I said before, like knocking out one or two to build your confidence and then come back to them is always a good thing. [49:22.260 --> 49:24.360] But don't like just completely ignore them. [49:25.460 --> 49:28.960] Pretty much these are all opposite of things that we talked about thus far. [49:29.460 --> 49:31.900] Like don't ignore hints. [49:31.900 --> 49:34.340] Like don't over complicate things like Jake does. [49:34.740 --> 49:36.640] Make sure you write things down. [49:37.180 --> 49:47.860] So at the end of the day, like a lot of these CTFs, you'll find like there may be a way to solve things that is super difficult and super hard. [49:47.860 --> 49:56.780] And reality is something as easy as typing like strings and then dumping the password or the flag right out of it instead of decompiling the entire binary. [49:58.080 --> 50:03.140] Like there are things like that that pop up, and you waste so much time on those. [50:03.360 --> 50:06.940] Because at the end of the day, like time is like the one thing you're fighting against in these things. [50:07.780 --> 50:13.420] You know, if it's a week-long CTF, like maybe time is not as much of a problem because you have some breaks in there. [50:13.420 --> 50:19.900] But if you only have like an hour to do, you know, Hack Fortress, like you don't have a lot of time to go through things. [50:19.900 --> 50:22.100] Actually, they're like 15 minutes in reality. [50:22.100 --> 50:22.880] They're not very long. [50:22.880 --> 50:24.060] Yeah, no, they're super short. [50:24.060 --> 50:25.640] There's something like that. [50:25.780 --> 50:28.940] So cool. [50:33.580 --> 50:34.340] Okay. [50:34.500 --> 50:36.420] Well, thank you guys for doing this. [50:36.460 --> 50:39.800] I think we'll give a minute here and see if we get any questions in the chat. [50:39.800 --> 50:44.460] And in the meantime, I've got a couple that I came up with ahead of time just in case. [50:44.460 --> 50:48.520] So actually, the first one will go with Barrett's question that he put in chat early on. [50:48.520 --> 50:51.060] He said, what's your favorite style of CTF? [50:53.380 --> 50:56.640] I mean, I like the mix. [50:56.820 --> 51:02.300] So the CTFs I like are ones that have a network and I'm attacking the network. [51:02.300 --> 51:04.660] I'm moving box to box and collecting flags. [51:04.740 --> 51:09.360] I don't like the Jeopardy style where you're doing individual things that nothing's related. [51:09.620 --> 51:13.900] I feel like I get a lot of, I'll call it a dopamine hit. [51:13.900 --> 51:19.380] When I'm moving through boxes and I'm exploiting them and I'm getting access, I'm elevating privileges. [51:19.920 --> 51:21.520] Those are the ones that I really like. [51:21.520 --> 51:22.880] So it ends up being like a mix. [51:23.120 --> 51:29.340] Because typically, each box will have three to four flags, an easy to hard one, and they'll have different point values. [51:29.720 --> 51:32.620] When I go and build CTFs, that's typically how I build them also. [51:32.620 --> 51:35.120] So that's probably why I enjoy them so much. [51:35.660 --> 51:41.000] Yeah, I was going to say, I do enjoy the Jeopardy style. [51:41.180 --> 51:49.180] But I used to do some defense stuff, especially when we do attack and defend more style CTFs as military exercises. [51:49.420 --> 51:57.720] And being on the defense side, there's no more fun feeling than finding the guys attacking you and kicking them out of the network and be like, good luck, start all over again. [51:57.740 --> 52:01.920] That's just a really fun event when you get to do that to people. [52:02.720 --> 52:05.080] So I really enjoy doing that. [52:05.240 --> 52:08.880] But I do like Jeopardy ones too. [52:08.900 --> 52:13.080] But probably the attack and defend just because I like the defense side is kind of fun. [52:13.080 --> 52:20.540] When you do get to go do the active threat hunting, you know for a fact there's someone in the network that you're trying to find and kick them out. [52:21.040 --> 52:25.580] What happens when Jake, when they block, the attackers block themselves out of the firewall? [52:26.240 --> 52:31.560] Oh yeah, that was... I put that on the AskARed team thing. [52:31.560 --> 52:41.220] We were doing an exercise and the team attacking us tried to put an AKL on the firewall so that we couldn't get into the firewall to kick them out. [52:41.340 --> 52:47.820] And they put the AKL on the wrong side of the firewall and locked the entire team out of the network for the rest of the exercise. [52:49.960 --> 52:52.500] It's a good way to screw your team. [52:52.560 --> 52:54.680] Yeah, that'll do it for sure. [52:55.000 --> 53:03.500] It was really funny because that was more of a military exercise than a true Defcon CTF type of thing. [53:03.500 --> 53:05.900] But that was against the ROEs. [53:05.900 --> 53:10.780] We weren't supposed to do that because obviously it would prevent the attackers from being able to really do anything. [53:10.900 --> 53:14.300] So they came to the debrief all fired up that we were cheating and stuff. [53:14.300 --> 53:20.520] We're like, here's the firewall logs where it shows that it was you guys and we were not obligated to undo the fact that you guys put that in place. [53:21.980 --> 53:23.440] Yeah, that's great. [53:24.360 --> 53:30.320] So, you know, if folks are, you know, they're already doing, like I said before, they're already doing TriHackMe. [53:30.320 --> 53:37.520] They're already doing various platforms and they want to find, you know, where they can sign up for some CTFs. [53:37.560 --> 53:43.440] Other than just showing up at cons, where can they find information about things that are coming up that they can get involved with? [53:44.800 --> 53:54.840] I think that security CTF subreddit would be the best place I can think of off the top of my head, but that's one that we can take a note and go look some stuff up. [53:54.840 --> 54:00.520] I tend to, I mean, looking for local conferences is also a good way. [54:01.520 --> 54:05.020] It's still in the conference world, like B-Sides puts on tons of stuff everywhere. [54:05.520 --> 54:08.420] So they're like a good place to track. [54:09.480 --> 54:12.120] I haven't been to any of the DEF CON groups. [54:12.320 --> 54:16.260] I would assume that they probably have a good place of tracking stuff, but I haven't. [54:16.260 --> 54:20.700] I know those are a little hit or miss that some of them are like really active and really good. [54:20.700 --> 54:25.840] And some of them are kind of, they exist on paper, but they meet like maybe once a year type of thing. [54:26.840 --> 54:32.120] But I think that security CTF subreddit would probably be the best place to get information on that. [54:32.600 --> 54:33.100] Okay. [54:33.100 --> 54:33.840] Yeah, that's great. [54:33.840 --> 54:34.700] That's great. [54:34.700 --> 54:47.100] So the last question I have then, and then we'll wrap up, but, you know, elevator pitch time, if you had 30 seconds to give somebody your number one tip for how to succeed at CTFs, what would it be? [54:49.220 --> 54:53.240] I think the number one tip is preflighting your build. [54:53.240 --> 55:04.960] The number of times that I see people struggling with their tools, because they didn't realize that something was updated or changed in the most recent version of the tool, they just downloaded like Kali 2024.3, that was the newest version. [55:04.960 --> 55:13.440] And they showed up without like actually testing the install and stuff is probably like the easiest and probably best way to prepare for it. [55:13.520 --> 55:18.800] In my opinion, that would be my number one, like elevator pitch idea. [55:19.060 --> 55:28.260] I don't know if Anthony's... I mean, of all the things that you have in your control, that's probably the easiest one is make sure your tools work. [55:29.140 --> 55:32.640] I've seen lots of teams struggle within the first 10 to 15 minutes. [55:32.640 --> 55:33.660] And you're like, why? [55:33.940 --> 55:36.860] And it's like, well, our tools were broken, or, you know, we couldn't do this. [55:36.860 --> 55:40.260] And it's like, these are very easy and solvable things. [55:41.160 --> 55:57.260] Earlier is VMs, like, there's a good reason to run a virtual machine versus running like on your bare metal, like, say you have Kali Linux, don't go install Kali Linux on your bare metal, go put it in a virtual machine, because when it breaks, it's not if it's when it will break, [55:57.260 --> 56:00.060] you can roll back that image and you know you're back to a good spot. [56:00.600 --> 56:01.180] Yeah. [56:01.660 --> 56:05.940] Also, just like that includes things like testing the Wi-Fi. [56:05.940 --> 56:11.540] That's another one I've seen where teams show up for the CTF and they're like, okay, we're all good to go. [56:11.540 --> 56:26.960] And then they can't figure out why their machine won't connect to the Wi-Fi because they showed up like five minutes before the event started instead of showing up like 15, 20 minutes early and checking that they have internet connections and they can access all their tools and all that kind of stuff. [56:27.740 --> 56:28.320] Right. [56:28.320 --> 56:30.780] So like many things, preparation is key. [56:32.400 --> 56:33.240] Okay. [56:33.660 --> 56:34.700] All right. [56:34.700 --> 56:37.940] Well, over to you guys for any closing thoughts and then I'll close this out here. [56:38.980 --> 56:41.700] No, thanks everyone for coming out. [56:41.700 --> 56:44.160] I hope this was useful for people. [56:44.500 --> 56:49.020] Anthony and I are big fans of everything you guys are doing over at Red Team Village. [56:49.020 --> 56:50.500] So thank you for putting everything on. [56:50.500 --> 56:53.420] It's been awesome seeing how much you guys have grown in the last few years. [56:53.640 --> 56:56.820] I think you're probably one of the biggest villages at the conference now. [56:56.820 --> 56:58.600] So that's pretty awesome. [56:58.600 --> 57:01.500] So thanks for having us and letting us continue to be involved. [57:02.020 --> 57:03.180] Yeah, of course. [57:03.180 --> 57:07.700] You know, it goes without saying that we couldn't do it without the support of all of our sponsors. [57:07.700 --> 57:12.240] So you know, from everybody at the Red Team Village, thank you guys for your perennial support. [57:12.580 --> 57:18.760] And then last thing I'll say as a bit of a teaser, if you will, you know, we've got some big stuff coming up this year. [57:18.760 --> 57:23.740] We've got a much bigger venue, a lot more space, a lot more workshops, a lot more speakers. [57:23.740 --> 57:29.080] So really excited about, you know, the Red Team Villages here at DEF CON and hope to see everybody there. [57:29.260 --> 57:30.680] So again, thank you, COIN. [57:30.680 --> 57:31.400] Thank you, Hubble. [57:31.400 --> 57:34.280] And thanks, everybody, for joining us. [57:34.980 --> 57:35.600] Thanks. [57:36.320 --> 57:37.160] Thanks. [57:37.560 --> 57:38.340] All right. [57:38.340 --> 57:39.220] Out here.