start	end	text
0	7040	We are at the DEF CON 30 CTF run by Nautilus. And the teams have been doing crazy things
7040	12120	with a few issues along the way. But it is... that's this year. Because you have the teams,
12120	17340	and then you have this whole live aspect where teams come on over here. Can you just tell me,
17340	21760	high level, how did you design this CTF? Like, what are the teams actually playing?
21760	27040	Well, let's step back a second and say this is your first year doing the DEF CON CTF. Although
27040	33940	many people on Nautilus have designed CTFs before, or in this particular CTF, what is Nautilus
34480	39860	doing this year for the CTF? That's either different, or what are your takes on it this year?
40160	48320	So, what we're doing here is a relatively traditional CTF. The CTF has evolved over
48320	54500	the years. The general structure has stayed the same. So there's N teams, this year there's 16
54500	61300	teams. Each team gets access to their own server. All the servers are identical. Those servers are
61300	68140	running executables on them that provide services. Those services are vulnerable. They're stuff that
68140	75940	we have created. None of the teams have seen these things before. And they reverse engineer
75940	81100	those services, find vulnerabilities, write exploits, and throw the exploits at other teams
81100	87100	to get text tokens off of the game boxes, which are called flags, and then they submit them to
87100	92060	our scoreboard. Sure, so this is... and we can get a little more technical, or use some
92060	98060	internal jargon. This is a typical attack and defense CTF. So the core of the CTF is a typical
98060	102660	attack and defense. So they have servers that they're defending against other teams, and servers
102660	109500	that they're attacking that the other teams have. So this is where I like to get into it,
109500	114720	which is the actual challenges, if you will, or the actual exploitables on the machines are new
114720	122140	every year. And everyone has a different take on what should or should not go in. And what...
122660	126840	you've already burned a bunch of challenges. Are there things that you're particularly proud of
126840	132900	this year that you may have designed and got put on? So we had one challenge this year called Web
132900	138280	4 Factory from Itsun, one of our... one of the Nautilus members who's new to organizing CTFs,
138280	145060	or at least new to organizing DEF CON CTF. And I think it was deeply, deeply hilarious. As the
145060	151320	Web 4 Factory implies, it's a Java applet, or a Java program, not a Java applet. It's a Java server
151320	159440	that has, you know, deeply nested classes, like teams entered the applet, or the job... I'm too
159440	164220	old, I'm thinking Java applets all the time. But they went to like institute.nautilus.web4factory.
164220	170900	factory, all the way down this, you know, horrible Java chain of classes. That was one that we ran
170900	175380	through yesterday. And I thought it was funny enough that I made a custom sticker for it in
175380	179860	kind of secret without telling anybody about it. That's fantastic. I heard you like classes
179860	183580	with your classes. Oh yeah, yeah, yeah. So we put a class factory in your class factory,
183580	187220	so you can factory classes while you factory classes. Oh my... you've been practicing that
187380	192580	a little bit too much, haven't you? So we also heard that you guys... well, I mean,
192580	195900	we've been having some power issues and things have been going on and off throughout the
195900	200980	conference. Have you guys got hit by any of the infrastructure issues? Honestly,
200980	207300	Defcon has provided like awesome power, awesome network. Unfortunately, most of the hardware
207300	213120	issues that we've had were our own. We didn't have some of the servers kind of correctly configured
213120	218560	before we brought them here. And so we did run into an issue yesterday where we had to retire
218740	224760	a challenge early in order to basically keep the load on the boxes down. And this led to us
224760	229340	spending all night actually reconfiguring all of the hardware so we could run today's challenges
229340	234840	more smoothly, which did fortunately work. So would you say this year is going smoother or
234840	239920	less smooth than a typical CTF? Because that sounds... I've run my own and that sounds like
239920	245820	something that pops up in most cases. So both Vito and myself have actually run the Defcon CTF
245820	253560	before. Vito's pretty old hat at it. I ran this last in 2017 with the Legitimate Business Syndicate.
254080	261300	And relative to the year that I was hosting, this has gone a little bit more rough.
261300	266020	It's our first year, whereas I was helping the Legitimate Business Syndicate in their last year.
266020	271640	So they had had, at that point, four previous years to kind of perfect everything. So the first
271640	275300	year is usually kind of rough. You're building everything from scratch. You're kind of getting
275300	280200	all your tech together. This is the first time you've really had to have teams interact with it.
280560	285620	But I don't know if your experience... My experiences are broadly similar to that. We always...
285620	289780	it felt like as LegitBS, Legitimate Business Syndicate, we always had to do some kind of
289780	294860	cleanup after the first day. Something would unexpectedly break or, you know, scoring would
294860	300060	break. Checking for, you know, service uptime would break at some point. And there's
300060	305280	always a little bit of fix-ups. I think 2016 was a particularly rough year for us because we went
305960	312120	in... that was the Cyber Grand Challenge year where we supported the winner from the
312120	318000	DARPA competition playing our game as an autonomous computer. And that was a different enough game from
318000	323860	our previous years that we had a ton of problems. That was, I think, the year we didn't start our
323860	329060	finals on time. And there were just lots and lots of little issues that year. I mean, you keep
329060	333160	talking about the problems, which is... like, they are interesting. The thing which is fascinating to me
333160	341540	is that you have legitimately the best hackers in the world in this room spend their entire
341540	347960	year training kind of for this event. They pre-qualify, they get in here, and you have to
347960	353980	design an event in such a weird way. Because you're not designing secure software. That's what's so
353980	362120	weird about this. You're designing a maze. An insecure software enough where players can
362120	367780	solve it in a finite amount of time. I am curious, though, when you design a solution, I think of
368180	373200	the movie Inception where he says, give me a maze that you have to solve in 30... it takes me exactly
373200	377960	one minute to solve. How has it been when you design challenges? Because I know you have this
377960	382840	whole live aspect which throws a loop. You're designing a challenge where you go, this has to be
382840	388300	solved. I expect this to be solved in one hour. How do you go about gauging how difficult some of
388300	392580	these challenges are when you're dealing with legitimately the best hackers arguably in the
392580	398920	world for binary exploitation and things like that? So for us, I feel like there's a large aspect of
398920	403660	that for people on our team is experience. And there's a lot of CTF playing experience on our
403660	408320	team. So for some of the challenges, if somebody's not sure about how difficult it's going to be,
408320	413700	we pass it to a legitimately great CTF player that's playing with us. Shellfish for the last
413700	419020	few years, their powerhouse has been Phish, who has thankfully joined Nautilus Institute.
419580	424780	And Phish is one of the best reversers in the world. Phish is working hard every day in his
424780	430920	normal job on better software for analyzing software. So he's an incredible play tester,
430920	436500	and he's not the only incredible play tester on our team. How do you balance? There's this whole
436500	441400	key... I love playing CTS, playing the NSEC when there's so many great ones out there.
441400	446560	And when I've played them, there's this weird balance that happens between security through
446560	452020	obscurity, which leads to mostly frustration on the team, because it leads you down these
452020	458720	rabbit holes. And the challenge starts becoming, how do I overcome all these red herrings to find
458720	464660	the toad of truth? So full disclosure, we used to help run Defcon Darknet, which is a more
464660	469680	introductory CTF. It gets people into the con, gets them around the con, gets them towards these
469680	475120	more advanced things. And the question for us is always that red herring question. Do you worry
475120	480540	so much at this level about the red herring problem where someone picks up on the wrong thing,
480540	487540	or is that their fault? So in terms of our game, the larger attack-defense CTF, we don't really
487540	491700	worry about that at all. The best teams are not going to get tripped up by those kind of things.
491700	496320	They're not going to get lost down some sort of unexploitable rabbit hole. They've got enough
496320	500240	experience to kind of be able to feel these things out quickly and hone in on the right stuff.
500380	505040	For the live CTF event, that is a consideration, because you want the challenge to be solvable
505040	509620	within an hour. And if both competitors are stuck on some, you know, rabbit chase down something
509620	513380	that's not exploitable, that's not a good challenge design for that format.
513460	515640	No, I was telling him about Michael.
515640	521200	Oh, so yeah, well, we had a short discussion with Cyphertext about the live CTF. And of course,
521200	526280	he's actually helping. He's one of the commentators actually running. How has that been going?
526280	531720	I heard that the one of these last rounds went a really long time, in part because you throw a
531720	535880	problem at them, and then it takes them an hour, and then their brain gets fried. And then you go
535880	541040	to your backup challenge, which is supposed to be really, really easy. But by that point, they're so
541040	544680	frustrated that they can't even do that one, which, you know, that this is a thing that happens.
544680	549920	It happens to seasoned professionals. Has that been happening a lot? Or is that just been popping
549920	551300	up here and there?
551300	555460	So specifically, in the context of live CTF, I haven't seen it happen too much.
555460	560380	I believe that's actually the only challenge of the day that went to, like, a sudden death.
560380	564660	Like, they couldn't solve the original challenge in 45 minutes, so they were provided an easier
564660	569540	one and then had to do that one. I was worried, actually, so I had one of the challenges in live
569540	576140	CTF this year. I was worried that my challenge, we were going to have to switch to a, like,
576240	580700	a backup challenge to make sure the round went through. And I got to be honest, the person who
580700	586600	solved it, I wasn't really following what his exploit was when he was doing it. He was so fast
586600	589840	on the keyboard. Like, it was like watching a StarCraft player or something, but with, like,
589840	595880	code. And I thought that we were going to have to, you know, give out one of these, you know,
595880	599600	easier challenges kind of thing. And then he just he got it. It was great.
599600	604580	So this brings up the question, which is what have been the pinnacle moments
604580	607620	that have happened so far in the CTF?
608240	613420	My favorite so far has have been especially live CTF related, but every time there's applause on
613420	617960	the room or somebody jumping up or somebody cheering, that is something I always really
617960	622600	enjoy to see in a CTF. I don't, I haven't been super paying attention to see if that's been
622600	627440	happening with First Blood on any of the regular challenges and the regular part of the CTF,
627440	631460	but it's always cool to see when somebody gets that breakthrough and they get excited about it.
631460	632120	I love it.
632120	637020	So has that been happening primarily with the attack and defense or on the live CTF?
637760	643480	So in our game, because it's attack and defend and you have to like have a sustained attack,
643480	648480	it's not like one little rush of like, yes, I scored a point. You're scoring points continuously.
649060	653680	There's not usually as much animation from teams. It's kind of like, yes, okay, we scored on that
653680	658680	one. Now let's get another vulnerability kind of things. And our challenges for the main game are
658680	663800	designed to have more than one vulnerability inside of them. So the reason we do that is
663800	669280	because we want teams to, you know, patch one vulnerability, but still be vulnerable in another
669280	674080	way. And that, you know, keeps them like looking at this stuff for hours and hours and hours trying
674080	679920	to figure out how do we, you know, figure this out. One of my favorite things from our game
680420	686240	is two of our top teams earlier today were in kind of this like interesting,
686840	692940	both teams were leading. They both had exploits on a service. They both had patched that service,
692940	698200	but they were going back and forth, basically dossing each other's like service, like finding
698200	704360	ways to make it do things that weren't intended. And then we have like an SLA checker that's like,
704360	708440	hey, is your service up and responding to things correctly? They were finding ways to basically
708440	712880	like get it to be in weird states. It was interesting seeing them go back and forth,
712880	716740	kind of like making each other lose points and getting points off of other teams. And like,
716740	721280	for a sustained period of time, it was definitely these two teams kind of going at it. And that's
721280	728640	really cool to see in our game. So I remember during the Cyber Grand Challenge year that it
728640	733600	was announced at the end that a number of the competitors had found a bunch of what would
733600	739400	amount to zero days or just unintended bugs in the challenges that were discovered. Has that
739400	744700	happened at the CTF yet where there was some kind of exploit that was just not expected?
744960	749320	Yes, that has happened. There was a challenge we released earlier today. I think it's called
749320	755360	Monbo. And there was a heat bug that we didn't intend to be in the challenge. And a team found
755360	760600	it and exploited it. It was great. That's exactly what we want. Do you ever see escalation with the
760600	766120	teams? And what I mean by that is you have, I imagine like myself in my day job, even where
766120	770240	I'm bashing my face across something over and over and over and I'm getting nowhere. And then you
770240	774440	start going, all right, Jello against the wall, I'm going to try this and I try this. And then
774440	779480	they escalate almost to the point where the rules get a little wishy-washy and the fact
779480	783960	where like they're doing stuff they're not really supposed to. Has any of that happened?
785420	789900	Yeah, so we have had some team... it's hard running a hacking competition, right? Because
790420	794640	it's really hard to enforce rules when the whole point of hacking is that you're getting around
794640	801640	like rules basically in a program. We have had a couple of teams that have... so I mentioned
801640	806620	the dossing earlier. If you're specifically targeting like a patch that another team has
806620	810540	made, that's kind of cool. But if you're running like a fork bomb on a bunch of servers that's
810540	814920	going to like take down the whole game, that's not so cool. So we kind of have some loose,
814920	819300	you know, spirit of the game kind of rules that are kind of like, hey, make sure people can still
819300	824040	play. You know, make sure that we're not like attacking our infrastructure. We put a lot of
824040	828940	time and effort and work into this. It's really frustrating to have our stuff come crashing down
828940	834160	just because, you know, somebody decided to run a fork bomb or something. It's fascinating me,
834160	840420	as you said, with hacking challenges, you're designing them to be broken and then you have
840420	843600	kind of the semblance of rules. Because I remember when you're like, oh, goodness,
843600	847220	there's a wild back where the scoreboard gets hacked into and things like that.
847360	855600	With this challenge, how are the teams really dealing with, let's say, the size limitation?
855600	860840	With this, you have open. Are you finding a mass difference in the sizes of teams?
862500	866200	We aren't actually completely sure about how big some of these teams are.
866380	870100	One of the things I was most worried about, and I promise this is an actual answer to your question,
870100	875520	kind of in a roundabout way, I was really, really worried that the 16 tables in this room
875520	880320	were going to have one person holding a VPN open and responding to events in the room
880320	885280	for everybody else elsewhere. Instead, what we've seen is most of the seats at these
885280	890280	tables are full, like all eight of them. Every time I look around, it's a busy room,
890280	895200	and I really, really love to see that. We don't necessarily know how many players are up in hotel
895200	901080	rooms or back at home, but I can't imagine that it would be wildly out of place to assume anywhere
901080	908260	between eight people or 40, maybe. One of the problems with bigger teams is kind of endemic
908260	911740	to all software engineering or all engineering in general, where the bigger your team, the more
911740	916740	communication that has to get done back and forth between groups. And since we haven't had,
916740	921440	you know, more than about half a dozen challenges open at any time, there's dubious value to having,
921440	926600	you know, 80 people working on, you know, one thing. That brings up a question, though.
926900	932420	Of the teams that are doing well, what do you think they're doing that the other teams aren't
932420	936360	doing? Are they just getting luckier with the challenges? I mean, they're not luck,
936360	940760	but you get the idea where you're finding those problems a little quicker, or do you think it's
940960	946500	a communication thing? What do you think separating the teams? Something that I find is really
946500	951300	important when you're playing a CTF is to get into this mindset where you're failing very quickly.
951300	958360	So you try as many things as possible in a short period of time. And what I have found as a player,
958360	963880	and also watching as an organizer, watching all of these players, is that the best teams,
963880	970740	the best players tend to be people who are able to very quickly iterate through a number of,
970740	977080	or, you know, like different scripts or things to try things out, to see what they think is going
977080	983740	to work. And so I think that a lot of the teams who are doing better are just able to make these
983740	990440	iterations to adapt much more fast than the other teams. As an ancillary to that, somebody, you know,
990440	994620	in this conversation maybe was watching me write a SQL query to analyze some scoring event earlier
994620	999840	today. And I definitely was in the zone there for, you know, a minute or two, like, you know,
999840	1004180	type a clause, hit enter, see if it works. Type another clause, hit enter. And it felt really,
1004180	1007960	really good to just blast it out like that, step by step, getting to a destination.
1008000	1014900	So I want to get into a little bit of... it is a game, right? And I always like the game design
1014900	1021640	aspect of it. And this is really hard because I'm not a PvP gamer. That's why I typically don't
1021640	1024920	attend attack and defense CTFs. He is a PvP gamer.
1024920	1026060	I mean, no one's perfect.
1026720	1032500	But I like PvE. I like a more Jeopardy style and I like a more learning CTF. That's for me.
1032740	1039680	But how much thought do you give into how players are going to interact with each other
1039680	1044060	when you're developing the challenges? Because I have to imagine that's one of the biggest...
1044060	1048080	as an attack and defense, it's all about how teams interact with each other.
1048300	1052780	How do you go through the process of designing some of those challenges? I know that's a
1052780	1057540	big question. But is there anything in particular that you want to talk about?
1057560	1063900	Yeah, it is super broad. And I think the game design aspect is something that CTF
1064460	1070180	organizers don't always consider. And for the attack-defense CTF, which there really aren't
1070180	1075280	very many. Not only is this the biggest and best one, but there really aren't too many alternatives.
1075300	1079320	Most CTFs are kind of a Jeopardy board of challenges. You just kind of pick one and
1079320	1083420	it's kind of like a speed run. You're just trying to do it as fast as you can, faster than other
1083420	1090820	teams, that kind of thing. So for our game, there's a lot of interactions between players.
1090820	1097500	So we have to, for example, model scoring very carefully. We don't want one team that's solving
1097500	1102880	one challenge to run away with the game because we make it too many points versus another challenge.
1102880	1108580	So we have to be very careful about how many points is a flag worth? How many flags can be
1108580	1113660	redeemed? How does that look over time? So modeling all of those things are really important.
1113720	1119160	And then also just kind of trying to encourage things with points. So we have a king of the hill
1119160	1127280	challenge. And one of the design considerations in that is we want people to try to win in the little
1127280	1133120	king of the hill rounds. So in an earlier iteration of that design, we said, well, a win is worth two
1133120	1138900	points and a tie is worth one and a loss is worth zero. But then winning is not so much better than
1138900	1144960	tying. So it might be better for you to just try and tie with everybody, spend more of your
1144960	1149360	time on other challenges, things like that. So we adjusted it so that a win was worth three points
1149940	1156540	to give the winner a much bigger edge on things. Similarly, I mentioned this concept of SLA,
1156540	1162840	where you have to keep your services up. The SLA penalty is much larger than the amount of
1162840	1168820	points you score on somebody to ensure that teams keep their services up. Because we want them to be
1168820	1174120	attacking each other. And we want the main method of defense to be patching the service, like fixing
1174120	1178800	the bug, rather than just taking the service down so that you don't lose any points by being scored
1178800	1183360	on. Well, so this was this was actually huge, because in prior years, the CGC year, for example,
1183360	1192820	there was an after analysis of what was the most effective way for your thing to game the game,
1192820	1198700	that's my blog post. Yeah, if I remember correctly, it was like, if you had just left your services up
1198700	1202520	the whole time, you would have finished third. Right. And so that's, that's fascinating. But
1202520	1207240	you don't necessarily know the rules of the game while you're playing it. So it's really hard to
1207240	1213700	game it and not just basically roll the dice. In fact, Alex has a story about how he won his black
1213700	1219860	badge. Oh, is this the one where I was preparing? You're saying? No, no, no. Yeah, the pairing one.
1220460	1224740	It's because it's very similar in a different sense. Yeah. So in DEF CON 22, that was the year
1224740	1230340	I won my black badge is at the dark that there was tons of different points you could get for
1230340	1235280	going all over con building your badge and things like that. And when I actually started looking at
1235280	1242180	the math, I realized that pairing with badges was it was weighted a lot. It was weighted a lot more
1242180	1248020	than I felt it probably should. So I ended up sitting in the solder. Well, it's a hardware
1248020	1252340	hacking village because the soldering skills village didn't exist at the time, but just sitting
1252340	1257280	there and helping people assemble their badges and meeting them. And I had to meet a ton of people,
1257280	1260860	which was great. But then I would sit down and work on challenges. The moment someone assembled
1260860	1267000	their badge like, hey, let me go test your badge and then sink it on up and test the badge. It was
1267000	1272740	actually really funny because the badge was only capable of holding 50. And what ended up happening
1272740	1278640	was I didn't realize that. So I got like 70 badges to realize I was starting to overwrite them.
1278640	1286020	It was a lot of fun looking at the point engines. That almost feels like a situation where it was
1286020	1290620	working as intended. So, you know, you got to meet a lot of people. You got to help a lot of people
1290620	1297280	with soldering. At tour camp a few weeks ago, there was a event called bureaucracy. And I kind
1297280	1301500	of realized early on, it was like, oh, this is a way to get like people who are new at this camp
1301680	1305400	a fun game to play where they have to go around the camp, collect stamps from different groups of
1305400	1310420	people, learn how to like pulse dial a phone by wrapping on the hook switch, and get them to meet
1310420	1316940	new people for, you know, a one of those like awful like soccer practice conical paper cups of, you
1316940	1322860	know, rainier lager. So the question I had, though, in this context is because this is a common
1322860	1327240	problem. Once you game the game and you figure out what's the most effective way for me to get the
1327240	1334060	most points in the most rapid way, the speed run issue, right? Do you guys do anything to combat
1334060	1339980	that in the sense that one of the things Darknet did was we didn't publish what things were worth,
1339980	1344520	and we didn't necessarily publish your scores until much later on, or we give you a time frame
1344520	1348560	where you could see that. Have you done anything to combat the gaming the game, or is that just part
1348560	1356040	of the game at this level? Yeah, I think my philosophy on it is if there is a way to game
1356040	1361740	the game that is not in the spirit of the game, then the game design is fundamentally broken and
1361740	1369400	needs to be addressed. And I know in past years, like the CTF here has like hidden scores and
1369400	1374560	things like that. We're, you know, we're still toying with hiding some of the scores tomorrow to,
1374560	1379180	you know, increase anticipation kind of thing. But I think my philosophy is there's no sport,
1379180	1384180	there's no other competitive endeavor I can think of where, oh, we don't know who's winning in the
1384180	1388440	fourth quarter because we turned the scores off or something, right? Like, you know what the score
1388440	1394500	is, that's knowing the score does not lessen the anticipation of, you know, seeing teams perform
1394500	1400340	and be scoring and like, you know, win the game. So let me ask you a wrap-up question, unless you...
1400340	1404520	Oh, no, I was just going to say, I know just speaking personally, I know that was a frustrating aspect
1404520	1409300	to me when the scores go down, because then it just also encourages teams. I mean, more in Jeopardy
1409300	1414020	style, where it encourages teams to go, okay, we're going to hold on to points. Where, and here it's a
1414020	1418800	little harder, but I know that can add some frustration. I mean, I don't know, maybe in boxing
1418800	1426940	they don't show you who wins. So to wrap up, this will not go live until tomorrow morning.
1426940	1433000	When does the next round start? So the next round starts at 10 a.m. We're going to run to
1433000	1438780	2 p.m. and then we have to end. Live CTF might go a little bit longer, but we need to get our scores
1438780	1444900	into the black badge thing, like tell people, yeah, to Dark Tangents, so we can do all the
1444900	1449780	pomp and circumstance of awarding the winners and things like that. So do you have any
1449780	1455320	surprises for the teams on the final day, or is it going to be more of what they've been seeing already?
1457100	1462680	I mean, it wouldn't be a surprise, would it? I think that's the best answer they can get.
1462680	1467160	It's a good point. Thank you so much. I am so excited to see some of the write-ups that come
1467160	1472000	from this. Thank you for watching, and as always, hack on!
