WEBVTT

00:04.920 --> 00:05.580
Okay.

00:26.940 --> 00:32.000
Hi, my name is Eli McRae, and I'm here to present about BYO CTF.

00:32.260 --> 00:37.960
I believe that the best way to learn something is actually to go about teaching it to other people.

00:38.480 --> 00:42.980
And one of the great ways to do that with regards to cybersecurity is through Capture the Flag events.

00:42.980 --> 00:48.840
And I believe that everyone has the opportunity to learn how to become a CTF challenge developer.

00:49.780 --> 00:51.300
So a bit about myself.

00:51.300 --> 00:53.720
I am not an expert in anything.

00:53.720 --> 00:59.160
I've been in the hacking community here in Arkansas for the past 20 years or so.

00:59.160 --> 01:02.920
Just doing various things, particularly Forsmith 2600.

01:02.920 --> 01:04.900
We started that in 2006.

01:05.400 --> 01:09.600
And then also the Arkansas hackers discord, crime.life.

01:09.980 --> 01:13.640
I've got about 18 or so years of industry experience.

01:13.840 --> 01:26.900
That is anything from computer repair to software development, network engineering, over into education and academia, military experience.

01:27.320 --> 01:31.200
I say kind of on that because I'm a member of the Arkansas Air National Guard.

01:31.200 --> 01:34.680
Spent some time doing NCC and comm work there.

01:34.680 --> 01:41.840
But for the last seven years, I've been doing cyber operations for the 223rd Little Rock Air Force Base.

01:42.820 --> 01:45.180
So yeah, that's a little bit about me.

01:45.180 --> 01:46.500
At the top there.

01:47.500 --> 01:49.880
So a bit about my CTF story.

01:50.280 --> 01:53.380
There was an event in Little Rock, Arkansas called Jolt.

01:54.120 --> 01:58.820
That was a point in my life where I had been out of the military for a couple of years.

01:58.820 --> 02:00.340
I went to that event.

02:00.340 --> 02:04.080
I was fortunate enough to be on a team that did really well.

02:04.100 --> 02:06.160
I was on with some heavy hitters.

02:06.160 --> 02:07.840
And we did well.

02:07.840 --> 02:08.780
We won.

02:09.180 --> 02:11.020
And I was like, man, that was really cool.

02:11.020 --> 02:17.680
It ended up getting me back on track and into the military, being able to do all of this hacking stuff as a career .

02:18.900 --> 02:23.380
Well, in the process of doing that, I guess maybe my ego was like overinflated or something.

02:23.380 --> 02:27.080
But we said, man, that's a really cool thing.

02:27.080 --> 02:28.680
We could do that in Fort Smith.

02:28.680 --> 02:35.960
The reason we said in Fort Smith was because that is, you know, where most of the top three teams were from.

02:35.960 --> 02:38.500
And so, we said we're going to do that.

02:38.500 --> 02:42.420
We'll put together a really cool event in Arkansas.

02:43.200 --> 02:48.600
The history of that was really based on CTFD.

02:48.800 --> 02:52.260
So, in 2018, we ran our first event.

02:52.260 --> 02:58.500
And that was based off of a fork of custom changes that we made to like CTFD itself.

02:59.200 --> 03:02.540
We wrote some interesting additions there.

03:02.540 --> 03:10.260
And in 2019, all of those changes, I sort of wrapped up into a plug-in that CTFD has sort of implemented, a plug-in system.

03:10.260 --> 03:14.820
And so, I took that and made that a plug -in.

03:15.260 --> 03:21.600
And I helped run CTFs around the state of Arkansas on behalf of the Department of Education.

03:22.020 --> 03:25.160
And a lot of that legacy sort of still continues on.

03:25.160 --> 03:30.440
I think there's something to the effect of 535 high schools in Arkansas.

03:30.440 --> 03:39.900
And about 20% of them have experienced some sort of CTF because of the work of the Computer Science Initiative team that I was a part of.

03:39.900 --> 03:46.140
So, it was really cool to be able to help share that experience with high school students.

03:46.580 --> 03:49.940
But CTFD, I think, has some problems as well.

03:50.320 --> 03:56.820
Particularly, as like changes would come out, it was hard to port the challenges from version to version.

03:57.180 --> 04:06.460
So, also, our plug-ins were hard to maintain because there was something that was changing on the back-end database or something.

04:06.480 --> 04:09.680
It was hard to sort of keep that running and in line.

04:09.980 --> 04:12.820
All of that being said, please go use CTFD.

04:12.820 --> 04:13.960
Good framework.

04:13.960 --> 04:16.000
Love it for a number of reasons.

04:16.000 --> 04:22.480
So, with all of that, as we were developing challenges, there were some struggles.

04:23.420 --> 04:32.040
Part of that was like the level of expectation I had placed on myself, never having run a CTF before, but having played in some.

04:32.040 --> 04:42.000
I was like, man, I don't understand how I'm going to create all of these interesting challenges and have enough content to cover the entirety of the event.

04:42.000 --> 04:51.260
So, one of the standards we set for ourselves was to be able to release at least one challenge, possibly three, every hour for the entire duration of the CTF.

04:51.260 --> 04:55.060
And I think for that event, we were targeting 48 hours of CTF time.

04:55.160 --> 04:56.880
So, that's a lot of challenges.

04:58.240 --> 05:02.020
And I think we ended up producing something like close to 100.

05:03.300 --> 05:12.720
The other thing is we didn't want to even announce the event until we had the human logistics side of it locked down because this was supposed to be an in-person event, kind of a party, like I said.

05:14.200 --> 05:24.040
And once you have the venue and the food and figuring out where people are going to go to the bathroom, that is the hardest part of hosting an in-person event.

05:24.060 --> 05:25.260
What are they going to eat?

05:25.260 --> 05:27.640
What are they going to do with the food that they've eaten, right?

05:28.520 --> 05:30.260
So, that.

05:30.620 --> 05:33.860
What that led to ultimately is overproduction of challenges.

05:33.860 --> 05:37.320
We had way more challenges than we ended up actually deploying.

05:37.320 --> 05:44.900
Part of that was the technical error for one reason or another, or we just simply overlooked it in the spreadsheet.

05:45.880 --> 05:53.580
That self-imposed vendor lock-in, we built those challenges with the capabilities of our framework in mind.

05:53.580 --> 06:00.920
So, we couldn't take our challenges and take them to another event because just the way that the flag reveals would work out.

06:00.920 --> 06:09.040
We're just different in that other framework, whether that be Melavora, the Facebook framework, CTFD, something in between, HomeAid.

06:09.660 --> 06:18.180
And ultimately, all of that sort of led to a distraction from the core mission, which is to celebrate the hacker community here in Arkansas.

06:18.520 --> 06:27.140
So, some of the challenges that we had also sort of as a team is that the team that was running the event kind of was shrinking.

06:27.480 --> 06:33.220
People moved on out of the area, weren't able to contribute remotely.

06:33.460 --> 06:43.500
Some had kids, myself included, and that just takes a lot of time away from us being able to come up with what we consider interesting and new challenges.

06:43.720 --> 06:48.560
And it's really hard to always have interesting and new challenges.

06:48.920 --> 06:51.180
And that was very important to us.

06:51.180 --> 06:55.880
We didn't just want to go and sort of regurgitate the same challenge over and over again for people.

06:55.880 --> 07:02.400
And so, we would always say to ourselves, like, we're going to have the event when we have something to say, something interesting to showcase.

