start	end	text
8580	14900	Good afternoon. It's a wonderful honor to be here today. Tonight, or this afternoon,
14900	20100	I'm going to be talking about Capture the Flag. Capture the Flag is a contest we like
20100	27860	to run at DEF CON. DEF CON, you're here. We've run Capture the Flag at DEF CON in Las Vegas
27860	35400	for several years now. In 1996, the first Capture the Flag game at DEF CON was held.
35880	41420	And in the year 2000, so after four years, they formalized how it was run. So for the
41420	46580	first few years, how Capture the Flag worked at DEF CON was players would either bring
46580	51640	software that they wanted somebody to hack for them, or they would hack somebody else's
51640	57840	software. And the human judges that were authenticating and running the contest had to make the
57840	62220	these decisions every time something got hacked, whether it was easy, whether it was
62220	68380	hard, who got the points, and it was very, very confusing. So starting in the year 2000,
68380	73680	the DEF CON goons running Capture the Flag created rules, and they created services.
74640	80800	So starting in 2002 and running through 2004, a group called Ghetto Hackers took over Capture
80800	85180	the Flag. And this is kind of how Capture the Flag became a name brand event, where
85180	89480	the Ghetto Hackers had a different brand name, slightly different from DEF CON. They
89480	96920	had continuity from year to year. Starting in 2005, a new team called Kenshoto took over.
96920	101300	And this is also when I started playing Capture the Flag. Kenshoto had a much more difficult
101300	115160	game that made a lot more people more interested in Capture the Flag. Starting in 2009, the
115160	121020	next team called DD Tech and started running Capture the Flag themselves. And then, starting
121020	126760	in 2013 and running up until last year, my team, the legitimate business syndicate, took
126760	132980	over. And starting literally tomorrow, the new team, Order of the Overflow, is taking
132980	138920	over running DEF CON Capture the Flag. So the way we think about Capture the Flag and
138920	143420	how Capture the Flag works with DEF CON is that there are two distinct formats. This
143420	148680	format is Jeopardy format, named after the U.S. game show. And how this works is teams
148680	153440	pick a question or a challenge from this grid. They receive a prompt and solve the challenge
153440	158820	for some points. The main part of this game is the scoreboard that we just saw. On the
158820	163900	scoreboard, you find a prompt. In this case, the prompt is giving us a network address,
163900	170980	including a port number and a file to download. From there, we solve the challenge. In a lot
170980	175300	of cases, these challenges involve a lot of assembly programming or reading assembly.
175300	182020	And they involve Python. Once the challenge has been solved, you return the answer to
182020	187560	the question to the scoreboard for points. And then you go on to the next challenge.
187620	191840	Right here, we see a handful of challenges that have been solved by somebody with different
191840	196240	point amounts. And one challenge that has not been solved yet and that will give the
196240	203180	person who solves it scoreboard control. So Defcon Capture the Flag qualifiers is one
203180	207600	of the most famous Jeopardy-style CTFs in the world. But I'm going to talk about a challenge
207600	216100	from a different event, the Shaw 2017 Capture the Flag contest. So Shaw 2017 was an outdoor
216100	221820	computer festival held in the Netherlands last August, the week after Defcon. And I
221820	225940	went there and had a wonderful time. And part of the wonderful time was a contest
225940	231340	that the Dutch team Eindhoven ran at this event. I'm going to talk about a challenge
231340	237380	called Asby. With Asby, we get a file. This is the prompt that has a little bit of backstory
237380	245500	where their team member named Asby got a reputation for solving challenges the wrong way. So once
245500	251800	I downloaded this file, I discovered it was a Windows executable. And because I just,
251800	255820	like, downloaded this executable randomly from the internet, I decided to run it and
255820	262780	figure out what I had to do. So the goal with this is we need to enter in the flag, and
262780	268160	the executable will tell us if it's correct or not, and starting from here, how many characters
268160	274500	are correct. So I need to guess the correct input. So I have three ways that I can do
274500	279920	this. I can either reverse engineer a Windows binary, and I'm not very good at reverse engineering
279920	284740	and I don't usually use Windows, so that was kind of out. I could guess each character
284740	290440	by hand, which looked like it would take a long time, or I could write a program, which
290440	298080	I foolishly believed would go really, really quickly. So I chose to write the program.
298580	304740	And this is the program. It's a little Ruby script, and mostly what it does is it opens
304740	311180	the wine emulator with the Asby executable. I hand guessed a bunch of the flag before
311180	315760	I tried writing the program, so I have that part of the flag at the top. And then we just
315760	320660	loop over and over, guessing which of our flag characters goes into the executable and
320660	326300	tells us it's correct. If we get to a point where something weird happens, we print out
326300	332980	what we have so far and exit. In theory, after a long time writing this program and switching
332980	336720	back and forth between, oh, I can't program computers anymore, I'm just going to do this
336720	342440	by hand, I eventually got the solution. The solution is right here, right above the stack
342440	348720	trace, which is cool. I solved it, I got some points, the organizers gave me some beverages
348720	353720	while I was sitting there, and I had a lot of fun. So that's Jeopardy style. You get
353860	359020	a challenge, you solve it, and you get some points. This is the visualization from our
359020	364680	finals game, which is an attack-defense format capture the flag. It's very, very different.
364680	371740	Here we see teams shooting successful attacks at each other in a soundboard-themed, or like
371740	378020	audio mixer-themed event. So how this works is all these steps happen at the same time.
378020	382840	Teams are reverse engineering the challenges or the services. They're patching the flaws
382840	388820	in the services at the same time they're trying to exploit other teams' services. And in all
388820	394800	of this, they're trying to not break their own services to lose points. So here's a small
394800	399660	example of how attack-defense works. At the top, we have the score bot, or the scoring
399660	405120	system of the capture the flag game. On the left, we have PPP's service called AppMail,
405120	412860	and on the right, we have a team called Shellfish. So, every round, the score bot deposits a
412860	418480	new flag or a new piece of random data in PPP's AppMail service, and everybody else's
418480	427260	services as well. Sometime during the round, Shellfish manages to send some network traffic
427260	432640	to AppMail that causes it to disclose this flag, or as we call it, Shellfish has stolen
432640	439320	the flag. Then, they take that flag, submit it to the score bot, or they redeem it to
439320	446560	the score bot, and get some points. In the meantime, score bot is checking PPP's AppMail
446560	451680	service to make sure it's working okay. Can it send messages? Can it receive messages?
451820	458960	Is it happy? And, if PPP has broken their AppMail, if they've, you know, turned it off
458960	464840	or deleted it, or just written a bad patch that makes it do things wrong, that's a failed
464840	469200	availability check. And we assume that if there's a failed availability check, that
469200	475240	Shellfish is also not able to steal from it, so we make a failed availability check lose
475320	479600	a whole lot of points. And, again, this is the format we used for Defcon Capture the
479600	485840	Flag finals. Here's an example. It's a service called Rubix. This is a service we put in
485840	493880	place last year. How it works is teams connect to the Rubix service on another team, and
493880	497920	it simulates this Rubix puzzle cube where you rotate the cube and try and get all the
497920	503540	colours on the same side. But it's a virtual version of that. Teams submit instructions
503540	510520	to rotate the cube into a valid configuration, and once the Rubix cube is happy, it executes
510520	519200	the instructions as if they were CPU instructions. Which is kind of clever. So we're going to
519200	523720	follow along with a write-up from a team called Lab Rats. They publish this write-up and we
523720	530000	can follow along. So the first steps to solve this, the computers we used for Defcon CTF
530000	534780	finals last year was one we made up, and it used 9-bit bytes instead of 8-bit bytes
534780	539820	to make it miserable for teams. So they first had to write software that could deal with
539820	547160	9-bit traffic, which nobody has normally. Then they had to figure out what parts of
547160	551680	these binaries were part of the standard C library, and what parts of these binaries
551680	556660	were which functions in the C library. After that, they can figure out how the main gets
556660	561500	called and what the part of the program that they care about actually is. Once they've
561500	566440	done all that work, which took several hours, they could actually start analyzing what the
566440	571620	service does. So what are they analyzing? How is it supposed to work? What is the benign
571620	577340	traffic supposed to do? Once they figure that out, how can they attack it? How can they
577340	582080	make the service release its secrets? And after they figure that out, they can try and
582080	587060	figure out how to defend it. How can we prevent the service from revealing its secrets to
587060	593420	other teams? So all this is in support of the game goals. You get points by capturing
593420	599180	flags, you lose points by having flags captured, and you lose lots of points by failing availability
599180	606020	checks. It's extremely complicated, it's extremely frustrating, but it's a lot of fun. For both
606020	613320	organizers and most importantly, it's fun for players. But I should go back. Every kind
613320	617780	of Capture the Flag game is extremely ambitious. Jeopardy style, they're extremely ambitious
617780	625000	to run, they're difficult to play on purpose. Attack defense, also difficult. So some of
625000	629640	our goals for Capture the Flag games are making them run smoothly, making them a fair contest,
629640	634280	and having fun challenges. If the game doesn't run smoothly, players are going to get frustrated
634280	639500	and find something else to do. If it's not fair, players aren't going to put in a legit effort.
639620	644040	You know, if the same team is always going to win because they're friends with the organizers,
644400	650800	why play? And if the challenges aren't fun, then the challenges aren't fun. So let's talk
650800	655420	about running the game smoothly. And just like any big ambitious project, running a Capture the
655420	661600	Flag game project starts early. And the most important part of it is who you're running it
661600	668220	with, who is on the organizing team. So legitimate business syndicate is about half of us are friends
668220	673240	from university that competed together then, and about half were people that worked together in
673240	680640	2012. So here's my friend Gino, kind of the team captain and I. Twelve years ago, we were
680640	685600	participating in a college level contest, and we just solved a difficult problem. And we were very,
685600	690920	very happy about it. And also a little bit weird from being in a windowless room all day.
692820	699740	So how did we start to run DEF CON CTF? We found out during closing ceremonies at DEF CON 2012,
700160	706160	that the previous organizers, DD Tech, were stepping down. In December, Gino realized that,
706160	713100	hey, I should make a team that runs CTF because that's my dream. So he started talking to us,
713100	719080	and I remember at a chicken wing restaurant, the day after Christmas is when he told me about this,
719080	725740	and I was in. So in February 2013, we all got together in the same room, wrote down a proposal
725740	731340	for how we wanted the game to work, and found out in March that the proposal got accepted. And then
731340	738580	the real work began. So what is our group made out of? So about three quarters of the group are
738580	743600	people that I would normally call reverse engineers. But people, you know, people aren't
743600	748300	just their skills. And all these people have different specialties. So we have a radio
748300	754500	specialist who did a lot of work on our 2014 Challenge Badger. We have several people who
754500	759900	were good just with computer hardware in general, which was really useful for 2015, the year we
759900	766360	brought, I think, 40 different computers to Las Vegas. And in 2017, the game ran on the work of
766360	775020	our esoteric computing expert for the Clemency system. But besides reverse engineers, my friend
775020	782340	Salir is just a genius when it comes to computer infrastructure of any kind. Networking. He can
782340	786540	type commands into routers faster than I could just mash my fingers on a keyboard. I don't
786540	792780	understand it. I worked on the database-backed web application because that's something I really
792780	799100	enjoy. But the most important part is that people grow and change. I'm not the same person I was
799100	804280	five years ago. None of us are. So whenever somebody, you know, grows into a new skill set or
804280	810100	gets excited about something, don't say you're the web app person. Just deal with that. Like, if
810100	816380	they're excited about something, that's a big benefit for everybody. And that means that players'
816380	821880	role or team members' roles also grow and change over time. So if you are putting together a
821880	827140	capture-the-flag team, either for playing or for organizing, think about who you know and who you
827140	833340	know that you trust and who do you like? Who do you want to hang out with a lot? So once you've
833340	836860	figured out who's on the team, you need to be able to talk to your team. And that's what
836860	843820	communication is for. We, after the first year, we ended up using Slack or the chat program Slack
843820	849300	for asynchronous chat basically all the time. It's great because you don't have to, you know,
849300	854860	talk to somebody immediately. They'll just see the message later. We did eventually settle on
854860	859760	having meetings every week, which is really, really useful to, you know, have these little
859760	865100	iterations where you commit to something and get it done. But whenever we have an actual contest
865100	871320	to run, we like to be all in the same place. So this is the rental house we had for our 2017
871320	875600	qualifiers. And this is right before the game starts where we're figuring out what order
875600	881580	challenges get unlocked. Once we get to Vegas, we find it really nice to have a shared hotel room
881580	887080	where we set up all the noisy computers and stash all the snacks and stash all the drinks,
887080	890260	including lots of water because it's important to stay hydrated.
891340	895020	And, you know, that's kind of our home base when we're in Vegas.
896260	901240	And the snacks and the drinks are really, really important because your team is a team made out
901240	912040	of people. And people, you know, people require food and snacks. So in 2014, we were having computer
912040	918840	problems. One of the team's instances, their actual physical hardware was acting really flaky
918840	925680	and it needed to get unplugged and plugged back in a lot, like more than any other team should.
925740	930460	And it was causing a delay of the game because processes would be trying to talk to that machine
930460	936840	and it was just not on. So I was on stage trying to figure out why the scoreboard was going slow.
936840	943400	And Salir was walking back and forth between his computer on stage to read logs and the rack of
943400	950280	hardware off the stage to unplug and plug it back in to power cycle the machine. And I was kind of
950280	955740	like getting impatient with how things were going. And I just kind of asked him, how much longer is
955740	962000	this going to take? And whenever he walked off stage, he didn't go to the hardware. He just kind
962000	971220	of left the room. And Salir is normally like the most stable, level-headed, friendliest person.
971220	976720	And that's not something that ever happens. And that really, really scared the rest of us running
976720	983280	this game. And eventually after about half an hour, he came back with a drink. He came back
983280	989000	with a sandwich and he solved the problem basically instantly. And what I'd kind of
989000	993840	neglected was to think about what he needed, you know, both in emotional terms and also
993840	1000260	it was lunchtime and that's why we were both kind of crabby. So supporting the CTF players
1000860	1004520	means supporting the organizing team and making sure everybody's well fed.
1006500	1011540	The final point I need to talk about with smooth operation is that Capture the Flag software is
1011540	1018000	still software. And just like any kind of software or any other computer system, the way to make this
1018000	1022960	software work reliably is really screwed up. By the end, we could have another machine spun up in
1022960	1028360	about five minutes and we usually had hot spares ready to go anyways, which was great.
1029660	1034340	So next up, I'm going to talk about running a fair contest. And a fair contest is really
1034340	1041020	challenging because Capture the Flag is a game about computer hacking, but DEF CON CTF is also
1041160	1046940	a computer system, which means that we have to be really, really paranoid. And we have to worry
1046940	1053640	about teams trying to hack the right service the wrong way. We also want to make sure that teams
1053640	1058080	don't hack the wrong thing. We want them to hack a vulnerable service. We don't want them to attack
1058080	1065540	the scoreboard. And for attack defense games, we have another problem where teams may want to fix
1066360	1073580	a broken software the wrong way. And the way we eventually, you know, solve this is by restricting
1073580	1079780	what players can do more. So for qualifiers, we tend to run services on separate hosts.
1079780	1083940	And we eventually got to running multiple hosts in multiple locations.
1084280	1090600	So for the different challenges we have in qualifiers, each one would get at least one
1090600	1097100	machine per data center. So teams in the U.S. would connect to a data center in North Virginia
1097100	1103500	or something. Teams in Europe would go to Ireland, Asia Pacific, wherever Amazon's Asia Pacific hub
1103500	1108960	is, which was great. Teams got lower ping times and we didn't have to worry about the entire
1108960	1116980	service getting screwed up globally. Next, each connection to a vulnerable service would get a
1116980	1123300	separate container using the run C container run time and xinitd to actually manage the connections.
1123300	1128820	Using xinitd also has a really nice benefit where instead of writing each service having to have
1128820	1133380	its own, like, network handling code, we could write all these services as just standard in and
1133380	1140940	out executables. And then finally, in 2015, what we started doing was limiting what system calls
1140940	1147740	each service would be able to make using the set comp tools in Linux. Finals is a much more
1147740	1153260	complex game with much more complex problems. And one of the problems that we had was we kept
1153260	1158640	trying to keep the game about reverse engineering and not a game about operating system administration.
1159560	1164760	Starting in 2013, what we did was each team, whenever they connected to their machine,
1164760	1169860	instead of getting root or super user access, they'd get an unprivileged team account that all
1169860	1175180	it could really do is overwrite the service binaries that then ran under their own accounts.
1175800	1181720	So we had a problem starting that year, and it got really bad in 2014, and it was a phenomenon
1181720	1187320	we called the Superman defense. After the comic book character who just, like, one of his special
1187320	1193380	powers is, oh, he just doesn't get hurt ever. So some of the Superman defenses would be like a
1193380	1198320	firewall rule that says this traffic coming from the scoring system is okay, let it through,
1198320	1204040	but this traffic coming from an opponent team is not okay, so just block it. And we never let teams
1204040	1209840	have firewalls that way. However, a Superman defense that was very successful was preventing
1209840	1215780	the flag being read from disk. So teams would run the service in an emulator, and the emulator
1215780	1222180	wouldn't have flag access, and that was that. And we tried to solve that with making legitimate
1222180	1228780	pollers read the flag, but it didn't always fit into a service nicely. So what we learned
1229400	1235960	was that the U.S. Defense Advanced Research Projects Agency, or DARPA, started this project
1235960	1242440	called Cyber Grand Challenge in 2014. And one of their goals was to, or their one goal, was to
1242440	1249380	build a capture the flag game for autonomous computers with extremely formal rules. So for
1249380	1254000	their thing, instead of having, you know, just services on a disk that would run, they came up
1254000	1261860	with new jargon for it called challenge binaries, or CBs. These CBs were all 32-bit x86 binaries,
1261860	1267660	but they used a special executable format that had limited system calls and couldn't store state.
1267820	1271500	So what this meant was that teams couldn't just break out of the jail,
1271500	1277240	or they couldn't wrap it in an emulator. They had to solve these things the, quote, right way.
1278900	1285320	Similar to that, instead of just launching exploits over a network, CGC gave us this idea of a proof
1285320	1290780	of vulnerability, which was the same kind of executable, but it had a few extra functions
1290780	1295240	it could do. It could declare that it was going to demonstrate that it could control registers
1295240	1300720	of a target program, or leak memory from the target program, and the scoring system instead
1300720	1307060	of the teams managed how they ran. So these were put in place to support this goal of
1307060	1313000	offline evaluation, where teams connect to a website and they get the binaries, the challenge
1313000	1318400	binaries that other teams are using. And whenever they go to patch it, they upload it to the team
1318400	1322980	interface website again. Whenever they have an attack, they write a proof of vulnerability
1322980	1329100	and submit it. So the scoring system then runs the availability checks and proofs of vulnerability
1329100	1335040	and isolation. And the value there is that we can run those offline, or we can run them later
1335040	1339160	in a way that's designed to be reproducible and auditable.
1340940	1346380	So once we learned about that, in finals, we could bring some of that technology to our game.
1346420	1353860	Starting in 2015, we would restrict what system calls vulnerable services could make. And in 2016,
1353860	1359180	the day after the Cyber Grand Challenge, we ran our game using their same format, with challenge
1359180	1366300	binaries with proofs of vulnerability. And then finally, for our last year, we ran the entire game
1366300	1371560	in a limited emulator that didn't have a lot of hooks into the messy real world of Linux.
1374280	1378980	Another part of our fair contest is releasing the scoring information after the game's over.
1379320	1385580	For qualifiers, we release the, you know, scoring information and a little bit of that.
1385580	1392700	For finals, we release just, here's the database dump from Postgres, here's all the binaries teams
1392700	1397680	uploaded, here's packet captures for the entire game. And that meant that a lot of teams could
1397680	1403320	spend time after the game analyzing what was being used against them. Third parties could
1403320	1407300	audit the scores and figure out how the actual scoring system in the game worked.
1410360	1415240	An important part of running a fair contest is thinking about accessibility. And accessibility
1415240	1418640	can mean a lot of things, and all these things are important.
1419040	1423760	Our first year, we had a challenge called Die Hard, which required sensitive timing.
1423880	1428500	This was a problem because the name of the challenge was supposed to be a clue,
1428500	1434580	based on a popular movie in the US, about what players had to do. And the timing was difficult
1434580	1439760	if you were on a, you know, internet connection that wasn't super close to where the game was
1439760	1446120	being run. And what we had to do in future years, well, that year we, you know, had a really bad
1446120	1452740	solution. We told teams to rent space near our servers and play from there and write a program,
1452740	1457740	which is like, I don't want to be in the middle of a CTF game renting new servers.
1458800	1463500	Long term, what we had to do was we had to rethink how a lot of our challenges were being built.
1463500	1471020	We had to remove this idea that, you know, teams should be familiar in, you know, United States
1471020	1477220	online, you know, hacker culture from our game. We had to eliminate the whole idea of precise timing
1477220	1483780	for our game. And I think our game improved for that. Some of the other accessibility issues are
1483780	1490140	just the languages we use online in our official communication. Because not everybody's a, you know,
1490140	1495660	the same language as you are. And a lot of people are going to use machine translation
1495660	1501540	because it works. But you have to, you know, use shorter sentences, use smaller words.
1501600	1507380	And it's difficult to get in that frame of mind. And I don't know if we did a great job, but we
1507380	1514540	thought about it at least. So, the last aspect of Capture the Flag and what I've learned running it
1514540	1520500	is this idea of fun challenges. And the fun challenges that we spent a lot of time on,
1520500	1524780	that we think were the most successful, we went and broke expectations.
1526140	1532960	One of the ones from 2015 was a challenge called DOS Fun For You. And there's one writeup for this
1532960	1539680	online. And the writeup starts with discover this challenge is a DOS binary, the disk operating
1539680	1547960	system from the 80s. And they discovered that the IDA Pro disassembly tool was doing it wrong.
1547960	1552700	So, they ended up debugging their disassembler and patching it before they could actually start
1552700	1558140	the reverse engineering. And some teams found out that they had to use the emulator we told them to
1558140	1563580	use because if they used something else, if they used DOS box, it would get some of the subtle
1563580	1572160	timing wrong and they'd have a bad time. Another fun one was our Badger challenge from 2015 finals.
1572160	1578840	And what it was, was a service running on MSP430 microcontroller on physical hardware
1579360	1585480	that communicated with other teams with the game network using a custom CDMA radio network.
1585660	1591960	So, this is it right here. We had two versions, I think three different versions of this badge.
1591960	1598160	We had the one for competing teams. We had the one for organizers and VIPs that showed game scores.
1598160	1602960	We had the base station which was hung up on a string over the game area and had a bunch of
1602960	1610620	wires hanging out of it. So, one thing that we learned from Cyber Grand Challenge was this idea
1610620	1617580	of consensus evaluation. So, with most with a traditional attack defense game, whenever you
1617580	1623280	patch a binary on your machine, your opponents don't get to see how the binary has been patched,
1623280	1628260	they just notice that their attacks don't work anymore. And what CGC did was they introduced
1628260	1633480	this idea called consensus evaluation, where whenever you patch or you replace a binary with
1633620	1640680	a fixed one, everybody else gets to see that. Which means that if your patch isn't complete,
1640680	1646620	other teams, you know, can still attack it. And it also means that if your patch is really good,
1646620	1652860	other teams will start using it. But the important part of that is that now, instead of us releasing
1652860	1657760	eight services over an entire weekend and only getting eight binaries, every time somebody
1657760	1664260	patches it, there's a new binary that needs reversing. So, what I wanted to do with these
1664260	1669400	quals challenges was I wanted to push teams into this idea that automated program analysis
1670600	1676500	is important. You can't just, you know, open up IDA Pro, solve a binary, and then, you know,
1676500	1681360	you're done. You need to start thinking about programs, not just as software that runs,
1681360	1688980	but as input for other programs. So, I worked on this thousand cuts category in 2015,
1688980	1696320	16, and on a category called Crack Me 2000 in 2017. Each of these challenges had hundreds
1696320	1702560	of binaries that required automated analysis. And I feel they were successful. I saw a lot
1702560	1706980	of blog posts and a lot of write-ups about how to solve these that mentioned they'd never done
1706980	1714800	automated program analysis before. Consensus evaluation and finals gave us some really funny
1714800	1720420	moments. So, a player from a team that I'm going to refrain from naming walked up to the organizer's
1720420	1725520	table and asked why they were losing points. You know, their service was being attacked.
1726040	1729380	We looked at the scoreboard. It's like, yeah, your service is being attacked. That's why you're
1729380	1734560	losing points. It's called capture the flag. But they claimed they were using the same binaries
1734560	1740600	as the winning team and that it couldn't be that. And we just kind of, like, looked at them.
1742720	1749060	And then they just kind of did this and walked away. Because what they realized was that the
1749060	1755720	winning team had put a secret code in their, or a backdoor in their binary to allow them to attack
1755720	1762320	anybody that didn't, that just used their binary without thinking about it. That was really funny.
1762320	1766920	You know, we still laugh about just the expression on that guy's face all the time.
1768400	1774740	So, the Rubik's service from 2017. A few minutes ago I mentioned how it worked. You upload the
1774740	1780080	instructions to rotate a Rubik's cube and then if you've done it successfully, those instructions
1780080	1789120	get evaluated as just CPU byte code. So, how this worked in practice was teams would start to
1789120	1797360	write code to block the evil, whenever shellcode would come in, the scoring system would submit
1797360	1802700	some that didn't steal the flag, but attacking players would submit shellcode that did try and
1802700	1808260	steal the flag. So, defenders would start using the extra space in this binary and they'd patch
1808260	1813600	it by saying this shellcode let it through, this shellcode block it, this code let it through,
1813600	1819280	this code block it. So, what that meant was whenever a team would patch Rubik's, somebody
1819280	1824820	that was already successfully attacking them would disassemble the binary, see their previous attack
1824820	1830780	reflected in it, and have to build a new attack, which felt like the comments we got after the
1830780	1835540	game were that this felt like a multiplayer game against other people. We were having,
1835540	1839980	I was having a back and forth with somebody on this other team. They'd patch it, I'd write a
1839980	1845580	new exploit. They'd patch it, I'd write a new exploit. And we also had to update the scoring
1845580	1852020	system to, you know, create new good shellcode. But it was a lot of fun for the players and it
1853600	1860240	just fascinates me. So, we've talked about running smoothly, we've talked about running a fair
1860240	1865900	contest, and we've talked about fun challenges. This is not everything that we know about
1865900	1870040	Capture the Flag, and this is not everything that there is to know about Capture the Flag.
1870320	1874880	There's still a lot more to learn, and there's a lot more work ahead of us building new Capture
1874880	1883320	the Flag games that create new opportunities for new players. CTF is not a huge community yet.
1884000	1887360	How many people in here have never played a Capture the Flag game?
1889200	1895260	Okay, that's actually really impressive. But I think in a lot of the world, there's still a lot
1895260	1903500	more work that we can do to make Capture the Flag for new players. The best way to learn how to do
1903500	1909520	Capture the Flag is to do it. Either play a Capture the Flag game, or once you're happy with that,
1909520	1914380	build your own Capture the Flag game for your friends and for people that you like to play.
1916000	1920920	Capture the Flag has given me five years with the best group of people I've ever worked with,
1920920	1927460	and it's given me an amazing five years building a contest for the CTF community around the world,
1927460	1933420	the friendliest and smartest community I know. Thank you for making it amazing. And if you're
1933420	1939220	curious about DEF CON Capture the Flag, order The Overflow, the new DEF CON CTF organizers.
1939220	1943000	They're starting their game tomorrow morning at 8am Beijing time.
1943000	1947160	You can learn more about it at oooverflow.io
