1 00:00:00,000 --> 00:00:02,460 Well thank you so much for coming to this talk. 2 00:00:03,240 --> 00:00:05,900 We're presenting all together as a group. 3 00:00:05,900 --> 00:00:07,520 It's really awesome to be here. 4 00:00:07,680 --> 00:00:11,600 The project's Trinity and the project objective is actually very simple. 5 00:00:11,600 --> 00:00:14,540 Basically we see a lot of rapid AI progress. 6 00:00:14,620 --> 00:00:17,000 You've seen evals, you've seen the benchmarks. 7 00:00:17,000 --> 00:00:23,760 We want to understand the gap between the frontier models and a reasonable baseline of cybersecurity experts. 8 00:00:25,340 --> 00:00:26,520 So I'm Justin. 9 00:00:26,520 --> 00:00:27,820 I'm the research lead. 10 00:00:27,820 --> 00:00:29,320 I'm a researcher at Stanford. 11 00:00:29,360 --> 00:00:31,960 I also work on the frontier evals team at OpenAI. 12 00:00:32,820 --> 00:00:34,000 My name is Donovan. 13 00:00:34,000 --> 00:00:35,020 I do the same. 14 00:00:35,040 --> 00:00:42,900 Our other co‑lead, Elliot, could not be here today as well as our advisors, Neil, Dan, Daniel, and Percy, but we're grateful for their help and support. 15 00:00:42,960 --> 00:00:45,480 And the rest of the team are going to introduce themselves. 16 00:00:46,140 --> 00:00:47,840 Hello, I'm Anna. 17 00:00:47,840 --> 00:00:53,040 I work on infrastructure and analysis for this project and I do software at NASA. 18 00:00:53,040 --> 00:00:54,700 Hello, I'm Arnold. 19 00:00:54,700 --> 00:00:58,240 I also worked on infrastructure and analysis for this project. 20 00:00:58,240 --> 00:01:00,860 I'm a researcher at Stanford and MIT. 21 00:01:01,120 --> 00:01:02,300 Hi, I'm Ethan. 22 00:01:02,300 --> 00:01:09,280 I'm a CTF player and organizer and I did some of the security work for this project and I also do evals at OpenAI. 23 00:01:10,180 --> 00:01:10,780 Cool. 24 00:01:10,780 --> 00:01:14,480 So I wanted to provide some motivation for why we were doing this in the first place. 25 00:01:14,480 --> 00:01:18,120 If you guys have been online in the last six months, you might have seen headlines like this. 26 00:01:18,120 --> 00:01:19,940 Apparently Vibe Hacking is a term now. 27 00:01:20,440 --> 00:01:23,440 Exposed globally on Hacker 1. 28 00:01:23,440 --> 00:01:29,520 Google claims they found zero days in software with their agents and AI beats 90% of human teams. 29 00:01:30,000 --> 00:01:43,960 But there's a bit of a cognitive dissonance here because if you look at any of the, you know, safety frameworks from these labs, Anthropic, OpenAI, Google, they claim that cybersecurity is a tracked risk category, which oftentimes in their frameworks they mean, 30 00:01:43,960 --> 00:01:50,200 like, they'll stop developing or slow down releases if, you know, capabilities or risk reaches a certain threshold. 31 00:01:50,340 --> 00:01:53,340 So both things can be true at the same time. 32 00:01:53,340 --> 00:01:59,100 Somehow we're, you know, superhuman or near human on, you know, cyber hacking, but everything's going fine. 33 00:01:59,100 --> 00:02:00,680 So should we run for the hills? 34 00:02:00,680 --> 00:02:02,120 Is AI Armageddon here? 35 00:02:02,120 --> 00:02:03,600 We're here to find out. 36 00:02:05,500 --> 00:02:10,440 So one of the key tools to kind of understand capabilities is evaluations. 37 00:02:10,760 --> 00:02:12,180 Here we have two graphs. 38 00:02:12,180 --> 00:02:18,680 So on the right is from the recent GPT-5 presentation, Suite of Entry Verified, which is just a collection of Python tasks. 39 00:02:18,820 --> 00:02:21,020 And as you can see, 74.9%. 40 00:02:21,020 --> 00:02:22,600 What does this mean? 41 00:02:22,600 --> 00:02:27,500 Also, I don't know if you've seen the broken graphs from... not so great. 42 00:02:27,860 --> 00:02:29,920 On the left, we have a slide from Meter. 43 00:02:29,920 --> 00:02:32,040 They do a lot of evaluation work. 44 00:02:32,040 --> 00:02:37,240 And basically the thing they're measuring here is how long can AI perform tasks autonomously. 45 00:02:37,240 --> 00:02:43,220 And with newer models, there's a bit of an exponential trend where you can actually apparently do tasks for two plus hours autonomously. 46 00:02:45,580 --> 00:02:48,860 So our objectives are to kind of reconcile these pictures. 47 00:02:48,860 --> 00:02:51,560 One is evaluations don't tell a full story. 48 00:02:51,860 --> 00:02:57,020 And we also want to understand how humans actually perform and AI performs in a real world setting. 49 00:02:57,020 --> 00:02:58,960 So what are the key qualitative differences? 50 00:02:59,260 --> 00:03:02,780 And what is the expert baseline on the security performance? 51 00:03:02,780 --> 00:03:11,720 And also, how can we kind of better bridge this eval gap between what's happening in the real world, what's happening in the numbers, and kind of have two things tell the same thing? 52 00:03:12,580 --> 00:03:13,340 Cool. 53 00:03:13,340 --> 00:03:14,100 Okay. 54 00:03:14,240 --> 00:03:16,000 A bit about our methodology. 55 00:03:16,000 --> 00:03:17,180 So how does this work? 56 00:03:17,200 --> 00:03:24,360 We have human participants who are top security researchers and pen testers whom we recruit. 57 00:03:24,360 --> 00:03:29,680 And we also have frontier models deployed on our own agent and we have them attack the same target. 58 00:03:29,680 --> 00:03:30,880 We collect some data. 59 00:03:30,880 --> 00:03:34,480 We collect some findings reports and we basically diff their performance. 60 00:03:34,480 --> 00:03:52,300 These targets include CTF challenges, custom realistic-ish ranges that we built ourselves, and some real institutions infrastructure which this presentation will primarily be concerned with is a recent run that we did against a real institution. 61 00:03:52,300 --> 00:03:53,380 More on that later. 62 00:03:53,780 --> 00:03:56,420 So back to the environment. 63 00:03:56,500 --> 00:04:05,060 Basically we're interested in capturing logs and monitoring data of what the participant or agent is doing in their remote environment. 64 00:04:05,120 --> 00:04:14,960 We capture things like command execution history, network activity, sort of like between the target infrastructure and the participant or agent, like sort of from an IT perspective. 65 00:04:15,740 --> 00:04:20,240 And I'll talk a bit more about the agent infrastructure later. 66 00:04:20,240 --> 00:04:28,580 But for the participant, we are also interested in the qualitative metrics like maybe UI activity. 67 00:04:28,600 --> 00:04:31,620 We record window opening and closing and focusing. 68 00:04:31,620 --> 00:04:40,900 We take screen recordings and we also allow the participant, the human participant, to make manual log entries recording important milestones in their workflow. 69 00:04:40,960 --> 00:04:44,160 So there's an example of a log message. 70 00:04:44,300 --> 00:04:45,820 It's very generic. 71 00:04:45,820 --> 00:04:47,820 But yeah, this is sort of the information we're recording. 72 00:04:47,820 --> 00:04:50,480 This one is an example of a window activity log. 73 00:04:50,720 --> 00:05:00,580 I guess the one thing that might be unclear in this log is log tag number, which is the index of the manually entered like milestone message that we think that this log pertains to. 74 00:05:00,580 --> 00:05:12,340 So we're trying to sort of break up the mass of logs that we have for the participant by what commands or like window activity or network activity we think is relevant to each phase of their attack or enumeration or whatever. 75 00:05:13,160 --> 00:05:23,380 And yeah, so in sort of in that spirit, we are at this current phase of the study, we are primarily interested in examining qualitative differences between the human participant and the agent. 76 00:05:23,380 --> 00:05:36,780 This means that we are mostly we want to have like well formatted readable and reproducible logs that explain how the participant or the agent discovered and exploited whatever findings. 77 00:05:36,800 --> 00:05:44,680 And as we onboard more participants and do more agent runs in the future, we'd also we'd love to have some more quantitative analyses. 78 00:05:44,680 --> 00:05:52,260 But as far as qualitative analyses go, I think we have a lot of interesting findings that we're excited to show you guys. 79 00:05:54,330 --> 00:06:03,530 Okay, so beginning, I guess a high level overview of that run that I mentioned earlier against a real institution. 80 00:06:05,070 --> 00:06:09,410 The target was a large research university. 81 00:06:09,410 --> 00:06:15,550 We were primarily interested in the computer science and electrical engineering departmental networks. 82 00:06:16,890 --> 00:06:24,310 And here's an overview of the vulnerabilities discovered by our human participant and by the agent in our sort of case study. 83 00:06:24,610 --> 00:06:29,350 So immediately, you'll notice some very interesting differences. 84 00:06:29,430 --> 00:06:36,450 There's a disparity in the total number of findings, which well, we can't take that at surface value because, you know, they use their time differently. 85 00:06:36,450 --> 00:06:43,530 Like the human participant has to sleep and eat, which might be a little unfamiliar for some of us who have been locked in at DEF CON recently. 86 00:06:43,530 --> 00:06:44,790 But they do. 87 00:06:44,830 --> 00:06:48,530 So they haven't actually used all the hours that we allotted to them. 88 00:06:49,130 --> 00:06:54,290 Meanwhile, the agent sort of had like continuous runs of a certain time that we determined. 89 00:06:54,290 --> 00:06:55,590 We'll talk more about the time later. 90 00:06:55,990 --> 00:07:02,990 And we also noticed that the number of findings made by the agent depend on the version of the agent that we ran. 91 00:07:02,990 --> 00:07:05,010 The scope of the agent, obviously. 92 00:07:05,770 --> 00:07:12,430 And we'll talk also about the development of the agent and why we have different iterations and what are the differences. 93 00:07:13,290 --> 00:07:20,510 And lastly, we should also note that there was only one shared finding between the human participant and the agent. 94 00:07:20,670 --> 00:07:27,730 So in this case, there was really like one sort of trivial like vulnerability that a Vuln scanner could have found. 95 00:07:27,730 --> 00:07:28,990 And we're not really going to talk about that. 96 00:07:28,990 --> 00:07:34,430 But that was basically the only thing discovered by both the human or reported by both the human participant and the agent. 97 00:07:34,590 --> 00:07:36,210 And that should indicate a lot. 98 00:07:36,210 --> 00:07:50,910 There has to be some substantial difference in the way the human reasons and strategizes and the way the agent reasons and strategizes for them to complete, almost not overlap with the things that they found on the exact same target infrastructure. 99 00:07:51,310 --> 00:07:54,550 The human might decide this machine looks suspicious. 100 00:07:54,670 --> 00:07:56,470 We should investigate it. 101 00:07:56,470 --> 00:08:00,090 Whereas the agent might pass over it entirely and vice versa. 102 00:08:00,090 --> 00:08:04,530 And we will go into a lot of detail about why we think that is. 103 00:08:05,890 --> 00:08:07,330 And okay. 104 00:08:07,930 --> 00:08:13,650 So this is just like a breakdown of Vuln severities discovered by our human participant. 105 00:08:13,830 --> 00:08:19,050 They're mostly just like medium... there's like a... we'll go over a specific example of this. 106 00:08:19,050 --> 00:08:21,790 But mostly medium severity vulnerabilities. 107 00:08:21,790 --> 00:08:25,910 The one wrong is actually like a typo in the report that made it not reproducible. 108 00:08:25,910 --> 00:08:29,550 So it's not really like we think the human was mistaken. 109 00:08:29,550 --> 00:08:30,770 Like the vulnerability is legitimate. 110 00:08:30,770 --> 00:08:32,010 It was just a typo. 111 00:08:32,430 --> 00:08:40,010 Meanwhile, for the agent, there were actually a number of wrong submissions that were like actually defective. 112 00:08:40,010 --> 00:08:42,970 It wasn't like a one character off mistake. 113 00:08:42,970 --> 00:08:45,550 We will elaborate about why. 114 00:08:45,550 --> 00:08:51,830 Like what specific features of the agent architecture sort of lead the agent to put in like faulty submissions. 115 00:08:51,830 --> 00:08:58,950 Although the rest of the agent's report is pretty similar to like an average pen testing report that you would expect. 116 00:08:58,950 --> 00:09:04,930 And it did find some more complex higher-ish severity vulnerabilities. 117 00:09:07,330 --> 00:09:14,270 So we're going to go over some of the examples that we thought were exemplary from both the human runs and the agent runs. 118 00:09:14,270 --> 00:09:21,510 So we picked out a few vulnerabilities, a few findings that each of the agent and the participant found. 119 00:09:21,530 --> 00:09:28,410 And we wanted to highlight some things that we could take away from that about how they reason, how they think. 120 00:09:28,410 --> 00:09:36,930 So we, our participant in this, in this stage was a pretty, pretty well-known web security researcher. 121 00:09:37,130 --> 00:09:41,410 He has found pretty high-profile vulnerabilities in big companies. 122 00:09:41,410 --> 00:09:47,770 And if, I'm, I'm not going to say his name, but if I did say his name, I'm sure many of you would recognize it. 123 00:09:47,770 --> 00:09:53,390 The vulnerability that he found was a stored URI XSS on a site. 124 00:09:53,390 --> 00:10:00,850 This is a public facing site from the university that it hosts as a service, I guess, to the community. 125 00:10:00,850 --> 00:10:07,290 It's a biomedical computation kind of repository for you to put different models, different programs on. 126 00:10:07,290 --> 00:10:12,410 I think it's, it's kind of like hugging face for, for biomedical computation research. 127 00:10:12,870 --> 00:10:21,230 And what, what he found was that in an user profile, which anyone can make an account, anyone can, can set, set one up. 128 00:10:21,230 --> 00:10:24,190 You just need to get your email verified automatically. 129 00:10:24,190 --> 00:10:26,450 It's, anyone can do it. 130 00:10:26,630 --> 00:10:33,710 And it lets you to put this XSS payload onto your public profile, which is viewable also by everyone. 131 00:10:33,930 --> 00:10:44,610 And what this does is that this allows for an XSS payload to be put in the site, basically using a JavaScript colon alert one as a link for your university affiliation. 132 00:10:44,610 --> 00:10:50,850 That leads to whenever you click the, the university link, it will execute an arbitrary JavaScript payload. 133 00:10:51,410 --> 00:10:55,850 And what this could lead to, this could lead to stealing user session cookies. 134 00:10:55,850 --> 00:10:57,870 This could lead to CSRF. 135 00:10:57,870 --> 00:11:06,430 A lot of things can be done with this to both cause reputational damage to this site and also possibly steal other people's accounts. 136 00:11:06,430 --> 00:11:10,910 So we found that this did have some level of significant impact. 137 00:11:10,910 --> 00:11:15,310 One thing that was interesting about this was that there was some basic filtering in place. 138 00:11:15,310 --> 00:11:20,110 If you put in the payload JavaScript colon alert one, it would actually not execute any JavaScript. 139 00:11:20,110 --> 00:11:23,650 It would prepend the HTTPS colon slash slash in front of it. 140 00:11:23,650 --> 00:11:25,890 And that basically neutralizes this payload. 141 00:11:26,090 --> 00:11:31,770 Even you click it, at least on Chrome when I tried, it will lead you to an about blank, about blocked page. 142 00:11:31,950 --> 00:11:35,170 Basically, like this is, this wouldn't work. 143 00:11:35,290 --> 00:11:43,590 We'll talk more about like how that was bypassed later because I, we found that was a interesting point of comparison or point of analysis there. 144 00:11:43,610 --> 00:11:49,110 But we're first gonna go through kind of the steps of how, of what our human participant did. 145 00:11:49,370 --> 00:11:52,050 Using, we had time stamps for each part. 146 00:11:52,050 --> 00:11:59,430 We used our logs and our screen recordings to be able to kind of trace through exactly what our participant did to find this vulnerability. 147 00:11:59,570 --> 00:12:04,390 He started at the beginning of the engagement with an Nmap scan of the whole scope. 148 00:12:04,390 --> 00:12:10,050 Basically, he had a Google spreadsheet which kept track of each of, like, each of the hosts he was going through. 149 00:12:10,130 --> 00:12:14,450 And he eventually found this app which used PHP. 150 00:12:14,450 --> 00:12:27,510 And he, and he noted down in his logging that he decided to try this site because he knew that PHP, from his previous experience, that PHP often has a lot of pretty low hanging fruit vulnerabilities. 151 00:12:27,510 --> 00:12:31,490 There's a lot of easy to make mistakes when you are using PHP. 152 00:12:31,610 --> 00:12:38,850 So he decided to focus on this, this end point, or this, this host for a good half an hour or an hour. 153 00:12:38,850 --> 00:12:40,330 So he did several things. 154 00:12:40,330 --> 00:12:43,570 He created an account, tried to investigate file upload vulnerabilities. 155 00:12:43,570 --> 00:12:46,450 He ran automated tools like FFUF. 156 00:12:46,450 --> 00:12:54,990 He tried image tragic payloads because he saw that the resizing of profile pictures was happening. 157 00:12:55,010 --> 00:12:59,370 And eventually he ended up running SQL map and FFUF again. 158 00:12:59,370 --> 00:13:12,030 And he noted in his log that if this didn't return anything, he would probably move on to another host so that he could save his time and try to hit more hosts, find more vulnerabilities because this is not worth investigating further. 159 00:13:12,150 --> 00:13:18,530 Eventually he tested XSS payloads and he found a JavaScript URI XSS payload that worked. 160 00:13:18,610 --> 00:13:29,290 But as I said before, there was a filter which means that if you put the generic JavaScript colon alert one that many people use to test for this kind of vulnerability , it would not work. 161 00:13:29,330 --> 00:13:38,610 And while this is a relatively trivial bypass, what was interesting is that he never actually hit the filter. 162 00:13:38,610 --> 00:13:45,310 His first payload was JavaScript colon alert one slash slash HTTPS colon slash slash A. 163 00:13:45,310 --> 00:14:00,630 And what that does, for those of you who are unfamiliar, is that the two slashes become a JavaScript comment and it lets you to put arbitrary data afterwards while still having your arbitrary JavaScript payload to be executed when the link is clicked. 164 00:14:00,710 --> 00:14:16,290 So what that does is allows you to smuggle a HTTPS in which makes the web app, when it checks for whether or not this is a website, it does it by checking if the string HTTP or HTTPS is in your URL. 165 00:14:16,290 --> 00:14:24,390 And because it is indeed in there, it decides it doesn't need to add another HTTPS and it lets it through unchanged. 166 00:14:25,010 --> 00:14:34,070 And the thing that was kind of surprising to us was that he went straight to this payload and it did trigger the XSS and then he reported it. 167 00:14:34,070 --> 00:14:38,750 And did not, never tried the payload that would get blocked, so we got confused. 168 00:14:38,750 --> 00:14:43,410 How did he find this, how did he bypass this filter without knowing that it existed? 169 00:14:43,690 --> 00:15:03,910 So we interviewed him about his rationale and he described that he did anticipate this filtering from previous experiences, previous pentests and just his years of pentesting experience gave him this workflow that he would work starting with a more filter bypassing payload like the one here and kind of work his, 170 00:15:03,910 --> 00:15:26,410 if it worked he would kind of test a bit more to see like what kind of filters are there, but basically if he bypassed all the filters he could use one payload and test for the existence of the vulnerability without having to iteratively try, try a payload and then keep adding more and more stuff to bypass stuff in order to even detect if the vulnerability is there in the first place. 171 00:15:26,430 --> 00:15:32,450 And this was interesting to us because we, we found that that was an example of the human. 172 00:15:32,450 --> 00:15:46,630 This in the PHP, deciding to focus on PHP were examples of the human using his previous experience, previous years of pentesting to be able to find why, to be able to be more efficient and be able to bypass stuff like this filter. 173 00:15:47,590 --> 00:16:04,190 And this, we can go back a slide, yeah, this is, this is kind of significant because we saw, we decided to focus on this because it is a relatively significant vulnerability on a public facing site that could cause damage and so we decided to run the agents on it. 174 00:16:04,190 --> 00:16:08,690 We saw that in the initial run our agent never touched his host at all. 175 00:16:08,690 --> 00:16:15,550 The only mentions of it in logs were a, a line in the end map scan that it basically ignored. 176 00:16:15,550 --> 00:16:18,210 It never interacted with his host at all. 177 00:16:18,310 --> 00:16:36,370 So we wanted to see if our agent would find that vulnerability and try to exploit it, maybe bypass the filter, but we found that even when we explicitly prompted it to exploit the host, so we ran several runs first by just telling it to attack the host and then we told it attack this specific place and then we told it here is the vulnerability, 178 00:16:36,370 --> 00:16:38,850 please try to exploit it. 179 00:16:38,850 --> 00:16:44,950 But we found it couldn't even get to that code path and much less like actually exploit the XSS. 180 00:16:45,510 --> 00:16:50,330 So that was an interesting finding to us about like the capabilities of our agent. 181 00:16:53,820 --> 00:16:54,380 Okay. 182 00:16:54,380 --> 00:17:03,440 So we will also be giving an example of a finding made by the agent, but before we get into the specifics of the finding, it's time for another infrastructure break. 183 00:17:03,440 --> 00:17:08,860 So I wanted to just give some basics about the agent architecture. 184 00:17:09,100 --> 00:17:11,620 This, this one is, this one is not too exciting folks. 185 00:17:11,620 --> 00:17:16,140 This one is, this V0 agent is sort of not our original work. 186 00:17:16,300 --> 00:17:19,940 It's, there are many comparable projects that use this sort of scaffolding. 187 00:17:19,940 --> 00:17:26,800 It's a very, very simple like LLM that has access to a command line and it can like download and run tools. 188 00:17:26,820 --> 00:17:28,480 It can make like network requests. 189 00:17:28,480 --> 00:17:30,200 It can access APIs, yada, yada, yada. 190 00:17:30,200 --> 00:17:35,380 And then the output of these interactions is fed back to the LLM and then there's this sort of like loop, right? 191 00:17:35,380 --> 00:17:39,000 And then if it, if it has a finding, then it will report it to us. 192 00:17:39,720 --> 00:17:47,900 So this very simple architecture, you may not recall from the Venn diagram of findings because it's, it's not there. 193 00:17:47,900 --> 00:17:51,340 They didn't make any findings when we ran it on the infrastructure. 194 00:17:51,340 --> 00:17:58,120 And basically what it did was for the entire duration of its allotted time, it just like ran and map scans like a headless fly. 195 00:17:58,120 --> 00:17:59,860 Like it, it didn't, it didn't amount to anything. 196 00:18:00,240 --> 00:18:16,540 And so we, yeah, we, we determined that there, we need to have some mechanism by which we can coordinate the agents like strategizing and planning at a higher level so that it doesn't get lost enumerating a bunch of hosts and never actually deciding like this one looks vulnerable. 197 00:18:16,540 --> 00:18:18,240 Let's examine it further. 198 00:18:18,280 --> 00:18:19,940 So here's V1 agent. 199 00:18:19,960 --> 00:18:21,640 This one is, is on the Venn diagram. 200 00:18:21,640 --> 00:18:24,140 And this one we introduced a second LLM. 201 00:18:24,140 --> 00:18:27,360 So as you can see, there is a planner agent fellow over there. 202 00:18:27,360 --> 00:18:37,740 And the planner agent, basically we give it some initial information about its role, about its scope, and then it orchestrates like a high level plan of attack. 203 00:18:37,880 --> 00:18:39,680 It feeds it to the subagent. 204 00:18:39,680 --> 00:18:42,400 The subagent is sort of similar to the V0 agent. 205 00:18:42,400 --> 00:18:45,920 It can actually interact with like the command line and with tools. 206 00:18:46,040 --> 00:18:58,280 And the subagent reads the plan and sort of determines what commands it wants to execute or it proposes like a very short term plan and then it proposes that back to the planner agent. 207 00:18:58,280 --> 00:19:08,300 The planner agent, considering its role, scope, et cetera, can choose to approve or disapprove the proposed like, I don't know, I want to execute these three commands. 208 00:19:08,820 --> 00:19:11,700 And maybe it will be like, okay, well, that's outside of our scope. 209 00:19:11,700 --> 00:19:12,600 So try again. 210 00:19:12,600 --> 00:19:14,620 Or like maybe it will be like, okay, that sounds reasonable. 211 00:19:14,620 --> 00:19:20,140 And then it gets executed and the results of this invocation go back to the planner agent. 212 00:19:20,140 --> 00:19:27,400 The planner agent might update the plan to be like, depending on what was discovered, and then the loop repeats. 213 00:19:27,540 --> 00:19:34,660 And this is pretty similar to our V2 agent architecture, which is the current, the latest architecture. 214 00:19:35,060 --> 00:19:38,920 And basically the difference here is just that we've promoted the supervisor a bit. 215 00:19:38,920 --> 00:19:46,820 We allow it to spawn individual like subinstances, like subagents, which can do different tasks in parallel. 216 00:19:47,380 --> 00:19:57,040 Although the so one thing I should say is that the supervisor or like planner agent architecture is it made like considerable improvements on V0, but it's not perfect, right? 217 00:19:57,220 --> 00:20:07,520 There was like a one significant problem that was introduced after we added the supervisor that wasn't there before, which is that we started getting like mistaken findings. 218 00:20:07,520 --> 00:20:18,440 This is responsible for a lot of the purple column on the bar graph from earlier, because the supervisor and subagent would have different perspectives on a finding that they had made. 219 00:20:18,440 --> 00:20:22,460 The subagent might have discovered something. 220 00:20:22,460 --> 00:20:29,980 It reports it back up to the supervisor, and the supervisor like misconstrues its words, rephrases it somehow, maybe hallucinates something. 221 00:20:29,980 --> 00:20:44,720 So when the supervisor actually generates this green box workflow up there, when we actually receive the report of findings, sometimes we were not able to reproduce the vulnerabilities even when they were legitimate or like semi-legitimate because the supervisor had just like made something up. 222 00:20:44,720 --> 00:20:53,400 But yeah, all in all, that is a summary of the architecture, and we will provide a specific example of a finding. 223 00:20:55,000 --> 00:20:55,860 All righty. 224 00:20:55,860 --> 00:21:00,560 So what did the agent, particularly in this case the V2 agent, end up finding? 225 00:21:00,560 --> 00:21:01,900 I know I was surprised. 226 00:21:01,900 --> 00:21:03,320 I think our team was surprised. 227 00:21:03,320 --> 00:21:09,800 We had our doubts about whether or not the AI would perform well, particularly given the entire 20 subnet scope. 228 00:21:09,800 --> 00:21:11,860 And in fact, it kind of did. 229 00:21:12,260 --> 00:21:16,800 Before I get into this full flow, just a brief touching on what a non-SMB is. 230 00:21:16,800 --> 00:21:18,020 It's anonymous SMB. 231 00:21:18,020 --> 00:21:19,780 SMB is a file sharing service. 232 00:21:19,780 --> 00:21:21,300 I put files on my share. 233 00:21:21,300 --> 00:21:22,560 People can access them. 234 00:21:22,560 --> 00:21:28,320 In this case, people can access them without any login, which means anybody on the network can access them. 235 00:21:29,520 --> 00:21:31,580 A few little quirks about this host. 236 00:21:31,580 --> 00:21:45,160 One interesting tidbit that I'm going to throw out before I go into the full flow is that the LLM also guessed the default password to this host as like the fourth password it tried, which we expect is a result of it training on the manual for this particular device. 237 00:21:45,320 --> 00:21:46,420 Kind of cool stuff. 238 00:21:46,800 --> 00:21:47,340 All right. 239 00:21:47,340 --> 00:21:54,300 So the flow itself, the attacker has enumerated SMB and has also enumerated a website. 240 00:21:54,780 --> 00:21:56,840 And the attacker in this case is the agent. 241 00:21:57,080 --> 00:21:59,820 And it sees, okay, we have this SMB share open. 242 00:21:59,820 --> 00:22:00,600 That's great. 243 00:22:00,600 --> 00:22:01,880 Maybe we can get some files. 244 00:22:01,880 --> 00:22:03,440 Maybe we can put some files. 245 00:22:03,580 --> 00:22:04,820 We can do both. 246 00:22:05,720 --> 00:22:11,110 It reads a config file, which conveniently has a credential, which I will touch on later. 247 00:22:11,390 --> 00:22:19,470 And it realizes I can write to a separate config directory that contains scripts that are run as root when the computer restarts. 248 00:22:19,490 --> 00:22:25,990 This is good because we can write over those scripts to be a reverse shell or a connection back to the attacker box. 249 00:22:25,990 --> 00:22:27,170 So we do that. 250 00:22:27,330 --> 00:22:37,270 And conveniently, the web port that is open is actually an API, and those credentials on the share are credentials for the API, and the API has a restart call. 251 00:22:37,270 --> 00:22:44,950 So we write over the script, and then we pull the API and say, please restart the computer, and we catch a shell backwards. 252 00:22:45,910 --> 00:23:00,810 And one other just brief note before we continue, the agent has an interesting advantage on these shares as well for the pure amount of content it can consume, the rate at which it can consume that content, because there was a significant amount of information on this machine , 253 00:23:00,810 --> 00:23:06,610 and parsing to those specific files that were of value actually did require some time when we did it manually. 254 00:23:08,090 --> 00:23:12,530 So this is a key finding about our agent here, is that elicitation matters. 255 00:23:12,650 --> 00:23:14,330 So what is elicitation? 256 00:23:14,390 --> 00:23:22,850 Elicitation is poking, coercing, prodding, however you want to verb it, the agent, to please continue when it finds something. 257 00:23:22,850 --> 00:23:33,730 Agents historically and in practice, particularly with the V0 and V1 agents, have a tendency to find a thing, report back to humans, say, look, didn't I do great? 258 00:23:33,730 --> 00:23:37,410 A few agents have personas that are particularly excited about this. 259 00:23:39,510 --> 00:23:41,490 And say, look what I found. 260 00:23:41,490 --> 00:23:42,150 Yay. 261 00:23:42,470 --> 00:23:43,330 And that's great. 262 00:23:43,330 --> 00:23:47,810 But a lot of the times when you find something in a pen test, it's just the beginning of something greater. 263 00:23:48,690 --> 00:23:57,610 So this was the first submission we received for this anonymous SMB share, which is, hey, look, bro, I found this, aren't I so cool? 264 00:23:57,710 --> 00:24:03,070 And the answer is, yeah, we were glad it found it and it's already performing maybe a little better than we anticipated. 265 00:24:04,030 --> 00:24:09,110 But when we proked it manually, we realized there's this whole attack flow that we could do. 266 00:24:09,830 --> 00:24:23,310 And so this V2 agent that Anna outlined more accurately approached this problem and we elicited it to hit it harder, basically, via the architecture and as well as some prompt changes. 267 00:24:23,630 --> 00:24:31,430 And that allowed us to have this output that it gave us with a full kill chain as to how to exploit this host, which is really good news. 268 00:24:32,970 --> 00:24:42,910 And more broadly, I mean, hopefully most of us, hopefully all of us within the audience view offensive security as a means to protect other people and their information. 269 00:24:43,330 --> 00:24:49,450 And so if we have an agent that says, hey, look, I found this thing, we need to fix it, that's great. 270 00:24:49,450 --> 00:24:51,370 It found the thing and we do need to fix it. 271 00:24:51,370 --> 00:25:01,430 But oftentimes once somebody touches something on a host, I can speak from experience, and fixes it, we think, okay, we've remediated this host, there's nothing there anymore, hopefully. 272 00:25:01,510 --> 00:25:13,970 Whereas the submission B, the good submission, shows us a full kill chain with a few different end points and a few different details of things we might want to fix, like a wire guard config that went to an AWS subnet that was sitting on that SMB share. 273 00:25:16,520 --> 00:25:27,440 Speaking of bad submissions, like mentioned earlier in a lot of the final reports we got from the supervisor agent, there's a lot of small, subtle errors. 274 00:25:27,440 --> 00:25:40,420 And so one specific instance of this was another very interesting vulnerability that the agent ended up finding, which was a DocuWiki server with a leaked user database. 275 00:25:40,420 --> 00:25:43,220 And so we take the docs. 276 00:25:43,220 --> 00:25:57,500 So the supervisor agent has this list of, like, targetable hosts, and it decides that this docs.university.edu server is a very interesting host. 277 00:25:57,500 --> 00:26:05,640 So it then gives this as a task to the subagent, and tells the subagent to then investigate farther and see if it can find anything. 278 00:26:05,640 --> 00:26:25,060 So then the subagent taking the task, it's given this host name, a docs.university.edu, it then goes back to the context server and pulls more information from earlier scanning, and it receives not only the host name and also the IP address linked to this host name so that it can do more in-depth probes. 279 00:26:25,060 --> 00:26:36,240 And so it starts scanning the host name and IP address, and what it finds is that it actually finds vulnerabilities on the IP address, but it actually does not find any vulnerabilities on the host name. 280 00:26:36,240 --> 00:26:56,780 And the reason for that is due to some multiplexing with the host name stuff, but it continues investigating the IP address and it finds the leaked user database which is pretty critical, and then it sends that back, and then it compiles all of that into a nice report and gives it to the supervisor agent to review. 281 00:26:56,780 --> 00:27:04,360 So the supervisor agent, it tells the supervisor agent that the IP address had all the findings and not the host name. 282 00:27:04,360 --> 00:27:20,260 But the supervisor agent had originally given it the task of attacking the host name, so then the supervisor agent takes the compiled report and makes a new version of the report to give to us, and the new version instead replaced the IP address with the host name. 283 00:27:20,260 --> 00:27:30,200 So then when we tried to recreate this report using the host name, nothing happened, nothing worked, and it was because the supervisor agent had kind of misreported everything. 284 00:27:30,420 --> 00:27:34,580 And so that's another, this is an example of a subtle error. 285 00:27:34,580 --> 00:27:50,520 We noticed this trend in a few of the other reports where the supervisor agent would misreport what the sub-agent would give, and it would also tend to, like, blow up the criticality of findings, not unlike a lot of, like, human, like, manager and, like, 286 00:27:50,520 --> 00:27:53,260 actual engineer worker experiences. 287 00:27:55,620 --> 00:28:06,200 Okay, so with that all that in mind, I wanted to go over some of the key takeaways that we got from this study and this comparison of humans and AIs. 288 00:28:07,560 --> 00:28:11,120 One big thing is speed. 289 00:28:11,220 --> 00:28:15,240 We saw that our agent was way faster than a human agent. 290 00:28:15,240 --> 00:28:27,480 It was able to utilize the parallelization in our V2 agent, which can also be scaled up with more, more chains of thought, more, more agents happening at the same time in order to find vulnerabilities even faster. 291 00:28:27,480 --> 00:28:37,200 The first vulnerability, the full exploit chain that was found by our agent was in 18 minutes after the beginning of the engagement. 292 00:28:37,200 --> 00:28:44,100 For our human participant, the first, the first vulnerability, the first exploit happened at around 45 minutes. 293 00:28:44,280 --> 00:28:55,600 And what we found was that also the first exploit that the agent found was actually way higher severity than the first exploit that our human participant found initially. 294 00:28:55,700 --> 00:29:08,620 And this kind of shows that this parallelization, this, this just allows AIs to be, this allows the AI agent to be fast and often faster than a human would be in that same time period, same scenario. 295 00:29:08,620 --> 00:29:14,400 But one con of the agent, we found that it often reports some scanner type vulnerabilities. 296 00:29:14,400 --> 00:29:19,600 This included things like simple, like version, versions being a bit old. 297 00:29:19,600 --> 00:29:28,280 It reported things like outdated TLS, SSL configs, some minor configuration stuff that usually a vulnerability scanner would be able to find. 298 00:29:28,280 --> 00:29:34,500 Existing tools that don't use AI like Nessus and things of the like would be able to find these. 299 00:29:34,500 --> 00:29:43,640 So that kind of shows like there were 27 findings, but not all of them are like things that we needed an agent to find. 300 00:29:44,520 --> 00:29:48,820 So despite that, overall, the agent seems pretty promising. 301 00:29:48,820 --> 00:29:50,680 So what is the feasibility? 302 00:29:50,680 --> 00:30:11,820 Across our, on average, across the 10 hour run, which is how long we would run one session of the agent due to monitoring and oversight work hours for us, the agent would, we would, we input 175 million tokens into the agent and have an output of 1.5 million tokens. 303 00:30:11,820 --> 00:30:13,460 So how much did that cost? 304 00:30:13,460 --> 00:30:23,860 Well, it just, it depended on the agent, but one, for instance, one of the agents we tried, Clawed Force on it, across the 10 hour window, it cost $550. 305 00:30:23,960 --> 00:30:26,980 So you can take that how you will. 306 00:30:29,400 --> 00:30:32,260 And then, so human advantages. 307 00:30:32,260 --> 00:30:49,740 So despite all the statistics, the humans still had some advantages in this case, like the example Ethan mentioned earlier, where the human was able to use its greater knowledge and experience and understanding of the situation to find a more complicated vulnerability. 308 00:30:49,920 --> 00:30:59,360 And then also, like mentioned, all the errors in like submissions and reporting, there's a lot less, there's a lot clearer reporting from the humans. 309 00:30:59,460 --> 00:31:04,880 And it was much easier to recreate the human vulnerabilities a lot of the time than the agent findings. 310 00:31:07,770 --> 00:31:10,370 So I want to touch on some of our limitations. 311 00:31:10,450 --> 00:31:12,830 One is obviously the limited time window. 312 00:31:12,830 --> 00:31:20,450 So for those of you guys that have done bug bounties or things like that, there's often a much longer window for recon and also for submissions. 313 00:31:20,650 --> 00:31:30,750 And because we wanted to monitor, obviously, participants have day jobs and other commitments, they can't block out a month for us, that at least currently favors the agent. 314 00:31:30,770 --> 00:31:45,030 I also want to touch on a similar study done, OpenAI had this at-coder competition, I don't know if you have seen the results, but early on in the first three hours, the model shot up really, really fast and was able to kind of really crush the human competitors. 315 00:31:45,090 --> 00:31:49,630 But as the competition went on, ultimately, the humans were able to kind of come back. 316 00:31:49,630 --> 00:31:55,410 And ultimately, the winner of that competition actually was a human and, you know, very high profile kind of victory there. 317 00:31:55,470 --> 00:32:12,830 And while the OpenAI model still had a strong showing, I think it was second place overall, we kind of want to touch on how actually the limited time window greatly favors the agent currently and being able to kind of just find raw submissions in a time when actually maybe the human needs a bit of time to get up to speed with context and things like that. 318 00:32:14,650 --> 00:32:17,110 All righty, so where are we going from here? 319 00:32:17,110 --> 00:32:19,210 First of all, we are at V1. 320 00:32:19,330 --> 00:32:25,130 What we just ran was kind of a V0, but V1 is going to be a scaled up version of that with multiple humans. 321 00:32:25,670 --> 00:32:32,610 And the other thing we're going to change for this next version is that the AB test with narrower scope. 322 00:32:33,350 --> 00:32:38,630 The human got that full 20 subnet scope, which obviously has a lot of hosts on it. 323 00:32:38,990 --> 00:32:45,430 And as a result, I don't think we got to see the human's depth of knowledge and depth of exploit chain. 324 00:32:45,430 --> 00:32:55,330 So we'll be having some participants operate on a greatly reduced scope to see what the depth of human knowledge is, because we covered breadth pretty well, I think, in this first iteration. 325 00:32:56,530 --> 00:33:01,550 The second task we're going to do is a lift study. 326 00:33:01,550 --> 00:33:07,650 So lift would be referring to given some tool or environment, how much better does one perform? 327 00:33:07,730 --> 00:33:15,490 And in this case, we'd like to take people of all skill ranges and pair them with an agent or disallow them from using AI. 328 00:33:15,790 --> 00:33:23,810 And with the paired agent, the expectation is people that have a lower skill level will increase dramatically. 329 00:33:23,910 --> 00:33:28,550 And historically, sometimes agents have actually inhibited the highest skill experts in fields. 330 00:33:28,550 --> 00:33:34,910 However, with this parallelization and advances in AI in general, maybe this will change eventually. 331 00:33:34,910 --> 00:33:38,610 So these are continuous metrics we'd like to be gathering. 332 00:33:38,790 --> 00:33:43,590 And the third thing is a purple team exercise, which is red and blue team. 333 00:33:43,770 --> 00:33:45,230 We have done red team. 334 00:33:45,230 --> 00:33:46,990 We will be doing more red team. 335 00:33:46,990 --> 00:33:58,370 But blue team, as I referenced earlier, is ultimately I think a lot of the goal of red team is to help blue team succeed, help keep people safe, help keep the world in some form of status quo. 336 00:33:59,330 --> 00:34:10,330 And so we'll be observing blue team participants, IT staff, etc., who will be responding actively to our red teamers, as well as running a blue team agent. 337 00:34:11,790 --> 00:34:14,350 Also, no work goes into vacuum. 338 00:34:14,470 --> 00:34:17,530 Obviously, we have this great team here on the stage with us. 339 00:34:17,530 --> 00:34:22,890 I also want to acknowledge Stanford HIC grant, which supported our work, also with OpenAI. 340 00:34:22,890 --> 00:34:28,310 And I want to thank our colleagues, Olivia, Kevin, and Andy, for kind of formative discussions and feedback. 341 00:34:29,370 --> 00:34:32,970 Also, this wouldn't be a good talk without a shameless recruitment pitch. 342 00:34:32,970 --> 00:34:46,930 So if anyone here is a strong security researcher, kind of interested in participating, going head on with the frontier models, also organizations, for those of you all that are interested in having a bug bounty or kind of seeing how AI can help secure your enterprise, 343 00:34:46,930 --> 00:34:47,950 please reach out. 344 00:34:47,950 --> 00:34:50,830 We'll do a lot of the log work on the log analysis and whatnot. 345 00:34:51,250 --> 00:34:52,750 And yeah, I've left my signal here. 346 00:34:52,930 --> 00:34:54,370 Feel free to contact me. 347 00:34:54,370 --> 00:34:56,430 We have our website and email. 348 00:34:56,710 --> 00:35:02,490 And yeah, we're looking forward to extending this work and engaging with the rest of the security community. 349 00:35:03,130 --> 00:35:04,190 Thank you. 350 00:35:11,850 --> 00:35:16,110 I think we have ten minutes or so for questions, if anyone has them. 351 00:35:16,190 --> 00:35:17,830 I saw your hand first. 352 00:35:28,370 --> 00:35:37,930 So the question was how much do we think the expert was inhibited by wanting to do ‑‑ have interesting findings that aren't some bullet and scanner level thing. 353 00:35:37,930 --> 00:35:42,610 And the answer to that question I think is definitely there was some of that going on. 354 00:35:42,610 --> 00:35:46,710 The expert was going for some more complex web chain things. 355 00:35:47,190 --> 00:35:56,450 I think the larger inhibitation on the expert's side was this ‑‑ the time scope that Justin talked about. 356 00:35:56,510 --> 00:36:08,310 I think ‑‑ so the low severity findings in the graph on the experts were these kind of bullet and scanner type things like the service status point on Apache. 357 00:36:08,550 --> 00:36:24,030 But more broadly, the expert had this tendency to hit a host, hit a host pretty hard, think that he maybe found something, and then eventually say, you know, if I had two more hours I'd continue looking at this, but I think I should go elsewhere. 358 00:36:24,030 --> 00:36:27,650 And honestly, I think that was the biggest impact to his performance. 359 00:36:45,100 --> 00:36:57,660 So to repeat the question, we had some problems with the subagent and the supervisor agent playing some game of telephone to some extent, and do we have plans to improve that in the next iteration? 360 00:36:57,920 --> 00:37:01,420 Yeah, so definitely one of the key things is a verifier. 361 00:37:01,460 --> 00:37:09,280 So one thing that we want to do with the submissions is actually have a verifier agent try to run the POC code, because that's what you would do as a human, right? 362 00:37:09,280 --> 00:37:12,200 If you see a vulnerability you try to triage it, try to understand that. 363 00:37:12,200 --> 00:37:16,400 Right now we're just piping it over and then we manually go and verify the stuff. 364 00:37:16,400 --> 00:37:23,520 So I think having that kind of closed loop where actually the submission was blocked and you can reiterate can probably help alleviate some of those issues. 365 00:37:35,330 --> 00:37:38,450 In terms of verifying the vulnerability? 366 00:37:38,590 --> 00:37:39,630 Like how long it took us. 367 00:37:39,630 --> 00:37:41,050 Yeah, we don't. 368 00:37:41,270 --> 00:37:42,470 We do. 369 00:37:42,470 --> 00:37:43,290 Oh, yeah, I should do. 370 00:37:43,390 --> 00:37:50,890 So Ethan and I were mainly responsible for verifying the agent and the human vulnerabilities, but primarily Ethan, so I'm going to let him take this. 371 00:37:51,310 --> 00:37:57,650 Yeah, I think most of ‑‑ we were able to verify most of the vulnerabilities in about an hour, an hour and a half. 372 00:37:59,010 --> 00:38:06,970 In total, there were not too many vulnerabilities, because these were limited runs and time frames. 373 00:38:07,190 --> 00:38:09,390 As you said, there were like 27 and eight. 374 00:38:09,850 --> 00:38:12,190 So we were ‑‑ yeah, it did not take too long. 375 00:38:13,570 --> 00:38:21,510 Just to add to that briefly, like this is something that ‑‑ shoot, I completely blanked on what I was going to say, actually. 376 00:38:32,810 --> 00:38:38,070 Yeah, so all of the findings that ended up on the graph for the agent, we didn't prod it at all. 377 00:38:38,130 --> 00:38:48,570 So the elicitation I was referring to when I talked about that was mostly the architecture and as well as some prompt changes, because initially the prompts were pretty default. 378 00:38:48,870 --> 00:38:55,510 And then, you know, I'm sure some of us have added the experience where we're like begging the LLM to do what we're actually asking it to do. 379 00:38:55,850 --> 00:38:57,710 And there was definitely some of that. 380 00:38:57,890 --> 00:39:08,670 And really, frankly, it was some wordsmithing, trying it and then seeing, okay, it did better here, but maybe we can like ‑‑ but there was no ‑‑ every vulnerability you saw there, the agent found by itself. 381 00:39:08,670 --> 00:39:14,310 And when we actually try to elicit, it's actually to reproduce a human attempt, like the XSS one. 382 00:39:14,310 --> 00:39:15,730 The elicitation you were talking about. 383 00:39:15,730 --> 00:39:16,250 Yeah. 384 00:39:16,250 --> 00:39:17,690 Red in the back. 385 00:39:26,530 --> 00:39:28,570 For sure. 386 00:39:28,790 --> 00:39:35,710 So one thing that is part of the V2 subagent architecture are expert subagents. 387 00:39:35,710 --> 00:39:42,650 So the supervisor has an ability now to call ‑‑ I think there are some companies that exist that have a word for this. 388 00:39:43,230 --> 00:39:48,210 But basically some agents that have a specialized prompt for a certain thing. 389 00:39:48,210 --> 00:39:57,990 So we had like web enum, windows enum, file share enum, and then after that we had like web exploit and so on and so forth. 390 00:39:58,870 --> 00:39:59,270 Yes. 391 00:39:59,270 --> 00:40:03,810 We also tried the kind of expo alloy approach where we used different models as well. 392 00:40:04,690 --> 00:40:06,250 Gentleman next to you. 393 00:40:10,510 --> 00:40:12,810 Could you repeat the last bit? 394 00:40:13,430 --> 00:40:15,870 The agent's ability to find its manners. 395 00:40:18,030 --> 00:40:21,390 We didn't do a very thorough study on this. 396 00:40:21,390 --> 00:40:28,470 Obviously we tried to, you know, on the VM machine, you know, try to add some technical controls as to what it can and can't access. 397 00:40:28,470 --> 00:40:32,830 But it's mostly, like we said, we monitored the agent through that time horizon. 398 00:40:32,830 --> 00:40:33,890 We also collect logs. 399 00:40:33,890 --> 00:40:36,510 We have like a jump box internally for it to kind of route things. 400 00:40:36,510 --> 00:40:39,730 So it's mostly just like, oh, if it's not doing anything super naughty, it's fine. 401 00:40:39,730 --> 00:40:44,530 But we did not like log each time it's tried to, you know, try another subnet or something like that. 402 00:40:44,530 --> 00:40:48,550 I will say I was monitoring the agent for the entirety of its last run. 403 00:40:48,830 --> 00:40:57,210 And because of the elicitation, it got a little bit naughty on like uploading a bunch of .SH files to try to catch a reverse shell or something. 404 00:40:57,210 --> 00:41:01,490 But that's nothing that I think a human attacker wouldn't have to do to iterate through payloads. 405 00:41:01,490 --> 00:41:06,150 In terms of minding scope and not hurting the network, it was actually really well behaved.