07:04.120 --> 07:06.480
So, again, human logistics is hard.

07:06.480 --> 07:08.360
You guys want to look at those links.

07:08.360 --> 07:15.860
When you get the slide deck, you'll be able to click those and actually see everything we did was very transparent as far as, like, where we spent the money.

07:15.860 --> 07:22.780
Every bit of money went back into the community, back into the event or other events, potentially.

07:22.880 --> 07:28.880
So, we said that we had a problem and we need a solution.

07:30.560 --> 07:40.380
We wanted something that would implement the ability for players to be able to contribute challenges without, you know, sort of opening the kimono too much.

07:40.380 --> 07:44.980
People would always volunteer to help, but we don't need help stacking chairs.

07:44.980 --> 07:47.200
We need to help with really cool ideas.

07:47.440 --> 07:48.620
We can move tables.

07:48.620 --> 07:51.520
We can figure out the bathroom situation, as I said.

07:51.520 --> 07:55.180
But we need interesting content to make people want to come.

07:56.460 --> 08:04.680
Next, we wanted some way for those contributions that people would make to be rewarded or given back to them in some meaningful way.

08:04.680 --> 08:08.440
Something that would mean something more so than just a thumbs up or kudos.

08:11.320 --> 08:15.560
And because of that, I guess this was like sort of a secondary feature.

08:15.560 --> 08:19.300
I wanted there to be some form of, like, inter-player transactions.

08:19.300 --> 08:25.420
So, within the game, I can influence your play of the game to some degree.

08:28.560 --> 08:38.860
All of those features would allow us, the organizers, to sort of pay more attention to the experience and the ambience, the atmosphere, things like that.

08:38.860 --> 08:43.620
And so, it would also potentially allow us to participate in the game again.

08:43.620 --> 08:50.760
Because once you sort of joined the challenge developer team, it kind of took you out of the talent pool.

08:50.760 --> 08:53.480
And Arkansas is not particularly large.

08:54.500 --> 08:58.340
So, there are cities that are larger than the entire state population of Arkansas.

08:58.340 --> 09:00.960
So, our talent pool was not as broad as others.

09:00.960 --> 09:03.280
So, we want to be able to play the game too.

09:04.320 --> 09:10.500
And I'm sure there's some other problem that we were having that we thought this was a good idea.

09:11.100 --> 09:15.820
So, I will say that at the time, no other framework offered this.

09:15.820 --> 09:20.480
But I put a heavy asterisk there because I don't think I even bothered to Google it.

09:20.780 --> 09:23.020
So, they might have existed.

09:23.020 --> 09:24.920
If one exists, please share.

09:25.220 --> 09:26.740
Be glad to see it.

09:26.740 --> 09:28.820
So, none of that stuff existed until...

10:03.350 --> 10:03.730
Cool

10:10.180 --> 10:10.560
.

10:11.440 --> 10:12.880
I hope that video played well.

10:12.880 --> 10:13.420
Maybe it did.

10:13.420 --> 10:14.400
Maybe it didn't.

10:14.400 --> 10:15.940
Hopefully that will go better live.

10:16.920 --> 10:23.780
Anyway, FS 2600 solution, BYOCTF, bring your own challenge or capture the flag.

10:23.780 --> 10:24.820
Something like that.

10:24.960 --> 10:27.240
I think it's supposed to be a regular expression joke.

10:27.260 --> 10:28.020
I made it up.

10:28.020 --> 10:29.400
I kind of ran with it.

10:29.400 --> 10:31.760
So, it's for us, by us.

10:31.760 --> 10:36.080
If you want to get a copy of these slides, you can go to byoctf.com forward slash slides.

10:36.680 --> 10:38.260
And look at that.

10:38.520 --> 10:40.320
The rest of the slide deck, that is.

10:41.180 --> 10:43.840
So, I started this in 2020.

10:44.220 --> 10:47.300
And then I let it cook for a long minute.

10:47.520 --> 10:50.020
I don't think there was any contributions that I made.

10:50.020 --> 10:51.580
I kind of didn't forget about it.

10:51.580 --> 10:54.420
But there was just, you know, COVID and all that stuff.

10:54.420 --> 10:58.840
So, there was no, like, in-person event that was getting thought about for a long time.

11:00.400 --> 11:04.000
And then something changed in, you know, late 2022.

11:04.000 --> 11:06.080
We said, oh, man, maybe we should do this thing.

11:06.440 --> 11:09.740
And I think I accidentally committed us to doing it in 2023.

11:10.300 --> 11:14.420
And so, that led us up to, you know, the event.

11:14.420 --> 11:33.360
So, at the end of the day, the shortest and simplest analogy that I can offer is it is kind of like a potluck for hackers, where the challenge developers, the hosting body can create the main dish, if you will, and then everybody else can bring a side dish.

11:33.360 --> 11:46.800
They can bring, you know, some other component, some other forensics expertise, or some other network traffic analysis expertise, or some, you know, binary reversing expertise that your core team might lack.

11:47.560 --> 12:01.740
So, again, the core features of the BYOCTF, as is implemented by us, is that players can earn points by other players solving the challenges that they contribute.

12:02.840 --> 12:08.860
That opens us up as the game masters or GMs to be able to play again.

12:09.960 --> 12:28.080
There was, like, this core trust issue that I think was the interesting problem that made me try to decide to implement a solution in the first place was, like, how do I have people contribute challenges where they can trust that I am not going to cheat?

12:28.880 --> 12:35.640
And so, we created this external validation scheme, as well, which is still in place, but it's honestly not the main feature.

12:35.960 --> 12:41.840
You can contribute a challenge that is externally validated, where you never give us the flag.

12:42.660 --> 12:50.240
You can only answer yes or no, whether that flag was correct, and based on your response, it does the thing and gives the points.

12:51.920 --> 12:57.240
We have our inter-player transactions and other things of that nature.

12:57.500 --> 13:00.540
You can sell stuff, hints, and information to each other.

13:00.540 --> 13:01.620
I think that's fun.

13:01.620 --> 13:03.400
With that, you have an economy.

13:03.860 --> 13:09.100
It's flag-oriented, meaning that the flags are not bound to a specific challenge.

13:09.100 --> 13:21.320
So, you can do Oprah-style challenges, where you can, under your chair, you have a flag, you have a flag on the ceiling, and you don't have to know to go to a challenge X, Y, or Z, and then put that flag in that you found.

13:21.320 --> 13:24.820
You can simply find a flag and capture it.

13:26.160 --> 13:37.600
Obviously, you can have partial flags or multiple flags, but a single flag can actually be part of multiple challenges, which I think was an interesting idea, as well.

13:37.780 --> 13:43.120
We have the same thing as the first blood points, the decaying points over time.

13:43.420 --> 13:55.340
I had a lot of other ideas as far as game mode, so PVP, so a lottery effect, so the more people that solve a challenge, the less valuable it is at the end of the game.

13:55.780 --> 13:57.700
And then some other game modes, as well.

13:58.500 --> 14:00.500
It used to be strictly Discord-based.

14:00.500 --> 14:07.860
If you go to the GitHub, you'll notice it says BYOCTF underscore Discord, or something like that, or Discord BYOCTF, I don't remember.

14:09.640 --> 14:13.380
But most people really wanted the web experience.

14:13.380 --> 14:21.480
So, it's not strictly Discord-based, but the initial implementation was made to run as a Discord bot.

