start	end	text
8840	18220	All set? Okay, good morning. Welcome, everybody. Welcome back to day two of the Aerospace Village
18220	23880	Theater. The crew has a lot of exciting content for you today. We are happy to kick off day two
23880	31300	with all HackASAT updates. I am very, very proud to tell this entire room that we have successfully
32000	37440	completed and accomplished a space challenge using our on-orbit satellite, quite literally
37440	48420	making us the world's first CTF in space. So, thank you. Big props to our team out there,
48420	52120	the Game Ops, the Satellite Ops, and of course all of our competitors. And thank you all for
52120	57340	being here with us today. So, we do have a lot of very exciting content. Jordan is going to fill you
57340	62560	in. All day yesterday, it was very productive. And even overnight, our teams were continuing
62560	67220	to downlink data from the satellite to parse through all the information that came through.
67280	70280	So, there's a lot of really exciting information to share with you all today.
70540	75580	Before we do so, just in case anybody wasn't around or hasn't had the background of HackASAT,
75580	82020	we do want to get started with just a quick video, a good overview of where we are,
82020	98630	who we are. So, let me get that going for you now. To point B, the United States Air Force
98630	105370	and Space Force had an idea to host a space-based CTF to advance space cybersecurity. While many
105370	111390	were sure it couldn't or shouldn't be done, in 2020, they launched HackASAT, an educational effort
111390	116490	and capture-the-flag style hacking competition. HackASAT is designed to inspire the global
116490	121470	security researcher community to develop the interest and skills necessary to reduce
121470	127670	vulnerabilities and build more secure space systems. Education has been central, from testing
127670	132750	the public with an open hacking challenge, to a tough qualification round introducing space-relevant
132750	139130	topics and skills, to a set of hands-on workshops in the virtual aerospace village at DEFCON Safe Mode,
139130	144850	to a whole library of resources on space and hacking. We developed FlatSAT hardware and
144850	150510	challenges to give security researchers access and experience to space technologies they wouldn't
150510	157130	have otherwise. It all led to a fierce final CTF competition for the top eight teams from QUALS,
157130	161470	and the source code for all QUALS and final challenges are available on GitHub for the
161470	167610	community to keep learning. As HackASAT 1 ended, planning started for HackASAT 2. We enhanced the
167610	173650	HackASAT FlatSAT and assembled a new digital twin to support even more realistic space challenges.
173650	179070	The qualification round took place in June 2021, with the top eight teams making it to the final
179070	185310	event. HackASAT brought a full slate of talks and workshops about space security to DEFCON 29,
185310	191170	and the virtual final CTF took place in December 2021. Challenges were still based
191170	196190	on the FlatSAT, but now teams could test their commands within the digital twin simulation.
196190	200370	And again, the source code from QUALS and finals challenges are available on GitHub
200370	207010	through our player's corner page. As HackASAT 2 ended, planning started for HackASAT 3,
207010	212930	and development was already well underway for Moonlighter, a 3U CubeSat dedicated to furthering
213550	219570	cybersecurity. Its first mission would be to host HackASAT 4. We developed the digital twin-based
219570	224450	final event to mirror the actual Moonlighter satellite, and with help from astrophysicist
224450	229910	Dr. Hakeem Oluseyi, we built an online educational experience for the public to plan,
229910	236190	build, and test their very own 3U CubeSat, just like Moonlighter. HackASAT 3 QUALS took place
236190	241850	virtually in May 2022. In August, the HackASAT team brought space-relevant talks to Aerospace
241850	248170	Village at DEFCON 30. The finals took place in October of 2022, with eight teams working through
248170	255410	12 challenges over 23 hours in this attack-defense style CTF. And again, source code from QUALS and
255410	260930	final challenges are available on GitHub. As Moonlighter moved from design to the build stage,
260930	265910	the team went deep into HackASAT 4 planning. A space-focused CTF is hard to build and play.
265910	271290	An on-orbit CTF is even harder, and it's never been done before. Our qualification round took
271290	278910	place April 2023. Moonlighter launched on June 5th and deployed from the International Space Station
278910	286210	on July 6th, and is now in low Earth orbit. This is its first mission. Practice is over.
286210	293270	The HackASAT 4 final event has begun. A huge congratulations to the Moonlighter team.
293770	295550	Best of luck with operations.
298510	308470	Awesome. Thank you. So now that you know, definitely, we're HackASAT. We're excited to
308470	313790	be here. But more importantly, DEFCON's no stranger to CTFs, right? But a space CTF,
313790	318330	this is new. This is exciting. So we do want to provide to you, before we get into all the details
318330	323790	of how yesterday unfolded, here's a quick game explainer, and then we'll get Jordan up here to
323790	473110	get all the details for you. To meet the great challenges of our age, here on Earth, and beyond
473110	484990	the Earth, in space. All right, everybody. All right, everybody. Good morning. Can you hear me?
485290	488830	Hold on. We'll get this mic going. I can yell, but I don't want to lose my voice. So
489990	491290	let's try again. Is this...
493750	499750	We'll use this one. We'll use this one if it comes on. There we go.
500170	503090	Which will be tricky as I have to type one-handed later, but we'll figure that out. So
503090	509030	good morning, everybody, and I'm excited here to talk about the details of the capture flag,
509030	513890	kind of what's been happening, give you an update here. I'm Jordan. I'm the sort of CTF
513890	518910	sideline reporter. So my job is to dig into what's been going on, talk about the challenges.
519010	522530	It's a nerve-wracking update, right? Because the beginning, we sort of know what we're going to
522530	524850	talk about. We can't talk about the challenge. We're going to talk about the beginning of the
524850	529350	game. This middle update, we can only talk about things that are already all solved, or we can
529350	533090	talk about scoring events, and at the end, we can talk about all the details. So we can go into
533090	537710	the behind the scenes of all the challenges and whatnot. So this update is the scariest,
537710	540450	because you don't know if you're going to have things to talk about. Are the teams going to
540450	544590	score? Will there be things you can talk about? What will have happened? Thankfully, we've got
544770	549610	a whole bunch of stuff to talk about, so that's a relief. I was excited to have that happen.
550070	554070	Just as a reminder, this is kind of the overall structure of what the teams have been doing,
554070	558650	right? So in the lower left, we have the teams. How many people saw our update yesterday, by the
558650	564350	way? If you were here yesterday morning, good. If it's a mostly new audience, I'll make sure
564350	568990	we're all up to speed at the same time. The lower left are all the teams. They're here in the
568990	573270	other room through that wall. You can see five teams that have made it here into the finals.
573370	577910	They're talking to the satellite through this tasking API. They have this web server interface
577910	582870	that all of their code gets uploaded to, all their downloads come through, but then those go to
582870	588070	this validation system that actually will check all of their submissions, make sure they're well
588070	591570	formed, and then it goes into the command scheduler, and that's all kind of done through the
591570	597330	infrastructure from the game team here, but then the command scheduler goes into the KSAT
597330	601950	ground link network. And so there's actually a commercial provider of satellite ground link
601950	606370	stations, and we've got four locations throughout the globe, and then the next time the satellite
606370	610430	is over top of one of those, there's a whole set of commands that are uploaded and data that's
610430	615910	downloaded, right? And you'll notice, though, that the ground network that goes up is different
615910	619610	than the ground network that goes down. Now, they're the same thing, right? It's the same
619610	625690	four locations. The difference, though ‑‑ oh, sorry. All right. Is that better? All right. Let
625690	633150	me know in the back if I'm getting too quiet. I hear my echo. The ground network, the same
634010	638110	four ground stations that uplink also downlink, but the point here is that they don't do it at
638110	643050	the same time, right? So if I upload something to happen, it happens sort of over the gap
643050	647010	between the communication windows. So the code all gets queued up, it's on the satellite, and
647010	650950	then it gets run while that satellite is going until the next communication window, then it
650950	656090	downloads all the results. So there's a lot of lag. And even beyond that, and because some of
656090	659970	these windows can be quite long, even beyond that, when you have an especially long window
659970	665110	between the communication, you can't even download all of the telemetry, all of the things that
665110	669350	have happened that have run on the satellite, and so it's this very, like, fluid environment
669350	674670	where it may take multiple contacts to download what happened two windows ago, for example.
674790	678730	And so there's a whole lot of things that you've got to kind of juggle and deal with, and you've
678730	684190	got noise, we've had contacts that were interrupted by just bad RF where the communication link
684190	688410	couldn't happen because it was just too noisy of a signal between our ground station for whatever
688410	692590	reason. You know, there's a lot of things that are out of our control. And so that can really
692590	697250	make a lot of this challenging. So the data comes back down on the next pass for whatever attempt
697250	701230	you made, whatever challenge you tried to solve, goes through the ground network into the
701230	705650	telemetry data that goes back into the teams, and they get to evaluate kind of what they did.
708870	715290	So this is the sort of, like, overall look where you can see the windows that teams have are
715290	721310	not fixed, right? And these are determined by the physics of the orbit. We didn't even know,
721310	726930	in fact, the exact details of when we would have access to the satellite until this week. It's
726930	731810	really been rather, you know, sort of sudden in terms of trying to figure out now how does this
731810	735990	impact the challenges? How many times can the teams talk to the satellite? So you'll see even,
735990	740510	for example, today, there's very few contact windows. We really only have two contact
740510	750110	windows that teams can queue up their commands to the satellite. And so it means that you better
750110	753730	get things right, right? There's not a lot of room for mistakes. And then a lot of these
753730	759470	contacts do happen after hours, though. So the good news slash bad news is that, as I said,
759470	763290	in these long windows, it takes a while to download all the data, but we've got more
763290	766310	windows. And that's also why we're not really announcing the winners, because we don't know
766310	770450	the winners until much later tomorrow morning when we've pulled all the data, we've combed
770450	774030	through all the results, and we can really see what actually happens. So even the scoreboard
774030	778490	that we're going to show is not actually real, right, in the sense that there's probably
778490	781610	things that have happened since then that just haven't been downloaded or haven't been
781610	786130	processed. There's multiple stages that are happening in this. So it's a kind of long, like,
786130	791490	tail before you find out about some of these things happening. Specifically, though, you'll
791490	798650	notice that teams can interact with these windows in sort of three primary ways. The first is
798650	803230	they can upload a script. They can run a script. The second is that they can use the
803230	807630	scripts to take a picture. There's an imager, there's a camera on Moonlighter. And the third
807630	813650	thing is they can download some of that data. They can download results back out. In fact, it's
813650	817990	up to them then to figure out what they're going to do throughout all of these windows. You'll
817990	821390	notice, so yesterday, again, was the start of the game. Teams had the beginning of their
821390	825710	access then, and there's these two windows, those little kind of white blocks of the
825710	830310	communication windows, very, very quickly. And so the teams wouldn't have been able to get a
830310	833950	whole lot done then. Turns out, they couldn't even communicate with the satellite at all. We
833950	838010	actually had, unfortunately, had two errors that resulted in these windows kind of being
838010	843110	unavailable. One was due to some testing infrastructure, because unlike a server where you
843110	846690	can have two servers and one's prod and one's testing and they can be identical, well,
846690	850030	that's a satellite in space, so nothing is identical. And so some of the testing
850030	854750	infrastructure that was in place sort of blocked the upload to the satellite during that
854750	858950	first window, and so unfortunately we lost that opportunity. And then the second window,
858950	865010	again, we're at the sort of mercy of our ground network operator. They just dropped our
865010	868890	connection, essentially. We don't really know. Sometimes it happens. You lose access to
868890	872830	these windows. So those two windows didn't actually even happen. Teams had queued up
872830	877030	commands. The good news was we looked through the results. None of the teams lost scoring.
877030	881530	Nobody had anything that was going to be a solution that would have actually scored on any
881530	888430	of the challenges. Awesome. Let's see if this one works. Let's try this one. Can you guys hear me
888430	892430	now? Still a little quiet. There we go. They're going to bring me up. Perfect. All right.
892430	899310	Thank you. So the teams here, they missed a couple of little sort of learning opportunities,
899310	903490	right? These could have been good chances for them to be able to find out how things worked.
903590	908210	And so, for example, one change or one thing that happens is that all the telemetry and the
908210	914450	log data that comes back is shared with all teams. So this is kind of an interesting twist,
914450	919030	right? You as a team, if you run a script and there's some output, everyone can potentially
919030	923050	see that. So teams had to account for that. And we wanted them to learn that in the sort
923050	928030	of first two windows as they were sort of testing the earlier tests. But because they
928030	934110	didn't have that opportunity, what we did was we essentially on the third window, when any
934110	937710	data came ‑‑ or the next window that came back to teams when they first had data back, we
937710	942830	said, we're separating your logs for this run once, just because you didn't know. So everyone
942830	948030	got their own logs separately. But just so you know, from now on, your logs are coming back
948030	952150	with everybody's, right? So they have to kind of account for that as they're participating in
952150	957530	the game. This is a concept called consensus logging or consensus evaluation. It was
957530	963130	actually kind of popularized in Capture the Flag a few years ago at DARPA's Cyber Grand
963130	967770	Challenge where it was one of the first major Capture the Flags where everything you did,
967770	972470	every change you made to your environment, every team got to see. And it really changes the
972470	977230	playing field. It's a very different game when I submit a change to a binary, I try to patch
977230	981090	or make a fix, if other teams can see what I'm doing. You have to account for that in terms
981090	985770	of how you play the game. And this is kind of a really interesting trade‑off that exists in
985770	989730	the real world, too. Because sometimes you can keep things secret from attackers. Sometimes
989730	993790	the attackers don't know what kind of infrastructure you're running. Sometimes they do.
993790	998070	Like they can download Windows. They can download the antivirus software you're using and
998070	1002290	they can analyze it. They get full visibility into some of the things on your network or
1002290	1005850	some of the software you're running. And so it is this interesting trade‑off that you see in
1005850	1010070	Capture the Flag events where they try to balance between, like, is it realistic, is it not?
1010070	1014910	And in consensus evaluation is one of those things that absolutely exists in kind of the
1014910	1021150	real world, too. So after those Windows, we have a couple more kind of Windows later on
1021150	1024430	where teams really start getting into it. They start uploading their attempts and we start
1024430	1029730	seeing what they're doing. Let me go to this actual score chart and let's talk about this,
1029730	1034810	too. So our scoreboard here has all five teams and we had to update this right before the talk
1034810	1041390	because, again, we had some scoring events that came through. And, again, this is itself
1041390	1045970	even delayed, right? So we got this update, the data was coming through, but we don't
1045970	1050290	actually know if this is the current sort of state of reality. We have to let everything
1050290	1056290	kind of settle out and we'll find out later. The five teams, you see the last minute,
1056290	1062370	pulling can into space has jumped into first place. And then tied for second place, we
1062370	1071250	have jump FS and space bits are us and we've got in fourth place crowd set and then macaroni
1071250	1075650	or M macaroni and in the fifth place spot now. But, again, there's a lot of room for
1075650	1081850	teams to jump it down because you can see, like, one update could bring you several spots
1081850	1086070	up pretty easily because there are a number of challenges that are left. Let's go ahead
1086070	1090530	and talk about the overall score chart. I like this one for looking at what's happening in
1090530	1094990	the game. If you go to our website, again, you can pull up this data. You have to click the
1094990	1101470	plus signs on the left to bring up the little ‑‑ the key, the legend that shows you who
1101470	1105350	is ‑‑ which color is which if you don't remember off the top of your head. But you can
1105350	1109630	see the total points for each one of these challenges. These are the ones that have been
1109630	1113510	solved so far. So this is, as I said, this is nerve wracking when you're a competition
1113510	1118630	organizer just seeing those first solves come in is fantastic and exciting. The top two
1118630	1126130	challenges, password manager and flight software freebies, these are challenges that existed
1126130	1130270	in our ground network. So they were solved by all the teams because they probably had more
1130270	1133650	time to work on it and they had software they could work with and analyze. But these are
1133650	1137450	not necessarily, like, give me challenges. I'll show you in much more detail we can talk
1137450	1141570	about that. So the good news is because everyone solved it, we can analyze and we can look
1141570	1145190	and we can see what they did. And those are going to be kind of more traditional software
1145190	1149710	security vulnerabilities, binary analysis, decompilation, exploitation that the teams
1149710	1153750	had to do. Because, again, that's very much a part of the ground station network. And
1153750	1157750	the satellite ecosystem includes not only the satellite itself, but the ground stations
1157750	1162190	that it's talking to. And so making sure that they're secure is equally as important because
1162190	1167830	if the controllers are hijacked, well, then so can the satellites. And so you'll see thankfully
1167830	1171390	all teams have solved that. I'm going to go give them a high five on the way out because
1171390	1175090	that makes my life easier because we can talk about those. These other challenges we can't
1175090	1179190	go into full detail on because not every team has solved them. So tomorrow if you come back
1179190	1182330	at the awards ceremony, we can talk in a little bit more detail about how they happened. But
1182330	1187410	we can at least talk about the sort of general shape of the challenges, what the teams know
1187410	1192590	about what they had to do. So this third challenge you see here is called script kitty. And the
1192590	1196550	idea here is you just have to run a script. Remember I said earlier that there's this
1196550	1201270	command interface that lets the teams upload their code. Their code is running on the
1201270	1205270	satellites. They're not like sending a packet to the satellite and getting a response back.
1205270	1209690	Everything that they run has to run on the satellite. It's a Lua scripting engine that
1209690	1215190	they're running with. And it's got a whole bunch of access to the imager, to the GPS
1215190	1219310	module, to all these different things. They're writing their code as these payloads and
1219310	1223390	then they upload it. That's also where I said that log data that comes back from the scripts
1223390	1227890	comes into that log and that telemetry that gets distributed to all of the teams. So we saw
1227890	1233310	three teams in the same scoring window were able to score on that script kitty challenge. We
1233310	1241410	had PFS, PFS RCX or jump PFS or jump as they get called. We had Poland can and we had
1241410	1246650	CrowdStat all score in the 19th scoring round. So let's talk a little bit, too, about those
1246650	1250830	scoring rounds. Because if you look up top, you'll see there's 1, 2, 3, 4, 5, 6, 7, 18, 19,
1250830	1255690	20, 21. The fact that they're not contiguous is just sort of an artifact of some kind of
1255690	1261490	internal, some testing that was happening. But the whole point is, this is the rounds as
1261490	1266150	they happen with scoring windows. So this is not linear. This looks nice and linear and you
1266150	1270590	look here like it happened all, like it kind of chunked at a time. But the scoring windows,
1270590	1278930	as we saw earlier, if I can get back to them, the scoring windows, as we saw earlier, don't
1278930	1283150	always happen at the same time. The time stamps are a little small. The website has the
1283150	1287790	details and you can pull them up. But they're not like every hour. They can be very random.
1288010	1291490	Actually, this one has the better one. You can see the gaps between each one of those
1291490	1296530	windows. And so when we talk about these rounds, some of these rounds are rounds that
1296530	1300030	happened last night, but the teams had uploaded the data before they left and it finally
1300030	1303510	made it up to the satellite. The results happened. We got the data back in a later round.
1303790	1308970	And so that's why you see it's sort of like this nice, pretty regular chart here and here.
1309090	1313070	It's not so clean. It's not so easy in terms of how it actually has happened.
1313070	1317990	So again, script kitty is your code execution, like running a code. This is part of a normal
1317990	1323550	API. You're allowed to task. You get a time slice. You get to run your script. But then
1323550	1327870	can you violate certain properties? Can you do certain things or some of these later challenges?
1327870	1332850	So this is sort of, yes, hello, world, you can run code. Now go on and actually do something
1332850	1336510	with it. And that's what we're going to see with these next two challenges.
1336510	1345090	Silver medal is a challenge of just take a picture. You had to take a picture. And teams
1345090	1350510	didn't have access earlier in the day yesterday to controlling the attitude of the satellite.
1350590	1355830	So there was only a window of time overnight that they were actually able to adjust the
1355830	1360870	orientation for pointing. And so if they want to take a picture of a specific place, you
1360870	1364250	have to be able to point the satellite. And so that data is still coming in and we'll
1364250	1367530	see what they did and hopefully see some of those images. I'm really looking forward
1367530	1373370	to seeing the first captured flag picture from space that live happened. We did actually
1373370	1378930	have one a few years ago. So we called it a moonshot on a previous version of Hackassat.
1378930	1382770	But it wasn't the CTF happening on the satellite. It was like a separate challenge that they
1382770	1386710	could run a little bit of code that was tested and then their pointing map was uploaded to
1386810	1390110	a satellite and a picture was taken. So that actually let them take a picture. But this
1390110	1393710	is like no kidding really. They're writing all the code. They're doing all the orientation
1393710	1398590	on the satellite. Their code is running it and triggering it. So cross your fingers that
1398590	1402410	tomorrow we're going to have some of those coming back. Like I said, from about 1 a.m.
1402410	1406850	last night until just before we started speaking now was the period of time where the
1406850	1412910	satellite was moving. Partly because the control system is a physical artifact. So
1412910	1418710	there's actually, it's not like a digital on off exact pointing mechanism. And the fly
1418710	1422270	wheels, the systems that actually do the orientation require a lot of maintenance and
1422270	1426170	tuning and tweaking. So there's only kind of a narrow window of time that they can
1426170	1430010	actually do that. Of course there's also power concerns too. But they've got to like,
1430010	1435550	they've got to kind of reset and adjust the system so it doesn't kind of like become
1435550	1439870	usable again. Go talk to all the people that do the real space stuff for the details on how
1439870	1443890	that system works and why they need to kind of reorient it. Because that's, like I said, I'm
1443890	1449510	just the hacker commentator here to talk about the security stuff. So at 11 a.m. is when
1449510	1454830	they had that window to orient. So we'll see what images come down later. This one, as the
1454830	1458250	satellite is spinning, so again, outside of that window I just mentioned where it's under
1458250	1461750	control and it's actually, they can orient it, the satellite is actually kind of free
1461750	1465330	floating. Like its orbit is fixed and they know where it is. But it actually is aiming in
1465330	1468990	all different directions. And the teams didn't actually control that. But they could still
1468990	1473910	take a picture. So that's what we're seeing here in the silver medal challenge that we have
1473910	1479930	both JumpFS and Poland can solving. They were able to take a picture. So we will at some
1479930	1483450	point be able to get that picture. It will probably just be black or looking at space. So
1483450	1487970	there may not be much to it because they didn't control where it was aimed. In fact, one of
1487970	1493850	the teams got bit by a little bit of bad luck. They triggered take a picture. But they were
1493850	1500050	in a region that is what we call, we've got band regions. And this is not actual band
1500050	1505010	regions. They literally did bands around the globe. So there's a bunch of longitudes that you
1505010	1508810	can't take a picture of the earth for. And the idea is that this is, again, one of those
1508810	1513490	exercises they have to solve. So this is one we're not seeing on this view. But this is
1513490	1521370	called unintended bug. And that challenge means you have to take a picture of one of these
1521370	1524790	locations where you're not supposed to be able to take a picture. There's code that prevents
1524790	1530030	them from actually taking a picture out of a big chunk of the globe. We'll talk more
1530030	1534150	about that tomorrow, how they had to solve it and how they could do that. But hopefully
1534150	1537510	somebody actually gets that one kind of figured out. And I think they will from something
1537510	1542550	we're going to talk about later. But one of the teams, which is randomly snapping a picture
1542550	1546790	during one of their code windows, they happened to be over a band region and they happened
1546790	1550670	to be aimed at the earth. And so the thing said, no, I'm sorry, I can't take that picture
1550670	1554990	because I'm in a band region. So it prevented them from actually solving this. So it's
1554990	1558110	unfortunately a little bit of bad luck, but that's going to happen. And they could have
1558110	1561930	maybe controlled it, for example, if they would have calculated where in the window
1562630	1566370	the flat sat would be above one of those band regions and where it wouldn't, they could
1566370	1572790	have intentionally chosen that. So we'll see if that is something that they can solve or
1572790	1575830	not. They're going to know, though, when they get back the results and they're told, no,
1575830	1579470	your picture didn't get taken. They already know that's a problem. They figured that out.
1579470	1584670	We'll see if they can actually solve it, though, already. So the last one that we've seen
1584670	1588090	solves for, again, this is the one that happened just before we came into this event, is
1588090	1593570	called Christmas in August. It's so called because you have to visit the North Pole. What
1593570	1598730	you're supposed to do is have the satellite show up over the North Pole. However, I
1598730	1603810	mentioned yesterday, there's no boosters on this satellite. There's no propulsion. There's
1603810	1609070	no ability to move it. The budget wasn't there for, like, a fully autonomous vehicle in
1609070	1614010	space that can move around. So how are teams supposed to do this? And the competition
1614010	1618810	organizers did communicate to them, you have to basically get the GPS to be wrong, right?
1618810	1622890	Because there's a GPS receiver on the satellite. So they have to do something to basically
1622890	1628750	get the satellite to think it's somewhere else. And so that is going to let them, you know, lie
1628750	1632530	and say that they're at a particular location. So two of the teams have figured that out. They
1632530	1638630	were able to use a cool trick that we'll talk about tomorrow to be able to get the satellite
1638630	1642870	to be somewhere else. And they were able to go visit Santa, pick up some cookies, have
1642870	1648470	their Christmas in August, which is that particular challenge. So those are the points that
1648470	1652750	the teams have been able to score. It's a great start. And again, we've got, while we only
1652750	1656290	have these two more kind of windows today, the good news is, again, there's still data coming
1656290	1660310	down. There's still a lot of things that we're getting from both that happened kind of
1660310	1664630	overnight, that are happening today, and they're going to happen even over tonight as we
1664630	1668110	continue to process and pull everything out. And so we'll see everything else that's going to
1668110	1672470	happen. I'm going to go through some challenge walkthroughs, though, right? So for those
1672470	1675250	of you that want kind of a little more detail of, like, well, what does it mean when you say
1675250	1679530	that they're doing an exploit or they're solving a challenge? Because all five teams have
1679530	1683130	solved these two ground station challenges, we can take a look at it. We can actually pull
1683130	1686770	them up and show you all the details and talk about what exactly they're doing. And you can
1686770	1693610	see, like, kind of what goes into their solving one of these. So the first one is a tool
1693610	1698990	called Password Manager. And this is a ‑‑ it's actually ‑‑ the actual binary name is
1698990	1703670	Final Pass, which I think is kind of a play on words from Last Pass, which is a password
1703670	1707790	manager you might be familiar with. And the idea, the original idea, actually, for this
1707790	1711630	challenge was it was going to be a challenge you had to solve at the very, very beginning
1712170	1715950	before you would unlock a ‑‑ use that to unlock a separate server, and then that would
1715950	1719050	unlock to give you all the binaries for the rest of the challenges, and you would kind of have
1719050	1723310	to solve these kind of sequentially. However, when the organizers looked at the
1723310	1727270	communication windows and they saw how few sort of communication slots there were, they
1727270	1730130	actually changed the challenge up a little bit, made this one a little bit easier, and
1730130	1734970	made it so you can just solve it and it doesn't block your access to any of their challenges.
1734970	1738110	And, again, this just comes down to you have to be flexible because the environment you
1738110	1742390	get in space may not be the one that you think you're going to get when you're in planning.
1742390	1745730	And so they actually changed this before the competition started. To be clear, all this
1745730	1749370	is done before anything has happened, and so it's fair. All teams got the same binary.
1749370	1752870	Because that's also another really big concept in Capture the Flag, is that anything you
1752870	1755950	tell the teams, you have to stick with it. Anything you communicate has to be even to
1755950	1759870	everyone. Everyone has to have the same kind of scoring opportunities. So let's take a
1759870	1765350	look at the password manager here. And we're going to use a tool called Binary Ninja.
1765350	1770630	Shameless plug. My company builds this product. But it's basically a decompiler, right? So
1770630	1775050	this takes apart and analyzes binary code, turns it back into source code or something like
1775050	1780910	it that you can try to analyze to find out, like, what the code actually does. And so the font
1780910	1785390	is going to be really small. I apologize in advance. Actually, maybe I can ‑‑ we'll bring
1785390	1790310	up the font size a little bit and see if we can make this a little bit more readable. But the
1790310	1796070	idea is, again, the code that runs on the satellite or runs on your computer or your phone is
1796070	1800790	just binary, right? And the CPU is going to execute that directly. But what you want to know
1800790	1805750	as a human is, what is this actually doing? Like, can you tell me something meaningful about
1805750	1815990	that? So tools like Binary Ninja turn that binary back into something ‑‑ something
1815990	1820290	understandable by humans. So that's a little bit ‑‑ all right, let's go back to the right
1820290	1825550	one. A little bit more readable, hopefully. Like I said, we'll put the videos online so you
1825550	1829830	can pull it up full screen later as well, too, so you can see it there. But the idea here is,
1829830	1833330	you can just see a bunch of yellow on the screen. So let me talk about that for a second.
1833330	1838490	When you give a binary to teams, you have a couple of choices as an organizer. You can give
1838490	1842750	them something with what we call full symbols or with debug information. And that basically
1842750	1846510	gives them a lot more data about what's actually happening. You're sort of including some of
1846510	1849510	the stuff from your source code. So we can actually see that here. We see a whole bunch of
1849510	1855790	C++ namespace symbols. So we have a lot of that included in this particular binary. We see
1855790	1859070	some that are compiled in the binary. We see some that are imports from libraries, like
1859070	1863770	standard IO stream libraries. And so we can start, like, this is the code as it runs. But
1863770	1868070	thankfully, the teams had a lot more hints on what this binary is doing because they can
1868070	1871550	actually kind of read some of the code. We can see here, this is, we know it's called a
1871550	1877050	password manager. We can see it creates this manager object here. And it's got this process
1877050	1881550	choice menu, for example. So we can look at the process choice and you can scroll through
1881550	1886430	here and you can see, view a password, add a password, delete a password. So, yeah, it's a
1886430	1890630	password manager. It's what you would expect. But there's this interesting thing you can do
1890630	1895650	with a password manager, which is that you can load a database. You can actually give it a
1896210	1900550	preformed database, like you could, like you have created your own. And so if you got this
1900550	1904030	binary and you can analyze it, you can figure out what does a valid password database look
1904030	1908230	like for this custom service. And so you would go into there, you would look at what it's
1908330	1912350	doing. And even before you get there, you might see this is a little interesting. Start DB
1912350	1917490	thread. Like, oh, no, this is sort of a dreaded thing. If you've ever done any multi‑threaded
1917490	1922010	programming, how many people have written multi‑threaded code where it's like you've got to
1922010	1925150	deal with different threads. This is actually really, it can be a lot of work, multi‑process,
1925150	1928850	multi‑thread stuff, because now you have to worry about race conditions. Now you have to
1928850	1933210	worry about, like, well, you have to have mutexes or locks, things that control access. So
1933610	1937390	multiple threads are just like running sort of two processes that then talk to each other,
1937390	1940970	right? So they can run at the same time because your computer has lots of CPUs that can run at
1940970	1945290	the same time, so you can run these separate processes, but they increase the complexity of
1945290	1949750	the code a lot. So in this particular challenge, trying to reverse engineer it was pretty
1949750	1954550	easy. Like, you can look at this, all the symbols are there, it tells me what it's doing, I
1954550	1960250	know what libraries it's importing, I can read the start DB thread, it's got a get database
1960250	1963450	from the user, so it's actually going to open a data connection, it's going to parse some
1963450	1968430	database. I have not seen this binary until literally a few hours ago this morning. They
1968430	1972290	showed me this, like, on the spot when they made it, and this was pretty straightforward. You
1972290	1977110	can just kind of read through it to understand what it's doing. It's got pretty error messages
1977110	1980770	that you can see right here, so it's, oh, could not create a user, so there's a problem with
1980770	1986510	user creation. What the teams had to figure out, though, was that this ‑‑ every time they
1986510	1992510	opened up, whenever they uploaded a file, a new port was opened, a new socket was opened, and
1992510	1996590	then they would upload the file to that socket. This is a little bit like how FTP works, if
1996590	2000530	you're familiar with the file transfer protocol. When you upload a file, you say, I have a
2000530	2003990	file, I'd like to upload it, and it's like, no problem, send it over here, and it gives you a
2003990	2008330	new port. Most of the time nowadays, we have websites where we upload files, it all just
2008330	2011890	uses the same kind of web connection, and we make a bunch of requests over and over to the
2011890	2015690	same connection. So this is sort of a different way of transferring files, a little more old
2016110	2020370	school, but in this case, it hints to teams, like, something weird is going on. You wouldn't
2020370	2024550	normally build something like this without a good reason. And in this particular case, if
2024550	2031270	you're able to open a separate connection, and then you can change some information on the
2031270	2035530	server at the same time, you can trigger this sort of like a race condition. So what you're
2035530	2039610	uploading, instead of overwriting your database or your information, you can overwrite
2039610	2043410	something else. And what you would essentially do is you would use this to change your name
2043410	2047670	and become, now I'm an admin. So you would essentially use this trick to become an
2047670	2050950	administrator. What I think is especially interesting about this is a lot of these
2052090	2055990	exploitation challenges, you're looking for memory corruption. If you've heard of a buffer
2055990	2060470	overflow, where you have a specific size of data and you write too much into it and you
2060470	2064030	overwrite some pointers or a return address and you're trying to basically get the
2064030	2068950	computer to execute your code instead of the code it's supposed to run, treat your data as if
2068950	2072490	it were code or you're trying to hijack the control of where it goes. Control flow
2072490	2078870	hijacking or remote code execution. So this is what we often think of when we think of the
2078870	2083590	most hardcore capture the flag kind of challenges. And this one, you never get code
2083590	2088050	execution. You don't need to. You just need the password that's in the admin's password
2088050	2092230	database and you can do that by using sort of this race condition, which is a memory
2092230	2095870	corruption, you're changing bytes you're not supposed to be able to change because it's
2095870	2098950	sort of confused about what you should have access to by having these two different
2098950	2103950	processes running at the same time. And when you do that, all of a sudden you're just an
2103950	2107950	admin and you can now read a password that you shouldn't have had access to, right?
2107950	2114490	So I think this challenge is really interesting. Every team solved this, right? I kind of
2114490	2118210	blew through the explanation, but there's a lot of code here. It's a lot to look through.
2118210	2120790	And so these are all very good teams that they would have put this together and essentially
2120790	2126030	done it midway through the day yesterday to be able to, like, solve this as well as the
2126030	2131050	next one with the resources that they had. So like I said, this one, the exploitation is a
2131050	2135050	little bit tricky. Figuring out how you have to kind of win the race is the phrase that we
2135050	2139730	use in exploitation when there's a race condition. But they did have a lot of symbols.
2140310	2145910	Now, the next challenge that they had was a little bit different. I'll just leave it up here
2145910	2151650	in this mode instead of the full screen mode. Because the next one is called flight
2151650	2155930	software freebies. So again, you saw on the score board, you can see the names, the
2155930	2159830	password manager and flight software freebies. Flight software freebies is just a web
2159830	2163750	server, right? So you can access the web server and they've actually been using this to
2163750	2168530	send things to teams. They make files available. There's things on the web server. You can
2168530	2172770	see here there's like documentation, there's tasking API information. So this is actually
2172770	2177070	kind of a part of like how to access the game. All that information comes from this web
2177070	2181730	server. But it's a custom written web server that the teams could actually use a couple
2181730	2187710	different vulnerabilities on to achieve different things. Now, again, originally these two
2187710	2191350	challenges, first you were going to have to hack the password manager, get the password, then
2191350	2196410	you were going to have to hack the web server and that would give you all of the challenges,
2196410	2199970	binaries, the documentation information that you would then use to access the remainder of
2199970	2203710	the challenges. But when they took a look at the Windows and how difficult it was going to
2203710	2207710	be, they said, you know what, we're not going to let this block things. So at the beginning of
2207710	2211850	the game, all of these downloads were available. So all the teams could get all the files
2211850	2215650	and kind of work in parallel. But they still had to solve this because there's still points
2215650	2220470	behind this challenge. So there were a couple different ways that teams could do this. The
2220470	2223430	teams were not given, unlike the last one where they just kind of had the binary and they
2223430	2227110	were just given it and told it, here you go, analyze it, here's your password manager. And
2227110	2232250	this particular one, they had to actually figure out how to even get the binary in the first
2232250	2237010	place. And so it turned out that there is a, there's a couple ways they could do this, but
2237010	2242870	the web server itself had sort of like a web security vulnerability. There was an API that
2242870	2246490	you could access. So if we look on this screen shot of it, you can see there's like a
2246490	2252050	server status page, which just includes some random information. One of which, let's see
2252050	2256830	here. Oh, no, I went all the way back to the beginning. I hit the wrong one. That's all right,
2256830	2266500	we'll scroll. Sorry, if I turn my head sideways, I think I make a, make noise. So if we look
2266500	2273760	at the server status page, does anybody see anything slightly unusual on this page?
2273760	2278060	Actually, audience participation. I like to do it that way. Let's see, does anybody, so
2278060	2282800	there's just a bunch of like, like headers and text. One of the things on the right column
2282800	2290260	has something that's like a little not like the rest of it. Does anybody see it? That's how I
2290260	2295560	know everyone's still awake. It's early, I know, on Saturday. Anybody see anything? So
2295560	2300500	we've got like has for HTTP, there's a server name, there's a document root, there's a bunch
2300500	2306720	of values and true, false, boolean things. There's this host OS that includes Linux, AWS,
2307140	2312000	it's running Ubuntu, timestamp. And what's that there at the very end? There's like this long
2312000	2318120	number. And this was sort of like a little bit of a gimme. There's actually a value. That's
2318120	2323360	actually a running pointer. It's a pointer that got accidentally leaked in the server. And
2323360	2327440	so if you're able to download the copy of the server using a separate vulnerability, you can
2327440	2331140	use that to figure out where it's running in memory. One of the techniques that's used in
2331140	2335440	computers nowadays to make your software harder to hack is that the programs are randomized
2335440	2340000	where they run. You have memory, you talk about 8 gigs of RAM in your phone or 16 gigs of RAM
2340000	2344760	or 64 gigs of RAM in your computer. Well, that memory is like a big chunk of memory and when
2344760	2348040	you load a program into it, it used to be your programs were always loaded at the same
2348040	2351800	place. So when I wrote an exploit, I could just go to the same place if I kind of hijacked
2351800	2355180	control and know what was going to be there. You don't have that nowadays. We have what's
2355180	2359740	called ASLR. We move things around. This lets you beat that. This was sort of leaking
2360460	2364780	information and telling the person visiting the website where this process was running in
2364780	2369020	memory. So by combining that with the separate vulnerability that let them include a local
2369020	2373280	file, pull something out of a proc self, if you really want to go into the geeky details, you
2373280	2377660	could proc self and pull out the memory of the current process and that gets you the bytes of
2377660	2383320	the binary so they could get the binary and they could get where it was loaded and that gave
2383320	2387080	them a lot more information to access another vulnerability. So we're not going to go into
2387080	2394380	like the full details of exactly how to exploit that vulnerability. We'll save that for maybe a
2394380	2397860	wrap up later. But I do want to show you kind of a difference because I think it's
2397860	2403480	instructive to just see, as I said earlier, you can see on this binary we have symbol names, we
2403480	2407320	know that we see a bunch of information, we knew what it was doing. If we pull up the web
2407320	2412880	server, I don't see anything readable here. I see, okay, there's a string, web server
2412880	2418420	starting up, but all of these functions just are a random address. There's no name on them.
2418420	2421920	This is what's called a stripped binary. Because, again, the computer doesn't need to know
2421920	2426720	the human readable names. And most binaries don't have any human readable information in
2426720	2430280	them except for the strings that are going to be sent to users or if there's things that are
2430280	2436120	part of the program. But the actual code doesn't need that. The code just runs on all the
2436120	2440440	addresses. So here you can see this is a very different, much harder to analyze binary. Not
2440440	2444740	only is there no symbol information, there's no details about what these functions are doing,
2444740	2449280	this is what's called a statically compiled binary. Which means that normally when you
2449280	2453340	call other libraries, you want to include some other standard pieces of code that every C
2453340	2458320	program might want to access. Like when you do a hello world, you would print to a screen,
2458320	2463360	you'd say print F or puts or something, you'd write to the screen. You're not writing all the
2463360	2466960	code to tell it how to write to the screen every time, you just tell it what text to put on the
2466960	2471200	screen. The library that does that code is like a standard library. And here it's all
2471200	2476780	compiled into one giant binary. None of which has names. So that actually makes the reverse
2476780	2480160	engineering of this binary a very different process. So when I looked at this this
2480160	2483800	morning, I was like, I don't know, how would I reverse engineer this? Well, the answer here
2483800	2487020	would be something like you might look in all the strings. You might search the strings and
2487020	2493680	you know it's a web server. So you might look for post, for example. Right? Post is an HTTP
2493680	2497860	verb a web server would use. So I could find that string, okay, let's go look for post.
2497860	2501360	All right, well that gets referenced from this piece of code. So now you'd start from that and
2501360	2504700	you'd work kind of backwards. Whereas the other binary, I could just start from the top and
2504700	2508060	just read what it was doing. I could look at the source code, look at the names. It was almost
2508060	2512360	like reading source code. This is much harder to read and it's much more work. So I really
2512360	2517320	think it's interesting to look at the difference between these two processes, like how you
2517700	2520900	would solve these two challenges are kind of very different, even though they're both just
2520900	2525980	sort of binary challenges. So as a web server, you had this local file inclusion
2525980	2529960	vulnerability. You could read yourself, you could read other files and the teams could use
2529960	2533460	that to get the flag or they could access another, there was actually a buffer overflow in the
2533460	2538840	binary with a whole bunch of other stuff beyond that. So again, those are the two easy
2538840	2544240	challenges. Those are the easiest ones. The teams did the quickest. So we're looking forward
2544240	2549680	to seeing what else they can do throughout the rest of the competition. Really quickly, I'm
2549680	2553180	just going to summarize some of the remaining tasks. The teams all know that they've been told
2553180	2556940	this. They've got to point the satellite and take a picture at a particular location, which
2556940	2560260	requires them to figure out the aiming and we'll see if they've done that overnight. They've
2560260	2564080	got to take a picture of one of those blacklisted, those banned locations, which requires them
2564080	2568720	to combine the fact that they need to figure out how to lie about where they are or where
2568720	2574420	they're aiming and then be able to take a picture. And then there's another one as well,
2574420	2580300	there's another challenge called the Iron Bank that involves some cryptography breaking that
2580300	2584640	they have to do on the satellite. They have to break some crypto properties and exploit the
2584640	2589500	service on the actual satellite itself, too. So lots more, we'll see if they do. And with
2589500	2599340	that, I'll turn it over to Kevin. If I can push the right button, it's not F5, what's the other
2599340	2605940	one from current slide? There we go. All right. Check, check. All right. Thank you, Jordan.
2606240	2612320	So in case you had missed it... Hello. Whoa. Hello. Sorry, check. So you're probably
2612320	2616100	wondering what is on this table right here and this is actually an engineering model of
2616100	2621300	Moonlighter, the satellite that's over in low Earth orbit right now. And so we started this
2621300	2627140	talk about 45 minutes ago. So it's gone halfway around the entire Earth since we all sat down
2627140	2632000	and started talking. So it's about 17,000 miles per hour. So it's going really quickly.
2632000	2635860	And Jordan had explained really well how some of the issues and challenges actually that
2635860	2640200	are faced with the satellite moving that fast. You have to plan way ahead of when you have
2640200	2644260	that limited contact window with Moonlighter. And so that makes it all the more challenging
2644260	2649560	as the first CTF in space. So again, this is a digital, or sorry, engineering model
2649560	2655160	of it. And I have some more breakout of it. So here is a chart that shows Moonlighter
2655240	2659440	a little bit up close. Again, we launched and deployed this summer. We have good footage
2659440	2664500	of that launch and deployment on our website, hackasat.com. And we also have a lot of other
2664500	2669260	tons of good content that describes previous year's challenges and a lot of educational
2669260	2675140	material as well. Hackasat here at DEF CON is the first use case of Moonlighter, but
2675140	2680640	we're certainly finding different possibilities of using it in a similar way to help us become
2680640	2686460	better and more cybersecure. So here's a chart. It's a little bit difficult to read, but we
2686460	2691640	have the poster of this over in the contest area where we're mainly located. So you can
2691640	2696340	look a little bit closer at where each of the, all the different components of Moonlighter.
2696340	2701120	It has everything that's in a real satellite, because that's what it is. Its primary payload
2701120	2706540	is a camera that's located on the top of it. You can see it right here. And like Jordan
2706540	2711500	had mentioned, one of the challenges will be taking a photo of Earth. One of the ways
2711500	2715540	you do that is by finding out where you're oriented. So in space, it's really hard for
2715660	2720420	a satellite to do that just on gravity, because there is no gravity. So it uses sun sensor,
2720420	2725820	star trackers to sort of look and orient where it's at. And then it sends commands to the
2725820	2731460	reaction wheels within it to sort of go and face and point it with good accuracy. So check
2731460	2737500	out the poster right next door and just talk and ask us a little bit more about it. Essentially,
2737500	2742900	it's a flying computer that's going 17,000 miles an hour away from you. So it's really
2742900	2748600	difficult to operate and work with. But it still makes it all the more challenging. And
2748600	2753640	here's another, more photos of it. Again, this is, that was the actual Moonlighter itself
2753640	2758120	that we took photos of. That middle photo is the stowed position. That's how it looked
2758120	2764320	before the solar array panels came out. And it's important to make sure that these solar
2764320	2769340	array panels are facing towards the sun, obviously, to do resource management with your battery.
2770520	2776020	Next slide shows... so this is what the competitors see, but it's also what all of you can see,
2776020	2781560	too. If you go to hackasat.com, we have live tracking of the Moonlighter space vehicle.
2781560	2786880	We're showing who scored points when, live updates. It also shows the next contact windows
2786880	2790680	of when people are going to be able to talk to the different ground stations. So we have
2790680	2794920	four dedicated ground stations specifically for this competition. And you can see there's
2794920	2802240	one just on the very, very end or bottom of Chile in Punta Arenas. And that's just one
2802240	2806240	of them. So most of them are in the lower hemisphere. It also shows the different areas
2806240	2810020	where they can take photos and where they can't take photos. So definitely recommend
2810020	2814520	checking out the website throughout the competition to find out a little bit more about where
2814520	2819080	Moonlighter's at. Again, it has a lifetime of about a year and a half before gravity
2819080	2823980	eventually brings it down and it fizzles up in the atmosphere like a shooting star. But
2823980	2828480	for now, if you want to keep tracking it, just go to our website. And to close things
2828480	2831720	off, I'll invite Steve up here. Thank you.
2835510	2841330	All right. So quickly wrapping things up. A lot of good content, still a lot of competition
2841330	2845050	to be had, still a lot of things we're getting back from the satellite. So we're going to
2845050	2848410	have some more things to expose pretty soon. But I just wanted to give you the schedule
2848410	2855050	for tomorrow that's going to be really important. Whoops, not that. All right. So tomorrow at
2855050	2857790	noon we're going to announce the winners. So we already talked about why we're going
2857790	2861390	to announce the winners tomorrow and we can't do it earlier. But also we're going to have
2861390	2864750	the game designers, we're going to have Jordan, and all the teams are going to be here. But
2864750	2868710	mostly the game designers are going to talk about some of the, in more detail, what Jordan
2868710	2872410	couldn't expose today. So it's going to be a really, really deep dive technically. So
2872410	2876830	if you're into that, please join us. And our announcement, or the special guest will be
2876830	2880290	announcing the winners. So that will be kind of cool also. So much appreciated for your
2880290	2882050	time and we look forward to seeing you next door.
