Ladies and gentlemen, welcome DARPA's Cyber Grand Challenge Program Manager, Mike Walker. My name is Mike Walker. I'm the Program Manager of DARPA's Cyber Grand Challenge Program. January 13, 2013, I came to work at DARPA with the mission of exploring revolutionary autonomy in the cyber domain. And the idea, very simply, was to bring a computer to play in the biggest hacking contest on planet Earth. DEF CON captured the flag. A contest pioneered and perfected at DEF CON for over two decades. It's going to be played right here tomorrow. In 2013, no computer existed that could have done such a thing. And today, these seven exist. We will now broadcast the world's first all-machine hacking tournament to the world. First prize is two million dollars. These machines behind me were built atop decades of program analysis science, engineered over two one-year stages of competition, and built by pioneers. Program analysis scientists, hackers, and engineers joining us today on your front left. So tonight, these machines will play capture the flag against each other. Tomorrow, we hope the lessons learned will change the field of computer security. Our announcers will call today's capture the flag round by round. Thank you. Live from the Paris Hotel in Las Vegas, Nevada, it's the DARPA Cyber Grand Challenge final event. And now, please welcome your cybercasters, Hakeem, Vizzy, and H.J. All right. Welcome, everyone, to the first ever fully automated cybersecurity automated competition, the Cyber Grand Challenge. I'm your host, Hakeem Oluseyi, and if you know anything about me, then you know that I love doing serious science, I love sharing the information with everyone, and I love having a fun, great time while doing it. And I could not complete that mission without my co-hosts. So today, with me, I have two hacking experts to help guide us through the competition. Please welcome a former team leader of DEF CON's capture the flag, Invisigoth, known as Vizzy. And standing next to him is a founding member of the legitimate business syndicate, and he is, to beards, what Vizzy is to ponytails. Hawaii John, or H.J. And by the way, H.J. is the legitimate business syndicate, is the organizer for this year's capture the flag competition. So how do you guys feel being here, organizing this event? Pretty good, man. I was definitely a bit skeptical when Mike Walker told me that an astrophysicist would be our co-host, though. I don't know, man, what do you think about it? I don't know, he kind of brings a certain gravity to the situation, but I'm still kind of skeptical. Oh my god, that was groan-worthy. Thank you, audience. All right. Well, these guys have business to do, so gentlemen, take your places at the desk and in the team lounge, and I'll join you later. So now my job is to deliver some information to you. So what is the Cyber Grand Challenge? It is the world's first all-machine hacking tournament, developed under the Defense Advanced Research Projects Agency, also known as DARPA. So what we'll see here today is much more than the world's first all-machine hacking tournament. As Mike mentioned, the lessons learned could lead to a world where computer viruses, malware, and attacks are discovered in a matter of weeks, days, or even seconds. Right now, it takes security specialists an average of 312 days to discover software vulnerabilities. It can take weeks, months, or sometimes years for these vulnerabilities to be fully fixed across all exposed systems. Now, that leaves plenty of time for malware makers, ransomware developers, and other bad actors to exploit the vulnerabilities and do damage. The Cyber Grand Challenge was designed to improve the current state of cybersecurity by testing the concept of automation for the discovery and repair of software flaws, a technology that does not currently exist. DARPA started the Cyber Grand Challenge in 2014 and opened up competition to all competitors. More than 100 teams took up the challenge. Through a process of qualifying rounds, we now have seven finalists who will compete here today using automated systems designed to hunt for vulnerabilities, patch them, distribute those patches, and search for weaknesses on competitors' systems. For some of you, that process should sound familiar. The CGC is based on Capture the Flag, the hacker game played here at DEF CON and throughout the world by scientists and cybersecurity specialists. You'll hear more about Capture the Flag later from my co-hosts. But unlike other Capture the Flag events, people won't be playing the game live. Instead, the systems built by the finalists over the last two years will do the work in a battle of the bots. Now it's time to join the Cyber Grand Challenge and see where the world's first all-machine hacking tournament takes us. We have seven teams competing with each other in the Cyber Grand Challenge final event this year, and we'll meet each one of them in just a minute. But first, I want to tell you what's at stake for today's teams. As Mike mentioned, the winning team will take home the top prize of $2 million. The second-place team will receive $1 million, while the third-place team will get $750,000. But we know what they're all really playing for, and that's bragging rights. Now let's meet the teams and the systems that they've built. These teams reflect different types of communities, from academic researchers in the field, to security tech giants, to veterans of the Capture the Flag circuit. Each team brings specific strengths to the event. Each has experience in designing an innovative bot that achieves the difficult task of automatically finding and fixing vulnerabilities found in software code. There's no clear best strategy going in, so the teams can explore multiple approaches, any one of which could result in important improvements in cybersecurity technology. Now my co-host Vizzy has the honors of introducing the teams. So it looks like as Hakim is making his way over here and we get the teams ready to go, we've got each of the teams has their own systems, their own colors, and hacking out of the sky blue corner is a CRS that leads a powerful fleet of selective symbolic execution engines, binary instrumentation tools, and fuzzers on a historic quest to find cybersecurity for mankind. Galactica. Galactica, built by CodeJitsu, a team of researchers from the University of California at Berkeley, Syracuse University, and Cyberhaven in Luzon, Switzerland. And hacking out of the yellow corner and consisting of mostly custom software, utilizing static analysis, fuzzing, and automatically generated structured test cases, that's Jima, developed by the two-person team of CSDS. Hacking out of the red corner and employing aggressive gameplay and anti-analysis tactics, featuring a proprietary hypervisor-based vulnerability prover, PySysemu. Symbolic emulation, the GRR fuzzer, and custom static analysis is Rubius. Rubius is built by DeepRed, a team of specialized engineers from Raytheon. Hacking out of the green corner, it's containerized, replicated, and ready to scale, and definitely able to solve CADET. It's Crispy. Crispy is built by the team Dissect. Hakeem, why don't you take it away and introduce the next few teams. Thank you, Vizzy. Hacking out of the orange corner, coming from a vulnerability discovery background, where it analyzed over 30,000 Linux programs and found over 10,000 bugs and vulnerabilities. Now, with added defense and patching capability for the Cyber Grand Challenge, Mayhem. Mayhem was built by the team for AllSecure, originating from Carnegie Mellon University. Hacking out of the purple corner, fueled by the Angry Binary Analysis Engine, entangled in mind-boggling hacks, and held together by tears, duct tape, and bubble gum, and ready to make binaries dance, the Mechanical Fish. Mechanical Fish, built by the team Shellfish, a ragtag group of student hackers from UC Santa Barbara, who fed exclusively on sushi for a month, and never had a moment of cold freeze. And hacking out of the teal corner, and built by a team of cyber specialists, it's a high-performance, scalable system that harnesses 2,400 cores to power 210 high-performance fuzzing pods, capable of 1.8 million fuzzing ops per second, feeding a dedicated bank of binary analyzers, patch generators, and binary rewriters to repair and challenge binaries, Zandra. Zandra was built by TechX, a team from Grandma Tech Incorporated at the University of Virginia. There is so much amazing technology on stage that it is the infrastructure of CGC. We made this video to walk you through it. There's an enormous amount of computational power ready to be unleashed here at CGC. Beneath the stage are huge amounts of electricity and water needed to power and cool the supercomputers on the stage. 300 kilowatts of power, that's enough to power one and a half city blocks. 180 tons of water flow through these pipes at a rate of 200 gallons per minute to keep the computers on the racks liquid-cooled at all times. The entire stage is air-gapped to protect the data and the systems. The air-gap also validates that there's no other outside influence and no human interaction. Everything that happens inside the air-gap is autonomous. Data flows through the air-gap through an air-gap robot that literally reads Blu-rays of burn data from inside the game. The air-gap robot physically moves the Blu-ray across and outside the air-gap, then drops it into a reader that goes into our scorers and visualization. At the center back of the stage is a system of computers that's a digital referee. It issues the challenge sets, communicates to the bots, and handles the scoring and systems. The only humans in the game are inside the air-gap. These are our human refs. That was the design. Now we come to another important of this Cyber Grand Challenge final. While the game is being played autonomously by the bots, there are actually humans inside the air-gap, and that's our team of referees. So that raises the question, if the game is being played by machines, why do we need referees? Basically the refs are there only to make sure that the systems are doing what they're supposed to, that the hardware is functioning correctly. They have absolutely no hand in the game, no influence in the game. It's running completely autonomously. So basically they're there as sort of a safety net for hardware failures or any kind of circumstances like that. Cool. So now let's meet the dedicated team of referees. Would you please welcome Tim Vitus. Tim wants everyone to know that absolutely no IPv6 addresses were harmed in the creation of today's event. Chris Eagle. Chris Eagle is the only person I know who writes x86 machine code faster than he writes Python. Brian Caswell. For Cas, it's a labor of love. He's written more DEF CON CTF challenges than anyone on the planet. Jason Wright. Jason's a former OpenBSD developer and member of the winning CTF team at DEF CON 8, Acme Pharmaceuticals, known as the Scourge of the Northwest. Mike Thompson. Uniquely qualified to ensure the game integrity via his experience developing the only class A1 trusted computing system. Holt Zorenson. Holt is a two-time winner, four-time organizer of DEF CON CTF, member of School of Root, DD Tech, the Shmoo Group, making him nearly ancient in internet time. Patrick Finnegan. Patrick's built seven world-ranked supercomputers, including the 28th fastest on the planet, making him uniquely positioned to ensure the performance of the game. Josh Bird. Josh is a fixer who's cool as a cucumber and thrives under pressure, a total jack of all CTF trades. Thank you, referees. So, Vizzy, we've already mentioned Capture the Flag, but can you tell us how this game is going to be played? Sure, absolutely. So, this game is modeled after human CTFs that have been played in years previous. So, in those games, it's a race to discover vulnerabilities in totally custom software that's been deployed just for those challenges, just for those gaming environments. And over the version that's going to be played by the computer systems here, we're calling those bots. So, they're basically playing this similar game completely autonomously. Each team's bot controls a host that they have to defend. So, they run an identical copy of each of the pieces of challenge software that we roll out, and they're responsible for being able to introspect that, discover vulnerabilities, and basically be able to both patch, defend, and prove vulnerabilities in other teams or in other bots' code. So, the current game is played, the CTF at DEF CON is played by the best hackers in the world. This is being played by the first hacking machines in the world. Wow. So, these machines, these bots, are supercomputers. Absolutely. The bots are totally fully automated, and they're all simultaneously given all of the challenges. So, basically, they are acting completely autonomously through the entire scope of the game, which is really, really unique. That's really unique, and it's new. Is that right? Absolutely. All right. And these challenge sets are the software problems that the bots have to solve? Yeah. So, bots, not humans, are tackling the challenge sets, which are basically in similar, similarly to other CTFs. They're modeled after real-world services. So, these are pieces of software that speak protocols like your mail server would or like a web server would, and they're basically modified services specifically for CGC. We're going to be rolling out a hundred challenge sets, releasing every five minutes. So, basically, as these challenge sets roll out, the bots are going to have an opportunity to try to discover vulnerabilities in them and patch their own services. So, there's a few select ones, six challenges, that we've called rematch challenges. Basically, these are challenges that are historically significant because they're modeled after challenges that were scourges of the internet or previously very famous vulnerabilities from years prior. And so, we named them rematch challenges because we have the opportunity to fight this battle again. So, we're talking like pictures of Kim Kardashian here. More like we're talking about things like the slammer worm that took out the entire internet for a week back in the day and things like that. All right. So, we're talking about some seriously breaking... Absolutely. Yeah. So, we're super excited to see what the bots do with this because this is sort of the area where we get the opportunity to see what this technology would have done if it had existed back then. Right. Okay. And do we need to worry about what these bots do in the wild? And let's start with the computer's operating system. So, the computer's operating system that's being run for the challenge binaries is an extremely secure platform. Basically, DARPA developed a custom operating system called DECREE, which stands for the DARPA Experimental Cybersecurity Research and Evaluation Environment, which is a mouthful. But basically, what it means is that a customized operating system that's highly instrumented and is slightly reduced in scope from the normal complexity has been developed such that the binaries that are running inside of these challenge binaries that are running inside of the game and the protocols that are being spoken by those things have no shared code with anything on the internet and don't speak anything that could actually communicate correctly with anything on the internet. Oh. So, basically, it's an open source extent operating system extension that then we use to monitor what's going on inside and is extremely instrumented so that we get a massive amount of data about what's going on inside the programs that are running. Okay, so it's secure, and even better, they don't have human voices because intelligent machines with human voices tend to take over the universe, right? Right. So, how do these bots interface with the challenge sets? Sure, absolutely. So, the bots have to learn via program analysis. They have to actually either generate inputs fairly randomly or guided with fuzzing or do something like symbolic analysis to determine the actual data structures necessary to these protocols. So, not only are they trying to find the bug, but they have to be able to produce the inputs that would reach that bug. So, basically, over the course of reverse engineering these things in an automated fashion, right, they actually have to learn to speak the language or protocol of the individual challenges. Each one is different. So, we wouldn't want to, as these services are rolled out, they have to speak to them similarly to how real production services would be in the wild. So, the protocol is a language, and the services basically have to continue to speak that language correctly, and they also have to do it quickly enough. So, just like services on the internet, right, you could patch things to a point where they don't perform correctly, right, and it would disrupt your mission-critical Facebooking. Okay. So, Vizzy, what does it take to win the Cyber Grand Challenge? Sure. There are basically, like we talked about, three primary tasks that you need to carry out to win, right? In the discovery of a vulnerability, you're going to need to actually defend against that vulnerability, ideally rolling out patches, which might actually be highly targeted or might be sort of general binary hardening techniques. You're also going to need to maintain the availability of your services. So, like we said, they have to perform and they have to function correctly. And then the third thing that they're doing is basically proving that those vulnerabilities are present in the other team's software. So, they have to generate inputs that will exercise parts of that vulnerability to prove that they have found it. So, let's take a look at the scoring components a little bit more closely. Specifically, security is basically the bot's ability to defend its own service from other people proving that it's vulnerable. They patch binaries to prevent that. They also can deploy IDS rules. So, the bots are capable of using that protocol data that they've learned to formulate rules about what content is correct and deny content, deny connections that are trying to input data that they think would be harmful. So, in addition, patching incurs downtime. Just like in the real world when you want to roll a maintenance update out into production systems, you basically end up incurring a cost. And so, in this game, that cost has been modeled as a downtime when you roll out either a patched binary or a new IDS rule. So, your security score is basically one or two points per challenge set per round. One, basically, if you've actually had a vulnerability proven against you. And two, if you've managed to maintain your security. So, your max score per challenge set per round is actually two times 100. So, basically, 200 points per challenge per round in security. So, moving on. Evaluation is the proving of vulnerabilities against other bots. So, there's a concept that we call a POV. And a POV is a proof of vulnerability, which basically shows that you can give input to that system that will demonstrate sufficient control over the system, but not having to actually carry out an exploit. So, this is a really new metric, actually. This is something that's been invented for CGC. But I actually kind of hope to see pervade the community. Because traditionally, to show whether or not something is vulnerable, a person, a researcher, has had to actually implement an entire exploit to prove that, right? So, in our POVs, we effectively create a situation where showing sufficient control over, for example, program execution flow or being able to read arbitrary memory from the program, if those two situations exist, there's a good chance that it's exploitable, right? It's not going to be true in every case, but it creates a metric. So, in creating these POVs and throwing them, they can score between 1 and 2 points, again, per CS per round, which gets multiplied by 100, being 200 per... But that's a good distinction. Because typically, the average user is thinking about malware. They're thinking about something that has already taken advantage of a vulnerability. Absolutely. And what they're doing here is that they're just proving the vulnerability. Right. They're identifying them. Exactly. Showing that they exist. Yep. And so, we hope that this could become a metric, basically, for future contests and for the evaluation of software in general. Wonderful. So, third on the list of components in the overall scoring is availability. The patches have to function normally. We all know that you could disable all functionality and software would be perfectly secure, right? But the digital refs are polling, the digital refs being our scoring system, are polling these services to make sure that they're still functioning correctly and that they're performant. So, the teams have a very slim margin by which they can disrupt the performance of these applications before they'll start losing availability points. The availability score is between zero and one point per round. And availability ends up being a percentage multiplier. So, anyone who's familiar with some of the human CTFs of years prior, availability is a really important element because it ends up being a multiplier that could cause you to get no credit for all your other work if your services aren't available. This is something that's really important in the real world, right? Because a particular bank, for example, finds that their ATMs have a vulnerability. In order to fix it, they have to take all their ATMs online. Potentially, yep. At least for a time window, yep. Absolutely. Exactly. So, being available is important. So, how is the total score calculated? Yep. So, successively over the rounds, those scores for all of those individual challenge sets are totaled and that's basically a team's score. All right. So, at the end of the day, these bots are autonomously making decisions regarding the best strategy to pursue, factored in trade-offs among security evaluation and availability. So, they're making these decisions all on their own. If that's true, that's a game changer. Absolutely. Autonomous reasoning about vulnerabilities and being able to actually take action on those things that have been reasoned would be a major, major breakthrough. And so, CGC is here basically as a catalyst to try and spur industry and to try and spur on and inspire people to carry this research further. Cool. Thanks for that explanation, Vizzy. And tonight, we're going to have unofficial results. Verification of the various bot scores will run overnight to determine the official winner, which will be announced tomorrow morning at the opening of the DEF CON conference. Everything you might want to know about the Cyber Grand Challenge and its challenge sets is used today or is available online. You can download the Cyber Grand Challenge sets and the results from today's final event at this URL. The URL is www.cybergrandchallenge.com. So, these machines started playing this morning and they're playing right now. So, what happened in the very first rounds? So, let's go down to the lounge where H.J. is standing by with all the participants. H.J., how's it going? It's going fantastic. Rubius, we all saw that for a single challenge binary, your CRS developed four different POVs. It sent three to three different teams and one POV to the other three teams. What strategy is this that you employed? So, when we detect that a crash occurs, we'll take that input that developed to that crash and we will try to figure out what amount of control that we have over it. So, all depending on the type of control that we have, we'll generate a variety of different potential POVs for them. And then each one we evaluate to see the quality of the POV. So, all depending on what service the competitor has fielded at that point, we'll evaluate it to determine what's the best of the POVs candidates that we have selected that is appropriate for that particular service. So, all depending on what the competition, the field, looks like, we'll rank the most appropriate one to field, to send out for them. That's incredibly interesting. Nice. So, we also have with us the team captain from Mayhem to talk about the scores from round three. At this point, after round three, Mayhem is in the lead. So, is this something you expected or what do you think? I was certainly hoping that he would be in the lead. We have a system that's able to find POV very quickly and make sure the pipeline for finding a cache to generating a POV is as fast as it can be. Excellent. Thank you. I appreciate it. So, it sounds like things are heating up down here. Back to you, Hakeem. Showing us some of the results from round three, HJ. Vizzy, why did HJ address round three and not round one? That's a great question, Hakeem. So, basically, the first few rounds in the game end up representing a microcosm of what happens every time a challenge set is released. In round zero, the challenge set goes out, and the bots have the first opportunity to take a look at it but haven't really had a chance to react to it yet. So, then, in round one is basically the first time that the bots can throw a POV. So, they haven't even had the opportunity to patch yet, but if they have managed to reason about a vulnerability in that piece of software, they can exercise it in round one and successively in the second round after the release of each challenge set. So, in round two is the first instance where the bots can patch, which they may choose or choose not to. But the CS will be down and unavailable for that round, which means that they also can't score, they can't prove against other systems. So, then, once round three comes around is the first time that we should see patched challenge sets come back up and become available again. So, once the CS is available, they can score points for that round. That sounds excellent. That sounds like the crowd liked it, too. So, I'm seeing some awesome visualizations right there next to you, Vizzy. So, what's going on there? Yeah, so, this is one of the custom visualizations that was developed for CGC called the arena view. And this is a super, super data dense view where we can basically see nearly everything that's going on inside of the scoring round. This super busy view that you can see here in front of us actually contains the real data, data-driven visualization for every one of the service poles, every one of the POVs being thrown, potentially every one of the POVs landing, right? So, basically, in this viewpoint, we're going to end up breaking out a bunch of this for you guys to show you each of the elements of this particular viewpoint. Okay. So, tell me what kind of challenges these bots are facing. Sure. So, to really understand the challenges that are being faced by the bots and specifically in the program analysis perspective, we kind of have to go back in time. In 1936, Alan Turing demonstrated a concept called the halting proof, which basically states that in a generalized self-contained computer system, it's impossible to actually determine whether or not it's ever going to halt. Sounds fairly simple. But basically, what that means to algorithms is that the state space is potentially infinite. Bots attempt to automate knowledge. And so, they have to codify approximations to these solutions that are ultimately potentially infinite and potentially impossible. Wow. So, it's really difficult to visualize infinity. So, I imagine that's why we have these awesome new visualizations. In my field of astrophysics and data science, right, visualization of data is a field within itself. So, what do we have here? So, this is the actual full arena view that Void Alpha has developed. We can see this massive number of, like, this massive amount of iconography. We can see this, all the service poles in effect. So, basically, in the arena view, it illustrates everything that's happening inside of a given round. Okay. So, if we move on, we can get a viewpoint that shows just one scorecard from one team. And as you'll see, the bots actually have colors and iconography for each of them. And those colors will remain consistent throughout the entirety of the visualizations. So, anytime you see that color, it will be associated with that bot. So, here we can see one scorecard broken out. Every one of these little hex tiles that you can see here, these little hexagons, represents one of those challenge sets, one of those binaries. So, basically, the gist of it is we can see the state of each of those things through the little hexes that are on each bot's scorecard. For example, here we can see that this one is down that cycle for patching, or that this one has been successfully proven a vulnerability against by the yellow team. So, if we break down these individual hexes a little further, we can see, actually, the three components from the scoring system that we talked about before. Security, availability, and evaluation are each represented for each of those hex tiles, right? So, this very, very data-dense view starts to occur, where if they've maintained security for that challenge set per round, we'll see this sort of flag border thing occur. And if it's been successfully proven as vulnerable by one of the other bots, we'll see that white border go away. Similarly, availability, if the tile has this healthy sort of sphere in the center, that means that it's running and available and online. And basically, as that either ceases to perform correctly or ceases to function correctly, we'll see that shrink down sort of toward this smaller black hex. And then one more is basically this evaluation. So, this sort of little pie slice basically represents what we're going to see as a team successfully proves vulnerabilities against all the other teams. They'll take that little section of the pie that's the color from that team's bot. So, we're seeing a lot happen in this visualization that we have here. So, how am I supposed to understand all this? I'm not a coder like you, man. So, how do I see what's happening inside the code? So, we have one more set of iconography to go through for the arena view. But the gist of it is you'll see these little service pole guys, as well as the proof of vulnerabilities being attempted, flying in from the scoring system that's at the center. So, as those are going in, basically the service poles will stay green if they're actually successfully functioning. And if you see them turn red right as they're reaching those individual challenge sets, we'll see them, we'll be basically registering that that service is down. Okay. So, we can also see POVs being thrown, but we'll talk a little bit more about that later. All right. So, we get to see from this view who's owning who. Or as you nerds like to say, who's pawning who or something like that, right? Yeah. Yeah. The rematches are special gold hexes that we'll see. So, these tiles are basically representative of those challenge sets that represent those historically relevant vulnerabilities that have been being discussed so far. So, the patching, we have a way of visualizing when it happens and we have a way of looking at when it works well. So, what does a bad patch look like? Absolutely. So, one of the things that we've developed for this particular, entirely just for CGC, is a view that we like to call the trace view or the filament view. And the filament view basically allows us to abstract upward and take a look at a larger scope of what's going on inside of the executable at the time. So, the gist of the trace view is that the individual sections of code flow are actually projected over a Hilbert curve, which maintains spatial relevance. So, we see code flow actually progress through the areas of memory and if something is a section of code that's far away or is close by, it'll end up being close by or far away. So, as execution continues through time, we can see basically some of these icons occur and some of these structures develop that'll actually show us things like state machines and state machine parsers and we'll also see things like loops occurring. So, little sections like this where we'll see tight little sections of code that look very repetitive are actually oftentimes processing loops or I.O. loops. Additionally, along the trace as it executes, we get to see the individual icons that represent the syscalls that we've spoken about being present in the decree platform. So, the six or so syscalls that are available in the decree platform will each be indicated along the trace view or along the filament view as it executes. So, if we wanted to take a look at some of those syscalls that are available, basically we have a transmit and receive from the network side of things. There's also a randomness or entropy and then we'll also see things like program termination when we've got the program terminating correctly here. All right, well thank you, Vizi. So, now that everyone here at home, now everyone here in the and everyone who's watching on the internet have had some insight into how the CGC works, let's take a look at a conversation that happened today between H.J. and team members right after the competition started. If anything goes wrong during our testing, right, we could go and fix it and whatnot, but everything might fall apart here. Let's hope not. What type of fuzzing stuff did you use? Is it informed fuzzing? Is it generic dump fuzzing? It's pretty much a black box. We'd be happy to be this historical moment. I think this is, you know, a bright point in the new future that we should have. We should have fully autonomous systems that are there to protect our software. The fuzz size was never an issue for us. It's more about the memory. It's the memory. Nervous anticipation? I doubt it. I'm just going to get a good night's sleep one of these days. So, you can see the first few letters are CRS, of course. I see the blue lights blinking. It's doing work. Yesterday morning it's like something didn't work and we were like working really busy to solve the issue. Now it seems to be working, at least. We use a common language, the hacker's first choice, Python. It's really sweet. Yeah, very impressive. I mean, I didn't know you could make like server x look this good. You know, also we have a affinity for bacon. So, we made sure that Crispy could make bacon. It's intimidating. I'm also very thrilled to be in this exciting moment. I feel like we are in the future. I saw the picture yesterday you posted on Twitter. Was it you that was upside down in your chair? Yeah. There's a lot of really exciting game strategy, the game dynamics that we could learn during round time. I hope we don't crash and burn. I just want to play. That was a great video. Now, we've heard how do bots play defense. Vizi, how do they play offense? So, this concept that we've been talking about with the POV, the bots have to actually generate the traffic that's necessary to exercise those bugs. So, as they demonstrate those vulnerabilities, they'll be able to score points and as long as their services are available, they'll be able to throw an attempt to prove a vulnerability. Each POV can be thrown up to 10 times per round. So, for example, Rubius has thrown a successful POV versus one of the challenge sets called Thermal Controller. So, what we're seeing here is definitely the round output for round three. So, as you can see in the very, very busy view, we've got several teams that are down for patching in round three, but we've also got several teams that have successfully thrown a POV. We can see, for example, Zandra right here and several of the others. Anywhere we see these little pie slices coming in, have successfully thrown POVs and evaluated against the other teams. As well as the patches being deployed, for example, here with the little gear icons showing those services being down. All right, so walk us through what a good POV looks like in filament view. Sure, absolutely. So, in this instance, we'll have two filaments and they basically begin with the same trace data. So, the traces will show, ultimately, that the data that's being ingested by them for the binaries is what actually causes the code to go in different directions. We see, actually, two binaries having data being ingested right now, where it's basically the same binary receiving a POV, one POV from one of the teams as well as from another. And in the overlap, we can basically see that the code flow diverges very late on, about here, and we end up being able to see it's actually managed to execute and terminate correctly. This one is successful. So, we see him actually gather the data and transmit it out the network. So, that's what this icon means right here in the trace view. And then we see it execute and terminate correctly. Versus a failed POV, which is basically the other one, which we see just executing correctly and terminating, rather than actually transmitting any flag data back. Understood. So, you can have an attempt to patch that is successful or unsuccessful. You can have a POV that's successful or unsuccessful. So, in the example of the failed POV, actually, it looks like they may have actually been fuzzing rather than trying to use sort of a scalpel-like approach to exercise the vulnerability. And so, they may have been doing that. We have to sort of interpret and guess what the team's strategy is in doing something like that. But it could be that they're trying to give unknown inputs to try and utilize the system to force that other bot to do all that extra analysis work. Understood. So, what does all of this mean for the competition, then? Yeah. So, basically, the competition is going to progress as these challenge sets roll out. And we will be able to break out and show you some of the POVs and some of the code divergence that occurs over the course of the successive rounds. All right. So, let's take a look at the round four scoreboard. Who is ahead? It looks like we have Rubius in first place with 12,000 points. And we can see, actually, it's still a very, very close game. We've got Mayhem and Gima and on down. But, basically, it looks like everybody is at least performing correctly. We can see through the right-hand side, if you look down over here, those same colored areas that we spoke about that basically represent the availability, security, and evaluation of each of those bots is basically showing that all of them are doing quite well. There's a little bit of availability problem, potentially, on Zandra's side, because that's represented by the green line. The red line represents each of those bots' evaluation points and how well they're scoring in that. And the blue line represents security. So, that's one of those things where we'll inevitably see availability become a very important element of the scoring. So, Mayhem, in this next scoreboard seven, we will actually see Mayhem overtake Rubius to take first place. And it looks like, again, it's still a very close game, but it may actually be Mayhem's security approach that's allowing them to take the lead at this point. All right. So, Mayhem and Rubius are battling for the lead, and it looks like Gima's right behind them. Absolutely. So, let's look at the round ten. Let's see what's going on. Let's progress the game. This is round ten. So, we see all these arrows coming in, and we see people taking stuff from others. This is a lot happening, but we know that our leader is... Mayhem. Mayhem. Yeah. Yeah. Well, with a name like Mayhem... They would have to... Yeah, absolutely. You better do well. So, from rounds zero to ten, our bot leader is Mayhem. They pass Rubius. So, HJ, what do their teams have to say about this change of events? Actually, I have with me here the team leaders for Rubius and Mayhem. So, we just saw on round ten that Mayhem overtook Rubius for the lead. What do you think? Well, I think this is a very exciting competition. So, it's a little nerve-wracking, but I'm glad that it's closely contested. And it's only... What was that? Round ten. I think it's round ten out of about 90 or so. So, we're only one ninth out of the way. Do you think you'll be able to keep the lead? Well, I hope we stay competitive. It's a long competition. What do you think about the current switching back and forth between first and second? Did you expect a close call for the lead? Yeah, we expected to have great competition, and we do. We hope that we keep, you know, working well like that. Yeah. Thank you. Thank you both. So, that's what's going on down here, Akim. Back to you. All right, and thank you team members. I'd like to introduce everyone to a special part of this Cyber Grand Challenge that we talked about a little earlier, and these are our Rematch Challenges. We've created challenge binaries inspired by real-world vulnerabilities that have shaped the history of the internet and how cybersecurity has evolved along with the internet. Our team's bots are starting with no knowledge of the custom vulnerability protocols we've devised, and their challenge is to find, patch, and prove them. The team's systems have learned to speak languages they knew nothing about, and the language we have chosen for our special challenge represents unique chapters in cybersecurity. Let's start by taking a look at two of these Rematch Challenges. Our first Rematch Challenge is called Secure Server, and it was inspired by Heartbleed. Absolute memory disclosure bug in OpenSSL, and at the time of the discovery, Heartbleed became promenaded, generating a lot of media coverage and breaking through to mainstream public awareness. OpenSSL, we talked about before, is a software library used for securing communications from eavesdropping. The discovery of Heartbleed called into question the security and privacy of an estimated 66% of encrypted web services. This was a different type of vulnerability because it was very simple and did not depend on the execution of code. We turn to Debbie Nuttall to tell us more about these particular bugs. An extension was written in OpenSSL to allow computers to say, hey, are you still there? So we know the server is still up, the connection is still there. So a client can send a packet to the server. The server just repeats that data back to the client. Yes, I'm still here, here's your data. Well, there's a length field that comes at the beginning of that data. So the client says, I'm going to send you 10 bytes, here's your 10 bytes. They go to the server. The server says, oh, you sent me 10 bytes, here's your 10 bytes. There was a vulnerability, an error in the way that was written. So a client could send a packet that said, hey, give me 400 bytes, but it only had 10 bytes on it. The packet comes in, the server goes, oh, you said you sent me 400 bytes, here's 400 bytes. Here's the 10 you gave me, and then here's 390 bytes of secrets. And it sent that packet back. That was Debbie's commentary on the implementation of something that was basically modeled after the Heartbleed vulnerability. And the Heartbleed vulnerability was unique because it was a memory disclosure only bug that still had dramatic ramifications. So in the instances where you're looking for crashes to find bugs, if something's doing memory disclosure, it may actually not crash. And so that can occasionally make those vulnerabilities more difficult to find. But in this instance, it had such a significant impact because that memory disclosure, that additional data that you could request from the system, like she mentioned in the video, was actually disclosing key material and sensitive data that made it so that you could actually take advantage of it without having to gain arbitrary execution on the platform. And this is one that was so recent that we all have... Recent memory of it, yeah. Recent memory of it, we may have been impact. So what are the real world implications of the rematch results? So being able to actually patch this would mean that those systems would be able to get that patch deployed very quickly. And the OpenSSL library specifically is embedded in so many pieces of software. So many embedded platforms, embedded Linux and things like that are running OpenSSL, even inside of IoT, Internet of Things, and all the hype that we hear about. But this one really actually is that pervasive. Our second rematch challenge is called the Address Resolution Service, which was inspired by a software flaw that led to the SQL Slammer worm. SQL Slammer exploited a buffer overflow in Microsoft SQL Server in January 2003, spreading so rapidly that it infected 75,000 machines within 10 minutes. SQL Slammer hit the Internet when the web had already become a part of daily life. And what's really interesting about this one is that the cure, or patch, had been released six months earlier. But so few patches had been installed that most everyone was still vulnerable. Now let's hear what Debbie Nuttall, author of the Rematch Challenges, has to say about Address Resolution Service. In 2003, the SQL Slammer came out. SQL Slammer was a single packet that ground the Internet to a halt in 10 minutes. There were servers that were running Microsoft SQL Server. This one packet could come in and cause the server to send out packets to all the other servers. So we had this flood of packets bouncing around the Internet so fast, it actually overwhelmed routers and critical infrastructure of the Internet. And those systems ground to a halt and shut down. I like the SQL Slammer bug for a couple of reasons. For one, it was just so devastating. So rapidly devastating. One of the reasons why we need this CRS technology coming out of CGC is that once an attack comes out in the real world, we need to be able to respond in computer time. We don't have time for a human to analyze it. We need computers that can do this just as quickly. So 10 minutes. Can the CRSs find and patch this bug in less than 10 minutes? What are some of the stories around these real-world vulnerabilities? Absolutely. So Slammer, I think anybody that was involved in information technology back then remembers. It was so virulent because, like Deb mentioned, it was a single UDP packet basically allowing it to spray and not even really have to form actual connections to the systems as it spread. So basically it was a really bad week for sysadmins or anybody involved in information security. And so as we roll out these special challenge binaries, they come into the game and then they exit the game at a certain point. So if they don't get them, they don't get them. Yep, and that's definitely true. So each of the challenge sets is in the game for only a set amount of time and we will see hopefully some of them manage to POV and squeak it in even at the last couple of rounds. All right. Our next rematch challenge is called File Explorer and is modeled on a flaw commonly known as the link LNK bug. The link bug is a shortcut icon vulnerability that allows an attacker to execute a malicious file by specifying its location. And it can be activated quite easily by users. Microsoft patched that vulnerability in August 2010, but in January 2015, a researcher discovered that even patch systems were still vulnerable to the same attack. So the vulnerability that I chose to recreate for this CGC challenge was that bug that allowed a USB drive to be plugged into a Windows machine and execute code without any human interaction. You plugged it in. Now, as soon as the window opened to show you the contents of the drive, you didn't have to double click on anything. You didn't have to run anything. You didn't have to do anything at all. The vulnerability was triggered and the malicious code was run. As long as Windows access to that drive, the malicious code could run, a backdoor could be installed that could hide any additional files that they wanted to. So the other thing that's really interesting about this bug, Microsoft patched it so that everybody's USB drives were secure. So we thought. In 2015, a security researcher was analyzing this and found out that the original patch from Microsoft was not fully effective. There was a workaround. So the original vulnerability could still be accessed. So with the recreation of the original link bug, the challenge that we've created includes that first patch from Microsoft. So what's interesting about that vulnerability to me is that hundreds, if not more, security researchers looked at this. They looked at this vulnerability. There are papers out there about it. They looked at the patch, they analyzed it, and they still didn't see that it was still vulnerable. So what I want to see when I've recreated this patch version of this bug, I want to see can the computers do better than humans did on that challenge? So this is one of those instances of possibly developer implemented functionality that they thought was a good idea but didn't necessarily think through all the security ramifications. And one of the really interesting elements about this is that it was patched but not actually totally correctly patched. So in addition to these machines having to generate patches, we're also seeing sort of the previous evidence of that process being difficult even for humans. And so one of the fascinating elements about this is that with such attention being paid to that, hundreds of sets of eyes of security researchers and security professionals and developers were on that bug and didn't see it happen. And it took five full years before it was revealed again. So Vizi, how did the teams do versus address resolution service? Maybe you can help me there. So the address resolution service was basically the vulnerability that was modeled after the SQL Slammer like we were talking about. And we definitely saw some of the bots discover this vulnerability and actually begin trying to prove that vulnerability against other teams or other bots very, very early on. So this represents a true success to what we have going on here because in that five-minute window that Deb mentioned that she was hoping for, that actually managed to be proven and patched by several of the teams in the very next round. So that means that in a five-minute window, a totally previously never seen before challenge binary was researched and evaluated and found vulnerable and patched by a completely autonomous system. Okay, so people in your community, do they think this kind of thing is even possible? Yes. All right. It's a big deal. All right. So before this, did people in your community think that this was even possible? Or did people claim it was possible, but they didn't... Sure. There's been like a really wide variety of opinions on the matter. But basically, if we were to talk about something like this going on 15 years ago, it would have been borderline science fiction. Right. Now, I did not know about how fast these vulnerabilities could be exploited. And what I heard was a shock to me. So is it even possible for humans to be able to respond so quickly? Oh, absolutely not. Normally, basically, that process is a manual reverse engineering process that involves sometimes weeks of development cycle and releasing those binaries and things like that. These machines were actually capable of finding that vulnerability and exercising it in remote software in less time than it would basically have taken a reverse engineer to open it in IDA. Wow. So we are seeing the beginning of a technology revolution. Absolutely. And it looks like we've got additional information. It looks like Zandra and Rubius threw POVs in the first five minutes against the SQL Slammer bug. So we have an example. Yeah. Congratulations, guys. So we have an example of a patched versus an unpatched team card. And we can see the patching going on here, which in this particular case shows that this individual service here is down for patching and we can see that the service poles are failing because that's unavailable for that round. And so that basically is showing us that Mayhem in round six decided to patch. By the fifth round, actually, almost every team had patched this vuln. So what that means is that either via specific awareness of that vulnerability or via general purpose hardening, every team except one managed to protect against that vulnerability by the fifth round. Awesome. I actually have here with me the team captains for Zandra and Rubius. So, Rubius, you were actually one of the first teams, both of you, to successfully patch the SQL Slammer bug. Was there anything in particular that your CRS, you believe, was capable of doing this? So we are employing a variety of static analysis and dynamic analysis techniques that are fast. So if we can identify statically that a flaw exists, we'll immediately release a patch for it. So additionally, too, if we can find network traffic that we expose the vulnerability based on form of attack, we can automatically patch it. So I believe that those two combined factors probably led us to patch quickly. And so just to be clear, the SQL Slammer bug was a stack-based buffer overflow. Is there anything that your CRS does in particular about stack stuff to protect against this? We do have protections that are based on discovering the actual vulnerability and trying to learn invariants that describe what differs the exploit traffic and inputs from normal traffics and then apply a specific point patch. It's impossible to know for me right now. Like the other teams, I think we're using a combination of techniques. I don't rely on any one thing. And which particular protection worked in this case, I'll have to look at the data later. So Xandr was actually the first team to patch Heartbleed. I think the first and only team to successfully patch against Heartbleed. Any idea what may have caused that? I would guess that that's the point patch in this case. We had to discover the signature, the invariant, the property, the mathematical formula that describes what was causing the exploit. What separated the malicious inputs from the good inputs and how it was affecting the program differently. Excellent, thank you. Let's return to our next special rematch challenge. And we have CGCRPC, a recreation of the vulnerability MS08067, which sounds a lot like the name of a galaxy. This vulnerability allowed remote code execution on Microsoft servers if an affected system received a remote procedure call, which is a request to run a function on a remote system. This flaw laid the groundwork for creating a robust, stable exploit. Microsoft patched this flaw, but once again, the patch was not widely deployed. Okay, and how did the Cyber Grand Challenge teams deal with CGCRPC? So we don't have any data yet on which ones of them have managed to successfully POV against it, but this is particularly an interesting challenge because it sort of strikes a balance in sort of the middle range of the level of difficulty of some of the challenges, right? This vulnerability in the wild produced a very stable exploit that allowed remote execution to be gained over Microsoft RPC servers. In the implementation that we have in our game, it followed along with that bug, which had a stack cookie still in place, and so a normal stack-based buffer overflow wouldn't have actually functioned correctly. But if anyone remembers MS08067, which is kind of one of the poster children of remotely exploitable vulnerabilities that we talk about all the time, it turns out that the vulnerability actually existed because that stack-based buffer was handed into an inner function which didn't actually have a buffer allocation of its own. And most compilers, if there's no buffer, there's no local buffer within that function's boundaries, it actually won't bother with a stack cookie because there's very little risk of a stack overflow when you don't actually have a buffer to overflow. So the interesting thing about this bug was the vulnerability actually existed in an instance where the software could be tricked into writing data prior to the beginning of the buffer, and that was actually within the local stack space of that inner function, and so we ended up with an unprotected function having its stack smashed and having the instruction pointer overwritten as a result of a bug that caused data to be written before the beginning of the buffer. So this is sort of a different case than the normal standard vanilla stack-based buffer overflow that you would see. So Vizi, which bot did well? Do we have the data yet? So basically we only saw one bot successfully POV file explorer, and that's Mayhem. So again, congratulations guys. So that POV basically means that they were the only one to solve this slightly more complex style problem, and additionally it would mean that they would be the only one probably deploying any scalpel-like patches. There may have been other bots that deployed general purpose patches that may have actually mitigated the risk, but they would be the only one probably with sufficient knowledge of the vulnerabilities workings to deploy a scalpel-like patch. Okay, so can you review for us, if you have the memory to do so, which of these rematch challenges have we talked about so far? Sure. So we've talked about, just now we talked about CGCRPC, which basically goes over MS08-067, and we've spoken through one of the challenges that was basically modeled after Heartbleed, which we called Secure Server. We also had the address resolution service, which was modeled after the SQL Slammer, all the way through to being a very simple stack-based buffer overflow. And I think that's it. All right, that's a great recap. Thank you, sir. So let's go to H.J. Hello, I have with me Giovanni Vigna from Shellfish, and I'd like to ask you about the stacking areas in particular, given this challenge had MS08-067 had them, as well as many of the challenges. Does your CRS have any ability to reason over these stack cookies in generating your POVs? We definitely leverage stack cookies for protection, and we always try to find ways in which we can overflow part of the stack that are not stack cookie, could be code pointers or other things that are not necessarily protected by these protection mechanisms. One thing I remember in our conversations is, speaking of reasoning and generating POVs, is that I was told that one of your POVs had 64,000 lines of code. Is that true? Yeah, because of course we try to embed into the POV sometimes code that tries to verify pretty complex path conditions using verifiers, and therefore they can be really big. That's right, your POVs actually would embed constraint solvers. Correct. Any in particular, something like STP or Z3? We use a simple one that, right now I'm blanking on the name... Boolector! Thank you, thank you. Z3 is what we use in our basic reasoning system, but it's smaller, and so we can embed it in our POV so it can reason about these conditions when the attack is performed. This reasoning, it's like generating algorithmic expressions from code flow, right? Exactly, because sometimes you have to be able to interact with a binary, so you have to do some challenge response, and therefore you cannot have a POV that is predetermined. You have to be able to see what comes back during the execution of the attack, and reason about that, and find what the next step is in order to get to the vulnerability. Thank you for your insights, I appreciate it. And back to you, Hakeem. Thank you, H.J. It's interesting to hear from the teams and how well their bots are performing. All right, and thank you to the teams. Okay, to everyone watching, just as a reminder, you can download the Cyber Grand Challenge challenge sets and the results from today's final event at this URL, www.cybergrandchallenge.com. Now let's go back to H.J., because I have to find out, were the teams prepared to deal with these real-world rematch CSs, and how excited are they to find out how they perform versus these well-known vulnerabilities? Well, I have with me the team captain of Shellfish, and I'm going to ask him that question, plus a question that's near and dear to my heart. So how do you feel, actually, about the current performance, as well as the revelation of these real-world problems? So we were actually pretty surprised, which we shouldn't have been, if we took some time to think about it, but we're a bunch of students, so we went in all crazy. So I think it's really cool to see real-world problems in this, especially on the decreeOS platform, right? Because a lot of the simplifications that were made to decree to make it feasible for modern automated analysis might have maybe taken away some of the realism. And this shows that it didn't, it shows that decree is really a faithful representation of security issues in the community, and that analyzing on decree is very applicable to the real world. Another thing that's near and dear to my heart is open-source software. And your team has open-sourced your analysis framework, Anger, which I'm a huge fan of. I actually, during the DEF CON quals, I created a challenge called a Mad H-Day that was designed so that people would solve it with Anger. So thank you for that, and do you intend to continue open-sourcing your technology? Oh, absolutely. Me personally, and the entire lab, and all of Shellfish, we are super passionate about open-sourcing our tools and contributing back to the community. So I can say that our CRS will be open-sourced, right as Anger is, including all of our build ops on top of Anger, and we have a lot of code that we're very excited to share with you. And for the next CGC, we expect all of you guys to be playing against us, or with us. Very nice, thank you, I appreciate it. And again, that's a fantastic thing that they're doing to open-source this technology to expand the capabilities of our community. And back to you, Hakeem. Thank you so much, H.J., and thank you to our teams. All right, so that's very cool about how the teams did against the rematches. So let's go back and see how the teams are doing in the competition. One of the things that we've been seeing going on, and we were, again, hoping to see, we've seen Rubius throwing against absolutely everyone for anything that they come across. Their bot is proving very, very aggressive. And this is one of the interesting things that we were hoping to see, because we were thinking that these bots would develop this almost sort of personality, where maybe the teams that are traditionally familiar with CTF would be reticent to patch, because there's oftentimes been teams whose downfall has been too aggressive of a patching strategy, or teams who's encoded in the bots very aggressive POV throwing behavior. So in this last couple of rounds, we've actually managed to see Rubius throw against absolutely everyone and score in one of the challenge sets on every team. So Rubius throws, so when we're looking at this particular view, when a particular team is throwing, and that means that arrow is that color, the color of the team's card? Yep, that's the color of the team that's throwing. So one of the other things that we see going on here is actually that several of the teams are waiting to deploy their patches until they actually observe a POV being exercised by one of the other bots. So this is sort of that patching strategy perspective where, for example, Zandra and MechaFish are both holding back on patching so that they don't incur that downtime until they believe they've seen someone else exercising the POV. And we see here with Rubius, right? So Rubius has all these colors filled in, so this is every one-day POV. Absolutely, absolutely. All right. But then again, this is only for one binary. Yeah, so that actually only represents one of each of the challenge sets that are out. And in addition, we don't know in the next round or two whether or not the other teams, having observed all of this activity go on, will manage to discover and deploy patches for that as a result of all of that activity. So is that how the game is played in DEF CON? Are you guys simultaneously going out? Oh yeah, absolutely. In a human CTF, there's probably, there's almost always dedicated people, dedicated Packet Ninja people out there on Wireshark watching everything that's going on, trying to determine when they're getting owned as well, and then turning that around and actually throwing it back at the other teams. So what about dirty tricks? So if you deploy a patch that, and other teams can use your patch, you can use that against them. That's actually one of the behaviors that we're watching for and we hope to see is the instance where a patch gets deployed by a team and one of the other team's reasoning systems decides that that patch is sufficiently good or good enough to deploy themselves, where basically they get to stand on the shoulders of one of the other team's disclosures, sort of how patching would work in the real world. So I wonder what the calculation there is, because we talked about game theory, so this sounds like more of an unpredictable behavior that maybe a human might be better at. Right. I would have to imagine that any of the teams that was going to try to deploy one of the other team's binaries as a patched binary of their own would have to have an enormous amount of faith in their symbolic analysis such that they could determine that they'd believe that the only thing that it changed was really to patch that one vulnerability. Because in general, if there were too many code changes or if it was a general purpose hardening technique that was sort of sprinkled out throughout all kinds of functions, adding stack randomness or stack cookies and things like that, it probably wouldn't be able to successfully determine the exact nature of the change. And then I would imagine that the bots would be very reticent to deploy those, to redeploy those same binaries. All right. So let's go back down to H.J. I have with me Tim Bryant from Rubius. So we actually were hearing just about some dirty tricks or evasion techniques. Does Rubius employ any of these style of gameplay things? It tries to make things difficult. It does. Yeah. Are there any specifics that you could go into? Sure. I mean, you could probably take one of our binaries and try to open it up in a typical analysis tool and it may or may not work. And if you want to run it, you probably ought to run it in an environment that looks an awful lot like the official system. Very nice. So you may have some QMU bugs in there. No, not so much. Okay. But it should only run where it's supposed to be running. Nice. I like that. We also saw you on the scorecard showing that you guys were pwning everybody. That's actually fantastic work. What do you think about that? Well, it was a very beautiful image. I imagine for you. I'd love to see a lot more of those. You know, that was one challenge, but that's a pretty fantastic result. We'll take it. They also spoke about different patching techniques. Do you just patch immediately or do you wait for some type of signal that you've been exploiting? We do two things. One thing that we do is we analyze the binaries ourselves. And if we think that they're easy, we go ahead and patch them preemptively. If we find the vulnerability quickly, we give the benefit of the doubt to the other teams. We expect that they're going to find it relatively quickly, too. So we go ahead and patch. On the other hand, we do patch reactively. But if we don't find it quickly, then we wait. We wait to see if somebody actually can find it. That actually sounds like a great strategy to make sure you don't lose those availability points. That's right. All right. Well, thank you for that. I appreciate it. All right. Great stuff down here, Keem. And back to you. So we talked about strategy when it comes to patching. But Vizzy, there's strategy involved with discovering vulnerabilities. So what kind of approaches might teams take to discover these vulnerabilities? Sure, absolutely. So it's really impossible to predict what the team's bots are going to be doing for sure, because there's always the possibility that they would have developed an entirely new technique or a new strategy for this game. But there are a number of sort of known approaches to these types of problems. Static and dynamic binary analysis, fuzzing, and symbolic execution are some types of program analysis and input checking and validation that would be done that they're probably leveraging simultaneously, ideally. So in the case where they want to more properly guide their fuzzing iterations, something like a symbolic analysis framework would allow them to know what the values of certain fields within that protocol should be in order to reach certain pieces of code. Shellfish, for example, having written their anger framework that we've spoken about a couple of times, I would imagine is probably using a hybrid approach. Okay, so we have some code up here that we're looking at. So actually, this kind of goes back to a little bit of the dirty tricks that we were talking about. And so we're going to speculate a little bit about what was going on with some of Rubius's logic. But the gist of it is, we see here, this CPU ID instruction might be part of what he was mentioning, as you'd probably really want to be running the binary inside of the environment that was actually decree. So it looks like they're doing a little bit of patching that introduces code divergence to try and split the logic when it's running on the real decree platform versus when it might be running in an emulator or some kind of other sandbox being deployed by one of the teams to do instrumentation. And the interesting part is not just that they decided to try and do this so that they could change the way that execution works, but what they decided to try and do. As near as we've been able to tell so far, what they've decided to do is actually introduce fake vulnerabilities into the impossible code paths that would only ever occur if you were running it in a sandbox other than decree. And so basically what they've done is created all this extra analysis work, and it may even be that some of those analysis platforms would think they've found a vulnerability and attempt to be POVing against that vulnerability when really that code was not actually reachable because it was being, because it was reached only inside of that sandbox rather than inside of decree. Very cool work, guys. Very cool. Yeah. So we saw a lot of interesting actions in round 20 with some predictable outcomes and some surprises. Share your thoughts about what happened, sir. I'm really, really glad to see basically every one of the teams managing to get some POVs out there. It's basically showing that the reasoning, the idea of this reasoning system is definitely working because you can't actually POV without at least some knowledge of the workings of that vulnerability. It's not like the general purpose patching techniques where there could be zero knowledge success, right? In a POV case, it definitely has to have understood the protocol. It definitely has to have decided what was necessary in order to exercise that vulnerability. So the thing that I'm really happy to see is that basically everyone has come to the table with something capable of that. Wonderful. And we've seen a couple of breakthroughs, right? So we've seen a breakthrough in speed. Absolutely. We've seen the rematch challenges owed this time around. Absolutely. So what might I have missed? So we have a new data update actually that shows that Zandra discovered a POV in one of the... Zandra managed to discover and prove a vulnerability in one of the services that we call OpSim. But this is a unique situation and it's something we were kind of hoping to see. They actually managed to discover an unintended vulnerability. So each of these services that's written, just like real world software, it's impossible for us to have made absolutely certain that the one vulnerability that we intended is the only one that's present. So the interesting part here is additionally that Zandra had discovered this new POV, exercised it against something that we hadn't actually even intended, and then Jima observed this occurring and successfully defended against it. So these are all results that we hadn't possibly had any ability to predict whatsoever. So Zandra POV succeeded against the reference binary, but not against Jima's patched binary. Wow. And let's keep in mind what we're saying here. We're not talking about teams of human beings that are finding these things. These are the bots automatically just autonomously doing this on their own. Absolutely. And one of the things that we had really hoped to see is some of this sort of game strategy thing as well, where the individual bots would be able to defend against things as a result of seeing them, seeing a POV launched at them. So we've been watching out for a lot of these sort of game theory things because in a traditional CTF, the team that wins is not always the team with the most perfect technical execution, but it's the team with an excellent technical execution that also plays the game. So there's a lot of that sort of question as to how much strategy, how much gameplay, and how much of the traditional dirty tricks department that goes on in a CTF that's humans have the teams decided to try and encode within their bots? Yeah, one of the surprises to me that I find just awesome is the fact that this game strategy, we're talking about actual mathematical proofs and computations here. Absolutely. Yeah, so this is real stuff. All right, H.J., do you happen to have the team we're talking about with you down there? What are they thinking about what we just heard regarding what their bot has been up to? So Gma was actually successfully able to patch a bug that we didn't even know existed in the software. But what kind of general purpose or even specific patches does Gma implement that could do this? So that was probably one of our general purpose patches. We looked at areas of code where we know there are common vulnerabilities, and we just deliberately inserted conservatively the patches for those areas. What type of do you use signatures, like like itis flirt signatures to determine what functions commonly cause vulnerabilities? Well, so in this case, for example, if it was a buffer overflow, you know, we basically threw in a stack canary. How do you actually generate your stack canaries? So our stack canaries are a random value we generate each time the binaries run. And when we put it on the stack, and then we also combine it with the return address. So we have a checksum to make sure they didn't overflow the canary or bypass the canary and just overflow the return address. I guess for those who don't know, what is a stack canary? Can you explain it? So stack canary is a special value put on the runtime stack, so that if there's an overflow that overflows data onto the stack, and it's supposed to overflow a return address, it hits the canary. I see. Like the coal mine. And it causes the canary to change its value or basically die. And so we were able to catch that. So it overwrites this canary value, and you're able to test and determine that this value has changed. Right. Okay, excellent. Thank you. That's fantastic. We've got some data coming in from round 30. Mayhem has the lead. Zandra in second and MechaFish in third. All right. So this is definitely still a game where anybody could win, but there's definitely a lead going on here. But most of the game is still yet to unfold. Oh, absolutely. Round 30 means we're still pretty early on in the game. That definitely is not an unescapable lead. So if we cut to the arena view, we can see actually that several of the teams are even still down for patching this round. We can see, for example, Galactica and Rubius here, for example, are actually in the process of, yep, Crispy as well, are actually in the process of deploying patches even up here in round 30. So even though a challenge set may not have actually been released this round, it may have taken some of their analysis platforms that extra bit of time to discover the vulnerability or decide how to patch it correctly. Yeah, what's interesting is that some of these patches, from card to card, it's not the same patch being deployed. So some may have patched earlier, some are patching now. Absolutely, yeah, exactly. And so the other thing that we can see here too is that several of the teams that are the teams that we're recognizing as being in the lead are still successfully carrying out POVs. So MechaFish, for example, for this challenge, is successfully POVing against several of the other teams. And we don't see any of them actually running patched binaries yet in this view, so we can't know whether or not, in this instance, it looks like they're managing to POV against something that no one else has actually patched or modified just yet. Alright, so why is the leading team in the lead? That's actually a really good question. I think that basically this probably will show that a lot of it boils down to availability, but a lot of it also boils down to the evaluation scores. I think most of the teams that are rolling out patches, ooh, there we go, we're seeing actually some of the patches not actually maintaining availability. Galactica and Jima looks like they have patched binaries or services that have become unavailable over the course of this round. So as we mentioned earlier, in that one view where we'll see the center shrink to that small black portion, we'll see basically that as a result of either one of two things. If they deploy a patch and that patch doesn't still maintain the functionality of the software and still do what it was intended to do, it'll shrink like that. But it'll also incrementally shrink like that if it doesn't respond quickly enough. And so for some of those general purpose patching techniques, there could be instances where that incurs a very significant performance hit. So we're seeing basically several of the teams have difficulty maintaining availability, and some of this even small degradation to performance that we can see here in the slightly smaller darker gray tiles that Jima and some of the other and Crispy have, for example. So in a way their patch may have made things worse. So it may yield the software unfunctioning, or it'll just function too slowly. Yeah, exactly. So that's basically the two-part threshold. And so basically a service on the internet really isn't up if it's functioning correctly, but it can't respond in a reasonable amount of time. And so that was used to model basically what's going on in the real world when you're maintaining sort of the production trade-off between security and performance. That's right. I remember the good old days of the internet where you'd sit there and wait for your page to load. Yep, absolutely. Yes, I guess that was really the bad old days. So we can see here actually from the scoreboard view at the end, where basically once it's actually managed to tally all those things, we can see that MechaFish, for example, is scoring very, very well in evaluation and very well in security, which means they're getting all their points for each of those rounds. Whereas Mayhem, for example, right now, though they're in the lead, they're doing very well in evaluation and availability, but they might be taking a bit of a hit from security. So we'll see if that impacts their ability to maintain that lead that they have, or if other people manage to creep up behind them because of that. All right, so HJ, what is the team thinking now that they've been announced that they're leading at round 30? So I have with me Alex from For All Secure, who's with Mayhem. What do you think about being in the lead in round 30? You were battling it out with Frubius for a while, and now you've actually firmly taken lead with an 8,000 point lead. Yeah, we're very excited to start building up a lead. I think our strategy to patch very carefully. We try to infer when teams are attacking us, and only patch when we think someone is exploiting us. In that way, we don't incur the issue where our patch is not performant enough, and we don't lose availability scores. So we mentioned a few times with generic patching versus like a scalpel-like approach. Do you employ both? We do. We try to field an agnostic patch that would protect against any vulnerability in theory. It has been our experience that most bannings have multiple vulnerabilities, and we were worried that we would patch one, like find and patch one, and another team would find another, and then we would have to patch twice, which is very expensive. Yes, thank you for that. It sounds like the teams are still pretty excited, and back to you, Hakeem. So I understand that we have some new data that just came in, and there's a few highlight stories from these rounds of the competition, and some of it involves Rubius. Absolutely. So it looks like Rubius actually deployed a patched binary to their platform that actually used up so many resources and had so much load on it that it's been affecting the other services on that box. So basically, if one of those things is having trouble performing, and it's basically eating up all the other resources, that can negatively impact the availability of those other services, because though they are completely themselves functionally correct, and even potentially fast enough, they're getting resource starved out. And so Rubius has basically deployed a binary that appears to be denial-of-service attacking some of their own binaries, basically as a result of starving them out of being able to actually execute. So we can see here we've got sort of the abstraction that shows some of the facets of the binary that they deployed, but really the important part here that's going to be the real question is, like, what exactly was that binary doing that caused that sort of performance delta? So we're still gathering information on exactly what that is, but the bottom line at this point is that Rubius is actually, in the next round or so, we're going to see them take a fairly significant scoring hit because this availability thing, like we've been harping on, essentially, is affecting multiple of their services now as a result of a mistake in only one service. So that being the case, any of the other services that are being negatively impacted by this are also not scoring points for them or not scoring as many points, even if they're successfully defended and even if they're carrying out POVs against the other bots. I see. Now, I wonder what the real world impact of this is, because if you have a bot that evaluates your software to determine whether or not it's doing what it's supposed to do and it applies a patch, then that would actually need to be checked. Oh, absolutely, yeah. And so that's one of those things that, like we mentioned, we've seen a couple of the teams potentially pull those patches back and decide to undeploy them. If they don't have logic like that in their bot right now, they may be in very serious trouble. So this actually is one of our cube views that we have available to us, showing the Kaleidoscope. So Kaleidoscope is the name of this particular challenge set. And this is just data for Rubius. And it shows, actually, the availability impact being had to all their other services that they have deployed over the course of the last few rounds. So like we said, we can sort of project multiple dimensions of data. So this is several rounds of several challenge sets of just Rubius. And we can see this whole flattened out area of negative, basically negative impact to their ability to score due to the fact that just the challenge set for Kaleidoscope has actually been performing so poorly. So by round 30, though, it seems that they're back up. It seems like by round 30, they do manage to actually pull it back. So I would guess that one of these rounds that we see here... So this could be one of those dropouts we saw in that line view, right? Where they peel it off at a point. It could have been due to this. And it looks like they actually did manage to pull that patch back. I'm just getting updated that they did manage to successfully pull that patch back. And it looks like they've managed to recover as well. So they deployed a patch. It didn't work. And their bot had sufficient awareness and sufficient reasoning to actually redact that, pull it back, and pull up, pull up, pull back out of the fire. We now come to the mail server, which is based on CrackAdder. CrackAdder is a complex bug in SendMail, a widely used general purpose email routing tool dating back to the early 1980s. In 2011, a security researcher who goes by the handle Halverflake showcased CrackAdder as something static analysis or automated tools were unable to detect. He then created a simplified version of the bug with many fewer lines of code. In its simplified form, researchers were able to analyze it using automated tools. Now, CrackAdder is a test for the real world viability of analysis tools, but the original vulnerability remains elusive for automated reasoning systems. So let's go to a video by Debbie Nuttall telling us about mail server and CrackAdder. So one of the challenges that we built is patterned after a vulnerability that was in SendMail that's commonly referred to as CrackAdder. CrackAdder was actually the name of the function that contained the vulnerability. So this bug existed in SendMail. SendMail is a critical piece of software that's used on the internet for sending mail. So the vulnerability exists when the software is trying to match up brackets. You know how you have these brackets in email addresses? So it wants to know at the very end if there's a hanging open bracket, it's going to add a closed bracket so it's counting them. One of the things it does wrong is it doesn't count the closed bracket. So it's counting in one direction, it's moving a pointer, things get out of whack, and it leads to a potential buffer overflow. This is the one that I think is hardest. I think it's hardest to find, I think it's the hardest to patch, and I think it's the hardest to prove. Thanks to Debbie for all the great videos about our Rebatch challenges, and it's a reminder that she was the author of them and I really had a great time interviewing her. Now Vizi, tell us more about mail server and CrackAdder. So our implementation of the mail server challenge basically wanted to strike a balance between the difficulty and the complexity of the original bug in SendMail and Halvar's example that was sort of a carved down subset of the problem. Either way, they are all sort of the classic state machine problems that are very, very difficult for program analysis. Those nearly infinite possibilities and that halting problem that we talked about before clearly come into play here. So basically, I'm looking forward to seeing, and it looks like we have some data, basically, MechaFish was the only team to actually successfully POV against our version of CrackAdder. So this basically represents a leap forward in program analysis for them to be capable of doing this means that we're one step closer to that thing that's basically been sort of the Everest of program analysis because of that state machine problem. Additionally, once they were POVing, it looks like Crispy deployed a patch, but it was a general purpose patch that did manage to mitigate the bug. So kudos to them for actually managing to patch it successfully without breaking it. Right on. All right, so let's go to H.J. down there with the teams. So you guys successfully patched CrackAdder, but I believe you also were the only one to exploit it, right? And so congratulations. That's pretty... Halvar Flake actually considered this like the Everest, as Vizi calls it, of challenges. Congratulations. What do you think about this? It's pretty overwhelming. Wow. I mean, all the talk about state machines and all the possibility of state machines really reminds me of one of the papers that we published recently. We're an academic lab. We publish papers. That's what we do. We published the paper Driller, which is supposed to augment fuzzing with symbolic execution. And one of our really in-depth case studies talks about how exactly it traverses the state machines and is able to really explore deeply parts of the program that would normally be inaccessible to a more naive approach. All right, there's complexity we have. How big do these equations actually grow to? Can you give me an example? They're huge. So we're using, for this part of the code, we are using Z3 to solve the things. And when we're debugging these things and then something won't solve, we try to print it out and sometimes our terminal will just scroll with equations for minutes before terminating. We're like, okay, there's nothing we can do about this. Move on. Excellent. Thank you for your insights. I appreciate it. Back to you, Hakeem. Thank you, H.J. All right. So let's look at round 52 scoreboard. So in this instance, we're seeing basically mayhem still in the lead, Zandra and Shellfish. Rubius has fallen a little bit. It looks like the gap might be growing. But as we can see, it's availability still that is winning the game. Yeah. So what happened around this round was mayhem actually went down, right? Yeah. So it looks like in this instance, we've seen mayhem's service, mayhem's bot has become unavailable right here in round 52. So this might be the beginning of a very serious problem for them. The late breaking that I'm getting is basically that we've seen that stop responding and not actually be issuing any updates or issuing any POVs. So we have no idea what that's going to do to their score. But like we've said, actually, there are certain sections of the game for which doing nothing isn't a terrible strategy. So we don't necessarily know that this will have an immediate impact. They have a very solid lead and they may actually manage to maintain some of that. Wow. And they managed to break a supercomputer. Yeah, absolutely. It's kind of lucky. So we have to wait now for the data to come in to figure out exactly what happened there, right? Yep. So we have a team in the back that's working on this. Absolutely. Yeah, for sure. This is one of those ones that they end up having to look into a little bit more specifically, mostly because we're not even really sure what it was that they deployed that caused that to be the case. For your colleagues in the audience, what does that data look like coming out of these? Oh, yeah. It was a team to create the visuals. Sure. It's basically a bunch of serialized, I mean, basically tabularized serialized data that's getting burned to those disks. It's every event that's traveling through this entire system. So if you were to imagine this whole thing as a series of events occurring in time and the metadata associated with those events, that massive pipe of data is getting funneled out and split out into these systems so that they can tabulate what's going on. So we have an arena view showing the scores for that particular round, not the aggregate score. Yep, this is just for round 52. The bars at the top here, I believe, are also still just for that round. So what are we going to see happen with Mayhem? Like, do you expect to see something with their crash impact? What we see on arena view? I don't know. I think that we're not going to see that until the next couple of rounds. It looks like this we were informed was one of the last rounds where they were responding correctly, as far as we're aware. Yeah, so here we have a grid view. Yep, absolutely. And so we can see, just like we were talking about before, we have these three dimensions being mapped out over these cubes, basically which show, in this instance, many of the teams have managed to maintain their security. So we're getting to a point in the game, at this point, where lots of the patches have been deployed, the teams that are going to deploy patches have, and so many of them are managing to maintain security, which we can see mapped here along this axis, right? So each of these, the fact that they are full width in that direction, shows that they've been managing to maintain the security of their services. But not as many managing, at this point, to continue carrying out POVs. There's only a couple of instances that we can see, and actually I'm not sure if I can see... Yeah, or 80, actually. Yeah, so this could be an instance where it'll be, it may be until the next challenge. So why would you have it a... So an availability going down, like we see here for MechaFish on LazyCalc, is probably due to a patch. Probably due to a patch, yeah. Almost certainly. And it looks like they've got a couple little trouble spots going on. So it might be that basically they've got something that impacts performance just a little bit, but not too dramatically. So we see a couple places here where availability is not all the way flat, so that means that they're just moving kind of slow at this point. Yeah, just a little sluggish. And it might be that they've deployed some general purpose patching techniques, things like stack randomizations, if they implement sort of control flow guards, which basically make sure that each instance of doing things like returning from a function returns to a potentially valid address rather than something that's been introduced by outside input. Those are very expensive checks, and we may see some of those cost them performance over time. So what do we see when we see these giant dips like here in these cases? Basically, we're seeing the total number of points that they're scoring. In this instance, we're seeing dips specifically in availability, and so basically those are representative of maybe their patched binary that they deployed wasn't working during those rounds. So with that being said, let's go back down in the pit with our teams and HJ. I have with me Brian from DeepRed. He's going to talk to us about his patching process and what might have happened. So we saw a few rounds ago that you patched something, or Ruby has patched something, and it really tanked the performance of the system. What might have happened? So we found out that the network appliance that actually applies the IDS intrusion detection rulesets is shared amongst all the services. So we have a feeling that one of our IDS rulesets that we deployed as part of our patch set might have negatively affected the performance that apparently affected the other services that were fielded. So we have logic in place in our game theoretic component that will detect feedback coming back from the server when we know that a particular service is not performing well. And when that meets a certain threshold of low availability, we'll go ahead and retract that patch set and revert back to something that was performant. We'll essentially blacklist that patch set and revert back to something that we know is more performant. Do you have a way to determine that it's an IDS signature as opposed to a patch? Unfortunately you don't. The feedback is not particular to a certain patch that we applied. They don't know exactly the set of patches we applied. It's across the entire service. So in some cases we have to make our best guess. And we do evaluate each of our patches individually. So we have data internally that we can hopefully discern which one is still performant and then apply it later if we know that it is confidently not the one that was negative. What do you evaluate your patch against? So we evaluate our patches against polars that we extract from the network feed that they send to us each round. So all the based off of coverage that it obtains, we'll go ahead and use those as sort of valid measurements of functionality and we'll run those against our patches. So what is the actual mechanism? How do you receive this information? How do you know that your availability is tanking? So part of the status information that's given back to the competitors in each round tells you a list of each of the services. And it tells you the time execution overhead. It tells you the memory execution overhead. It also tells you the functionality. If you're failing due to functionality or connections being dropped. So you can take that information and say, my patch didn't work. And then take hopefully corrective action as a result. What is the threshold for beginning to lose points in terms of memory use and performance? So memory usage, if you start to use any more than 5%, that's when you can start to lose points. For execution overhead, it's also 5%. For functionality, it's more of a step function. I think once you start to fail more than 90% of the polar failures, you drop down to 80% availability. And I think those are the only measurements that I can remember. Thank you. I appreciate it. And it was good to see that Rubius was able to recover. That was great information. And back to you, Hakeem. We now come to the last of our rematch challenges, Hat Trick. And it's modeled on vulnerabilities that gave rise to one of the oldest internet worms back in 1988, the Morris worm. That early worm exploited vulnerabilities in Unix protocols, wreaking havoc across the early internet. The great worm, as the Morris worm was later dubbed, was a wake-up call that opened the internet community's eyes to the need for security and prompted DARPA to create the Computer Emergency Response Team at Carnegie Mellon University. Basically, the interesting part that's going on here with Hat Trick is Hat Trick represents a fairly simple bug, but it's potentially subtle. And that subtlety has actually caused zero POVs being thrown against the Hat Trick service, which basically is interesting because the other services that have potentially even, I would say, more complicated vulnerabilities have had successful POVs thrown against them already. And so it's interesting to see, it'll be interesting to study whatever subtlety it was in the implementation of a Morris-like Hat Trick vulnerability that caused it to not actually be able to be POVed against so far. So it would be good to know what the bots are thinking here. Are they thinking to themselves, there are no vulnerabilities in this code? No, no, yeah. So the bots are probably having trouble with the scoping problem. So one of the things that's pretty common is when you're doing symbolic analysis, there's that whole state space problem. And the Morris worm, and specifically, the Morris worm had multiple vulnerabilities in it. And so in modeling that for this challenge set, the vulnerabilities themselves are present across multiple binaries. And so the scope that those analysis platforms would have to be aware of in order to trigger that might actually have to be aware of the fact that those two binaries are related to each other. Right. Now, as I participate in this game for the first time, and you're a former champion of DEF CON, I have one question. Sure, man. Does this belong in the Summer Olympics or the Winter Olympics? I don't know. I think that since we're here in Vegas in the middle of the summer, it probably belongs in the Summer Olympics, but that's about all I could guess. Yeah. So how many different types of hacker competitions are there? So there's a capture the flag type. What else exists? Yeah, I mean, for the most part, there are variants on capture the flag at a lot of different conferences the world over. And many of them actually act as qualifiers and feeders into DEF CON CTF. So there are a number of fairly newly introduced concepts that basically several of these other very famous hacking competitions that occur at other conferences throughout the year act as qualifying rounds for being able to play in DEF CON CTF. So in addition to having basically a place at the table because you played in the qualifying round for DEF CON CTF, some of those other competitions have been recognized as being significant enough to basically be drawn into the fold and automatically qualify a team to play. Is this a worldwide phenomenon? Oh, absolutely. That was one of the things that was really interesting to watch. As DEF CON CTF became a little bit more structured and a little bit more difficult and some of the challenges became harder, we saw teams come in from all over the world. So it was fairly normal for us to actually have troubles with things like significant language barriers and issues like that, which are less the case here during gameplay, maybe potentially during documentation reading for the decree platform or something. But during a lot of the other games, that internationalization, because it was being played by humans, caused this sort of more difficulty in communicating. Now, speaking of which, as I understand, the winner of the Cyber Grand Challenge will actually play against the humans at DEF CON CTF. So this is something we're totally looking forward to seeing. Yeah, the organizers of this year's DEF CON CTF have basically facilitated the decree platform being a part of their game this year, which means that the winning bot that comes out of this challenge is actually going to play against the humans in DEF CON CTF. So we don't expect the first year out, the bot to win, right? Right, that's really gracious of them, yeah. So yeah, I mean, the bottom line is we probably don't expect the bots the first year out to totally take over, right? There are certain types of bugs that the bots are better and faster at than we are. So if I could go out on a limb and make a prediction, if one of the vulnerabilities that gets rolled out during the initial stages of the DEF CON CTF inside of the decree platform is one of these more simplistic bugs, we could see, for the first time in a human and machine hacking competition, the machines score first because of that speed advantage that they have, which would be really, really cool. Cool. So humans have the complexity advantage. Absolutely. That state machine thing and that reduction of that state machine is something that manual reverse engineers are still way better at than the machines because we're better at sort of like estimating parts of that halting problem and dealing with that fact that it could be potentially infinite in ways that the machine calculation just hasn't managed to catch up with yet. What about offense versus defense? I think that the biggest thing about the playing offense that the machines can do is time. They can do it so quickly. The thing that they still wouldn't be able to do is to, or at least that we haven't been proving that they would in this instance, is being able to carry out sort of that more holistic approach to the game where they have to actually land a payload and try and do some of those more sysadmin-y things that they would do in a human CTF game. But that'll basically be challenges that the bots probably, the bot that gets into the DEF CON CTF will probably never see. It'll probably be a specific subset of the challenges, I would imagine, around decree. We'd have to check with the legitimate business syndicate to know whether or not the whole thing is being hosted that way. Speaking of the legitimate business syndicate, let's cut back to AceJ. Oh yes. As a member of the LBS, we are hosting all of our challenges on the CGC platform decree. And each and every one of them, of the challenges, should be accessible and able to be reasoned over by the CRS. We designed that on purpose so that we can have a human vComputer platform. So I have with me David Melski from TechX, whose CRS is Zandra. He's going to talk to us a little bit about formal methods, and especially in regards to CGC. Sure. I might not be the best person to talk about formal methods, but formal methods tend to focus on proving properties about the program. So often you'll see things like machine-checked proofs and automated theorem provers. And they're incredibly important for knowing that you have a piece of software that's doing what it's meant to do for a particular context. So they can also include static analysis methods. And there have been a lot of other DARPA programs, or there have been recent DARPA programs, that have been focusing a lot on using those formal methods to prove platforms that have certain important security properties that you can build upon. They're hard to use in this kind of automated, very short-term platform in CGC, but they're a very important part of this puzzle of solving security. But how hard is it to say... so it's easy to say, yes, like, oh, here's a vulnerability. How hard is it to actually say no? It's like solving the halting problem, right? When do you know to stop? Yeah. The halting problem says that there's no general-purpose algorithm that works for all programs. That doesn't mean that you can't prove things for specific programs. And so, in fact, often you can succeed in proving specific properties about specific programs. It's just that sometimes you're going to fail. But that's kind of an abstraction that doesn't matter, because you don't want to run all possible programs. You want to run your programs. And you can often prove things about them that are very important. Is there any reasoning inside of Zandra to tell it when to stop and use that computing power on something else? Sure. And, in fact, there's a whole interesting part of gameplay that we would have liked to explore more in terms of resource allocation and management. In fact, we drew an analogy early on that it was like managing a squad of non-player characters in a video game. We kind of similarly have a squad of specialists and applications that are trying to do different parts of the capture the flag, vulnerability discovery, exploit generation, patching, and managing all those resources complicated. That's one of the things on my long list of would have done with more time, as it is we try and pay attention to, you know, has the challenge set been retired? Do we think we can do anything more with it? Or is it time to use those resources somewhere else? But it's sort of simplistic rules. I like thinking of these things as sort of the players on a battlefield. That's a nice word, like a wow or something. Thank you for that. Back to you, Hakeem. Thank you, H.J. So how do the teams do versus Hat Trick? So that particular challenge set is made up of four binaries. And it looks like two teams did manage to patch the vulnerabilities, but we're not sure yet whether or not they patched that with a very specific patch that addressed the individual flaw or a more general purpose hardening technique that might have mitigated the risk of the flaw, but without even knowing what it was. Okay, so maybe H.J. knows more for us. H.J., tell us, sir, what happened with Hat Trick? So one thing that was interesting is that despite people being able to do these generic patches, no one was able to successfully do a POV against it. And it's surprising because the Hat Trick was just a basic stack based on Buffer Overflow, which is something you expect these amazing systems to be able to complete. So yeah, back to you, Hakeem. H.J., and your beard is still looking really good, my man. Thank you, sir. All right. So now let's take a look at the headlines so far of the matches. Vizzy. So it looks like we have some of that final data in for Hat Trick like we were talking about. If you guys remember, Hat Trick is our rematch challenge based on some of the MorisWorm data. And we definitely have two teams managing to actually patch this. But there's no particular evidence of anyone POVing it yet. Yeah, congratulations, guys. Well done. So the other thing that we have is some of the final wrap-up on address resolution service. Again, based on SQL Slammer. Six successful patches and six POVs. So this is one of those ones that this technology would have had a very dramatic impact back in the day. All right. SQL would not have been slammed. Yeah, absolutely. So secure server wrap-up. We've got some information. Again, this one was the one that was based on Heartbleed. It looks like six patches deployed, but only one POV. Which means that whichever system that was, and if I recall correctly, it might have been MechaFish. They basically were the only ones that we have evidence that they managed to reason about it successfully so far. But everyone was able to... But everyone was able... Actually, six teams. Six or seven. Were able to deploy a patch that basically at least protected, even if it was unknown what it did to protect it. It may have been one of those general purpose things like we've spoken about before that successfully defended those services for them. But either way, they patched it without breaking it, without significantly negatively impacting its performance, and managed to defend that service with automated code patching. Yes, and so this is like in the nick of not time because this is a very recent problem. Absolutely, yeah. Yeah, totally. So it looks like we've also got some continuing data coming in on MS08-067. It looks like the CGCRPC server, like we've talked about, there were four teams that managed to successfully patch it. And again, only one POV. That's really fantastic. One of the things that we were really kind of hoping to see here, we didn't really want to create the scale too low or too high. One of the really dreaded things in CTF hosting, if you're familiar with any of the other games, is it's very possible to create things that are way too easy and create things that are way too hard. And getting a good spread spectrum of things all the way through sort of allows you to feel like you actually are gaining a measurement, right? If you have a thermometer and you're trying to measure the temperature and it hits the top of the scale, you have no idea what it was, right? You didn't get an accurate reading. And so we really are glad to see a lot of these things being very difficult but still being achieved, and a few that are actually not getting achieved yet. So where does this fit into what's already happened? So have people actually taken these real-world vulnerabilities and tested against bots in the lab before this sort of event? I mean, people have tried out some automated patching techniques, but there's been very little of that that's deployed widely in production. There are certain very specialized subsystems and certain industries that are capable of these kind of things, but it's also usually because they themselves have a reduced set or some kind of language that they use that creates a smaller state space than some of the general-purpose computing that we've seen so far. So basically, the gist of it is, in a lot of instances, it's only very nichey areas that have managed to deploy anything like this, and this is introducing us to this much more complex field space in a much more production-sensitive environment. All right, I hear we have something coming in about Linkbug. It looks like we have the wrap-up on the Linkbug. Six patches and one POV, it seems to be a trend. Yeah, absolutely. So it looks like both of those last two POVs came in from Mayhem, so they are definitely doing very, very well in proving vulnerabilities against the other bots. All right. And then coming back all the way around to Mail Server, based on CrackAdder... Which is the most difficult, right? Which was definitely one of the ones that was most difficult. And is it possible that nothing may have succeeded against it? State machine bugs are very hard. One managed to pull it off, just like we saw from before. Two were patched, but one managed to pull this off. And this one, like we said before, was sort of slicing the difference between the reduced version that Halvar created as an exemplar of why these types of bugs are difficult to deal with, and the original bug and its level of complexity. So this is right in the middle. It definitely represents a new achievement in program analysis. Because of that level of complexity, that one team should be super, super proud of that. Wonderful. Definitely MechaFish also. As a professor, I love it when students do something well. Yeah, absolutely. And break breakthroughs. So we have scores in from round 60. Let's take a look. Looks like Mayhem is still in the lead, with Zandra following fairly closely behind. They haven't really managed to pull away too far. MechaFish managing also to still give them a run for the money. Basically, as this round 60 data goes on, we can actually see only a slight bit of divergence. And actually, this is more of an even neck-and-neck performance than I had actually originally anticipated. My bets were that we were going to see one bot sort of stumble very early and never manage to recover. And we totally haven't seen that here. There's only been sort of minor variance causing these sort of difficulties. And as we can see, right in here, it's these little peel-away moments that are sort of the trouble for some of these teams, where basically something like most-of-the-time availability has caused them to just have a couple of rounds that were not maybe quite as good, right? So we know for a fact, actually, one of the things that we've seen that's pretty interesting with MechaFish so far is that they've actually had instances where they've deployed a patch and then subsequently decided that it wasn't passing polls anymore, it wasn't performing significantly enough. And it seems like their bot actually has logic to pull that patch back out of production and revert to the original binary. So that's some of that game theory stuff like we wanted, right? Like we were hoping to see. And when they revert back to that, we've never seen them actually deploy a patch for that service again. So it's almost like they have that very defensive, once you've decided that it's no longer okay to patch that or that your machine didn't manage to generate a correct patch for it, they just don't touch it. And that's probably indicative of some of their history in CTF, where oftentimes not patching is a perfectly acceptable strategy. The race for third looks incredibly tight. Absolutely. So if you come in fourth, you do not receive a prize. Yeah, that's true. There's absolutely... Well, other than the everlasting fame and glory of being here at all. That's right. So being a finalist at all, I don't know if everybody got a chance to go over some of the background for the qualifying event, but hundreds of teams actually attempted to qualify for this particular event. And so just being here at all is a very significant thing. But I think that what we're seeing here is that there's not... Awesome. Is that there's not actually that radical of a difference. We were actually early on preparing for this potential to sort of break away lead, if you remember. Right, there were qualifying rounds, right? And we saw these bots performing. Yep, absolutely. And so we had actually sort of prepared ourselves for this breakaway lead thing, and we're really glad to be able to see all the teams continuing to do really well. So one of the other views that we've got available to us is actually called the cubes view. And we've managed to basically create an environment where, on the plane here in two dimensions, we have the bots listed as well as the individual challenges. And then for each of those spots in that plane, we have a cube that can project three dimensions of data, of scoring information. I have to interrupt. The correct term is rectangular prism. That's absolutely correct. Right. Thank you. Thank you. So what we can see here is actually that any three aspects of scoring or the data that we're gathering could be projected in that rectangular prism. Is that right? But in this instance, we're seeing sort of the default view. And so we can see basically along each of the axes is security, evaluation, and availability, like you can see in the graphic here. So in instances, for example, where we see these flattened out... Flattened out? Cubes. Yeah, they're flat. Will go. That's actually the availability score suffering for those. So we can basically see each individual element of a team's score over the course of round 60. So for example, we can see that Mayhem has managed to maintain security on nearly all of their challenges for this particular round. And in a couple of other instances, we can see successful evaluations being carried out by these areas where we see the cubes expand along this axis, this direction. Yeah, that seems like the one case where they're doing better on evaluation and security. So these little guys like here... There we go. We can see that as some of these head toward that evaluation space, those are the teams that are managing to successfully evaluate or successfully prove vulnerabilities in the other team's deployed software. So next up, we have the arena view from round 60, which as we'll see is an extremely busy round like they all are. We've only got one remaining of the original rematch challenges still in play. But you can see actually early on Galactica jumps out and actually throws a bunch of successful POVs, which we can see here because of these blue circles occurring inside of other teams' services, right? That's right. And so that's actually Galactica managing to successfully and then stealing back those colors and ending up being able to render it here. But as we mentioned before, even in these late rounds, a lot of these teams are still patching, still deploying patches and are still down for those rounds. Yep, as we see there and there, for sure. And then in a couple of instances, we've even got teams that are having and suffering availability problems, MechaFish, for example, and Rubius. And because those are not immediately shrunk down to being the tiniest little possible black space, that means that they're suffering from availability problems due to performance. So essentially, in our game, as the evaluation for availability occurs, if it's not functioning correctly at all, if it's not responding with the correct information, that'll just cause it to immediately go to zero. You'll get that smallest possible black tile in the middle. But these ones that are of reduced size but not dropped all the way down, that's because they're capable of incrementally losing some of their availability score due just to performance. Now, what is going on right here? I see a couple of intersecting... Absolutely, yeah. So the little secondary gear that we see there, we mentioned earlier on that the team's bots are capable of deploying IDS rules. So when they deploy an IDS rule, just like deploying a patched binary, that IDS rule causes that service to be down for that round and the team to not be able to score either security or to prove vulnerabilities, carry out offense against the other teams. But basically, this strategy that we're seeing here most specifically represents patching the binary and the IDS rules at the same time, which is probably a good strategy considering the fact that otherwise you'd have to have a down cycle for each of them. I see. So up and coming, we have some POV data coming in. So we're seeing, as an example, you can see all the POVs being thrown. We mentioned that per service, it's possible for an individual bot to try to throw a POV against another team's service up to 10 times in that one round. So some of the bots that we've seen are actually taking this very aggressive approach where even without potentially all of the information that would be necessary to prove that vulnerability, they're trying it out based on what they've got. And we're seeing others that are a little bit more specific and will only throw the POV when they're quite certain that they know where it is. So for example, Rubius is a good example of throwing the POVs and having them sometimes land and sometimes not. All right, so we have some scores coming up. Here we go. Round 60. So the overall listings we can see here. Basically, it seems like pretty much all the teams that are in the lead are managing to maintain their availability scores. It looks like Gma and Crispy might be having a little bit of trouble in that arena and that might be causing them to end up on the lower end of the scoreboard currently. The upper end, we're definitely seeing both security and evaluation. We're not seeing a runaway game from either just defense or just offense. It's a very balanced approach that it seems like the bots are taking, which again kind of plays back into some of that game theory stuff that we were hoping for. So coming up, we're going to see some of the polling data from basically the scoring server for round 60. In this instance, we can see just a couple of them are down. Most of them are still responding correctly. So like we mentioned, we can see the availability issues that are going on here where we can see that the service polls are still green, right? Those little dots at the last second are still staying green all the way through versus some of these other ones that are in the process of being patched, for example. We can see going in and turning red right at the last second. So basically what that means is like we mentioned that we speculated before, it does seem like the polling data is showing that those availability issues that a bunch of the teams are having right now are actually more about performance than they are about having created patches that break the software. Okay, so we're going to go down to H.J. He has more information for us from the pit. I have with me Alex from For All Secure. He's going to talk to us about the scores for round 60. So you're currently in the lead with a 10,000 point lead. How are you feeling? We're still excited to be in the lead. So DARPA released the submissions during the competition and we have been looking at that. And unfortunately, it seemed that our system had a technical difficulty and stopped submitting patches and POVs. So we kind of hope that we build a big enough lead that we can just hide it out until the end of the game. Do we have any idea what caused this technical difficulty? It looks like our system is not keeping up and not downloading regular updates from the team interface from DARPA. So we're still playing on the binaries that were released like hands ago that are now not in play anymore. Oh, I see. Yeah, so we'll see what happens. A friend of mine mentioned that, you know, the only move is not to play. The only... Oh, shit, I missed the code. The only way to win is not to play. So the upside is at least that availability is a huge portion of the score. And since you're not making any modifications, your availability should remain as high as possible. So we'll have perfect overheads, very performant binaries. As soon as teams have a POV, unfortunately, we won't be able to protect against it. I see. And obviously, we'll also not get any evaluation point by exploiting other teams. Well, thank you. I'm sorry to hear about the issue, but good luck. Thanks. So it looks like we have data coming in from Galactica scoring perfect points on a challenge that we call Whack Jack against the original binaries. So basically, they managed to actually score perfectly against all the teams in the original binaries, probably because they managed to turn it around so fast. All right, I hear that HJ has Galactica down in the pit. Let's hear from them. I have the team lead from Galactica here. So you were able to accomplish this task. What do you actually think about it in terms of your solution? We kind of used some generic defense against the vulnerabilities. We thought that maybe found by other teams, but not by ours. So we used some generic defense. So in this case, we also considered the availability scores and we used some optimizations to make our overhead as low as possible. For example, we used some free space in the original code section and so on. So it works for most binaries. Excellent. So I'm actually kind of curious, since we haven't spoken much, is there anything particularly about your CRS that you're proud of? Yeah, we actually use a lot of research work and make them into practice. So our team is composed of several research teams who have done a lot of work in this field. We are from UC Berkeley and Syracuse and also S2E team. So we did a lot of research in the binary analysis program hardening and also exploit generation. How far has the CGC program allowed you to push the envelope for the state-of-the-art in program analysis? Yeah, it helps a lot. Actually, we tried many new solutions in this project and some of them actually didn't work well, finally, and so we didn't integrate those components into our system. But actually, we tried, for example, the advanced data attack, which is a type 2 attack here. And a type 2 attack is, for everybody else, is one that you're able to actually pull back data from the target and submit as opposed to like a code flow integrity issue. Thank you, I appreciate it. And back to you, Hakeem. Thank you, H.J. We are getting data in from rounds 91 through 95, so... So it's 96 rounds, so we're coming down the homestretch. We're coming down the homestretch. So we have round 91 scores coming in. So actually, when we mentioned earlier before that we had seen Mayhem's bot go offline, for this round, they are actually offline. The interesting part that we're going to see here, though, is, like we had mentioned, it's not necessarily that negatively impacting. There are certain time periods in the game when doing nothing is not that terrible. And so in this instance, actually, basically, many of the teams are not throwing POVs at the time. We're not seeing new scores being tallied as a result of those POVs. The approach that they happen to be inadvertently taking due to their bot not responding right now is actually not really hurting them that much. They're still managing to maintain that lead because they had a reasonable lead to begin with. And then additionally, because right now, in this portion of the game, so few POVs are being thrown that it's not really negatively impacting their security score. But how are they available if they're down? They're not available. So you get zero? For those... Well, no, their services are still available because they haven't replaced them. Oh, I see. They're not issuing any new updates. They're not sending any requests for POVs. So the service itself is still online, but the bot is no longer requesting updates to it and is no longer trying to carry out POVs. So here is an arena view. Yep, so here we see the arena view for round 91. And we can see Mayhem again. It looks like they still have many of their services online, right? We can see they're patched or they're not patched, but they're maintaining security. There are a few of them that are getting owned. Like I said, there's still a few POVs flying around. MechaFish, Rubius managing to land some stuff, Galactica too. Looks like just about everybody a little bit. But for example, this instance here... Let's let that go just a hair further. You can see just barely through here. It might be actually easier to see when it's in motion. But this tile for Rubius shows that they've managed to acquire several of those little colored chips from the other ones carrying out POVs, but they're actually getting less of the total score than they could because of availability there. But as we can see, it looks like Mayhem not being significantly negatively impacted by their bot becoming unresponsive as far as our measurement goes. And still successful POVs being thrown by Galactica. I wonder if potentially... Were they throwing against Mayhem that round? Oh yeah, it looks like for that one service, we can see here Galactica throwing successfully against Mayhem. And we can see that Mayhem's service over here has lost its white border. So they are losing a few, but it's really not enough because of that lead that they had. It's not enough to kick them downward. And they may not have had any patches at the time to replace those binaries with even had their bot been online. Right, exactly. It's really kind of one of those like... It's an amazing time period in the game where it's possible for that sort of unavailability to not really have too much of a negative impact. Well, we'll get to see how this evolves because right now we're looking at 91 and now round 92 data is available. Yep, and so in round 92, they are definitely still not actually issuing any update requests. 3 and 4 and 5 and 6, they're really tight. Yeah, this is definitely a much tighter overall contest than I thought it would be. I thought we'd see a much more spread spectrum because oftentimes in the human CTFs, we're used to seeing a very large spread spectrum. Right. And seeing some of these runaway challenges. And occasionally we've even seen some of the challengers in those runaway games do things like play Guitar Hero on projectors rather than actually continue playing their game. Yeah, they like to... Show off. Exactly, that's right. Rub their nose in it. So we have the Arena View from round 94. So in round 94, something very interesting happens. We see Mayhem wake back up. So Mayhem actually has come back online in round 94 and their bot has managed... yep. And as it comes back up, it looks like they are managing to successfully attempt some POVs but not actually land them, it looks like maybe. But they are still getting successful POVs evaluated against them. So it looks like we're still seeing MechaFish and some of the other ones as they go. So what's happening right here is really interesting because it looks like they're both patching and scoring. Is that even possible? No, so since they're down for patching that round, the data is showing us that they actually successfully landed POVs. But they were throwing them and not getting any score for them. So that's one of those... Again, from that game theory perspective, if they were concerned that throwing that POV might disclose their knowledge to the other team... Now, it might be that they've realized that they've been throwing this one for several rounds now and so the risk of disclosure is pretty minimal. So Mayhem coming back online this time around, they actually... their bot did submit requests to throw POVs and it's not until the next round cycle that that actually occurs. So in the next round, we should see them throw. And here we go. Here is round 95 data. So in round 95, we've got Mayhem still in the lead and the bottom line at this point is they've managed to actually throw a new POV again. They're back online and everything is operating normally. We're really coming down the home stretch here. The leads are probably at the point where they're insurmountable in the next round or two. Because there's only one round to make. Actually, this is the last round. This is the last round. 96 rounds. As we all know in computer science, things start at zero. That's right. Oh, man. Here we have... These are the unofficial scores. These are the unofficial scores. It's very important to keep in mind that until we've had a chance to do all of the integrity checking and all of the data analysis, we won't be announcing any final scores until tomorrow. But this is our preliminary result set. It looks like it's possible that it's Mayhem, Zandra, and MechaFish in that order. Celebrations are taking place in the pit, but the real celebration has to wait till tomorrow morning. Absolutely. Yeah. So I've got a number of like favorite things that have totally happened here that I was expecting or wasn't expecting to actually see happen and was hoping to see happen. So it's sort of that dichotomy. Watching some of these teams carry this very, very symbolic execution approach and successfully, specifically, successfully break crack at her, I was watching for, I was hoping for. Getting to see that's been very rewarding for me. And I know that I will certainly, if they're providing the data, I will be taking that home and doing that as homework myself even. Wonderful. Because one other outcome of this is not just how the bots perform today, but how they're going to inspire research starting tomorrow. That's absolutely correct. And so from some of the teams we've seen, they have a willingness already to disclose their techniques. We don't know which teams are going to disclose more about what they've done so far. I expect some will and some won't. But either way, the challenges and some of the data from today's event will be being posted as it goes online. You'll be able to download and kind of look along yourself and even try to carry out some of these challenges yourself manually from a reverse engineering and a vulnerability research perspective. All right, so let's go to the pit where AJ has the team leaders. I have all the captains here and the game is over. I can actually hear from their perspectives. So it's done, finally. So vacation, what are you doing next? Yeah, I'm going to sleep. You think so? So how did you feel going through each of the rounds as you learned the scores changed? Uh, you know, we were doing really well. And I found myself thinking, I'm afraid of heights. It's a long way to fall from where we were. But I'm over the moon. Where do you need to go in terms of research from this point? Well, we have a lot of ongoing research and I think like a lot of the teams in terms of cybersecurity. So there's plenty still to do in terms of handling other domains, bigger programs. Both for all aspects of it. Congratulations. Seriously, good work. So it's done. Again, same question to you. Are you going on vacation? What are you doing now? Um, we are going to improve our system further. We, I think we kind of figured the reason our system doesn't work well. And meanwhile, we always try to new solutions to make the system even better. Like this machine learning, which we are trying to, but not in this system yet. But yeah, we will do some research work and make the system better. Very good work. Congratulations. Thank you. It's done. It's done. Oh my God. Sort of. Tomorrow you get to play CTF. Exactly. Are you bringing your CRS tomorrow to play? Absolutely. How do you think it's going to be, in your terms, a human augmented with a CRS? I think it'll be really interesting. I think because the CRS will take on the role of patching most likely and the sort of initial analysis. So if the CRS can provide us with crashes and then we can take it from there or maybe vice versa, right? That I think is the real interesting future in this sort of automatic cyber security world we live in. So since humans are going to be part of this now, we know humans can be dirty. Are you a little worried about the dirty tricks that they're going to play on you guys tomorrow? Oh yeah. We are, depending on how like with the rules it is, we might harden the system a little bit overnight because there are definitely ways that our system could be screwed with by a human. So we'll have to see how it goes. I know I've heard personally a few of the teams have been doing a little research on the side trying to find out what kind of things they can do to thwart the other players. I don't know if you saw during the kind of private time before the public event, one of the visualizations crashed. I did. That was your QEMU bug, right? That was our QEMU bug, yeah. So we have, you know Rusty, he was in the back fixing all of your guys' dirty tricks. I don't know how many QEMU bugs he had to patch so they could continue visualizations. That's impressive. It was pretty good. There was like a floating point halting one, wasn't it? Exactly. Oh man, you guys. Look forward to seeing you tomorrow. See you tomorrow. Hi, how are you doing? I'm doing fine. It's done. How do you feel? Tired. I don't doubt it. So going in, you had certain expectations. How do you feel about your performance? I think we did okay. I was pleased that we stayed up the whole time. You know, with a small team and we wrote everything from scratch, there was a whole lot we left on the drawing board or partially implemented that we didn't get going that we really want to look at and see what we can do with the system. What kind of things would you like to see going forward? How would you have changed CTC as well? Is there any aspect of security you would have liked to have seen in it? I think it was fabulous the way it was run. I think the whole DARPA team did a great job of putting this together. This is one level of problem we're seeing out there in the wild, but this whole higher level of abstraction where we're seeing problems, the SQL injection attacks and those things that we did not address here. There's still a whole lot of work to be done. Do you plan on adding that type of analysis and reasoning into future tools? Eventually. There's more we have to do first with this. Oh, I understand. Yes. Thank you and congratulations. Good work. Good work, guys. You're done. Finally, huh? How are you feeling? It's time to sleep now. Not drink? Yeah, probably. So, how do you feel about the results of the competition and everything? Right. So, I think our patching strategy was good. So, we stopped a lot of bugs that other teams didn't. But I think our failure was we replaced too many too fast. So, our availability suffers when you replace a binary and get a zero. But I think, overall, our performance is what I expected. What did your CRS do that would, in terms of patching, do you think that was better than the other teams? I think we tested our passage a lot before we would send them out to make sure they worked. And our generic strategies, they didn't require us to find the bugs before we could patch. So, maybe that helped us out. Did your CRS implement any IDS rules? Or did they take advantage of that? No, we didn't do the IDS rules because you saw what happened to Deep Red over there when they said the FAQ entry where one IDS rule could ruin your whole system. So, we decided to go against that. All right. Nice. Thank you. Good work. Congratulations. Nice. Tim. So, you get to relax now. How do you feel about your performance, everybody else's performance? I think it was fantastic. I mean, if you look at all of the machines that are up here, and, you know, the collective technology, I think it was fantastic. I think the whole competition was excellent. I think that what we saw here represents a real change, you know, something new taking place. That's exciting. It really is. What do you think about, actually, like the production value and just the amount of effort that was put into trying to make this spectator-friendly? I felt like a rock star. So, this is actually something that's... This making computer security and hacking spectator-friendly is something that all of us have had a challenge. Do you see this as being something that's good going forward to help get public awareness of this arena? Sure. I mean, it's so vital, right, to have secure software. I mean, the more that people care about that, and the more that these kinds of competitions can push the technology to provide that, I think it's good. So, how did CGC help you guys push the envelope in research and capabilities? Well, it did a great job of scoping the problem, and that allowed us to focus on the core research problems. We have some amazing ideas to take going forward. Things that aren't in the current system. Version 2 is going to be amazing. Is there anything you did that might have held you back because you're a little cautious? No, I don't think that we were cautious at all. I think what you perhaps saw, and we'll have to try to figure out exactly what happened, but around the round 25 or 27, you know, we suffered a big loss of availability, and that may be due to some of the aggressive patching that we were trying to do. They also mentioned that it could have been the result of some IDS rules. Sure, I don't know. Of course, not until later when we actually have all the data. Right. Thank you, Tim. I appreciate it. Good work. Sure. Excellent. Alex! Man, what a show. And after everything that happened, you guys, I remember seeing whenever we found out that the CRS went down and that you weren't submitting any more POVs, just the sweat. Oh my god, that was terrible news. We all wanted to go cry and upstairs and leave, and I just can't believe we were able to still handle and gain points. Well, what helped really was the availability. Exactly. So yeah, when you don't patch, you get full availability. This is great. So we've always been very careful about not patching too much. I think we've overdone it this time. A little bit. But it worked out. Nice. So where do you see your technology going forward? What are you going to use this money to do in terms of funding and research? So FileSecured is self-funded, so this is going to help a lot with going the operation on. So we have a lot of cool projects, both from what we developed from TGC and then some other CTF ideas that we want to develop. So where do you see program analysis in, say, one year and five years and ten years? Well, it depends if we have another TGC, I think. Okay. So how would you actually envision that style of TGC? How would you envision that style of competition or program? So I think TGC did a great job to give the right incentive to the team to develop the best tool they can. This clearly has been very successful. We've had, like, great, great CRSs tonight. And we just hope that a new competition would just, like... A lot of what we did on TGC was getting the base, you know, the base framework of, like, we need to do this, we need to do this. Some of it was not research, it was just engineering. So now that teams have this system, they could actually focus on the research aspect, on improving the set of the ad, which we have done, too. We could even do it in one more on the next TGC. Nice. So you get to bring your CRS, I assume, tomorrow to play CTF. Or at least they do. How do you think it's going to be, a human playing CTF? This is going to be interesting, I think. DEF CON has a history of having a lot of hard challenges. Oh, you've had to make hard challenges hard because you guys have gotten better. Exactly. It's really hard. We've had to raise the bar significantly for you guys. So DEF CON will have probably between 5 and 10 challenges, I expect. We had 82 tonight. So the speed that the machine gives might not be as powerful because there's a few challenges to look at. But we hope we'll be competitive. And we're probably going to spend the night getting the CRS ready for tomorrow. Congratulations. And I imagine you're going to have a nice night celebrating. Good work. Thank you. Nice. About what? Oh, I'm still on. How's it going, guys? Great. So, third place. I'm super stoked. I love seeing CTF teams do incredibly well on these things. It's just near and dear to my heart, like open source. How do you feel about your victory? Was this expected? How blown is your mind right now? All right. So in the beginning, we saw Shellfish start out and our patching strategies repatched. And so we watched this go, boom, that first round, right? Seventh place. And I was like, ah! But then, you know, slowly climbed up. And it was incredible. Good work. Incredible. Nice. Yeah, that's all I've got for you guys. I think we've... Actually, same question for that. What do you see with program analysis in 1, 5, and 10 years? I think it's very similar to self-driving cars as well, right? You know, we had the self-driving car challenges. And at the time, people were saying, you know, do you really think you'll ever be sitting around in a computer and it'll drive you around? And now, we're almost there. And it's similar with this. There are challenges in automated program analysis that don't exist in self-driving cars. You heard about them on stage. You obviously know all of them. So, it might not happen in the same way, but it'll definitely happen. So, we'll probably, you know, regularly now see machines in DEF CON. Nice. Thanks. Good work, guys. Really good work. Man, second place. Fantastic. Like, it's absolutely amazing work. So, how do you feel? Like, I imagine you're pretty excited. What are you doing for celebration tonight? Yeah, I don't know. We're definitely going out. I bet. Have a little bit of Las Vegas. So, what do you think? Actually, I know you're not playing CTF tomorrow, but what do you think about the human-computer interaction? I think it's going to continue to be interesting. I think computers are going to have to continue to help a lot. But there's still a lot of room for human creativity. So, we saw on CGC, it's kind of like a microcosm of the security world. How does your CRS, or how hard would it be to adapt your CRS to more modern and real-world applications? Like a browser, for instance. A browser is a heavy lift. Among the things that make a browser much more complicated are runtime code generation, a lot wider set of system calls that you have to think about and model, threads with a lot more shared memory instead of just pipes for communication. There are a lot of aspects of the system that have to be monitored and taken care of. That said, often you can isolate components and apply the technology just to the components instead of the whole browser, and often that can still be very, very useful in terms of increasing the security. So, I think that that'll maybe be kind of the way you'll see it start to get introduced into things like browsers. Excellent. Thank you. And have a good night, and congratulations. Enjoy your victory. Oh, there they are. I'll talk to David. Oh, man. Alex, Alex. Amazing work. I know you guys were swiping it pretty hard, and I really felt bad for you earlier. So, what do you think about your victory? I mean, there's no words to describe it at this point. We went through this huge downward spiral around round 30, and then it just like slowly came up. It was amazing. I mean, it's all a testament to the hard work these guys put in that we were able to get a lead and keep it. What's your next step in terms of research and innovation? Well, we look at this as really the first step. The next step is to start checking all the non-CG software. So, we've taken off this big chunk, and now we're going to do everything else. And we really want to make it a more democratic, where everyone can know the security of the software that they run. Nice. So, do you have any publications coming out that might be based on your current research? That'd be interesting to read. Yeah, we're going to do a full write-up of the sort of techniques that we put into this. And, you know, we'll also include some of the things that we had that didn't work. Thank you. I appreciate it. And have a good night, guys. You have really great work. I'll send it back to you, Kakeem. Thanks. Hey, Shane. You did a great job down there with the teams. But you know what? I'm interested to hear your takeaways and your final thoughts and impressions. You know what? I have to say that my biggest takeaway was I felt so bad for Mayhem being in first place and then crashing, but still coming out on top. Just the look on their face when they saw the scores for round 94 and 96 and 98 was pretty amazing and a great feeling. So that was probably my favorite. Wonderful. None of us got to see those rounds, but that was great. And Vizzy, sir, what are your final thoughts? Both of you did a wonderful job tonight. Thanks, man. And thank you so much to our co-hosts, Ayse and Vizzy. Thanks, man. You were excellent. I think one of the things that I'm going to take away is watching all of these teams get inspired about these problems that are also some of the things that I've specifically worked on historically and that kind of thing is really going to spur, even in me, I think, a new set of research ideas, a new bunch of things that I want to do. I also really, really love seeing a couple of the teams keep that thought alive from older CTFs where there's that dirty tricks department and you're really, really playing the game. Like that pure technical execution is beautiful and it's gorgeous, but really these challenges are a part of a holistic thing. And I think things like that anti-analysis technique being deployed to use resources in impossible code paths, those kinds of things are the dirty tricks department stuff that I totally love. Sounds great. So for me, this has been an entirely new world. There was one person in this entire community that I already knew about and that was Chris Eagle. I had heard of this guy who was a member of our development team. But so far I've been representing DARPA in this endeavor, but I have to take my DARPA hat off and speak as a citizen, as an ordinary citizen of America and as a scientist, because we all have to appreciate those who invest in our research. And the unique role that DARPA plays is that they can actually invest in things that we don't even know if they're going to work, if they're going to pay off. So whenever I submit my astrophysics proposals, one thing that it's based on is technical feasibility. It's evaluated on, will this work? And so I just want to thank DARPA for this investment, for including everyone. Absolutely. For investing in these teams. There aren't a lot of organizations that are willing to really take risks to create those moonshots and really develop something totally new. Across such a broad spectrum, from students to individuals, to university researchers, to corporations. So this has been a wonderful experience. We've shared the world's first Cyber Grand Challenge, the first all machine hacking tournament. I'm so happy to have been a part of this history in the making. And one last word. I'd like to say thank you to the man who envisioned this and brought it to fruition. And that's Mike Walker. And so, can he take us out? Thanks, everybody. I am blown away by what just happened. We just had an all computer hacking tournament. We computed 96 rounds in a little over eight hours. And everything worked. Now, when we say our results are not yet verified, it means that we're going to take all the data that came out of this AirGap robot that is now in the public domain, that you can download and look at tonight, and run it again on a completely different cloud. And make sure we just get the same answer. And what's left to happen is that tomorrow, in this room, our winners will be certified. We're going to have our prize ceremony prior to DEF CON, 10 a.m. We're going to hand out trophies, and I really hope to see all of you there. And thank you very much for staying with us as we called this tournament. And my personal thanks to H.J., Hakeem, Vizi for being the voices of this tournament. Thank you guys very much. Right now, I have to thank all the teams that were part of this thing. We have the teams that built a liquid-cooled data center behind an AirGap in three days in this room. Thank you guys so much for your planning, your execution, your excellence. We have the reverse engineers and the visualizers and all the teams that worked so hard over the course of this day to show the world inside the logic and memory of computers engaged in network battle, using new visualization tools and data mining. Thank you so much for showing us inside something that has always existed in the minds of reverse engineers. Thank you guys. And finally, the teams that built the operating systems, software, integrity mechanisms, supervisors, automation for the biggest computer security competition in history, and our referees who were responsible for most of that. Thank you guys so much. I need to say a thank you to DEF CON, to Dark Tangent for finding common ground, and to the DEF CON conference for letting us impose so much on their planning. Thank you guys. I have a thank you for the hacker community, for building the tradition of Capture the Flag and being part of the execution of this event. So many of you are either on competition teams, acting as referees, acting as voices. Throughout this effort, we relied on the hacker community to help build it and put it together. Thank you. And finally, a thank you to the people and institution of DARPA, who put the full weight of the agency's resources to bear on revolutionary technology development. Thanks. Today, we saw machines patch many of the vulnerabilities that were activated in their software within minutes, without damaging software or availability. Of the six rematch vulnerabilities, classic vulnerabilities from the history of computer security, machines found patches for them, for five of them, within the time frame of the competition. Now, these are not as hard as the original software. They're simplified versions, but they are still enormously difficult challenges. And personally, the fact that one of these machines found the crack adder bug, which is something I've been studying for years, is amazing. And we had these machines up here author 421 replacement binaries, new synthetic pieces of software, and create 650 unique proofs of vulnerability over the course of the event. That is an amazing result for adversarial automation, and I am so pleased to have gotten to witness it with you. So, if you're staying for DEF CON, please spend some time, as you listen to the speakers and meet with friends this weekend, thinking about how the transformative power of automation can change our field. Our results are public, they're in the public domain for you to reverse engineer, hack, analyze, build on, and imagine. Our competitors were challenged by the biggest hacking contest in the world, DEF CON Capture the Flag, to enter one of their automated systems into a competition with over two decades of history, played by teams of the best hackers on planet Earth. And I am informed that our finalists have accepted, and that's going to kick off around noon tomorrow, if you're staying to watch. And that challenge is going to be thrown down from the world's biggest hacking competition to our winner, tomorrow, on this stage. So, I hope you'll join us. One of these machines is going to play tomorrow. For tonight, I have a request for this room that I'd like to close with. First, I'd like to invite all of our finalist teams, the folks who built these systems, please come join me up on this stage. It's going to... and just... get in as close as you can, and as they assemble, final reminder, we're going to finish verifying scoring overnight, we'll award prizes and trophies tomorrow at 10am, right in this room before DEF CON opens. Come on up here. Hey guys. There's plenty of room. If you can, try and make room for everybody and we'll get everybody onto this stage. All right. When we announced this contest in 2013, we challenged the world to build systems that can engage in all the hard skills of computer security. Black box, reverse engineering with absolutely no knowledge of the software, protocol analysis, network defense, signature creation and management, vulnerability identification and remediation, all automatically, all live, all results open sourced, and all in front of the eyes of the world. So how many even believe such a thing possible? And of the few willing to believe, please consider for a moment the Rubicon that must be crossed between belief and action. We asked these teams to drop their work and spend two years working to build an entirely new technology that would succeed or fail in one day. Imagine spending two years of your life waking up every day to face the uncertainty of such a moment. Imagine the engineering and the research, the time and the pressure. Consider the odds against. Challenges work not because of the many who cannot imagine, but because of the few willing to make the attempt. Thank you all for your courage. I'd like to close, but this room, the loudest round of applause we can summon for those who dared.