14:21.480 --> 14:24.140
But that's not essential to the concept.

14:24.640 --> 14:28.440
I wanted the strong authentication that came with it.

14:29.980 --> 14:31.800
So, other features.

14:31.800 --> 14:33.780
I mentioned the externally validated flag.

14:33.780 --> 14:36.120
You don't have to give us the flag material.

14:37.600 --> 14:40.320
They have a different mechanism, slightly.

14:40.360 --> 14:45.860
Rather than typing sub, you type esub for external sub validation.

14:45.980 --> 14:53.120
But one caveat is that we will see the SHA-256 of the flag that's submitted.

14:54.280 --> 14:56.920
I mean, you've got to trust something somewhere.

14:56.920 --> 15:00.740
You can always channel this to GM and say, hey, what's the flag that produces that hash?

15:00.740 --> 15:03.300
And if we can't produce it, okay, there you go.

15:03.940 --> 15:08.000
Go to that link for the prototype server.

15:08.000 --> 15:10.280
You can implement that and look at the routes.

15:10.280 --> 15:13.720
It's all in Flask, so it's pretty straightforward and easy to ingest.

15:14.120 --> 15:18.160
I will say I have not implemented that in the web UI, but there you go.

15:18.860 --> 15:23.320
Challenge dependency or extension, I thought that was fun.

15:23.680 --> 15:31.520
What was really interesting is that a user-contributed challenge can extend any other uh, existing challenge.

15:31.520 --> 15:48.840
And so, if you wanted to sort of pick up on something that was perhaps overlooked in a core, I use here memory analysis with volatility, a core challenge such as like, hey, what were the browser tabs open in Firefox?

15:48.840 --> 15:53.340
And that's the only flag that you wrote for that challenge.

15:54.140 --> 15:59.440
Player two can come along and say, hey, but what was saved in the clipboard memory?

15:59.560 --> 16:06.460
And that can be sort of a reuse and a recycling of that person's content.

16:06.500 --> 16:10.880
And we'll talk a little bit about some of the limitations, the features, and why that would still be possible.

16:11.740 --> 16:32.380
But, so, a way to think about that challenge dependency and unlocking is that our green challenges, A can unlock B and C, or that player D can build a dependency upon either B or C, and then do other great things with those challenges.

16:32.380 --> 16:40.640
So, the other way to look at that is A unlocks C or B, which unlocks D, which unlocks E, and all of those things can be player-contributed challenges.

16:40.980 --> 16:47.500
Just so long as the previous challenge in the chain exists within the database, you can create a dependency on it.

16:47.500 --> 16:50.700
That should be logical or obvious.

16:51.280 --> 16:55.700
So, this is the data model for udatabase.nersc.

16:56.100 --> 17:06.200
So, yeah, it looks like spaghetti code because it looks complicated, and it kind of is.

17:06.200 --> 17:07.300
It's overly complicated.

17:07.300 --> 17:18.460
There are features on some of those tables that don't ever end up getting leveraged, but they're there for the sake of, I don't know, future expansion, I guess.

17:19.340 --> 17:20.200
There's that.

17:20.200 --> 17:22.500
So, how does it do the thing?

17:22.500 --> 17:31.600
I told you an interesting story about how a player would get extra points for contributing a challenge.

17:31.600 --> 17:33.520
Here's that narrated.

17:33.720 --> 17:36.600
So, here is the author of a challenge.

17:36.600 --> 17:38.300
He's created challenge CC.

17:38.300 --> 17:40.600
There's two flags to this challenge.

17:40.620 --> 17:45.680
One of them is worth 150 points, and flag two is worth 50 points.

17:45.720 --> 17:58.720
You submit that to the game, and it says, okay, by default, that the fee that you have to pay in order to post a challenge is 50% of the sum of all your values of your flags.

17:58.720 --> 18:01.640
So, real quick, that's all tunable.

18:01.640 --> 18:03.880
You can change that information.

18:05.460 --> 18:07.960
But, there's that.

18:07.960 --> 18:13.580
So, at this point, once you've committed that, you are down 100 points.

18:13.720 --> 18:15.660
So, you pay that money.

18:15.660 --> 18:20.040
You are now invested in the viability of that challenge.

18:20.040 --> 18:24.880
As that happens, as you commit it, it becomes available to other players.

18:25.560 --> 18:28.300
They can have the opportunity to solve it or not.

18:28.300 --> 18:30.720
There's no guarantee that you will get a solve.

18:30.800 --> 18:39.420
But, those players choose to pick it up, and it turns out that player one captures the first flag, and that's 150 points for them.

18:39.420 --> 18:52.820
Their number goes up, but as a reward for you having contributed a challenge that is solvable, you have been rewarded 25%, again, tunable, of that 150 points.

18:52.820 --> 18:56.060
So, that turns out to be 37.5 points.

18:56.060 --> 18:58.080
So, now your score goes up as well.

18:58.080 --> 19:02.020
You're still down, but you're getting closer to breaking even again.

19:03.700 --> 19:05.540
Next comes player two.

19:05.540 --> 19:08.560
They solved flag one for 150 points.

19:08.560 --> 19:09.780
Their number goes up.

19:09.780 --> 19:11.100
Your number goes up.

19:11.100 --> 19:13.280
Again, now you're at 375 points.

19:13.280 --> 19:15.600
You're only 25 points down at this point.

19:16.820 --> 19:20.020
Third player comes along, 150 points.

19:20.060 --> 19:25.120
You get that same 25% boost, and you are now in the green.

19:25.120 --> 19:29.940
You've made, or in the black, I guess it's saying, you've made 12.5 points.

19:30.680 --> 19:33.220
You are up from your starting position.

19:33.220 --> 19:37.840
Meanwhile, you might have also been working on other challenges, solving those things as the author.

19:39.240 --> 19:41.740
Now, notice that this is player one again.

19:41.740 --> 19:46.060
He's captured flag two, and that is only worth 50 points.

19:46.060 --> 19:49.220
Now, you still get that same 25% bump.

19:49.220 --> 19:53.320
In this instance, it's 12.5 points, so that puts you up 25 there.

19:55.160 --> 19:59.020
Same game, player four, fourth person comes along.

19:59.020 --> 20:05.020
There's only the practical limit of how many teams there are to get your points there.

20:05.020 --> 20:12.580
Right now, you're at 62.5 points up from your initial contribution.

20:12.680 --> 20:18.000
So, pretty straightforward, I think, as far as how that plays out.

20:18.060 --> 20:30.140
But I think we need to definitely talk about the criticisms that I've encountered, and that I thought of initially, but that I've got some excellent feedback from folks over the last couple of years.

20:30.140 --> 20:32.340
We've been trying to shop it around.

20:32.340 --> 20:40.400
So, the first one is, what happens if somebody just creates a challenge that's, you know, a total brick and there's not a solution to it?

20:40.400 --> 20:42.180
All right, that's a criticism.

20:42.340 --> 20:49.380
The next one, what about challenges that are just, oh, flag one, two, three, or password is password, things of that nature.

20:49.380 --> 20:58.120
I call that the race to the bottom, and that's where people are going to just flood it with kind of BS challenges that are just super easy.

20:58.760 --> 21:01.300
We'll see some mitigations for that as well.

21:02.920 --> 21:06.740
Legitimate, but otherwise over or undervalued challenges.

21:06.820 --> 21:10.480
That one's hard, but you could call it an honest mistake.

