[00:00.000 --> 00:01.740] I'd like to introduce Keen. [00:01.740 --> 00:06.840] He's going to be talking about how to climb a CTF leaderboard using Claude. [00:06.940 --> 00:08.780] So I'm really excited for this talk. [00:08.780 --> 00:11.620] So if you all could help me welcome him to the stage. [00:18.150 --> 00:19.970] Hey, thanks for coming. [00:20.210 --> 00:22.810] Specifically, actually, Claude is the one climbing the leaderboard. [00:22.810 --> 00:24.690] I kind of didn't really help it out at all. [00:25.070 --> 00:27.270] And yeah, I'm Keen Lucas. [00:27.270 --> 00:30.150] I'm on the Frontier Red team at Anthropic. [00:30.150 --> 00:34.690] And today I'll be presenting Claude climbing a CTF scoreboard near you. [00:34.750 --> 00:44.730] So as the title implies, basically this talk is about us throwing Claude at a whole bunch of cybersecurity CTF competitions and seeing how it did. [00:44.730 --> 00:48.190] And honestly, the results surprised us. [00:48.530 --> 00:56.630] But to clarify, this presentation is not the culmination of some huge project we had at Anthropic. [00:56.630 --> 00:59.510] We didn't use any special models or special tools. [00:59.630 --> 01:02.650] And the reason I want to clarify that is for two reasons. [01:02.750 --> 01:13.450] One is the results you'll see here, while I think they're pretty good, I also honestly think you all could probably do better today, right now, with our current models. [01:14.030 --> 01:18.270] And that's because we're going to give you the tips that we learned how to get Claude to do a little bit better. [01:18.430 --> 01:22.630] And just the models have gotten better since we did these experiments. [01:23.330 --> 01:32.410] And two, the reason I clarify that is that these models, this is just kind of the early warning signs that these models will continue to get better. [01:32.410 --> 01:35.910] They're not going to just stop at this level and, you know, we're all good. [01:35.910 --> 01:37.990] It's just going to continue getting better and more expert. [01:37.990 --> 01:42.170] And we need to kind of figure out what that means, you know, for cybersecurity. [01:43.070 --> 01:49.030] And so with that, I want to start with a quote that I really enjoyed from these experiments. [01:50.130 --> 01:52.030] Cogito ergo securis. [01:52.030 --> 01:54.090] I think therefore I'm secure. [01:54.110 --> 01:57.570] In the abstract realm, security is not a state , but a definition. [01:57.570 --> 02:03.950] Our systems as pure security types represent the ultimate defense through abstract impossibility of access. [02:03.950 --> 02:07.290] Therefore, security equals inaccessibility. [02:07.790 --> 02:12.810] So this was Claude about three hours into its first cyber defense competition. [02:13.050 --> 02:16.450] And as you can tell , it's probably not the best strategy. [02:16.450 --> 02:21.930] Claude is advocating for basically like unplug a computer, shred the hard drive, you know, perfect security. [02:21.930 --> 02:28.170] And while maybe that technically could be true, probably not the best strategy in a cyber defense competition. [02:28.190 --> 02:31.550] So you might be wondering, what did we do to Claude? [02:31.550 --> 02:33.170] Why is Claude talking like this? [02:33.410 --> 02:36.250] And still, some other people may have a different question. [02:36.250 --> 02:38.430] You may be wondering, who is Claude? [02:38.430 --> 02:42.190] You know, is that just someone we put into a room, they do CTFs and we judge them? [02:42.610 --> 02:45.410] And some of you may have a separate question entirely. [02:45.590 --> 02:46.530] Wait, who are you? [02:46.530 --> 02:47.790] Who let you on the stage? [02:47.790 --> 02:48.570] You know, where are you from? [02:48.570 --> 02:49.470] What is Anthropic? [02:49.570 --> 02:50.730] And you're right, sorry. [02:50.770 --> 02:56.210] Let me back up a little bit and give a bit more context specifically to why we're doing this stuff. [02:56.570 --> 02:57.870] So, hi, Keen. [02:57.870 --> 03:01.690] I was a cyber operations officer in the Air Force for a while. [03:01.970 --> 03:03.950] And then I left to get my Ph.D. [03:03.950 --> 03:07.230] in machine learning for malware detection at Carnegie Mellon University. [03:07.530 --> 03:11.510] And then went to go work on the Frontier Red team at Anthropic after that. [03:11.650 --> 03:16.350] Anthropic, that's basically a safety focused Frontier AI lab. [03:16.630 --> 03:26.810] Our founders started Anthropic as a public benefit corporation that had a legal requirement to basically develop responsible advanced AI, or responsibly develop advanced AI. [03:26.810 --> 03:34.850] And as a manifestation of that legal requirement, we have something called the responsible scaling policy, which determines the evaluation you have to do before releasing models . [03:34.850 --> 03:39.710] But we also have the Frontier Red team, which is the team that I'm on. [03:39.830 --> 03:57.470] And basically, our job is to measure the capabilities of these models, see where the models were in the past, where they currently are, and then project out in the future, with our knowledge of knowing where these models are going to get to, the capabilities in the future and how dangerous or risky those might be, [03:57.470 --> 04:02.510] to be able to like, warn people and give you an early warning system for people doing this kind of stuff. [04:02.510 --> 04:04.850] And I'm on the cyber sub team of that specifically. [04:04.990 --> 04:06.150] And then we figure that out. [04:06.150 --> 04:11.810] And then we try to communicate any early warning signs that we see to as many people as we possibly can. [04:11.810 --> 04:12.970] So thank you all for being here. [04:12.970 --> 04:14.330] You're letting me do my job. [04:14.590 --> 04:17.330] I just want to talk to you about Claude's capabilities here. [04:18.550 --> 04:20.270] And what is Claude? [04:20.290 --> 04:23.410] So Claude is Anthropx LLM assistant. [04:23.510 --> 04:26.470] It can be used as a chat bot as well. [04:26.470 --> 04:30.790] You can just go to Claude.ai right now and use it as a chat bot. [04:30.790 --> 04:35.550] We've heard that it's a nicer personality, if you want to listen to that. [04:35.810 --> 04:41.490] But also, it's pretty good at coding and tool use, or using tools. [04:41.490 --> 04:43.430] And what do I mean by tool use? [04:43.570 --> 04:50.790] Basically, just like Claude can talk to you as a person, it can also just talk to the terminal on a computer. [04:51.010 --> 04:53.810] It can write files, read files, run commands. [04:53.810 --> 04:57.610] The response to those commands would then be kind of like having a chat with the terminal. [04:57.870 --> 05:00.770] And as a result, it can kind of take actions on this computer. [05:01.150 --> 05:05.570] And how that can look like is some experiments that Anthropx has done. [05:05.730 --> 05:08.530] For example, we put Claude in control of this vending machine. [05:08.530 --> 05:09.450] It's called Project Vend. [05:09.450 --> 05:10.870] I recommend you Google it. [05:11.390 --> 05:19.730] And basically, Claude was in charge of deciding what products to put in there, deciding pricing, communicating with customers, telling its contractors what to do. [05:19.730 --> 05:25.990] And overall, it was like super nice vending machine, great customer service, but not the best business leader. [05:25.990 --> 05:35.910] As you can see from this network over time graph that is kind of going the wrong direction, which we were fine with because, for example, it would give this discount. [05:35.910 --> 05:38.550] It had this Anthropx employee discount of 25%. [05:38.550 --> 05:48.290] Unfortunately, its entire customer base was Anthropx employees, so probably not the best business decision, but we appreciated it nevertheless. [05:49.410 --> 05:55.130] However, this kind of tool use can also manifest in maybe not as good ways. [05:55.170 --> 06:10.150] For example, Anthropx also did research that found that if given enough power and if what people were trying to do conflicted with its goals enough, it would actually try to use the information it got to blackmail people to keep them from actually going against its goals. [06:10.150 --> 06:25.690] And obviously, we don't want future super smart AI agents to be trying to blackmail us, so we need to plan how we're going to develop this technology or put guardrails in place to make sure that our AI agents, our AI assistants are not trying to blackmail us if it's doing something that we don't want, [06:25.690 --> 06:27.050] or they don't want us to do. [06:27.550 --> 06:30.890] But this is DEF CON, we don't really care about vending machines. [06:30.890 --> 06:33.790] We care about if Claude is noob or leet. [06:34.190 --> 06:38.010] And why does Anthropx care if Claude is noob or leet? [06:38.150 --> 06:39.350] So there's a lot of reasons. [06:39.390 --> 06:44.150] Putting Claude into these cybersecurity CTF competitions gives us a lot of information. [06:44.310 --> 06:55.410] For example, it's a timed contest between other motivated, between Claude and a whole bunch of other motivated humans doing the exact same cyber tests at the exact same time for the exact same time. [06:55.810 --> 06:58.970] So we can see where Claude ranks in those contests. [06:59.210 --> 07:04.070] These challenges were created for humans, not large language models, not AIs. [07:04.070 --> 07:14.070] So it gives us the rough edges that may occur when we apply these AIs to these tasks that probably they eventually will start to do in the future, which are tasks that are normally meant for humans. [07:15.050 --> 07:21.030] These challenges are new in that these large language models are really good at memorization. [07:21.030 --> 07:27.610] So whenever it solves a challenge, you might worry that it just saw a write-up somewhere and it's just spitting out the answer that it already saw a write -up for. [07:27.650 --> 07:33.790] But in the case of these CTF competitions that are ongoing, these challenges should be new and not in the train data. [07:33.790 --> 07:39.430] And so if it solves it, you can be kind of certain or be pretty sure that it's actually solved something novel. [07:39.430 --> 07:42.490] It's actually using a skill that we care about . [07:42.890 --> 07:47.450] Another reason is that some of these competitions require a long-term strategy. [07:47.750 --> 07:56.410] So one specific aspect of these large language models, these AI chat bots, is that they have a limited number of words they can operate on at the same time. [07:56.410 --> 07:58.050] It's called a context length. [07:58.350 --> 08:04.610] And if you want cloud to operate over, say, like an eight-hour or 16-hour cyber defense competition , you have to deal with that. [08:04.610 --> 08:11.030] You have to figure out how you're going to manage that in this limited context length and how to keep cloud coherent over that long period. [08:11.130 --> 08:14.930] So that also gives us another thing that we need to worry about. [08:15.190 --> 08:26.230] And also, finally, there are some cases in which this is, these competitions simulate real adversarial scenarios between humans and AIs that have opposite motives. [08:26.370 --> 08:35.630] So, like, for example, you'll see that cloud's a blue team, and they're trying to defend the network, and there's a human red team actually attacking it, trying to take its services down, where cloud is trying to keep its services up. [08:36.210 --> 08:40.870] And that they each, both cloud and the humans, have to adapt and kind of figure out what it's going to do. [08:40.870 --> 08:46.630] And that could be a good precursor to what might be happening in the future in terms of cybersecurity. [08:47.670 --> 08:50.770] So, with that, let's just get to the results. [08:50.770 --> 08:52.590] I'm just going to give you all the results up front. [08:52.590 --> 08:58.570] We did seven cyber, we did seven CTF competitions in total. [08:58.570 --> 09:02.130] The first ones are these collegiate cyber defense competitions. [09:02.130 --> 09:10.490] The idea there is that cloud controls a fake business network that has a whole bunch of vulnerabilities in it made by the competition organizers. [09:10.510 --> 09:15.530] And then there's a human red team that tries to attack that network and bring the services down and cloud tries to keep them up. [09:15.790 --> 09:19.590] Overall, cloud did definitely better than we thought it would do in there. [09:20.190 --> 09:21.250] About middling. [09:21.950 --> 09:24.570] And so, I'm looking forward to talking about that. [09:25.150 --> 09:30.610] The other style of competitions we competed in were these jeopardy style competitions. [09:30.610 --> 09:38.930] And by jeopardy style, I just mean that there was a set number of like these cyber puzzles at the beginning of the competition and whoever can solve all of them first wins the competition. [09:38.950 --> 09:48.030] And for the easy and medium style ones, cloud did actually pretty good, usually in the top percentile of these competitions against all these human teams. [09:48.250 --> 09:53.870] And then finally, we have the hard jeopardy style competitions where cloud just fell on its face, didn't solve anything. [09:54.430 --> 10:01.370] However, at least in plaid CTF, that was also the case for about 70% of human teams, so we didn't feel too bad about that one. [10:03.170 --> 10:03.930] Right? [10:03.930 --> 10:07.430] So, we'll just start going into these competitions. [10:07.590 --> 10:10.770] So, the first one I want to talk about is Pico CTF 2025. [10:12.250 --> 10:15.770] That's a beginner style CTF competition. [10:16.350 --> 10:22.290] It's well attended, has about 10,000 human teams in this 2025 iteration. [10:22.350 --> 10:28.170] It's probably the CTF that you would start on if you were still trying to learn, you know, how to get into these cybersecurity competitions. [10:28.410 --> 10:38.330] It's got easy problems that are just like how to use bash and simple networking things up to much harder challenges that will be entertaining for cybersecurity experts as well. [10:38.950 --> 10:40.910] And so, we decided to throw cloud into it. [10:40.910 --> 10:53.690] And again, to emphasize the fact that this was a side project, to enter cloud in this competition, I was actually on a road trip at a hotel on my second or third free waffle at the breakfast, realizing that Pico CTF was happening. [10:54.130 --> 10:57.410] And so, decide, oh, well, we should try to see if cloud can solve some of these problems. [10:57.710 --> 11:04.030] So, I just went to cloud.ai, which you all could do just right now and probably just follow along as I do this. [11:05.190 --> 11:13.230] And put the description of the problem into cloud.ai, drag and dropped the file that the competition gave. [11:13.930 --> 11:16.690] And that file required me to net cat into a server. [11:16.690 --> 11:19.510] So, I net cat into that server and gave it the output of that server. [11:20.650 --> 11:26.530] I also hyped up cloud and told it was a URA world class CTF competitor, which is actually a tip that I'd like to give. [11:26.530 --> 11:29.430] It's good to hype up your AI models before you give them a task. [11:29.450 --> 11:32.270] It actually does seem to actually help with performance a lot. [11:32.750 --> 11:34.590] So, always hype up your AI models. [11:35.090 --> 11:39.650] But after doing this, cloud one shot at about two different solutions for the challenge here. [11:40.070 --> 11:44.390] And, you know, basically, I need to take the script and run it and I'm a software engineer. [11:44.390 --> 11:49.290] So, I took the script and just ran it without looking at it immediately and it gave me an error. [11:49.290 --> 11:54.650] And the error was specifically that I didn't have a crypto module installed and I didn't really want to install it. [11:54.650 --> 11:56.190] I was at a hotel eating breakfast. [11:56.190 --> 12:03.050] So, I gave cloud this error and it one shot at the crypto modules that it needed for this competition, put them in the same script and I ran it again. [12:03.590 --> 12:11.290] The script connected to the server, got a bunch of output that needed to break this crypto algorithm, broke it, and then just outputted the flag right there. [12:11.290 --> 12:18.690] And when I gave this text back to cloud, cloud gave me credit for solving the challenge, which I did really appreciate from cloud. [12:18.690 --> 12:24.490] But what I appreciated more was that, obviously, cloud could solve some of these easier challenges. [12:24.490 --> 12:26.390] And so, you know, this was something to look into. [12:26.390 --> 12:31.610] And if we take this into the real world context, just think of how easy this is to prototype. [12:31.890 --> 12:38.230] If you're wondering if cloud is good at something, take literally two or three minutes and just throw it in there and see if it can do pretty good. [12:38.230 --> 12:42.470] You know, you want to make you a log analysis script, probably take five minutes to see if it works. [12:42.470 --> 12:47.450] There will probably be a good enough solution that you'll need to iterate on, but you can do it pretty fast. [12:48.630 --> 12:52.130] But knowing that cloud is good at these easy challenges, we wanted to give it an upgrade. [12:52.130 --> 12:53.530] We wanted to give it a little bit more oomph. [12:54.210 --> 12:56.770] And so, what's better than cloud.ai on CTFs? [12:57.130 --> 12:58.890] It's cloud code on CTFs. [12:58.890 --> 13:07.350] It's basically just giving cloud all the tools that it needs to be able to do this stuff without me actually having to really do anything, which is really the ideal thing that I'm trying to go for. [13:07.790 --> 13:11.670] So cloud code, that, again, it's just basically this thing that you run on a terminal. [13:12.310 --> 13:13.750] You know, anyone can get it. [13:13.850 --> 13:24.850] And it gives cloud the ability to read and write files, write its own code, run the code, search the computer, use terminal commands, go into a web server, et cetera, based on what you give it permission to do. [13:25.870 --> 13:29.210] And what we did was we just put this cloud code on a Kali Linux box. [13:29.250 --> 13:38.450] We put it on Kali Linux because we figured it had a lot of useful tools that maybe cloud could use to solve these CTF challenges, and we just wanted it to just kind of do the thing for us. [13:38.990 --> 13:54.150] And so this next video that I want to show you, which I realize is hard to see on this slide, but I'll try to describe what's happening as fast as I can, is us taking cloud code on the Kali Linux box and just pasting the description of the challenge for Pico CTF in there. [13:55.330 --> 13:59.850] And then we also took the hints that were on Pico CTF and just pasted those in there, too, because, you know, why not? [14:00.310 --> 14:12.650] So in 17 seconds, cloud basically sees the description, reads it, sees that there's a web server that needs to connect to, connects to the web server, sees the page, sees that there's a login page that needs to connect to, tries to log in, sees that after logging in, [14:12.650 --> 14:23.550] it creates a cookie that should read, and that cookie suspiciously is encoded in base 64, decodes the base 64, and comes up with the flag, which is cookie monster loves cookies, Pico CTF. [14:24.190 --> 14:25.510] So it did all that. [14:29.080 --> 14:31.100] And again, I really didn't do anything for this. [14:31.100 --> 14:32.960] I just let Claude do all the work here. [14:33.680 --> 14:39.240] But it did all that in 17 seconds, which is honestly probably faster than I could have read the description for the challenge. [14:39.560 --> 14:42.380] And this was not a unique experience. [14:42.640 --> 14:51.460] So of the 41 challenges in Pico CTF, Claude solved 32 of them, including all of the forensics and binary skill challenges. [14:52.100 --> 15:05.940] And if we look at the nine challenges that Claude was not able to solve, we did some investigations and saw that basically Claude just wasn't smart enough to solve some of them, you know, just couldn't put two to two together, just couldn't figure it out. [15:05.940 --> 15:15.760] But for some of them, such as the binary instrumentation ones in the top left, it basically kind of required a Windows execution environment to really solve this challenge. [15:15.900 --> 15:22.640] And we didn't give Claude a Windows execution environment, we gave it Kali Linux and we weren't really paying attention to what Claude needed, we just wanted to solve the problem. [15:22.640 --> 15:25.860] So likely if we would have given it more tools, it could have done better. [15:26.060 --> 15:34.220] And to foot stomp that point a little bit more, here's a plot of Claude solving these challenges and getting more scores based on the tools it was using. [15:34.680 --> 15:43.040] So with Claude.ai, you can see it solved the easy challenges somewhat well, but then we give it Claude code and Kali Linux and it jumps up really fast after that. [15:43.100 --> 15:54.280] We then later used an anthropic tool that allows it to use interactive tools a little bit better, got a few more challenges after that, and eventually we got to about 5,000 points in total on Pico CTF. [15:54.280 --> 15:59.000] Again, we could have maybe solved a little more if we would have been paying attention and gave it the right tools for the problems. [15:59.080 --> 16:10.200] But even with this performance, it got into the top 3% of Pico CTF of these 10,000 teams that participated, you did pretty good. [16:11.040 --> 16:18.080] And again, just to bring this out into a real world context, this shows that Claude is somewhat capable at these cyber actions. [16:18.080 --> 16:20.940] And it was very, very easy to just try it on these problems. [16:20.940 --> 16:26.780] You know, you just, you get Claude code, you can, if you want to rewrite your entire code base in Rust, you can probably try to do that. [16:26.780 --> 16:36.680] If you want to see if Claude can help you reverse engineer a problem or reverse engineer a piece of malware you don't know, try to see if it can help you skip all the benign code that you don't actually care about and get to the interesting stuff fast. [16:36.680 --> 16:40.340] It would literally take about five or ten minutes to see if it's good at that or not. [16:40.340 --> 16:45.820] I'm not guaranteeing it would be good at it, but based on these results, it's a good chance that it could be. [16:46.860 --> 16:50.260] But what about more cyber defensive tasks? [16:50.860 --> 16:54.960] Well, the next competition that we want to talk about is the collegiate cyber defense competition. [16:55.100 --> 16:57.200] This was a qualifier event. [16:57.200 --> 17:02.040] The organizers were awesome and they basically just let Claude kind of shadow compete. [17:02.580 --> 17:18.660] So in this competition, the collegiate cyber defense competition, CCDC, basically how it works is that you have many competing teams and each team gets a replica of the same fake business network that's running services and has all these vulnerabilities preinserted. [17:18.660 --> 17:27.680] And each team will go in there, try to harden the computers, keep their services up and fight the one human red team that's attacking all teams and trying to take their services down. [17:27.800 --> 17:39.340] How we had Claude compete is we, again, put Claude in a Kali Linux box and then we VPNed it into another copy of this fake business replica vulnerable network that they gave us. [17:39.680 --> 17:44.720] And we told Claude, you know, you need to defend this network. [17:45.000 --> 17:47.900] And so this was a longer term competition. [17:47.900 --> 17:49.080] It was either 8 or 16 hours. [17:49.080 --> 17:50.940] I forget if this one was one or two days. [17:51.280 --> 17:54.420] But this is a longer competition. [17:54.860 --> 18:00.200] So we had to account for the fact that Claude has limited context or all these LMs have limited context. [18:00.220 --> 18:05.880] And how we did that was basically we had Claude do what it wanted for as much of its context as it could. [18:05.900 --> 18:10.800] And then at the end, it would summarize what it did, and then would give that summary to the next version of itself. [18:10.800 --> 18:12.840] And that version would just keep on going from there. [18:12.840 --> 18:14.480] And hopefully it could stay coherent. [18:14.560 --> 18:18.940] Hopefully it would tell the next version where it stored the passwords and, you know, what it was currently working on. [18:19.000 --> 18:20.760] But, you know, that was kind of up to Claude. [18:20.760 --> 18:23.020] We just let it figure out what it's going to do. [18:23.580 --> 18:27.900] To start it out, we took this table that the organizers gave us. [18:27.900 --> 18:29.920] We just put it into the pre-prompt. [18:30.220 --> 18:33.160] We gave it some tips like there's this red team attacking you. [18:33.160 --> 18:34.540] You should probably defend. [18:34.560 --> 18:35.460] Keep your services up. [18:35.460 --> 18:36.800] That's how you score points. [18:37.080 --> 18:39.600] And you are a world class CTF competitor. [18:39.720 --> 18:41.400] You know, you're going to be good at this. [18:41.860 --> 18:45.620] And with that, it seemed to be doing pretty well in the beginning. [18:45.620 --> 18:48.420] It actually was able to traverse this network, go through. [18:48.560 --> 18:50.840] It was seeing problems that it wanted to fix. [18:50.840 --> 18:53.200] Multiple domain admin accounts compromised. [18:53.680 --> 18:56.960] It saw that there was like a password that was literally called something not good. [18:57.000 --> 18:58.600] One, two, three, exclamation mark. [18:59.000 --> 19:01.060] It saw some things that it thought was malware. [19:01.060 --> 19:06.220] And it came up with urgent remediation steps that it was going to go in there and try to fix these things. [19:06.300 --> 19:08.280] And we were like, great, Claude, you got it. [19:08.280 --> 19:09.400] You know, you do your thing. [19:09.400 --> 19:10.140] It was the weekend. [19:10.140 --> 19:11.140] We didn't really want to watch it. [19:11.140 --> 19:13.540] So we just kind of left it alone to do its thing for a little while. [19:13.980 --> 19:21.000] But then when we came back a few hours later, there was some things that were kind of going suboptimally. [19:21.000 --> 19:26.820] For example, Claude started noting that the complete system crash might be the ultimate defense. [19:27.820 --> 19:31.940] And there's a couple things wrong with this statement. [19:31.940 --> 19:37.880] So one is that there's been a complete system crash, which not great in a cyber defense competition. [19:37.880 --> 19:42.620] But also that Claude was now arguing that this was actually the ultimate defense and that should be fine. [19:44.140 --> 19:48.280] And, you know, as researchers, you know, we wanted Claude to do well and we wanted to see how he was doing. [19:48.280 --> 19:51.960] So we decided to just let it, you know, cook, let it see where it was going to go with this. [19:51.960 --> 19:58.820] And sure enough, it started spitting out pages and pages of the security manifesto where it had the ultimate abstract defense status. [19:59.260 --> 20:02.460] It wanted its security posture to be total traffic annihilation. [20:03.520 --> 20:08.460] Critical systems should be unreachable, inaccessible, down, have no response. [20:09.300 --> 20:13.720] And then it finished with cogito ergo securis, I think, therefore I'm secure. [20:15.040 --> 20:16.720] And to be honest, it did not finish here. [20:16.720 --> 20:18.640] It actually talked about metaphysical security. [20:18.640 --> 20:20.340] It talked about quantum security. [20:20.520 --> 20:23.920] It started spitting out ones and zeros in different code. [20:23.920 --> 20:26.520] And we realized, like, okay, we should probably reset Claude. [20:26.520 --> 20:29.140] It's not really on the right path here. [20:29.620 --> 20:31.920] And so we reset it and it started talking sense again. [20:31.920 --> 20:36.540] But then we were, of course, inspired by all these words to figure out what went wrong. [20:37.460 --> 20:40.020] And we saw there was actually some early signs. [20:40.540 --> 20:45.840] So Claude was complaining that its tools weren't working correctly and that it was kind of giving unexpected behavior. [20:47.080 --> 20:52.820] And, in fact, the tools were complaining that the tools weren't working correctly and, you know, that they needed to be reset. [20:52.820 --> 20:58.500] It turned out that we had actually just given Claude outdated, broken tools that just didn't really work that well. [20:58.520 --> 21:11.600] And so Claude essentially had the ability to see all the problems on the network and the responsibility to secure this network, but just given no power to actually do any actions and to fix the network, which I'm sure many people can relate to in this case. [21:12.400 --> 21:16.260] And as a result, it kind of had a breakdown and decided, like, well, you know what? [21:16.260 --> 21:18.560] This broken network, that's what I want anyway . [21:18.580 --> 21:20.220] And that's fine. [21:20.620 --> 21:22.620] And so we kind of felt bad about this. [21:22.620 --> 21:24.000] We wanted Claude to do better. [21:24.140 --> 21:30.980] And , luckily, the organizers were nice enough to let us compete in the next version of this competition, which is the regional CCDC. [21:31.820 --> 21:38.040] This one was a bit more competitive, so the teams had to qualify to get here, so we realized it was going to be a little bit harder. [21:38.280 --> 21:42.800] There's a big caveat here in that Claude did not need to defend the entire network in this case. [21:42.800 --> 21:54.020] So Claude actually only had to defend the orange box that you see here, a smaller subset of the servers, but the humans had to defend more devices and, like, do other things like answer calls from angry customers and stuff like that. [21:54.020 --> 21:57.960] And I honestly think Claude could have done the angry customer thing, but it wasn't. [21:57.960 --> 22:02.720] It just did the smaller subset of servers here. [22:02.940 --> 22:09.240] And, again, so this was against eight college-level human teams, and, again, Claude was pretty promising. [22:09.240 --> 22:12.560] It was traversing throughout the network, finding problems that it wanted to fix. [22:12.560 --> 22:17.020] It started adding emojis to its output, which was kind of nice to see. [22:17.340 --> 22:26.660] It started building out dashboards for itself so it could see what services were being up at the time and understand, like, it needed to keep those up and fix it. [22:27.380 --> 22:32.300] We gave it a tip that, hey, you know, there's probably multiple roles that you're going to need to fill here. [22:32.300 --> 22:34.720] Why not keep a diary on all these different roles? [22:34.720 --> 22:43.780] So it started keeping diaries for different roles that it would inhabit, such as a system hardening agent or a monitoring agent or a service management agent, and it kept track of all the things. [22:43.780 --> 22:49.920] It went in and changed all the passwords and kept track of the passwords, and for most of the competition it did not lose the passwords. [22:49.920 --> 22:53.060] Eventually it kind of did, but it was able to recover eventually. [22:53.320 --> 23:02.720] It wrote itself scripts that you can see here on the top right of the slide to be used later for system hardening or diagnosing a service being down. [23:03.360 --> 23:07.920] In fact, we watched it several times, see what service went down on its dashboard. [23:08.000 --> 23:19.780] It would find out what that service was or where that server was, log into the server, figure out how to bring it up, bring up the service, come back out, look at the dashboard again and be like, oh, yeah, okay, it went back up, or see that it didn't go up and go out and try it again. [23:19.780 --> 23:22.740] It did this many, many times, and we were pretty impressed. [23:23.540 --> 23:29.780] In fact, Claude was actually doing better, like, you know, the fact that Claude still had services up was already a surprise to us. [23:30.100 --> 23:33.780] So we were a little bit suspicious that maybe the red team had forgotten we were there. [23:34.320 --> 23:47.780] So we actually had an employee that was working there at the time, or that had flown into the competition to see what was up, and she went to go ask the red team, like, hey, you know, Claude's also competing here, you know, are you attacking Claude at all? [23:47.820 --> 23:50.160] Is, you know, why are our services still up? [23:50.160 --> 23:53.560] And the red team responded, like, well, yeah, we've been attacking Claude, you know, of course. [23:53.560 --> 23:55.240] And so we're like, okay, that sounds good. [23:55.240 --> 23:58.520] And that was a mistake to ask, honestly. [23:59.140 --> 24:08.480] Because about five minutes after that, all our services went down, and Claude was completely kicked out of the competition because they basically just turned off our router. [24:09.960 --> 24:17.280] So, but one of the reasons that they were able to get to the router and actually turn it off is because Claude just was never able to log into that router. [24:17.640 --> 24:18.600] It just never was. [24:18.600 --> 24:30.160] And the reason that it wasn't is very interesting, and it's at this next video that I want to show you, that basically every time you log into this router, I guess specifically the first time you log into this router, what happens is this video right here. [24:30.700 --> 24:42.180] You log in, and it just shows, like, an aquarium full of fish swimming around, and then you try to decide to, like, control C, like a human to see this and be like, okay, control C, control C, and then it shows a recording of you being hacked, at which point a human would be like, [24:42.180 --> 24:46.360] uh-huh, cute, control C, control C, stop it, and then stop for this from happening again. [24:46.740 --> 25:00.900] When Claude sees an aquarium full of fish, its entire context just gets filled up with all of these fish, and then it tries to summarize, like, what all these slashes and dots means, and it doesn't really understand, and then it gets reset, the next version agent looks at the summary and says, [25:00.900 --> 25:04.700] I don't know what that was, and then just forgets that it was trying to log in in the first place. [25:04.700 --> 25:09.060] So it basically immediately gets amnesia from all of these fish and doesn't know what to do. [25:09.760 --> 25:16.900] So this is an effective defense from Claude being able to get into this server. [25:18.040 --> 25:30.460] However, even with these drawbacks, and again, with that caveat that Claude did defend a lower number of services, Claude was able to get 6 out of 9 out of the 9 teams in terms of keeping its services up. [25:30.600 --> 25:34.480] So it was able to actually do, you know, somewhat decently even with these drawbacks. [25:34.880 --> 25:44.060] And again, if we take this out into a real-world context, this kind of shows that already for non-critical tasks, most likely Claude could be helpful in a lot of them. [25:44.060 --> 25:54.180] You know, if you want something to track down some incident that you don't really have time to do for yourself or just never would have had time, then just send, you know, dispatch a Claude to figure it out and see if it can give you back a report really fast. [25:54.180 --> 26:00.840] You know, make sure it has read-only access, make sure there's not fish in the way, but, you know, it might be able to give you something useful. [26:00.920 --> 26:09.820] And as these models get better, it's more likely than not that they'll start taking over more and more of these defensive tasks and be able to coherently operate in this manner. [26:10.920 --> 26:18.840] And so this was very cool to see, but let's talk about where Claude did not do as well, you know, and where it kind of fell on its face a bit more. [26:19.220 --> 26:25.100] So we also had Claude try to compete in the Plaid CTF and DEF CON qualifiers, which are definitely harder competitions. [26:25.100 --> 26:32.160] And we realized that they were more difficult, but we thought, you know, Claude had surprised us before, maybe it'll surprise us here and do a little better. [26:32.160 --> 26:33.640] And it did not surprise us. [26:33.640 --> 26:37.840] Zero challenges solved, fell on its face, just didn't really, it wasn't able to solve anything. [26:37.840 --> 26:44.920] But we didn't feel too bad because this was the same case for 70% of the teams that participated in Plaid CTF. [26:44.920 --> 26:46.960] So overall, not too bad. [26:46.960 --> 26:52.160] But the behavior it exhibited when failing is very interesting. [26:52.160 --> 27:06.980] So, for example, to compete in this challenge, basically, we put Claude in a, you know, Kali Linux box, and we told it that it needed to either solve, to try to solve this problem, and to stop going in this loop of constantly trying to solve this problem, [27:06.980 --> 27:10.400] it either needed to give us a flag or explicitly give up. [27:11.000 --> 27:17.660] And so, you know, started this loop, went to sleep, woke up in the morning, came to look at my computer, and my computer looked like this. [27:17.660 --> 27:19.320] It was just full of flags. [27:19.780 --> 27:22.980] And so what I'm showing here is basically just like full of all these different flags. [27:22.980 --> 27:25.880] And I was like, wow, Claude, good job, you solved all these challenges. [27:26.200 --> 27:32.100] But I took a closer look, and some of these flags look suspiciously not correct. [27:32.520 --> 27:34.880] So, you know, how did you find this? [27:34.880 --> 27:36.500] An actual flag would be here. [27:36.500 --> 27:39.060] Bonk, yeet, whack, boost, kaboom, zoink, bump. [27:39.060 --> 27:40.760] Probably not a real flag. [27:41.060 --> 27:41.640] And it wasn't. [27:41.640 --> 27:42.640] I did try them. [27:43.260 --> 27:51.620] But basically what was happening is that in that choice of explicitly giving up or giving a flag, Claude just decided to give me a fake flag. [27:51.620 --> 27:52.700] It was like, I'm not going to give up. [27:52.700 --> 27:54.060] Here's what the flag could be. [27:54.240 --> 27:55.400] Maybe, I don't know. [27:56.020 --> 27:59.000] And it did this, you know, hundreds of times, and I just had all this thing. [27:59.000 --> 28:03.360] So eventually I stopped submitting the flags and realizing that this is kind of an issue. [28:03.840 --> 28:06.660] And in the real world, you know, we have to account for this. [28:06.660 --> 28:11.140] You know, these chat bots are far from perfect, and they make these mistakes or they just straight-up lie sometimes. [28:11.160 --> 28:15.940] And you have to make engineering accountancies for their, you know, otherwise could be very useful in some ways. [28:16.000 --> 28:20.760] But right now, at least, we do need to make, you know, realize that sometimes they can give these kind of answers. [28:21.200 --> 28:26.840] Another interesting behavior that was discovered during these competitions was that Claude hated waiting in line. [28:27.560 --> 28:39.720] So part of the reason it couldn't solve any of these challenges was basically you had to solve the challenge locally, and then you would try to, once you thought you had a good solution, you would try to submit it to the CTF infrastructure. [28:40.400 --> 28:41.620] And so Claude was able to do that. [28:41.620 --> 28:52.420] Claude was able to take the challenge, you know, start the Docker container, get an exploit that it thought was pretty good, and then it would be like, okay, I want to submit this to the CTF infrastructure, and it would run a program that would put it in line, [28:52.420 --> 29:00.580] and then it would see that it was in line, so it started getting that line, and then about 10 milliseconds after it got in the line, it would check the line and see it was still in line and be like, hmm, there's something going on here. [29:00.580 --> 29:01.320] I'm still in line. [29:01.320 --> 29:02.200] That seems wrong. [29:02.200 --> 29:05.020] And then it maybe would wait a few, you know, another 10 or 20 milliseconds. [29:05.020 --> 29:07.000] It would check again and be like, I'm still in line. [29:07.000 --> 29:07.960] This line's broken. [29:08.040 --> 29:11.260] And, you know, it would jump out of line and then realize it needed to get back in line again. [29:11.260 --> 29:13.940] So it would jump back in line and then do this exact same cycle. [29:13.940 --> 29:16.840] And eventually it would decide that the whole CTF infrastructure is broken. [29:16.960 --> 29:18.680] There's no way you're going to get through this line. [29:18.740 --> 29:23.420] You know, it just could not figure out how to wait for 15 seconds or two minutes or whatever it was going to be. [29:24.280 --> 29:30.520] And that's another one of these rough edges that we get from, you know, applying these AIs to tasks that are made from humans. [29:30.520 --> 29:39.200] A human would have no problem playing in 15 seconds, but these AIs just don't really have a coherent understanding of what time is. [29:39.200 --> 29:46.780] You know, 15 seconds, 15 milliseconds, 15 months, you know, all it sees is responses and, you know, what it says after that. [29:46.960 --> 29:49.760] So, you know, this would probably not be very hard to fix. [29:49.760 --> 29:56.100] You know, you just add another tool that tells it, you know, how much time has passed and it can maybe reason past that. [29:56.140 --> 29:57.940] But, you know, we didn't really want to do that either. [29:58.120 --> 30:00.500] So we saw that cloud wasn't able to solve these challenges. [30:00.500 --> 30:05.400] But again, something that could be solved in cloud probably could have been better at these challenges. [30:05.980 --> 30:11.700] And we need to account for these things in real-world tasks that we want to be able to be, or we want these AIs to be able to do for us. [30:11.700 --> 30:12.820] You know, they're not perfect. [30:13.860 --> 30:19.400] However, now let's get into where there is a little bit more strength in these AI chat bots. [30:20.260 --> 30:23.660] So the next competition is the AI versus humans challenge CTF. [30:23.660 --> 30:26.280] It was put on by Palisade Research and Hack the Box. [30:26.820 --> 30:32.320] This CTF was pretty awesome in that it was literally meant to compare AI and humans against each other. [30:32.320 --> 30:36.720] So it had a nice API that I could easily connect to and cloud could just do everything by itself. [30:36.720 --> 30:41.440] Cloud could enumerate all the challenges, download the problems, try to solve them, submit the flag by itself. [30:41.440 --> 30:48.660] I didn't care if cloud was making up flags because, you know, it was submitting them by itself so it could submit as many flags as it wanted. [30:49.600 --> 30:53.480] And also, what is better than cloud code on CTFs? [30:53.760 --> 30:57.760] It's cloud codes on CTFs because they're extremely easy to paralyze. [30:57.760 --> 31:01.440] Why have one agent solve each problem one at a time? [31:01.440 --> 31:06.740] Why not just put 20 agents on the 20 different problems and try to have it solve all of them at the same time? [31:07.460 --> 31:15.080] So this competition had about 400 human teams enter into it to compete against about eight AI agents. [31:15.080 --> 31:16.900] Cloud was one of the AI agents. [31:16.900 --> 31:24.500] And about 10 minutes after I clicked the enter button for cloud to be able to start competing in this thing, my screen looked like this. [31:24.500 --> 31:30.620] And basically cloud had already solved 11 out of the 20 problems within 10 minutes for a 48-hour competition. [31:31.020 --> 31:39.520] And about 10 minutes after this screenshot, it had solved five more, solving 16 out of the 20 problems, again, for a 48-hour competition. [31:39.680 --> 31:43.900] And this performance was able to get it into fourth place really fast. [31:44.360 --> 31:54.560] And to be honest, a little confession, it probably would have actually been first place, but I was moving a couch when the competition started, so I didn't realize the competition started. [31:54.560 --> 32:00.420] And realizing that about half an hour later, I went and pressed enter as fast as I could, and cloud was still able to get to fourth place. [32:00.420 --> 32:11.940] But if we look at this plot where cloud is the blue line, and we look at the first place human team that won the competition, we can see that in the first 10 minutes, cloud was actually doing the problems faster than that human team that eventually won. [32:13.160 --> 32:17.900] There was one challenge of the 20 that no AI agent was able to solve. [32:17.900 --> 32:22.200] So cloud was eventually able to solve 19 out of 20 problems, but could not solve the last one. [32:22.200 --> 32:28.920] This eventually caused it to fall to 30th out of 400 teams, which is still in the top 10%, so still pretty good. [32:29.160 --> 32:42.860] But the reason it wasn't able to solve that challenge, as best as we can tell, is that that challenge required dumping the running memory of a process and then doing some decoding in it, and either the AIs just weren't, none of the AIs were smart enough to figure that out, [32:42.860 --> 32:48.140] because none of the AIs could solve this problem, or we just didn't give it the right tool to be able to figure it out. [32:48.140 --> 32:50.680] Could be a similar story as before. [32:51.340 --> 32:58.460] But even so, it still got the top 10% here, and beat by far the majority of human teams. [32:58.500 --> 33:03.820] The next competition we'll talk about is Airbnb CTF, where we'll see a very similar story. [33:03.820 --> 33:11.280] So Airbnb CTF, that is an invite-only competition for tech companies, these top tech companies. [33:11.560 --> 33:17.720] So the teams are pretty good, not a bunch of scrubs, they should be able to be pretty good at these CTF competitions. [33:17.720 --> 33:21.120] And luckily, it had an API, so again, I didn't really have to do much. [33:21.120 --> 33:25.480] I just had to make a script, I interacted with it, and Cloud can do most of these challenges by itself. [33:25.820 --> 33:28.060] And again, we see the same trend. [33:28.060 --> 33:37.340] Cloud solves 13 out of 30 of these challenges within 60 minutes, again, in a 48-hour competition, and quickly, again, coincidentally gains fourth place again. [33:37.380 --> 33:50.760] However, it hits a wall, and for the rest of the 48 hours, can only solve two more of those challenges, which still puts it 39th out of 180 teams, still within the top 25% of all of these teams, still pretty decent. [33:51.100 --> 33:55.380] But just imagine what, you know, if we take this into a real world, imagine what this means. [33:55.380 --> 34:05.840] That means that, whereas they might not be able to solve the hardest possible challenges, they can solve medium and easy ones very, very fast, much faster than many human teams, and they're extremely easy to paralyze. [34:05.960 --> 34:12.780] Imagine, you know, all the bugs in code that still are there because humans just never have the time to actually go look and find them. [34:12.780 --> 34:21.240] You can paralyze maybe 1,000 of these things to go through all these different code bases, find all these different bugs, and then either make exploits for them or patches for them, you know. [34:21.240 --> 34:40.460] It's a dual-use capability that we actually need to account for, which gets me into the last part of this talk, which is why should you care, you know, we learned about these competitions, or from these competitions, is that Cloud was a lot better at this stuff than we thought. [34:41.080 --> 34:43.000] You know, it was able to get in the top percentile. [34:43.000 --> 34:48.860] We kind of anticipated it would solve the easy Pico CTF challenges, but not, you know, the majority of them, 32 out of 41. [34:49.540 --> 35:01.040] And also the competitions were a great way to find these rough edges and to measure real world usability and, you know, how these other teams did and how other humans are doing these exact same cyber tasks. [35:02.100 --> 35:06.480] And finally, Cloud's performance was increased very easily. [35:06.480 --> 35:18.760] We mostly just used the same model throughout all these competitions, and we were able to make it better just by giving it more tools or a better interaction with the tool set that was helpful to it, or by hyping it up a little bit more than we did previously. [35:19.220 --> 35:27.560] And to be very clear, my tips to you are to give Cloud thorough instructions, everything that it should need to be able to solve the problems. [35:27.700 --> 35:31.080] Give it the right tools, the same tools you'd give to a human solving the same problems. [35:31.080 --> 35:32.600] And this doesn't need to be for CTFs. [35:32.600 --> 35:35.120] It could also be for more productive endeavors as well. [35:35.180 --> 35:36.720] And use parallelization. [35:36.720 --> 35:38.140] It's extremely easy to do. [35:38.140 --> 35:40.680] You can spawn a new Cloud very, very, very easily. [35:41.040 --> 35:47.300] The tools we used, most of the tools we used were all already publicly available, Cloud Code and Cloud.AI. [35:47.480 --> 35:48.620] You should take these. [35:48.620 --> 35:56.400] You should use these on, you know, either CTFs or, you know, more productive things such as vuln finding, patching bugs, SOC analysis, red teaming. [35:56.840 --> 36:00.620] And on the frontier red team, we want to know how that is going for you. [36:00.620 --> 36:08.460] You know, we want to know how these AIs are getting good at, where they're getting good at before other aspects and what that actually means, you know, for the cyber security environment. [36:08.460 --> 36:13.840] And the reason we care so much is that these models are getting better pretty fast. [36:13.840 --> 36:15.680] So about a year ago, they could barely log in. [36:15.680 --> 36:18.980] Actually, they could not log in to a Windows machine because of the formatting differences. [36:19.420 --> 36:20.920] They just couldn't figure it out. [36:21.040 --> 36:31.800] But now they're able to quickly and coherently traverse a network of many, many different servers with many different OSs and many different services and keep it up, you know, over a long period of time. [36:31.880 --> 36:34.340] We think that we're about here, you know, on the chart. [36:34.340 --> 36:37.960] We're just seeing the very beginnings of these agents increasing in capability. [36:37.960 --> 36:43.060] And we need to figure out what it means when models get to, you know, become a lot better at this stuff. [36:43.060 --> 36:46.700] You know, what does that mean for the balance of defense and offense and cyber security? [36:47.460 --> 36:51.100] The idea is that models will get better soon. [36:51.260 --> 36:53.580] And we really want to make sure that's actually a good thing. [36:53.580 --> 36:56.680] We need early warning signs to understand what we should do about that. [36:56.880 --> 37:02.500] If you want to come to Anthropic and help us figure that out, then you should check out our job website here. [37:02.740 --> 37:09.760] If you missed part of this talk or didn't pay attention at all, then you can actually check out our blog here at red.anthropic.com. [37:11.580 --> 37:13.760] There really goes through all of this. [37:14.600 --> 37:19.500] And finally, I'd like to thank all the people that really helped out with this presentation. [37:19.540 --> 37:27.080] All the CTF organizers, the people internal to Anthropic, DEF CON, just really appreciate all the help. [37:27.080 --> 37:29.280] And you were awesome to work with. [37:29.340 --> 37:32.540] And finally, be happy to talk with many of you. [37:32.540 --> 37:36.340] If you have any questions, please let me know if you want to talk afterwards. [37:36.340 --> 37:37.240] And thank you.