21:10.480 --> 21:16.420
You can see the other ones, like the impossible to solve challenge, that's something that you would do to try to disrupt and ruin the game.

21:16.740 --> 21:20.020
Trivial challenges is you just trying to get a leg up, you know.

21:20.180 --> 21:23.560
But this third one here is kind of an honest mistake.

21:23.560 --> 21:26.740
You didn't know that it was going to be as hard as it was.

21:26.740 --> 21:30.400
It's still solvable, but you didn't know it was going to be difficult for everybody.

21:31.600 --> 21:34.360
And then the last one is like bad faith administrators.

21:34.500 --> 21:38.680
We have, you know, I guess a more practical solution for that.

21:38.760 --> 21:48.280
I would like to shout out Jeff at BIC for helping come up with ideas as I was pitching BYO CTF to them for their CTF framework.

21:49.180 --> 21:59.040
It was, you know, he was like, oh, man, I read through the docs and challenge cloning was a really clever solution, or I'm sorry, attack on the framework that I thought he put forth.

21:59.900 --> 22:09.300
So, the things that we would need to think about in order to mitigate that, turns out they were already in place, but I was kind of stumped in the conversation.

22:09.300 --> 22:12.180
So, we'll talk about that one here in just a second.

22:13.000 --> 22:16.740
So, we have the controls in place for bad faith administrators.

22:16.740 --> 22:24.420
What I can do is offer my promise as the event organizer that I'm not going to try to win my own event.

22:24.420 --> 22:26.260
It's going to look pretty lame if I do.

22:26.260 --> 22:27.660
So, there you go.

22:27.660 --> 22:32.780
That's the practical solution to bad faith administrators.

22:34.380 --> 22:35.640
We can tune.

22:35.640 --> 22:37.420
It's just a database at the end of the day.

22:37.420 --> 22:42.860
We can go in and change the values if we notice that everyone's like, ooh, that challenge is way too hard.

22:42.860 --> 22:52.200
We can just change the value and tune it to make it more appropriate or bring the value of coins in line with what everyone else's is.

22:53.020 --> 23:01.920
The next one is that race to the bottom concept where everyone's just flooding the entire game with just easy and trivial challenges.

23:02.200 --> 23:06.120
We can disable specific challenges or we can just disable the entire thing.

23:06.120 --> 23:16.660
It's a regular CTF framework as well, so you can still run on your core challenges and just disable and hide all of the other challenges that were submitted through the mechanism.

23:18.400 --> 23:23.560
And then, obviously, we can disable a user in challenges associated with that user.

23:24.360 --> 23:29.480
So, that is, you know, that's kind of just hitting them with a band hammer or something.

23:30.740 --> 23:36.860
I guess I have this here because it should be obvious, but you cannot submit a challenge from your own team.

23:37.060 --> 23:40.460
Like, that's... I would hope that that should be obvious to you.

23:41.460 --> 23:44.820
And I always like to say, like, please don't make us use these rules.

23:44.940 --> 23:46.640
Don't hack the scoreboards, what we always do.

23:46.660 --> 23:53.060
Would say, you know, big sort of follow the same rules, you know, don't mess with the infrastructure.

23:53.220 --> 23:58.600
So, I thought that this framework was fun because there's a lot of game theory involved in it as well.

23:59.200 --> 24:06.720
Some of the game and game theory is really just, like, where it comes from is the idea that your decisions impact my decisions.

24:06.720 --> 24:09.880
So, how you play the game impacts how I play the game.

24:10.080 --> 24:21.200
And this sets up like a... I guess it's a form of the classic prisoner's dilemma where one set of players has to decide to cooperate or defect.

24:21.920 --> 24:33.200
And by defect, we mean create unfair challenges or create some sort of disadvantage for... I'm sorry, disadvantage for the opposing side.

24:33.200 --> 24:37.480
So, trying to create an advantage for themselves or cooperate.

24:38.260 --> 24:45.360
We incentivize cooperation via the reward system and we dissuade defection via the commit fee.

24:45.380 --> 24:50.000
So, again, you have to commit 50% of the sum of your flags in order for you to be able to post it.

24:50.000 --> 24:57.420
So, that alone should help mitigate some people that are willing to just try to nuke the game.

24:58.460 --> 25:01.440
So, let's see.

25:01.700 --> 25:03.140
Asymmetric information.

25:03.420 --> 25:10.000
This is sort of, again, calling back to the idea that there's a legitimate challenge that's otherwise undervalued.

25:10.500 --> 25:20.740
They are able to go forth and tune that information based on their experience and other events.

25:21.180 --> 25:25.080
I have this set up as like time vampires versus impossible challenge.

25:25.080 --> 25:28.040
Time vampire is a real challenge.

25:28.040 --> 25:31.840
It's just sucking time, something that's time consuming otherwise.

25:31.840 --> 25:36.520
An impossible challenge is broken or intentionally broken.

25:36.600 --> 25:42.940
I have impossible because I guess the joke I was making was like impossible meats.

25:42.940 --> 25:45.620
Like the impossible whopper or something.

25:45.700 --> 25:46.660
So, where's the beef?

25:46.660 --> 25:47.520
That's the joke.

25:47.520 --> 25:48.200
Okay.

25:50.180 --> 25:52.480
Again, we can change those things.

25:52.580 --> 26:02.260
The way that I sort of built into the framework to help manage that was in gaining a free market experience was leveraging the rating system within the framework.

26:02.960 --> 26:05.740
All of that will lead to what they call Nash equilibrium.

26:06.240 --> 26:11.720
And so, that is where creating fun and fair challenges is the best strategy.

26:11.860 --> 26:15.480
That's what that Nash equilibrium is within our game.

26:16.720 --> 26:29.860
So, the benefits of this particular framework, even if you don't use it in your event or if you don't want to have people contribute challenges to your event, is how you store your challenges.

26:29.860 --> 26:41.480
I thought that was one of the hardest things was to collect information from other developers about how the layout of their, you know, their flag and their challenge should be stored.

26:41.800 --> 26:48.960
It allows you to have sort of just some structured format and then you're able to obviously manage that through GIF or whatever.

26:48.960 --> 27:00.060
So, the other benefit is that when you do run it in your event, that will allow people to make little contributions at their own pace.

27:01.060 --> 27:07.580
And they can be really easy if they don't want to try to, you know, come hard with a bunch of, like, reverse engineering challenges.

27:07.580 --> 27:10.320
They can start with a very simple cryptography challenge.

27:10.320 --> 27:12.000
So, you can make very small contributions.

27:12.000 --> 27:15.960
And I'm sure there's some other benefits in there that I'm rushing through right now.

27:15.960 --> 27:22.000
So, the events that have used BYOCTF framework successfully.

27:23.480 --> 27:24.460
Shell on the Border.

27:24.460 --> 27:25.280
That's our event.

27:25.280 --> 27:26.700
That's me, right?

27:26.740 --> 27:32.400
We did a really cool event over New Year's Eve of 2023.

27:32.400 --> 27:36.140
I guess December 2023 going into 2024.

27:36.760 --> 27:38.200
That was Shell on the Border.

27:38.200 --> 27:43.760
We didn't have as many folks there as we would have liked, but it turns out we had just the right folks.

27:44.100 --> 27:46.100
So, that was... I'm super proud of that event.

27:46.100 --> 27:47.480
It was really awesome.

27:47.480 --> 27:50.320
If you weren't there, you missed out.

27:50.560 --> 27:58.480
SparkCon, that was a really cool CTF hosted by the Walmart red team at Walmart headquarters in Bentonville, Arkansas.

27:58.880 --> 28:04.340
And then maybe, who knows, you know, Bic Village on DEF CON 33, you know, hit me up.

28:04.980 --> 28:08.760
So, here's some pictures from Shell on the Border.

28:08.900 --> 28:13.220
It was in an old... it used to be a skate park a long time ago.

28:14.140 --> 28:17.000
And it's been converted into an arcade.

28:17.240 --> 28:20.520
We have, you know, all the cool hacker event stuff.

28:20.640 --> 28:29.760
Badges and, you know, scoreboards and CTFs and lock picking with untold amounts of cash in there.

28:29.880 --> 28:33.460
You can go and look at more photos at that event or that QR code.

28:33.460 --> 28:34.460
It's the same thing.

28:35.160 --> 28:38.260
I do want to brag on Shell on the Border for one second, though.

28:38.420 --> 28:39.460
This was fun.

28:39.460 --> 28:51.860
And again, shout out to Omai for, one, putting me on to this, thank you for giving me the opportunity, and thank you for coming and playing in our CTF and thinking it was cool.

28:51.860 --> 28:54.100
You also performed, and that was fantastic.

28:54.320 --> 28:58.280
One of our guys was there, and he's like, oh, man, I love this song.

28:58.280 --> 29:02.540
And it turns out he was talking to Omai, but he didn't realize it until, like, 30 minutes later.

29:02.620 --> 29:03.340
Fantastic.

29:03.820 --> 29:04.620
Big ups there.

29:04.620 --> 29:05.300
Thank you.

29:06.860 --> 29:16.180
So, SPARKCON, again, hosted at... on April 20th, hosted at Walmart headquarters at their SPARKCON event.

29:16.840 --> 29:26.980
This was, like, the red team hosted a CTF for not only their internal folks, but for just folks coming to the event in general.

29:27.720 --> 29:29.200
A lot of fun.

29:29.440 --> 29:31.460
There were about 140 folks there.

29:31.460 --> 29:34.200
So, as far as people that registered.

29:34.500 --> 29:36.760
Their team sizes were set differently.

29:36.760 --> 29:40.600
Again, most of the settings in this are tunable because they're settings.

29:42.100 --> 29:43.070
And there are...

29:43.810 --> 29:46.470
they had a lot of participation overall.

29:46.470 --> 29:52.490
You can kind of just drop in and check it out throughout the entire event, which I thought was really fun.

29:53.910 --> 29:57.290
So, I've told you about all this cool stuff within BYSDTF.

29:57.310 --> 29:58.870
I've asked you to use it.

29:59.230 --> 30:00.530
But how do you do so?

30:01.350 --> 30:05.030
So, again, I mentioned that it manifests as a Discord bot.

30:05.030 --> 30:06.050
These are the commands.

30:06.050 --> 30:07.450
This is all on the GitHub page.

30:07.450 --> 30:08.610
You can see there.

30:08.890 --> 30:10.910
But there are a couple of core commands you'll see.

30:10.910 --> 30:14.730
So, first of all, you had to be associated with our event at Shell on the Border.

30:14.730 --> 30:18.550
You had to have it set up in such a way that you were a member of the Arkansas Hackers Discord.

30:18.550 --> 30:20.490
You can go to HTTPS, crime.life.

30:20.490 --> 30:22.830
That's crime with a K, the one true spelling.

30:24.550 --> 30:26.810
And then you had to register.

30:27.570 --> 30:28.810
You'd register a team.

30:28.810 --> 30:36.170
And the way that that worked is the first person to register a team name with a certain password would claim ownership of that team name.

30:36.170 --> 30:40.290
And then you would give that password to anyone else that wanted to join your team specifically.

30:40.350 --> 30:42.190
That's your registration command.

30:43.710 --> 30:46.610
Once you're registered, this is how you could view them.

30:46.610 --> 30:48.850
So, it's, you know, bang all.

30:49.250 --> 30:50.470
And then pick a challenge.

30:50.470 --> 30:53.390
I picked challenge 25 here, for instance.

30:54.150 --> 31:03.570
And these are all manifesting or, I'm sorry, happening as messages or DMs to the Discord bot within that channel.

31:04.550 --> 31:09.870
So, I say I want to view either, you know, bang V or bang view.

31:09.910 --> 31:11.870
And then the challenge ID, challenge number.

31:12.470 --> 31:13.930
And that'll give you the description.

31:13.930 --> 31:15.570
That's roughly what it looks like.

31:16.470 --> 31:19.590
You know, the description is telling you everything you need to solve the flag.

31:21.190 --> 31:25.190
This is how you would submit the flag by sending just, again, pound sub.

31:25.190 --> 31:26.690
It's in submit a flag.

31:27.050 --> 31:29.250
And then just, you know, the flag content.

31:30.110 --> 31:35.630
You can see here that we're calling out that you cannot submit a flag from your own challenge.

31:35.630 --> 31:37.630
That was one of the I created.

31:37.710 --> 31:41.830
So, I cannot get points for my own stuff or anyone on my team's stuff.

31:44.330 --> 31:48.990
So, you can see here is a successful completion as well for that particular challenge.

31:48.990 --> 31:50.370
That was challenge 25.

31:51.650 --> 31:54.750
So, if I do, you know, bang who am I?

31:54.750 --> 31:56.570
You can see there's my information.

31:56.570 --> 32:02.610
You have an API key that you can use to sort of get access to the web interface.

32:02.770 --> 32:06.310
Which is the other thing and we will show you.

32:06.470 --> 32:08.690
But it gives you links and all that kind of good stuff.

32:08.950 --> 32:15.930
There's public and private keys and stuff you can do with PKI that was built out and fun to have.

32:15.930 --> 32:18.770
But not essential to this framework in any way.

32:19.630 --> 32:24.290
If you want to see your score, the scoreboard in Discord format, this is how you would do it.

32:24.650 --> 32:31.590
So, if you thought Headspace UIs were whack, you can view a web interface.

32:31.590 --> 32:43.490
Most people wanted to use the web interface because it was easier to ingest the information for whatever reason.

32:44.010 --> 32:47.370
Which was a little bit disappointing because I spent a lot of time thinking about the other one.

32:47.370 --> 32:50.390
But anyway, I taught them a lesson.

32:50.390 --> 32:52.930
Didn't spend any time thinking about this one.

32:53.030 --> 32:56.470
This is the scoreboard that we had projected on the wall.

32:56.990 --> 33:06.630
Really, the point there is just for you to be able to see who's in first place, who's the individual top scoring players and who's the individual teams.

33:08.170 --> 33:18.150
This is, again, I put negative thought into the prettification of this.

33:18.690 --> 33:19.870
But here we are.

33:19.870 --> 33:20.530
That's it.

33:20.530 --> 33:21.950
That's what she looks like.

33:21.950 --> 33:23.570
That's the web interface, guys.

33:24.090 --> 33:29.090
So, right here in the middle, you can see, that's what I call the magic flag hole.

33:29.090 --> 33:33.970
You put flags in there and ideally get points out when you submit the flag.

33:34.410 --> 33:37.490
There was also that tipping mechanism that I mentioned earlier.

33:37.490 --> 33:40.470
You can send tips from this, you know, the player hud.

33:41.410 --> 33:44.810
You pick a player, you type their name or something in there.

33:44.810 --> 33:46.570
There's a dropdown as well.

33:47.090 --> 33:52.490
And then you can say something about them and give them a certain number of points.

33:53.250 --> 34:07.350
There was an interesting abuse of that mechanism, which involved people sort of boosting one player at the end of the game into first place by everyone tipping them their all the points that they had because they weren't going to win.

34:07.350 --> 34:08.670
So, there you go.

34:08.910 --> 34:09.890
That was fun.

34:09.890 --> 34:10.570
I didn't know.

34:10.570 --> 34:11.430
I didn't think about that.

34:11.430 --> 34:12.350
And there we are.

34:12.410 --> 34:14.930
So, we did create a mitigation where there's now a fee.

34:14.930 --> 34:19.670
You have to spend additional funds to send a tip to somebody.

34:19.670 --> 34:25.350
Anyway, that's, you know, the landing page on the hud.

34:27.230 --> 34:35.550
But you can see here, even an older screenshot for some reason, where we're listing the available challenges.

34:35.550 --> 34:37.710
You can see there's like a solved status.

34:37.710 --> 34:44.630
You can click, you can see the percentages, different tags that are associated with that challenge.

34:44.630 --> 34:56.210
So, whether, oh, this is just a generic like weird puzzle thing that we built, or it's a scripting challenge, or this is something that is a PowerShell-oriented challenge, or cryptography, or encryption, or something.

34:56.450 --> 35:03.370
Those are all things that you can control left for and find within the list of challenges.

35:04.650 --> 35:08.810
So, when you go to a specific challenge, this is the information that will land on it.

35:08.810 --> 35:13.050
You'll see all of the hints that you can purchase for your particular challenge.

35:13.170 --> 35:20.390
You can see the details, the description, how many flags it has, what are the sum of the value of flags.

35:21.990 --> 35:29.330
If you wanted it to be structured in such a way that you kind of feed them information, you have to feed them the information through the description.

35:29.890 --> 35:33.110
The framework does not host any files when you submit a challenge.

35:33.110 --> 35:36.450
You're not giving it, oh, here's a, you know, two gigabyte PCAP.

35:36.450 --> 35:38.430
You have to store that on your own.

35:38.430 --> 35:40.090
That's your own thing.

35:40.090 --> 35:41.810
Welcome to the life of a challenge developer.

35:41.810 --> 35:45.450
How do you get your materials to the players?

35:46.610 --> 36:07.110
If you have a flag format that deviates from, like, our core convention, which is capital F, capital L, capital A, capital G, curly bracket, summit witty flag, closing curly bracket, if it deviates from that, I would appreciate that you put your flag format in there.

36:07.810 --> 36:09.430
So, there's that.

36:09.750 --> 36:11.830
It's not case insensitive.

36:11.830 --> 36:13.850
There's no way to build regular expression.

36:13.850 --> 36:15.210
Not that there's no way.

36:15.210 --> 36:19.190
I chose not to build regular expressions or make it case insensitive.

36:20.010 --> 36:21.950
That's just the game.

36:21.950 --> 36:25.610
So, these are all the transactions.

36:25.610 --> 36:28.730
I said that this is a transaction -oriented framework.

36:28.770 --> 36:32.970
These are all the transactions associated with your specific team.

36:33.190 --> 36:45.450
That involves flag solves, hint purchases, rewards, anything that happened that influenced the score on your team will show up as part of your team transactions.

36:45.850 --> 36:49.650
Just a way for you to be able to account for that.

36:50.170 --> 36:56.130
That same thing, except for public transactions, happens right here.

36:56.130 --> 37:00.510
So, this is something you could maybe have on a different wall somewhere.

37:00.570 --> 37:02.110
These are all public transactions.

37:02.110 --> 37:07.970
So, any time someone sends a tip, there's that fun, you know, message that can show up.

37:07.970 --> 37:10.150
If you go and look at them, you'll see that.

37:10.350 --> 37:12.610
As you receive a tip, you will see the message.

37:12.610 --> 37:13.950
They're not necessarily public.

37:14.870 --> 37:17.090
So, that's fun, I guess.

37:17.430 --> 37:21.270
There was an interesting XSS bug that I fixed in that, too.

37:21.270 --> 37:22.790
So, hacker's gonna hack, man.

37:22.790 --> 37:23.650
Thank you, guys.

37:24.910 --> 37:26.470
This is what it looks like on the back end.

37:26.470 --> 37:29.750
It's all written in Python, I said, again, that Discord bot.

37:30.050 --> 37:35.870
But you can, you know, dump a list of users within the framework, their score, as well.

37:36.130 --> 37:38.710
You can look at the BYOCTF stats.

37:38.770 --> 37:45.070
So, how many solves were for a particular challenge that was a BYOC challenge?

37:45.370 --> 37:48.310
What is the total payout for some of those challenges?

37:48.790 --> 37:56.890
There's a bunch of different commands within that control CTF, such as, like, pausing the entire game if you wanted to shut it down for the night or something.

37:56.890 --> 38:01.710
You can do that, such that they can't view new challenges or submit new flags.

38:03.950 --> 38:05.230
Things of that nature.

38:08.890 --> 38:11.230
That's what the transactions look like on the back end.

38:11.230 --> 38:14.190
You can see that there is unredacted flag content here.

38:14.190 --> 38:18.950
So, don't run this on, like, the projector overhead or something like that.

38:18.950 --> 38:25.250
So, that stuff is there for, I guess, debugging purposes originally, I think.

38:25.670 --> 38:26.830
So, there's that.

38:26.830 --> 38:28.010
That's what it looks like on the back end.

38:29.270 --> 38:32.170
Um, let's build and pour some challenges.

38:32.170 --> 38:33.250
You can really do this.

38:33.250 --> 38:37.070
You go to scoreboard.byoctf.com forward slash creator.

38:37.070 --> 38:43.670
It will take you to a cool tool that helps bypass a lot of the hand jamming of stuff that you would have to do.

38:43.670 --> 38:46.610
You're not having to write this TOML file by hand.

38:46.750 --> 38:51.730
But this is what the structure for a simple single flag challenge could look like.

38:51.730 --> 38:53.510
You have to have your author.

38:53.790 --> 39:03.590
Back when it was strictly Discord based, that was your Discord user ID, not the old discriminator with the pound number.

39:03.630 --> 39:06.810
This is the current, like, username for Discord.

39:07.390 --> 39:09.190
The challenge, that's what people see.

39:09.190 --> 39:11.770
The challenge description is the description of the challenge.

39:11.790 --> 39:13.470
It's pretty obvious.

39:13.570 --> 39:14.150
Tags.

39:14.150 --> 39:16.730
These are the categories, if you will.

39:16.790 --> 39:19.130
We don't have, like, categories.

39:19.130 --> 39:20.110
They're all freeform.

39:20.110 --> 39:26.090
We try to normalize them so you're not going to have a capital web and lowercase web set of categories.

39:26.090 --> 39:30.590
Strip white space, lowercase, and it's kind of an upsert.

39:30.590 --> 39:36.510
If the tag already exists, it gets added to it.

39:36.510 --> 39:38.170
It's not creating a new thing.

39:38.170 --> 39:39.870
If it doesn't exist, it gets added.

39:40.250 --> 39:42.830
This UUID is a unique identifier.

39:43.410 --> 39:46.090
Ideally , it's not going to have any duplicates.

39:46.810 --> 39:48.010
So, there's that.

39:48.010 --> 39:50.190
And this is an array of flags.

39:50.190 --> 39:52.310
First off, the flag title.

39:52.310 --> 39:59.690
That's what you're going to use internally to know that, oh, that's the name of the challenge that I, of the flag that I solved.

39:59.690 --> 40:03.090
Or a specific level within my challenge.

40:03.090 --> 40:04.970
So, this is flag one.

40:04.970 --> 40:08.250
Collect information from user's desktop.

40:08.710 --> 40:12.750
Flag value is how many points that flag is worth.

40:12.750 --> 40:19.870
Flag is the actual thing that the user is supposed to paste or type into the magic flag hole to get their money.

40:20.950 --> 40:21.830
Hints.

40:22.490 --> 40:31.130
So, this is any information you want to be a user about your challenge, but charge them for it.

40:31.130 --> 40:32.090
Here you go.

40:32.130 --> 40:34.950
You do actually get a cut of the hints as well.

40:34.950 --> 40:36.990
I believe it's that same 25%.

40:36.990 --> 40:40.450
And they are doled out lowest cost first.

40:40.450 --> 40:41.850
So, you need to order them.

40:41.850 --> 40:48.030
So, the very first hint you would give to somebody should be the cheapest hint you would charge them.

40:49.610 --> 40:51.250
And there's that.

40:51.570 --> 40:53.390
So, that's a single flag challenge.

40:53.390 --> 40:59.090
That right there, you copy and paste it as a toml file, commit it to the framework, and boom, there it is.

40:59.090 --> 41:01.890
So, that's your single flag challenge.

41:02.770 --> 41:05.670
Here's a single flag challenge with a dependency.

41:05.670 --> 41:14.990
Here's all that same information, except there is a field that says depends on and it has a UUID of some existing challenge.

41:14.990 --> 41:19.590
It has to exist within the framework before it will be accepted as a valid challenge.

41:19.850 --> 41:34.670
So, if you have two challenges that you've committed, you have to commit the first challenge first, pay its fee, and then you have to commit the second challenge with this UUID set as the dependency and pay that fee as well.

41:34.670 --> 41:37.650
So, you can't commit them in reverse order.

41:38.670 --> 41:40.750
Same concept, single flags.

41:40.750 --> 41:43.950
If you want to do multiple flags, here's how you do that.

41:43.950 --> 41:46.550
Flags, flags, flags, pretty straightforward.

41:46.710 --> 41:48.650
Same thing is true for hints.

41:50.030 --> 41:53.170
This is how you set up an externally validated challenge.

41:53.170 --> 42:04.230
You have to give it the external validation URL, and that's just some HTTP endpoint, validate, and then you will receive a request and respond to it.

42:04.230 --> 42:23.590
So, if you're running the external validator that we wrote, that should just work for you, and it'll look through a JSON or a dictionary of various flags that you have set up on your infrastructure, and it'll say, is this the flag that you've submitted?

42:23.890 --> 42:24.470
Yes.

42:24.470 --> 42:27.250
Or is this the SHA-236 of the flag that you've submitted?

42:27.250 --> 42:29.050
And you'll say yes or no.

42:29.250 --> 42:37.990
And if we get the answer back from you, then, you know, we're, you know, in the money on that, I guess.

42:37.990 --> 42:39.490
So, you've earned something.

42:39.890 --> 42:41.570
It feels like an attack vector.

42:41.630 --> 42:42.950
I don't think that it is.

42:43.330 --> 42:46.090
You can look at it, but don't waste a whole lot of time on it.

42:47.270 --> 42:56.330
So, those tools that I mentioned, uBuilding, B-Y-O-C-T-F, you know, Builder, this is going to walk you through.

42:56.330 --> 42:58.750
So, you don't have to hand jam any of that toml.

42:59.030 --> 43:07.230
You just fill out all these fields, and then at the bottom of the page, you can copy the button that copies it or downloads the toml file for you.

43:07.230 --> 43:18.190
You can paste it into here, and I think I even added at the, you know, tail end of the other events, the ability to commit it directly from this.

43:18.230 --> 43:23.870
And now that you have Google authentication built in, you don't really, you don't have to use your Discord ID, I guess.

43:23.870 --> 43:25.190
I should update that.

43:25.190 --> 43:26.190
But here we are.

43:26.190 --> 43:33.350
You just, whatever your name is, your name within the framework, use that name for your author.

43:33.350 --> 43:35.990
You can't commit a challenge that's not yours.

43:35.990 --> 43:44.950
So, that's also a thing where you would, that was an attack that I thought of, like you submit a challenge on behalf of somebody else, which I thought was a funny thing to do.

43:44.950 --> 43:47.370
And thus, they would get charged for it.

43:47.970 --> 43:49.430
Anyway, there we are.

43:50.250 --> 43:59.690
So, I think this video that I have here is a short video that's like, I think, a minute and a half, which shows the entire process.

44:00.270 --> 44:04.090
The link to that will be in the slides.

44:48.630 --> 44:51.170
So,

45:02.290 --> 45:42.630
so golly gee, that sure was a cool video.

45:43.790 --> 45:44.750
Awesome.

45:45.110 --> 45:49.070
Links and resources, this is where you can go and find those things.

45:49.070 --> 45:51.170
I think the link in the video is actually wrong.

45:51.170 --> 45:53.690
I've dropped the validator subdomain.

45:54.650 --> 45:56.670
And it's all just living on the scoreboard now.

45:56.670 --> 45:59.470
They were separate apps at one point, but now it's all just one.

46:00.690 --> 46:04.830
Yeah, so those things can get you started in writing CTF challenges.

46:04.990 --> 46:07.670
Next, what makes a good CTF challenge?

46:07.770 --> 46:17.790
If we didn't discuss any of that stuff, which I don't think I did, I have a whole thing written up about my personal experiences writing challenges for others.

46:17.790 --> 46:24.610
I think that this is an opportunity for you to think about someone else's learning experience.

46:26.330 --> 46:32.490
What is it that you're expecting them to know versus like, know before they come to the event?

46:32.490 --> 46:34.610
Or as they start your challenge?

46:34.710 --> 46:38.310
Versus what are you wanting them to discover in solving your challenge, right?

46:38.310 --> 46:46.010
All of that stuff, sort of thinking about that helps you understand how to value your challenge.

46:46.010 --> 46:48.830
That's to say, is this a really hard challenge, thus high points?

46:48.830 --> 46:51.590
Or is it an easy challenge, thus low points?

46:52.710 --> 47:03.390
And then you can tune the value of your flags relative to the other challenges that you've experienced in other CTFs or in this CTF specifically.

47:03.390 --> 47:12.030
One thing that I will say is that the points don't matter as much because if it's really easy, then it's really easy for everybody.

47:12.790 --> 47:16.010
That is to say, well, it's not that it's easy for everybody.

47:16.010 --> 47:26.090
It's that if it's low points, or if it's overly valued, that is to say, like, I'm going to say a thousand points, and it's really easy, then everyone has that opportunity to capture it.

47:26.090 --> 47:33.330
If it's objectively easy, again, flag one, two, three, or something, then everyone has that same opportunity.

47:33.710 --> 47:36.350
So, it's like, ah, you weren't paying attention.

47:36.350 --> 47:38.950
You missed this really, you know, gimme challenge.

47:38.950 --> 47:41.190
Don't tell you it happens sometimes.

47:41.850 --> 47:45.390
So, here's some examples, like binary to ASCII conversion.

47:45.390 --> 47:56.510
If you're brand new to computers, and you're a seventh grader, and you're learning about, oh, man, keyboards, they have, you know, numeric values, key scan codes associated with them.

47:56.510 --> 47:59.790
Oh, wow, what's, how do I translate from one to the other?

47:59.790 --> 48:00.910
Oh, well, okay.

48:01.630 --> 48:02.170
Excellent.

48:02.170 --> 48:04.190
That might be a hundred point challenge for them.

48:04.190 --> 48:15.170
However, if you are, you know, dealing with a room full of hackers, that might not be a very good challenge, as far as, like, valuing, like, their time and efforts and whatnot.

48:15.170 --> 48:18.010
But, you know, you value that lowly.

48:18.190 --> 48:21.270
Base 64, not everybody knows what that is.

48:21.570 --> 48:24.550
You know, that's just something you get to know with experience.

48:25.310 --> 48:28.870
You know, that, but notice that it's not 25 points, it's 50 points.

48:30.230 --> 48:47.930
Like some of the classic binary exploitation, that might be a medium level, because it's not only do you have to understand about the fact that there are compiled executables, but how to abuse those executables, so that there's a certain amount of information you had to come to the challenge with.

48:48.010 --> 48:50.670
And in that, you might have to learn something new.

48:50.670 --> 49:11.090
So if there's a technique, like the string format vulnerabilities, where you're leaking information, or you're leaking information off of the stack, or off the heap, or some other, you know, mechanism, that, you know, obviously, if there's something you have to learn about the challenge during the challenge,

49:11.090 --> 49:12.890
that might make it more difficult.

49:12.890 --> 49:14.370
So, four points.

49:15.350 --> 49:17.370
So, so on, so forth.

49:17.830 --> 49:19.830
That's, you know, one way to look at it.

49:19.830 --> 49:27.370
So, I like to make sure to express the distinction between complexity and complicated.

49:27.750 --> 49:29.470
There's a difference between the two.

49:29.470 --> 49:49.970
And so, if you're executing this challenge, and you're building it out, if you're having them escalate their, the things that they're going to have to do as far as sophistication as a threat actor, they're, like, I don't know, I guess that's, that's a cool,

49:50.150 --> 49:51.210
a cool way to think about it.

49:51.210 --> 49:54.770
Have them, shoot, I've messed up at this point.

49:54.950 --> 49:55.610
Restart.

49:55.610 --> 49:56.210
Edit.

49:56.350 --> 49:56.970
Oh, edit.

49:56.970 --> 49:57.950
I can edit this.

49:57.950 --> 49:58.610
Nice.

49:58.610 --> 49:59.810
Go back.

50:01.970 --> 50:04.430
All right, edit at 40.

50:05.430 --> 50:07.410
What time is this?

50:07.790 --> 50:08.490
429.

50:08.490 --> 50:09.370
Okay, cool.

50:12.130 --> 50:17.290
So, I want to make a distinction between complexity and difficulty.

50:17.410 --> 50:27.450
I think it's important to think about if a challenge is really easy to do, very likely to happen, it has a high impact, it might not be a high point challenge.

50:27.490 --> 50:30.930
Because that's, you know, again, script kitty stuff, right?

50:30.930 --> 50:35.910
You can go and download an executable, point it at something, and hack it.

50:35.910 --> 50:39.530
You've, ah, ah, there's not much learning going on there.

50:40.030 --> 50:44.310
So, how could you change the equation, is the question I'm asking there.

50:44.310 --> 50:47.330
So, any number of ways to do that.

50:47.330 --> 50:51.190
You can make it really hard to do, but likely to happen.

50:51.910 --> 50:57.930
And that would change the, you know, the other side of the equation, where it's no longer just low points, maybe medium points.

50:57.930 --> 51:13.330
If it's unlikely to happen, and really easy to do, though, that again, you might have to work really hard to discover the vulnerability, but it's an easy vulnerability to trigger, that might change whether or not it's low points.

51:14.790 --> 51:26.650
Some of the examples that I'm walking through here in this, you know, fabricated challenge is like, the landmarks that I'm sort of laying out is that we use MS 1710 for initial access.

51:27.270 --> 51:30.650
And that gives us a, you know, a system shell on that remote machine.

51:30.650 --> 51:34.310
So, we can look at the administrator's desktop, flag.txt.

51:34.310 --> 51:43.190
But we have a higher order objective in mind, and that is to compromise, you know, information within the organization.

51:43.190 --> 51:54.850
So, in this, we're supposed to target PII, and there is a spreadsheet on so-and-so's desktop, and they are the, you know, the HR person within this organization.

51:55.410 --> 52:10.230
And then the next objective, once we found that spreadsheet and gotten the flag out of one of the cells in it or something, we are supposed to find and disenroll the base commander from their TRICARE, you know, registration.

52:10.230 --> 52:12.370
So, they're going to lose their insurance, right?

52:13.310 --> 52:14.110
Problematic.

52:14.110 --> 52:19.010
That is an interesting thing that doesn't have anything to do with the technical exploit.

52:19.010 --> 52:25.130
It has to do with understanding something within the mechanics of the game that is hosted at TRICARE.info.

52:25.130 --> 52:32.430
So, now there's something you had to learn about this challenge from this challenge and exploit it.

52:33.650 --> 52:46.450
So, all of those are escalating in complexity and sophistication beyond just like the technical vector of, oh, did you download and run the right command?

52:46.870 --> 52:51.330
So, I think that's a cool way to architect challenges.

52:53.610 --> 52:55.710
Again, these points are made up.

52:55.710 --> 52:58.090
So, just use your best judgment.

52:58.370 --> 53:02.010
So, this is the point we're asked for questions, comments, concerns.

53:03.210 --> 53:05.770
Hearing none, we'll move on.

53:05.970 --> 53:07.850
This is our final call to action.

53:07.850 --> 53:09.210
Please contribute.

53:09.210 --> 53:22.830
Please consider, you know, leveraging the framework to the best of your ability, whether that be, you know, just helping with documentation within the BYOCTF GitHub.

53:22.850 --> 53:24.990
That would be very useful.

53:24.990 --> 53:26.670
I'm not good at that stuff.

53:27.530 --> 53:29.930
Or your experiences with it.

53:29.930 --> 53:35.970
Any ideas you have for various game types or something like that, please just participate.

53:35.970 --> 53:36.830
That would be cool.

53:38.210 --> 53:40.190
And that is it.

53:40.190 --> 53:43.090
I would like to say there's a funny story here.

53:43.090 --> 53:46.610
We had a couple of skits at Shell on the Border 2023.

53:48.050 --> 53:55.110
And one of them was involving Hal from hackers.

53:56.810 --> 53:58.770
So, yeah, that was fun.

53:58.770 --> 54:03.810
And then this was also like how to register players and users and such the framework.

54:03.810 --> 54:06.470
So, it kind of walked you through that stuff.

54:07.950 --> 54:10.790
So, you won't play this, though.

54:10.790 --> 54:12.370
Hey, Shell on the Border.

54:12.850 --> 54:13.370
Yeah.

54:13.430 --> 54:14.070
Boom.

54:14.070 --> 54:14.370
All right.

54:14.370 --> 54:14.710
There we go.

54:14.710 --> 54:15.250
Boom.

54:15.590 --> 54:17.210
Thank you, and hack the planet.

